blob: 8ca2d2f6d1f798df0fce0ca1f525d8cfb2206482 [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
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000693TARGETS_TO_BUILD
694LLVM_ENUM_TARGETS
695LLVM_ENUM_ASM_PRINTERS
696LLVM_ENUM_ASM_PARSERS
697LLVM_ENUM_DISASSEMBLERS
698ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000699CLANGPATH
700CLANGXXPATH
701ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000702OPTIMIZE_OPTION
703EXTRA_OPTIONS
704BINUTILS_INCDIR
705ENABLE_LLVMC_DYNAMIC
706ENABLE_LLVMC_DYNAMIC_PLUGINS
707CXX
708CXXFLAGS
709ac_ct_CXX
710NM
711ifGNUmake
712LN_S
713CMP
714CP
715DATE
716FIND
717MKDIR
718MV
719RANLIB
720AR
721RM
722SED
723TAR
724BINPWD
725GRAPHVIZ
726DOT
727FDP
728NEATO
729TWOPI
730CIRCO
731GV
732DOTTY
733PERL
734HAVE_PERL
735INSTALL_PROGRAM
736INSTALL_SCRIPT
737INSTALL_DATA
738BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000739CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000740DOXYGEN
741GROFF
742GZIP
743POD2HTML
744POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000745PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746RUNTEST
747TCLSH
748ZIP
749OCAMLC
750OCAMLOPT
751OCAMLDEP
752OCAMLDOC
753GAS
Dan Gohman391569c2010-04-16 22:59:06 +0000754HAVE_LINK_RETAIN_SYMBOLS_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000755INSTALL_LTDL_TRUE
756INSTALL_LTDL_FALSE
757CONVENIENCE_LTDL_TRUE
758CONVENIENCE_LTDL_FALSE
759LIBADD_DL
760LLVMGCCCOMMAND
761LLVMGXXCOMMAND
762LLVMGCC
763LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000764LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000765NO_VARIADIC_MACROS
766NO_MISSING_FIELD_INITIALIZERS
767USE_UDIS86
768USE_OPROFILE
769HAVE_PTHREAD
770HUGE_VAL_SANITY
771MMAP_FILE
772LLVMCC1
773LLVMCC1PLUS
774LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775LLVMGCC_LANGS
776SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000777SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000778LLVM_PREFIX
779LLVM_BINDIR
780LLVM_LIBDIR
781LLVM_DATADIR
782LLVM_DOCSDIR
783LLVM_ETCDIR
784LLVM_INCLUDEDIR
785LLVM_INFODIR
786LLVM_MANDIR
787LLVM_CONFIGTIME
788BINDINGS_TO_BUILD
789ALL_BINDINGS
790OCAML_LIBDIR
791ENABLE_VISIBILITY_INLINES_HIDDEN
792RPATH
793RDYNAMIC
794LIBOBJS
795LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000796ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000797 ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803CPPFLAGS
804CPP
805CXX
806CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000807CCC'
John Criswell0157f502010-03-19 21:31:39 +0000808ac_subdirs_all='projects/llvm-gcc
809projects/test-suite
810projects/llvm-test
811projects/poolalloc
812projects/llvm-poolalloc
813projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000815projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000817projects/llvm-java
818projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000819projects/safecode
Reid Spencera773bd52006-08-04 18:18:08 +0000820projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825# The variables have the same names as the options, with
826# dashes changed to underlines.
827cache_file=/dev/null
828exec_prefix=NONE
829no_create=
830no_recursion=
831prefix=NONE
832program_prefix=NONE
833program_suffix=NONE
834program_transform_name=s,x,x,
835silent=
836site=
837srcdir=
838verbose=
839x_includes=NONE
840x_libraries=NONE
841
842# Installation directory options.
843# These are left unexpanded so users can "make install exec_prefix=/foo"
844# and all the variables that are supposed to be based on exec_prefix
845# by default will actually change.
846# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000847# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000848bindir='${exec_prefix}/bin'
849sbindir='${exec_prefix}/sbin'
850libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000851datarootdir='${prefix}/share'
852datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000853sysconfdir='${prefix}/etc'
854sharedstatedir='${prefix}/com'
855localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000856includedir='${prefix}/include'
857oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859infodir='${datarootdir}/info'
860htmldir='${docdir}'
861dvidir='${docdir}'
862pdfdir='${docdir}'
863psdir='${docdir}'
864libdir='${exec_prefix}/lib'
865localedir='${datarootdir}/locale'
866mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000867
868ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000869ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000870for ac_option
871do
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000874 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000875 ac_prev=
876 continue
877 fi
878
Reid Spencera773bd52006-08-04 18:18:08 +0000879 case $ac_option in
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *) ac_optarg=yes ;;
882 esac
John Criswell7a73b802003-06-30 21:59:07 +0000883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
Reid Spencera773bd52006-08-04 18:18:08 +0000886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
Reid Spencera773bd52006-08-04 18:18:08 +0000910 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000911 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000913 datadir=$ac_optarg ;;
914
Reid Spencera773bd52006-08-04 18:18:08 +0000915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
John Criswell7a73b802003-06-30 21:59:07 +0000922 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000923 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000924 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000930
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
935
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000940
941 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000942 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000943 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
Reid Spencera773bd52006-08-04 18:18:08 +0000975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
John Criswell7a73b802003-06-30 21:59:07 +0000981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
Reid Spencera773bd52006-08-04 18:18:08 +00001005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
John Criswell7a73b802003-06-30 21:59:07 +00001010 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001011 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
Reid Spencera773bd52006-08-04 18:18:08 +00001079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
John Criswell7a73b802003-06-30 21:59:07 +00001089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1098
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1126
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137
1138 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001139 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001140 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package| sed 's/-/_/g'`
1145 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001146
1147 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001149 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package | sed 's/-/_/g'`
1154 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1166
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001185 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001186 export $ac_envvar ;;
1187
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 ;;
1195
1196 esac
1197done
1198
1199if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201 { echo "$as_me: error: missing argument to $ac_option" >&2
1202 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001203fi
1204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001205# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001210do
Reid Spencera773bd52006-08-04 18:18:08 +00001211 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001212 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001215 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001218done
1219
1220# There might be people who depend on the old broken behavior: `$host'
1221# used to hold the argument of --host etc.
1222# FIXME: To remove some day.
1223build=$build_alias
1224host=$host_alias
1225target=$target_alias
1226
1227# FIXME: To remove some day.
1228if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236fi
1237
1238ac_tool_prefix=
1239test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241test "$silent" = yes && exec 6>/dev/null
1242
1243
Reid Spencera773bd52006-08-04 18:18:08 +00001244ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245ac_ls_di=`ls -di .` &&
1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001247 { echo "$as_me: error: Working directory cannot be determined" >&2
1248 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001249test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001250 { echo "$as_me: error: pwd does not report name of working directory" >&2
1251 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001252
1253
John Criswell7a73b802003-06-30 21:59:07 +00001254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001257 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001258 ac_confdir=`$as_dirname -- "$0" ||
1259$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$0" : 'X\(//\)[^/]' \| \
1261 X"$0" : 'X\(//\)$' \| \
1262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001281 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001282 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001283 srcdir=..
1284 fi
1285else
1286 ac_srcdir_defaulted=no
1287fi
Reid Spencera773bd52006-08-04 18:18:08 +00001288if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001292fi
Reid Spencera773bd52006-08-04 18:18:08 +00001293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001297 pwd)`
1298# When building in place, set srcdir=.
1299if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1301fi
1302# Remove unnecessary trailing slashes from srcdir.
1303# Double slashes in file names in object file debugging info
1304# mess up M-x gdb in Emacs.
1305case $srcdir in
1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307esac
1308for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313done
John Criswell7a73b802003-06-30 21:59:07 +00001314
1315#
1316# Report the --help message.
1317#
1318if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001322\`configure' configures llvm 2.8svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001323
1324Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327VAR=VALUE. See below for descriptions of some of the useful variables.
1328
1329Defaults for the options are specified in brackets.
1330
1331Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341
John Criswell7a73b802003-06-30 21:59:07 +00001342Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001344 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001346 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001347
1348By default, \`make install' will install all the files in
1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351for instance \`--prefix=\$HOME'.
1352
1353For better control, use the options below.
1354
1355Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001375_ACEOF
1376
1377 cat <<\_ACEOF
1378
1379System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1383_ACEOF
1384fi
1385
1386if test -n "$ac_init_help"; then
1387 case $ac_init_help in
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001388 short | recursive ) echo "Configuration of llvm 2.8svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001389 esac
1390 cat <<\_ACEOF
1391
1392Optional Features:
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1398 YES)
David Greenea696d242007-06-28 19:36:08 +00001399 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001400 Compile with expensive debug checks enabled (default
1401 is NO)
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001406 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001407 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001408 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001409 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001410 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001411 --enable-shared Build a shared library and link tools against it
1412 (default is NO)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001413 --enable-targets Build specific host targets: all or
1414 target1,target2,... Valid targets are: host, x86,
1415 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1416 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1417 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001418 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1419 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001420 --enable-bindings Build specific language bindings:
1421 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001422 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001423 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1424 Win32)
1425 --enable-llvmc-dynamic-plugins
1426 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001427 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001428
1429Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001432 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1433 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001434 --with-llvmgcc Specify location of llvm-gcc driver (default
1435 searches PATH)
1436 --with-llvmgxx Specify location of llvm-g++ driver (default
1437 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001438 --with-clang Specify location of clang compiler (default is
1439 --with-built-clang)
1440 --with-built-clang Use the compiled Clang as the LLVM compiler
1441 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001442 --with-optimize-option Select the compiler options to use for optimized
1443 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001444 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001445 --with-ocaml-libdir Specify install location for ocaml bindings (default
1446 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001447 --with-c-include-dirs Colon separated list of directories clang will
1448 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001449 --with-cxx-include-root Directory with the libstdc++ headers.
1450 --with-cxx-include-arch Architecture of the libstdc++ headers.
1451 --with-cxx-include-32bit-dir
1452 32 bit multilib dir.
1453 --with-cxx-include-64bit-dir
1454 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001455 --with-binutils-include Specify path to binutils/include/ containing
1456 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001457 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001458 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1459 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001460 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001461 --with-oprofile=<prefix>
1462 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001463
1464Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001465 CC C compiler command
1466 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001469 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001470 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001471 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001472 CXX C++ compiler command
1473 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001474
1475Use these variables to override the choices made by `configure' or to help
1476it to find libraries and programs with nonstandard names/locations.
1477
1478Report bugs to <llvmbugs@cs.uiuc.edu>.
1479_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001480ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001481fi
1482
1483if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001486 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001487 ac_builddir=.
1488
Reid Spencera773bd52006-08-04 18:18:08 +00001489case "$ac_dir" in
1490.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001492 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001493 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001494 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001495 case $ac_top_builddir_sub in
1496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498 esac ;;
1499esac
1500ac_abs_top_builddir=$ac_pwd
1501ac_abs_builddir=$ac_pwd$ac_dir_suffix
1502# for backward compatibility:
1503ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001504
1505case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001506 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001507 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001508 ac_top_srcdir=$ac_top_builddir_sub
1509 ac_abs_top_srcdir=$ac_pwd ;;
1510 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001511 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001512 ac_top_srcdir=$srcdir
1513 ac_abs_top_srcdir=$srcdir ;;
1514 *) # Relative name.
1515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1516 ac_top_srcdir=$ac_top_build_prefix$srcdir
1517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001518esac
Reid Spencera773bd52006-08-04 18:18:08 +00001519ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001520
Reid Spencera773bd52006-08-04 18:18:08 +00001521 cd "$ac_dir" || { ac_status=$?; continue; }
1522 # Check for guested configure.
1523 if test -f "$ac_srcdir/configure.gnu"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526 elif test -f "$ac_srcdir/configure"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001529 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001530 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001531 fi || ac_status=$?
1532 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001533 done
1534fi
1535
Reid Spencera773bd52006-08-04 18:18:08 +00001536test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001537if $ac_init_version; then
1538 cat <<\_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001539llvm configure 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001540generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001542Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15432002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001544This configure script is free software; the Free Software Foundation
1545gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001546
John Criswell5a129712010-03-19 21:04:16 +00001547Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001548_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001549 exit
John Criswell7a73b802003-06-30 21:59:07 +00001550fi
Reid Spencera773bd52006-08-04 18:18:08 +00001551cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001552This file contains any messages produced by compilers while
1553running configure, to aid debugging if configure makes a mistake.
1554
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001555It was created by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001556generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001557
1558 $ $0 $@
1559
1560_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001561exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001562{
1563cat <<_ASUNAME
1564## --------- ##
1565## Platform. ##
1566## --------- ##
1567
1568hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1569uname -m = `(uname -m) 2>/dev/null || echo unknown`
1570uname -r = `(uname -r) 2>/dev/null || echo unknown`
1571uname -s = `(uname -s) 2>/dev/null || echo unknown`
1572uname -v = `(uname -v) 2>/dev/null || echo unknown`
1573
1574/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1575/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1576
1577/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1578/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1579/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001580/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001581/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1582/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1583/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584
1585_ASUNAME
1586
1587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588for as_dir in $PATH
1589do
1590 IFS=$as_save_IFS
1591 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001592 echo "PATH: $as_dir"
1593done
Reid Spencera773bd52006-08-04 18:18:08 +00001594IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001595
1596} >&5
1597
1598cat >&5 <<_ACEOF
1599
1600
1601## ----------- ##
1602## Core tests. ##
1603## ----------- ##
1604
1605_ACEOF
1606
1607
1608# Keep a trace of the command line.
1609# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001610# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001611# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001612# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001613ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001614ac_configure_args0=
1615ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001616ac_must_keep_next=false
1617for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001618do
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 for ac_arg
1620 do
1621 case $ac_arg in
1622 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1623 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1624 | -silent | --silent | --silen | --sile | --sil)
1625 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001626 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 esac
1629 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001630 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001632 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001633 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001634 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001636 case $ac_arg in
1637 *=* | --config-cache | -C | -disable-* | --disable-* \
1638 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1639 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1640 | -with-* | --with-* | -without-* | --without-* | --x)
1641 case "$ac_configure_args0 " in
1642 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1643 esac
1644 ;;
1645 -* ) ac_must_keep_next=true ;;
1646 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001648 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 ;;
1650 esac
1651 done
John Criswell7a73b802003-06-30 21:59:07 +00001652done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001653$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1654$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 +00001655
1656# When interrupted or exit'd, cleanup temporary files, and complete
1657# config.log. We remove comments because anyway the quotes in there
1658# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001659# WARNING: Use '\'' to represent an apostrophe within the trap.
1660# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001661trap 'exit_status=$?
1662 # Save into config.log some information that might help in debugging.
1663 {
1664 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001665
John Criswell7a73b802003-06-30 21:59:07 +00001666 cat <<\_ASBOX
1667## ---------------- ##
1668## Cache variables. ##
1669## ---------------- ##
1670_ASBOX
1671 echo
1672 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001673(
1674 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1675 eval ac_val=\$$ac_var
1676 case $ac_val in #(
1677 *${as_nl}*)
1678 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001679 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1680echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001681 esac
1682 case $ac_var in #(
1683 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001684 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001685 esac ;;
1686 esac
1687 done
John Criswell7a73b802003-06-30 21:59:07 +00001688 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001689 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1690 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001691 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001692 "s/'\''/'\''\\\\'\'''\''/g;
1693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1694 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001695 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001696 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001697 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001698 esac |
1699 sort
1700)
John Criswell7a73b802003-06-30 21:59:07 +00001701 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001702
1703 cat <<\_ASBOX
1704## ----------------- ##
1705## Output variables. ##
1706## ----------------- ##
1707_ASBOX
1708 echo
1709 for ac_var in $ac_subst_vars
1710 do
Reid Spencera773bd52006-08-04 18:18:08 +00001711 eval ac_val=\$$ac_var
1712 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001713 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001714 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001715 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001716 done | sort
1717 echo
1718
1719 if test -n "$ac_subst_files"; then
1720 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001721## ------------------- ##
1722## File substitutions. ##
1723## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001724_ASBOX
1725 echo
1726 for ac_var in $ac_subst_files
1727 do
Reid Spencera773bd52006-08-04 18:18:08 +00001728 eval ac_val=\$$ac_var
1729 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001731 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001732 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 done | sort
1734 echo
1735 fi
1736
John Criswell7a73b802003-06-30 21:59:07 +00001737 if test -s confdefs.h; then
1738 cat <<\_ASBOX
1739## ----------- ##
1740## confdefs.h. ##
1741## ----------- ##
1742_ASBOX
1743 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001744 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001745 echo
1746 fi
1747 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001748 echo "$as_me: caught signal $ac_signal"
1749 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001750 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001751 rm -f core *.core core.conftest.* &&
1752 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001753 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001754' 0
John Criswell7a73b802003-06-30 21:59:07 +00001755for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001756 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001757done
1758ac_signal=0
1759
1760# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001761rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001762
1763# Predefined preprocessor variables.
1764
1765cat >>confdefs.h <<_ACEOF
1766#define PACKAGE_NAME "$PACKAGE_NAME"
1767_ACEOF
1768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001769
John Criswell7a73b802003-06-30 21:59:07 +00001770cat >>confdefs.h <<_ACEOF
1771#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772_ACEOF
1773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001774
John Criswell7a73b802003-06-30 21:59:07 +00001775cat >>confdefs.h <<_ACEOF
1776#define PACKAGE_VERSION "$PACKAGE_VERSION"
1777_ACEOF
1778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001779
John Criswell7a73b802003-06-30 21:59:07 +00001780cat >>confdefs.h <<_ACEOF
1781#define PACKAGE_STRING "$PACKAGE_STRING"
1782_ACEOF
1783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001784
John Criswell7a73b802003-06-30 21:59:07 +00001785cat >>confdefs.h <<_ACEOF
1786#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787_ACEOF
1788
1789
1790# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001792if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001794elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001796else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797 set x "$ac_default_prefix/share/config.site" \
1798 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001799fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800shift
1801for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001802do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803 if test -r "$ac_site_file"; then
1804 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1805echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001806 sed 's/^/| /' "$ac_site_file" >&5
1807 . "$ac_site_file"
1808 fi
1809done
1810
1811if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001812 # Some versions of bash will fail to source /dev/null (special
1813 # files actually), so we avoid doing that.
1814 if test -f "$cache_file"; then
1815 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1816echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001817 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001818 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1819 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001820 esac
1821 fi
1822else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001823 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1824echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001825 >$cache_file
1826fi
1827
1828# Check that the precious variables saved in the cache have kept the same
1829# value.
1830ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001831for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001832 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1833 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001834 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1835 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001836 case $ac_old_set,$ac_new_set in
1837 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001838 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1839echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001840 ac_cache_corrupted=: ;;
1841 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001842 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1843echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001844 ac_cache_corrupted=: ;;
1845 ,);;
1846 *)
1847 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001848 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1849echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1850 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1851echo "$as_me: former value: $ac_old_val" >&2;}
1852 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1853echo "$as_me: current value: $ac_new_val" >&2;}
1854 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001855 fi;;
1856 esac
1857 # Pass precious variables to config.status.
1858 if test "$ac_new_set" = set; then
1859 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001860 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001861 *) ac_arg=$ac_var=$ac_new_val ;;
1862 esac
1863 case " $ac_configure_args " in
1864 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001865 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001866 esac
1867 fi
1868done
1869if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001870 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1871echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1872 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1873echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1874 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001875fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
Reid Spencera773bd52006-08-04 18:18:08 +00001900
John Criswell7a73b802003-06-30 21:59:07 +00001901ac_ext=c
1902ac_cpp='$CPP $CPPFLAGS'
1903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1905ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906
1907
1908
John Criswell5a129712010-03-19 21:04:16 +00001909LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001910
1911
1912
1913
1914
1915
1916
John Criswell7a73b802003-06-30 21:59:07 +00001917ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001918for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001919 if test -f "$ac_dir/install-sh"; then
1920 ac_aux_dir=$ac_dir
1921 ac_install_sh="$ac_aux_dir/install-sh -c"
1922 break
1923 elif test -f "$ac_dir/install.sh"; then
1924 ac_aux_dir=$ac_dir
1925 ac_install_sh="$ac_aux_dir/install.sh -c"
1926 break
1927 elif test -f "$ac_dir/shtool"; then
1928 ac_aux_dir=$ac_dir
1929 ac_install_sh="$ac_aux_dir/shtool install -c"
1930 break
1931 fi
John Criswell7a73b802003-06-30 21:59:07 +00001932done
1933if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001934 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1935echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1936 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001937fi
Reid Spencera773bd52006-08-04 18:18:08 +00001938
1939# These three variables are undocumented and unsupported,
1940# and are intended to be withdrawn in a future Autoconf release.
1941# They can cause serious problems if a builder's source tree is in a directory
1942# whose full name contains unusual characters.
1943ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1944ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1945ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946
John Criswell7a73b802003-06-30 21:59:07 +00001947
John Criswell392aaa32003-07-22 19:18:09 +00001948
Reid Spencer2706f8c2004-09-19 23:53:36 +00001949if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001950 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001951 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1952echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1953 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001954 fi
John Criswell93e1c722003-09-15 17:04:06 +00001955fi
1956
John Criswell0157f502010-03-19 21:31:39 +00001957
1958
1959if test -d ${srcdir}/projects/llvm-gcc ; then
1960 subdirs="$subdirs projects/llvm-gcc"
1961
1962fi
1963
1964if test -d ${srcdir}/projects/test-suite ; then
1965 subdirs="$subdirs projects/test-suite"
1966
1967fi
1968
1969if test -d ${srcdir}/projects/llvm-test ; then
1970 subdirs="$subdirs projects/llvm-test"
1971
1972fi
1973
1974if test -d ${srcdir}/projects/poolalloc ; then
1975 subdirs="$subdirs projects/poolalloc"
1976
1977fi
1978
1979if test -d ${srcdir}/projects/llvm-poolalloc ; then
1980 subdirs="$subdirs projects/llvm-poolalloc"
1981
1982fi
1983
John Criswell33a911a2003-11-25 20:36:46 +00001984for i in `ls ${srcdir}/projects`
1985do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001986 if test -d ${srcdir}/projects/${i} ; then
1987 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00001988 CVS) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001989 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001990 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001991 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001992 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001993 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001994 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001995 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001996;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001997 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001998 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001999 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002000 ;;
John Criswell7def2932010-02-25 22:57:19 +00002001 safecode) subdirs="$subdirs projects/safecode"
2002 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002003 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002004 ;;
John Criswell52c02862010-03-25 13:59:09 +00002005 llvm-gcc) ;;
2006 test-suite) ;;
2007 llvm-test) ;;
2008 poolalloc) ;;
2009 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002010 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002011 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2012echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002013 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002014 esac
John Criswell33a911a2003-11-25 20:36:46 +00002015 fi
2016done
John Criswell559a6c12003-09-30 16:31:48 +00002017
John Criswell7a73b802003-06-30 21:59:07 +00002018
2019# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002020$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002021 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2022echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2023 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002025{ echo "$as_me:$LINENO: checking build system type" >&5
2026echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2027if test "${ac_cv_build+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002029else
Reid Spencera773bd52006-08-04 18:18:08 +00002030 ac_build_alias=$build_alias
2031test "x$ac_build_alias" = x &&
2032 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2033test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002034 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2035echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2036 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002037ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002038 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2039echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2040 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002041
2042fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2044echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002045case $ac_cv_build in
2046*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002047*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2048echo "$as_me: error: invalid value of canonical build" >&2;}
2049 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002050esac
John Criswell7a73b802003-06-30 21:59:07 +00002051build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002052ac_save_IFS=$IFS; IFS='-'
2053set x $ac_cv_build
2054shift
2055build_cpu=$1
2056build_vendor=$2
2057shift; shift
2058# Remember, the first character of IFS is used to create $*,
2059# except with old shells:
2060build_os=$*
2061IFS=$ac_save_IFS
2062case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002063
2064
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002065{ echo "$as_me:$LINENO: checking host system type" >&5
2066echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2067if test "${ac_cv_host+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002069else
Reid Spencera773bd52006-08-04 18:18:08 +00002070 if test "x$host_alias" = x; then
2071 ac_cv_host=$ac_cv_build
2072else
2073 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002074 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2075echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2076 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002077fi
John Criswell7a73b802003-06-30 21:59:07 +00002078
2079fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002080{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2081echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002082case $ac_cv_host in
2083*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002084*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2085echo "$as_me: error: invalid value of canonical host" >&2;}
2086 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002087esac
John Criswell7a73b802003-06-30 21:59:07 +00002088host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002089ac_save_IFS=$IFS; IFS='-'
2090set x $ac_cv_host
2091shift
2092host_cpu=$1
2093host_vendor=$2
2094shift; shift
2095# Remember, the first character of IFS is used to create $*,
2096# except with old shells:
2097host_os=$*
2098IFS=$ac_save_IFS
2099case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002100
2101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002102{ echo "$as_me:$LINENO: checking target system type" >&5
2103echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2104if test "${ac_cv_target+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002106else
Reid Spencera773bd52006-08-04 18:18:08 +00002107 if test "x$target_alias" = x; then
2108 ac_cv_target=$ac_cv_host
2109else
2110 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002111 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2112echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2113 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002114fi
John Criswell7a73b802003-06-30 21:59:07 +00002115
2116fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002117{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2118echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002119case $ac_cv_target in
2120*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002121*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2122echo "$as_me: error: invalid value of canonical target" >&2;}
2123 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002124esac
John Criswell7a73b802003-06-30 21:59:07 +00002125target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002126ac_save_IFS=$IFS; IFS='-'
2127set x $ac_cv_target
2128shift
2129target_cpu=$1
2130target_vendor=$2
2131shift; shift
2132# Remember, the first character of IFS is used to create $*,
2133# except with old shells:
2134target_os=$*
2135IFS=$ac_save_IFS
2136case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002137
2138
2139# The aliases save the names the user supplied, while $host etc.
2140# will get canonicalized.
2141test -n "$target_alias" &&
2142 test "$program_prefix$program_suffix$program_transform_name" = \
2143 NONENONEs,x,x, &&
2144 program_prefix=${target_alias}-
2145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002146{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2147echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2148if test "${llvm_cv_os_type+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002150else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002151 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002152 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002153 llvm_cv_link_all_option="-Wl,--whole-archive"
2154 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002155 llvm_cv_os_type="AIX"
2156 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002157 *-*-irix*)
2158 llvm_cv_link_all_option="-Wl,--whole-archive"
2159 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2160 llvm_cv_os_type="IRIX"
2161 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002162 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002163 llvm_cv_link_all_option="-Wl,--whole-archive"
2164 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002165 llvm_cv_os_type="Cygwin"
2166 llvm_cv_platform_type="Unix" ;;
2167 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002168 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002169 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002170 llvm_cv_os_type="Darwin"
2171 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002172 *-*-minix*)
2173 llvm_cv_link_all_option="-Wl,-all_load"
2174 llvm_cv_no_link_all_option="-Wl,-noall_load"
2175 llvm_cv_os_type="Minix"
2176 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002177 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002178 llvm_cv_link_all_option="-Wl,--whole-archive"
2179 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002180 llvm_cv_os_type="FreeBSD"
2181 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002182 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002183 llvm_cv_link_all_option="-Wl,--whole-archive"
2184 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002185 llvm_cv_os_type="OpenBSD"
2186 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002187 *-*-netbsd*)
2188 llvm_cv_link_all_option="-Wl,--whole-archive"
2189 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2190 llvm_cv_os_type="NetBSD"
2191 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002192 *-*-dragonfly*)
2193 llvm_cv_link_all_option="-Wl,--whole-archive"
2194 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2195 llvm_cv_os_type="DragonFly"
2196 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002197 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002198 llvm_cv_link_all_option="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002200 llvm_cv_os_type="HP-UX"
2201 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002202 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002203 llvm_cv_link_all_option="-Wl,--whole-archive"
2204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002205 llvm_cv_os_type="Interix"
2206 llvm_cv_platform_type="Unix" ;;
2207 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002208 llvm_cv_link_all_option="-Wl,--whole-archive"
2209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002210 llvm_cv_os_type="Linux"
2211 llvm_cv_platform_type="Unix" ;;
2212 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002213 llvm_cv_link_all_option="-Wl,-z,allextract"
2214 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002215 llvm_cv_os_type="SunOS"
2216 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002217 *-*-auroraux*)
2218 llvm_cv_link_all_option="-Wl,-z,allextract"
2219 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2220 llvm_cv_os_type="AuroraUX"
2221 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002222 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002223 llvm_cv_link_all_option="-Wl,--whole-archive"
2224 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002225 llvm_cv_os_type="Win32"
2226 llvm_cv_platform_type="Win32" ;;
2227 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002228 llvm_cv_link_all_option="-Wl,--whole-archive"
2229 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002230 llvm_cv_os_type="MingW"
2231 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002232 *-*-haiku*)
2233 llvm_cv_link_all_option="-Wl,--whole-archive"
2234 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2235 llvm_cv_os_type="Haiku"
2236 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002237 *-unknown-eabi*)
2238 llvm_cv_link_all_option="-Wl,--whole-archive"
2239 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2240 llvm_cv_os_type="Freestanding"
2241 llvm_cv_platform_type="Unix" ;;
2242 *-unknown-elf*)
2243 llvm_cv_link_all_option="-Wl,--whole-archive"
2244 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2245 llvm_cv_os_type="Freestanding"
2246 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002247 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002248 llvm_cv_link_all_option=""
2249 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002250 llvm_cv_os_type="Unknown"
2251 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002252esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002254{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2255echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002257{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2258echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2259if test "${llvm_cv_target_os_type+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002261else
2262 case $target in
2263 *-*-aix*)
2264 llvm_cv_target_os_type="AIX" ;;
2265 *-*-irix*)
2266 llvm_cv_target_os_type="IRIX" ;;
2267 *-*-cygwin*)
2268 llvm_cv_target_os_type="Cygwin" ;;
2269 *-*-darwin*)
2270 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002271 *-*-minix*)
2272 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002273 *-*-freebsd*)
2274 llvm_cv_target_os_type="FreeBSD" ;;
2275 *-*-openbsd*)
2276 llvm_cv_target_os_type="OpenBSD" ;;
2277 *-*-netbsd*)
2278 llvm_cv_target_os_type="NetBSD" ;;
2279 *-*-dragonfly*)
2280 llvm_cv_target_os_type="DragonFly" ;;
2281 *-*-hpux*)
2282 llvm_cv_target_os_type="HP-UX" ;;
2283 *-*-interix*)
2284 llvm_cv_target_os_type="Interix" ;;
2285 *-*-linux*)
2286 llvm_cv_target_os_type="Linux" ;;
2287 *-*-solaris*)
2288 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002289 *-*-auroraux*)
2290 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002291 *-*-win32*)
2292 llvm_cv_target_os_type="Win32" ;;
2293 *-*-mingw*)
2294 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002295 *-*-haiku*)
2296 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002297 *-unknown-eabi*)
2298 llvm_cv_target_os_type="Freestanding" ;;
2299 *)
2300 llvm_cv_target_os_type="Unknown" ;;
2301esac
2302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002303{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2304echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002305
Reid Spencer7b3e8512004-12-24 06:29:05 +00002306if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002307 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2308echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2309 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002310fi
2311
Reid Spencer7b3e8512004-12-24 06:29:05 +00002312OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002313
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002314HOST_OS=$llvm_cv_os_type
2315
2316TARGET_OS=$llvm_cv_target_os_type
2317
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002318
Reid Spencera773bd52006-08-04 18:18:08 +00002319LINKALL=$llvm_cv_link_all_option
2320
2321NOLINKALL=$llvm_cv_no_link_all_option
2322
2323
Reid Spencer7b3e8512004-12-24 06:29:05 +00002324case $llvm_cv_platform_type in
2325 Unix)
2326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002327cat >>confdefs.h <<\_ACEOF
2328#define LLVM_ON_UNIX 1
2329_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002330
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002331 LLVM_ON_UNIX=1
2332
2333 LLVM_ON_WIN32=0
2334
Reid Spencer7b3e8512004-12-24 06:29:05 +00002335 ;;
2336 Win32)
2337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002338cat >>confdefs.h <<\_ACEOF
2339#define LLVM_ON_WIN32 1
2340_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002341
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002342 LLVM_ON_UNIX=0
2343
2344 LLVM_ON_WIN32=1
2345
Reid Spencer7b3e8512004-12-24 06:29:05 +00002346 ;;
2347esac
2348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002349{ echo "$as_me:$LINENO: checking target architecture" >&5
2350echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2351if test "${llvm_cv_target_arch+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002353else
2354 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002355 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002356 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002357 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2358 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002359 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002360 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002361 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002362 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002363 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002364 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002365 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002366 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002367 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002368 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002369esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002370fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002371{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2372echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002373
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002374if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002375 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2376echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002377fi
John Criswell76595452003-07-01 22:07:39 +00002378
Nick Lewycky83fc4472009-09-29 05:48:51 +00002379# Determine the LLVM native architecture for the target
2380case "$llvm_cv_target_arch" in
2381 x86) LLVM_NATIVE_ARCH="X86" ;;
2382 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2383 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2384esac
2385
2386ARCH=$llvm_cv_target_arch
2387
2388
2389ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002390ac_cpp='$CPP $CPPFLAGS'
2391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002394if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002395 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2396set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2399if test "${ac_cv_prog_CC+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002401else
2402 if test -n "$CC"; then
2403 ac_cv_prog_CC="$CC" # Let the user override the test.
2404else
2405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406for as_dir in $PATH
2407do
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 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 +00002412 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002414 break 2
2415 fi
2416done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002417done
Reid Spencera773bd52006-08-04 18:18:08 +00002418IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002419
2420fi
2421fi
2422CC=$ac_cv_prog_CC
2423if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002424 { echo "$as_me:$LINENO: result: $CC" >&5
2425echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002427 { echo "$as_me:$LINENO: result: no" >&5
2428echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429fi
2430
Reid Spencera773bd52006-08-04 18:18:08 +00002431
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002432fi
2433if test -z "$ac_cv_prog_CC"; then
2434 ac_ct_CC=$CC
2435 # Extract the first word of "gcc", so it can be a program name with args.
2436set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002441else
2442 if test -n "$ac_ct_CC"; then
2443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2444else
2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 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 +00002452 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002454 break 2
2455 fi
2456done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002457done
Reid Spencera773bd52006-08-04 18:18:08 +00002458IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459
2460fi
2461fi
2462ac_ct_CC=$ac_cv_prog_ac_ct_CC
2463if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002464 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2465echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002467 { echo "$as_me:$LINENO: result: no" >&5
2468echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469fi
2470
Reid Spencera773bd52006-08-04 18:18:08 +00002471 if test "x$ac_ct_CC" = x; then
2472 CC=""
2473 else
2474 case $cross_compiling:$ac_tool_warned in
2475yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002476{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2477whose name does not start with the host triplet. If you think this
2478configuration is useful to you, please write to autoconf@gnu.org." >&5
2479echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2480whose name does not start with the host triplet. If you think this
2481configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002482ac_tool_warned=yes ;;
2483esac
2484 CC=$ac_ct_CC
2485 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002486else
2487 CC="$ac_cv_prog_CC"
2488fi
2489
2490if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002491 if test -n "$ac_tool_prefix"; then
2492 # 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 +00002493set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002494{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2496if test "${ac_cv_prog_CC+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002498else
2499 if test -n "$CC"; then
2500 ac_cv_prog_CC="$CC" # Let the user override the test.
2501else
2502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503for as_dir in $PATH
2504do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 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 +00002509 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002511 break 2
2512 fi
2513done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002514done
Reid Spencera773bd52006-08-04 18:18:08 +00002515IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002516
2517fi
2518fi
2519CC=$ac_cv_prog_CC
2520if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002521 { echo "$as_me:$LINENO: result: $CC" >&5
2522echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002523else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002524 { echo "$as_me:$LINENO: result: no" >&5
2525echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526fi
2527
Reid Spencera773bd52006-08-04 18:18:08 +00002528
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002529 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002530fi
2531if test -z "$CC"; then
2532 # Extract the first word of "cc", so it can be a program name with args.
2533set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002534{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536if test "${ac_cv_prog_CC+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002538else
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2541else
2542 ac_prog_rejected=no
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2551 ac_prog_rejected=yes
2552 continue
2553 fi
2554 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002556 break 2
2557 fi
2558done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002559done
Reid Spencera773bd52006-08-04 18:18:08 +00002560IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002561
2562if test $ac_prog_rejected = yes; then
2563 # We found a bogon in the path, so make sure we never use it.
2564 set dummy $ac_cv_prog_CC
2565 shift
2566 if test $# != 0; then
2567 # We chose a different compiler from the bogus one.
2568 # However, it has the same basename, so the bogon will be chosen
2569 # first if we set CC to just the basename; use the full file name.
2570 shift
2571 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2572 fi
2573fi
2574fi
2575fi
2576CC=$ac_cv_prog_CC
2577if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002578 { echo "$as_me:$LINENO: result: $CC" >&5
2579echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002580else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002581 { echo "$as_me:$LINENO: result: no" >&5
2582echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583fi
2584
Reid Spencera773bd52006-08-04 18:18:08 +00002585
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002586fi
2587if test -z "$CC"; then
2588 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002589 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002590 do
2591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2592set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002593{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2595if test "${ac_cv_prog_CC+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002597else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002598 if test -n "$CC"; then
2599 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002600else
2601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602for as_dir in $PATH
2603do
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 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 +00002608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002610 break 2
2611 fi
2612done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002613done
Reid Spencera773bd52006-08-04 18:18:08 +00002614IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002615
2616fi
2617fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002618CC=$ac_cv_prog_CC
2619if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002620 { echo "$as_me:$LINENO: result: $CC" >&5
2621echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002622else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002623 { echo "$as_me:$LINENO: result: no" >&5
2624echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002625fi
2626
Reid Spencera773bd52006-08-04 18:18:08 +00002627
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002629 done
2630fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631if test -z "$CC"; then
2632 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002633 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002634do
2635 # Extract the first word of "$ac_prog", so it can be a program name with args.
2636set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002637{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002641else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002642 if test -n "$ac_ct_CC"; then
2643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002644else
2645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646for as_dir in $PATH
2647do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 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 +00002652 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002654 break 2
2655 fi
2656done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002657done
Reid Spencera773bd52006-08-04 18:18:08 +00002658IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002659
2660fi
2661fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002662ac_ct_CC=$ac_cv_prog_ac_ct_CC
2663if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002664 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2665echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002666else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002667 { echo "$as_me:$LINENO: result: no" >&5
2668echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002669fi
2670
Reid Spencera773bd52006-08-04 18:18:08 +00002671
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002672 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002673done
John Criswell7a73b802003-06-30 21:59:07 +00002674
Reid Spencera773bd52006-08-04 18:18:08 +00002675 if test "x$ac_ct_CC" = x; then
2676 CC=""
2677 else
2678 case $cross_compiling:$ac_tool_warned in
2679yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002680{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2681whose name does not start with the host triplet. If you think this
2682configuration is useful to you, please write to autoconf@gnu.org." >&5
2683echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2684whose name does not start with the host triplet. If you think this
2685configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002686ac_tool_warned=yes ;;
2687esac
2688 CC=$ac_ct_CC
2689 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002690fi
2691
John Criswell7a73b802003-06-30 21:59:07 +00002692fi
2693
2694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002695test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2696See \`config.log' for more details." >&5
2697echo "$as_me: error: no acceptable C compiler found in \$PATH
2698See \`config.log' for more details." >&2;}
2699 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002700
John Criswell7a73b802003-06-30 21:59:07 +00002701# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002702echo "$as_me:$LINENO: checking for C compiler version" >&5
2703ac_compiler=`set X $ac_compile; echo $2`
2704{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002705case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002711 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }
2714{ (ac_try="$ac_compiler -v >&5"
2715case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718esac
2719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compiler -v >&5") 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }
2724{ (ac_try="$ac_compiler -V >&5"
2725case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728esac
2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_compiler -V >&5") 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002734
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002735cat >conftest.$ac_ext <<_ACEOF
2736/* confdefs.h. */
2737_ACEOF
2738cat confdefs.h >>conftest.$ac_ext
2739cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002740/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002741
John Criswell7a73b802003-06-30 21:59:07 +00002742int
2743main ()
2744{
2745
2746 ;
2747 return 0;
2748}
2749_ACEOF
2750ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002751ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002752# Try to create an executable without -o first, disregard a.out.
2753# It will help us diagnose broken compilers, and finding out an intuition
2754# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002755{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2756echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2757ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2758#
2759# List of possible output files, starting from the most likely.
2760# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2761# only as a last resort. b.out is created by i960 compilers.
2762ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2763#
2764# The IRIX 6 linker writes into existing files which may not be
2765# executable, retaining their permissions. Remove them first so a
2766# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002767ac_rmfiles=
2768for ac_file in $ac_files
2769do
2770 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002772 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2773 esac
2774done
2775rm -f $ac_rmfiles
2776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002777if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002778case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002783 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002784 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002787 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2788# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2789# in a Makefile. We should not override ac_cv_exeext if it was cached,
2790# so that the user can short-circuit this test for compilers unknown to
2791# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002792for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002793do
2794 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002795 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002797 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002798 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002799 # We found the default executable, but exeext='' is most
2800 # certainly right.
2801 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002802 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002803 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002804 then :; else
2805 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2806 fi
2807 # We set ac_cv_exeext here because the later test for it is not
2808 # safe: cross compilers may not add the suffix if given an `-o'
2809 # argument, so we may need to know it at that point already.
2810 # Even if this section looks crufty: it has the advantage of
2811 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002812 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002813 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002814 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002815 esac
2816done
Reid Spencera773bd52006-08-04 18:18:08 +00002817test "$ac_cv_exeext" = no && ac_cv_exeext=
2818
John Criswell7a73b802003-06-30 21:59:07 +00002819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002820 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002821sed 's/^/| /' conftest.$ac_ext >&5
2822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002823{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2824See \`config.log' for more details." >&5
2825echo "$as_me: error: C compiler cannot create executables
2826See \`config.log' for more details." >&2;}
2827 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002828fi
John Criswell7a73b802003-06-30 21:59:07 +00002829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002830ac_exeext=$ac_cv_exeext
2831{ echo "$as_me:$LINENO: result: $ac_file" >&5
2832echo "${ECHO_T}$ac_file" >&6; }
2833
2834# Check that the compiler produces executables we can run. If not, either
2835# the compiler is broken, or we cross compile.
2836{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2837echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2838# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2839# If not cross compiling, check that we can run a simple program.
2840if test "$cross_compiling" != yes; then
2841 if { ac_try='./$ac_file'
2842 { (case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845esac
2846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_try") 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 cross_compiling=no
2852 else
2853 if test "$cross_compiling" = maybe; then
2854 cross_compiling=yes
2855 else
2856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2857If you meant to cross compile, use \`--host'.
2858See \`config.log' for more details." >&5
2859echo "$as_me: error: cannot run C compiled programs.
2860If you meant to cross compile, use \`--host'.
2861See \`config.log' for more details." >&2;}
2862 { (exit 1); exit 1; }; }
2863 fi
2864 fi
2865fi
2866{ echo "$as_me:$LINENO: result: yes" >&5
2867echo "${ECHO_T}yes" >&6; }
2868
2869rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002870ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002871# Check that the compiler produces executables we can run. If not, either
2872# the compiler is broken, or we cross compile.
2873{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2874echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2875{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2876echo "${ECHO_T}$cross_compiling" >&6; }
2877
2878{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2879echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2880if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002881case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2884esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002886 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002887 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2892# work properly (i.e., refer to `conftest.exe'), while it won't with
2893# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002894for ac_file in conftest.exe conftest conftest.*; do
2895 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002896 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002899 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002900 * ) break;;
2901 esac
2902done
2903else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002904 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2905See \`config.log' for more details." >&5
2906echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2907See \`config.log' for more details." >&2;}
2908 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002909fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002910
2911rm -f conftest$ac_cv_exeext
2912{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2913echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002914
2915rm -f conftest.$ac_ext
2916EXEEXT=$ac_cv_exeext
2917ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002918{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2919echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2920if test "${ac_cv_objext+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002923 cat >conftest.$ac_ext <<_ACEOF
2924/* confdefs.h. */
2925_ACEOF
2926cat confdefs.h >>conftest.$ac_ext
2927cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002929
John Criswell7a73b802003-06-30 21:59:07 +00002930int
2931main ()
2932{
2933
2934 ;
2935 return 0;
2936}
2937_ACEOF
2938rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002939if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002940case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002945 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002946 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002949 for ac_file in conftest.o conftest.obj conftest.*; do
2950 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002951 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002953 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2954 break;;
2955 esac
2956done
2957else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002958 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002959sed 's/^/| /' conftest.$ac_ext >&5
2960
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002961{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2962See \`config.log' for more details." >&5
2963echo "$as_me: error: cannot compute suffix of object files: cannot compile
2964See \`config.log' for more details." >&2;}
2965 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002967
John Criswell7a73b802003-06-30 21:59:07 +00002968rm -f conftest.$ac_cv_objext conftest.$ac_ext
2969fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002970{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2971echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002972OBJEXT=$ac_cv_objext
2973ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002974{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2975echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2976if test "${ac_cv_c_compiler_gnu+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002978else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002979 cat >conftest.$ac_ext <<_ACEOF
2980/* confdefs.h. */
2981_ACEOF
2982cat confdefs.h >>conftest.$ac_ext
2983cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002984/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002985
John Criswell7a73b802003-06-30 21:59:07 +00002986int
2987main ()
2988{
2989#ifndef __GNUC__
2990 choke me
2991#endif
2992
2993 ;
2994 return 0;
2995}
2996_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002997rm -f conftest.$ac_objext
2998if { (ac_try="$ac_compile"
2999case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002esac
3003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_compile") 2>conftest.er1
3005 ac_status=$?
3006 grep -v '^ *+' conftest.er1 >conftest.err
3007 rm -f conftest.er1
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } &&
3011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3012 { (case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015esac
3016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_try") 2>&5
3018 ac_status=$?
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; } &&
3021 { ac_try='test -s conftest.$ac_objext'
3022 { (case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025esac
3026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_try") 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003031 ac_compiler_gnu=yes
3032else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003033 echo "$as_me: failed program was:" >&5
3034sed 's/^/| /' conftest.$ac_ext >&5
3035
3036 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003037fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003038
Reid Spencera773bd52006-08-04 18:18:08 +00003039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003040ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003041
3042fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003043{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3044echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3045GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003046ac_test_CFLAGS=${CFLAGS+set}
3047ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003048{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3049echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3050if test "${ac_cv_prog_cc_g+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003052else
Reid Spencera773bd52006-08-04 18:18:08 +00003053 ac_save_c_werror_flag=$ac_c_werror_flag
3054 ac_c_werror_flag=yes
3055 ac_cv_prog_cc_g=no
3056 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003057 cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h. */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003062/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003063
John Criswell7a73b802003-06-30 21:59:07 +00003064int
3065main ()
3066{
3067
3068 ;
3069 return 0;
3070}
3071_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003072rm -f conftest.$ac_objext
3073if { (ac_try="$ac_compile"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
3078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3080 ac_status=$?
3081 grep -v '^ *+' conftest.er1 >conftest.err
3082 rm -f conftest.er1
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } &&
3086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3087 { (case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_try") 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100esac
3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003106 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003107else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003108 echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 CFLAGS=""
3112 cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003117/* end confdefs.h. */
3118
3119int
3120main ()
3121{
3122
3123 ;
3124 return 0;
3125}
3126_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003127rm -f conftest.$ac_objext
3128if { (ac_try="$ac_compile"
3129case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145esac
3146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; } &&
3151 { ac_try='test -s conftest.$ac_objext'
3152 { (case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_try") 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 :
Torok Edwin871384f2010-01-26 08:50:50 +00003162else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003163 echo "$as_me: failed program was:" >&5
3164sed 's/^/| /' conftest.$ac_ext >&5
3165
3166 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003167 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003168 cat >conftest.$ac_ext <<_ACEOF
3169/* confdefs.h. */
3170_ACEOF
3171cat confdefs.h >>conftest.$ac_ext
3172cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003173/* end confdefs.h. */
3174
3175int
3176main ()
3177{
3178
3179 ;
3180 return 0;
3181}
3182_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003183rm -f conftest.$ac_objext
3184if { (ac_try="$ac_compile"
3185case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188esac
3189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } &&
3197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3198 { (case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201esac
3202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_try") 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; } &&
3207 { ac_try='test -s conftest.$ac_objext'
3208 { (case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211esac
3212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_try") 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003217 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003218else
3219 echo "$as_me: failed program was:" >&5
3220sed 's/^/| /' conftest.$ac_ext >&5
3221
3222
John Criswell7a73b802003-06-30 21:59:07 +00003223fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003224
Reid Spencera773bd52006-08-04 18:18:08 +00003225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003227
Reid Spencera773bd52006-08-04 18:18:08 +00003228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003230
Reid Spencera773bd52006-08-04 18:18:08 +00003231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 ac_c_werror_flag=$ac_save_c_werror_flag
3233fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003234{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3235echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003236if test "$ac_test_CFLAGS" = set; then
3237 CFLAGS=$ac_save_CFLAGS
3238elif test $ac_cv_prog_cc_g = yes; then
3239 if test "$GCC" = yes; then
3240 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003241 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003242 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003243 fi
3244else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003245 if test "$GCC" = yes; then
3246 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003247 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003248 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003249 fi
3250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003251{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3252echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3253if test "${ac_cv_prog_cc_c89+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003255else
Reid Spencera773bd52006-08-04 18:18:08 +00003256 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003257ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003258cat >conftest.$ac_ext <<_ACEOF
3259/* confdefs.h. */
3260_ACEOF
3261cat confdefs.h >>conftest.$ac_ext
3262cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003263/* end confdefs.h. */
3264#include <stdarg.h>
3265#include <stdio.h>
3266#include <sys/types.h>
3267#include <sys/stat.h>
3268/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3269struct buf { int x; };
3270FILE * (*rcsopen) (struct buf *, struct stat *, int);
3271static char *e (p, i)
3272 char **p;
3273 int i;
3274{
3275 return p[i];
3276}
3277static char *f (char * (*g) (char **, int), char **p, ...)
3278{
3279 char *s;
3280 va_list v;
3281 va_start (v,p);
3282 s = g (p, va_arg (v,int));
3283 va_end (v);
3284 return s;
3285}
3286
3287/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3288 function prototypes and stuff, but not '\xHH' hex character constants.
3289 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003290 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3292 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003293 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003294int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3295
Reid Spencera773bd52006-08-04 18:18:08 +00003296/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3297 inside strings and character constants. */
3298#define FOO(x) 'x'
3299int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3300
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003301int test (int i, double x);
3302struct s1 {int (*f) (int a);};
3303struct s2 {int (*f) (double a);};
3304int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3305int argc;
3306char **argv;
3307int
3308main ()
3309{
3310return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3311 ;
3312 return 0;
3313}
3314_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003315for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3316 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003317do
3318 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003319 rm -f conftest.$ac_objext
3320if { (ac_try="$ac_compile"
3321case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324esac
3325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_compile") 2>conftest.er1
3327 ac_status=$?
3328 grep -v '^ *+' conftest.er1 >conftest.err
3329 rm -f conftest.er1
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } &&
3333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3334 { (case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337esac
3338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_try") 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; } &&
3343 { ac_try='test -s conftest.$ac_objext'
3344 { (case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347esac
3348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_try") 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003353 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003354else
3355 echo "$as_me: failed program was:" >&5
3356sed 's/^/| /' conftest.$ac_ext >&5
3357
3358
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003360
Reid Spencera773bd52006-08-04 18:18:08 +00003361rm -f core conftest.err conftest.$ac_objext
3362 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003363done
Reid Spencera773bd52006-08-04 18:18:08 +00003364rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003365CC=$ac_save_CC
3366
3367fi
Reid Spencera773bd52006-08-04 18:18:08 +00003368# AC_CACHE_VAL
3369case "x$ac_cv_prog_cc_c89" in
3370 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003371 { echo "$as_me:$LINENO: result: none needed" >&5
3372echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003373 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003374 { echo "$as_me:$LINENO: result: unsupported" >&5
3375echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003376 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003377 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003378 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3379echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003380esac
3381
John Criswell0c38eaf2003-09-10 15:17:25 +00003382
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003383ac_ext=c
3384ac_cpp='$CPP $CPPFLAGS'
3385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3387ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388
3389
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390ac_ext=c
3391ac_cpp='$CPP $CPPFLAGS'
3392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003395{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3396echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003397# On Suns, sometimes $CPP names a directory.
3398if test -n "$CPP" && test -d "$CPP"; then
3399 CPP=
3400fi
3401if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003402 if test "${ac_cv_prog_CPP+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404else
3405 # Double quotes because CPP needs to be expanded
3406 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3407 do
3408 ac_preproc_ok=false
3409for ac_c_preproc_warn_flag in '' yes
3410do
3411 # Use a header file that comes with gcc, so configuring glibc
3412 # with a fresh cross-compiler works.
3413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3414 # <limits.h> exists even on freestanding compilers.
3415 # On the NeXT, cc -E runs the code through the compiler's parser,
3416 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003417 cat >conftest.$ac_ext <<_ACEOF
3418/* confdefs.h. */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003422/* end confdefs.h. */
3423#ifdef __STDC__
3424# include <limits.h>
3425#else
3426# include <assert.h>
3427#endif
3428 Syntax error
3429_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003430if { (ac_try="$ac_cpp conftest.$ac_ext"
3431case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434esac
3435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3437 ac_status=$?
3438 grep -v '^ *+' conftest.er1 >conftest.err
3439 rm -f conftest.er1
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } >/dev/null; then
3443 if test -s conftest.err; then
3444 ac_cpp_err=$ac_c_preproc_warn_flag
3445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3446 else
3447 ac_cpp_err=
3448 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003449else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003450 ac_cpp_err=yes
3451fi
3452if test -z "$ac_cpp_err"; then
3453 :
3454else
3455 echo "$as_me: failed program was:" >&5
3456sed 's/^/| /' conftest.$ac_ext >&5
3457
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003458 # Broken: fails on valid input.
3459continue
3460fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003461
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003462rm -f conftest.err conftest.$ac_ext
3463
Reid Spencera773bd52006-08-04 18:18:08 +00003464 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003465 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003466 cat >conftest.$ac_ext <<_ACEOF
3467/* confdefs.h. */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003471/* end confdefs.h. */
3472#include <ac_nonexistent.h>
3473_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003474if { (ac_try="$ac_cpp conftest.$ac_ext"
3475case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478esac
3479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } >/dev/null; then
3487 if test -s conftest.err; then
3488 ac_cpp_err=$ac_c_preproc_warn_flag
3489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3490 else
3491 ac_cpp_err=
3492 fi
3493else
3494 ac_cpp_err=yes
3495fi
3496if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003497 # Broken: success on invalid input.
3498continue
3499else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003500 echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003503 # Passes both tests.
3504ac_preproc_ok=:
3505break
3506fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003507
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003508rm -f conftest.err conftest.$ac_ext
3509
3510done
3511# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3512rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003513if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003514 break
3515fi
3516
3517 done
3518 ac_cv_prog_CPP=$CPP
3519
3520fi
3521 CPP=$ac_cv_prog_CPP
3522else
3523 ac_cv_prog_CPP=$CPP
3524fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003525{ echo "$as_me:$LINENO: result: $CPP" >&5
3526echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003527ac_preproc_ok=false
3528for ac_c_preproc_warn_flag in '' yes
3529do
3530 # Use a header file that comes with gcc, so configuring glibc
3531 # with a fresh cross-compiler works.
3532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3533 # <limits.h> exists even on freestanding compilers.
3534 # On the NeXT, cc -E runs the code through the compiler's parser,
3535 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003536 cat >conftest.$ac_ext <<_ACEOF
3537/* confdefs.h. */
3538_ACEOF
3539cat confdefs.h >>conftest.$ac_ext
3540cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003541/* end confdefs.h. */
3542#ifdef __STDC__
3543# include <limits.h>
3544#else
3545# include <assert.h>
3546#endif
3547 Syntax error
3548_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003549if { (ac_try="$ac_cpp conftest.$ac_ext"
3550case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553esac
3554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3556 ac_status=$?
3557 grep -v '^ *+' conftest.er1 >conftest.err
3558 rm -f conftest.er1
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } >/dev/null; then
3562 if test -s conftest.err; then
3563 ac_cpp_err=$ac_c_preproc_warn_flag
3564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3565 else
3566 ac_cpp_err=
3567 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003568else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003569 ac_cpp_err=yes
3570fi
3571if test -z "$ac_cpp_err"; then
3572 :
3573else
3574 echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003577 # Broken: fails on valid input.
3578continue
3579fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003580
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003581rm -f conftest.err conftest.$ac_ext
3582
Reid Spencera773bd52006-08-04 18:18:08 +00003583 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003584 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003585 cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h. */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003590/* end confdefs.h. */
3591#include <ac_nonexistent.h>
3592_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003593if { (ac_try="$ac_cpp conftest.$ac_ext"
3594case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597esac
3598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3600 ac_status=$?
3601 grep -v '^ *+' conftest.er1 >conftest.err
3602 rm -f conftest.er1
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } >/dev/null; then
3606 if test -s conftest.err; then
3607 ac_cpp_err=$ac_c_preproc_warn_flag
3608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3609 else
3610 ac_cpp_err=
3611 fi
3612else
3613 ac_cpp_err=yes
3614fi
3615if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003616 # Broken: success on invalid input.
3617continue
3618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003619 echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003622 # Passes both tests.
3623ac_preproc_ok=:
3624break
3625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003626
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003627rm -f conftest.err conftest.$ac_ext
3628
3629done
3630# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003632if $ac_preproc_ok; then
3633 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003634else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003635 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3636See \`config.log' for more details." >&5
3637echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3638See \`config.log' for more details." >&2;}
3639 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003640fi
3641
John Criswell7a73b802003-06-30 21:59:07 +00003642ac_ext=c
3643ac_cpp='$CPP $CPPFLAGS'
3644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647
John Criswell7a73b802003-06-30 21:59:07 +00003648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003649{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3650echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3651if test "${ac_cv_path_GREP+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003653else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003654 # Extract the first word of "grep ggrep" to use in msg output
3655if test -z "$GREP"; then
3656set dummy grep ggrep; ac_prog_name=$2
3657if test "${ac_cv_path_GREP+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659else
Reid Spencera773bd52006-08-04 18:18:08 +00003660 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003661# Loop through the user's path and test for each of PROGNAME-LIST
3662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003663for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003664do
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003667 for ac_prog in grep ggrep; do
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3670 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3671 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003672 # Check for GNU $ac_path_GREP
3673case `"$ac_path_GREP" --version 2>&1` in
3674*GNU*)
3675 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3676*)
3677 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003678 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003679 while :
3680 do
3681 cat "conftest.in" "conftest.in" >"conftest.tmp"
3682 mv "conftest.tmp" "conftest.in"
3683 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003684 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003685 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3686 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003687 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003688 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3689 # Best one so far, save it but keep looking for a better one
3690 ac_cv_path_GREP="$ac_path_GREP"
3691 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003692 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003693 # 10*(2^10) chars as input seems more than enough
3694 test $ac_count -gt 10 && break
3695 done
3696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3697esac
3698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003699
3700 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003701 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003702done
3703
3704done
Reid Spencera773bd52006-08-04 18:18:08 +00003705IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003706
3707
3708fi
3709
3710GREP="$ac_cv_path_GREP"
3711if test -z "$GREP"; then
3712 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3713echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3714 { (exit 1); exit 1; }; }
3715fi
3716
Reid Spencera773bd52006-08-04 18:18:08 +00003717else
3718 ac_cv_path_GREP=$GREP
3719fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003721
Reid Spencera773bd52006-08-04 18:18:08 +00003722fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003723{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3724echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003725 GREP="$ac_cv_path_GREP"
3726
3727
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003728{ echo "$as_me:$LINENO: checking for egrep" >&5
3729echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3730if test "${ac_cv_path_EGREP+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003732else
3733 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3734 then ac_cv_path_EGREP="$GREP -E"
3735 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003736 # Extract the first word of "egrep" to use in msg output
3737if test -z "$EGREP"; then
3738set dummy egrep; ac_prog_name=$2
3739if test "${ac_cv_path_EGREP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
Reid Spencera773bd52006-08-04 18:18:08 +00003742 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003743# Loop through the user's path and test for each of PROGNAME-LIST
3744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003745for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3746do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003749 for ac_prog in egrep; do
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3752 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3753 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003754 # Check for GNU $ac_path_EGREP
3755case `"$ac_path_EGREP" --version 2>&1` in
3756*GNU*)
3757 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3758*)
3759 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003760 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003761 while :
3762 do
3763 cat "conftest.in" "conftest.in" >"conftest.tmp"
3764 mv "conftest.tmp" "conftest.in"
3765 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003766 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003767 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003769 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003770 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3771 # Best one so far, save it but keep looking for a better one
3772 ac_cv_path_EGREP="$ac_path_EGREP"
3773 ac_path_EGREP_max=$ac_count
3774 fi
3775 # 10*(2^10) chars as input seems more than enough
3776 test $ac_count -gt 10 && break
3777 done
3778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3779esac
3780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003781
3782 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003783 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003784done
3785
3786done
Reid Spencera773bd52006-08-04 18:18:08 +00003787IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003788
3789
3790fi
3791
3792EGREP="$ac_cv_path_EGREP"
3793if test -z "$EGREP"; then
3794 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3795echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3796 { (exit 1); exit 1; }; }
3797fi
3798
Reid Spencera773bd52006-08-04 18:18:08 +00003799else
3800 ac_cv_path_EGREP=$EGREP
3801fi
3802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003803
Reid Spencera773bd52006-08-04 18:18:08 +00003804 fi
3805fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003806{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3807echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003808 EGREP="$ac_cv_path_EGREP"
3809
3810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003811{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3812echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3813if test "${ac_cv_header_stdc+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003816 cat >conftest.$ac_ext <<_ACEOF
3817/* confdefs.h. */
3818_ACEOF
3819cat confdefs.h >>conftest.$ac_ext
3820cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003821/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003822#include <stdlib.h>
3823#include <stdarg.h>
3824#include <string.h>
3825#include <float.h>
3826
John Criswell0c38eaf2003-09-10 15:17:25 +00003827int
3828main ()
3829{
3830
3831 ;
3832 return 0;
3833}
John Criswell7a73b802003-06-30 21:59:07 +00003834_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003835rm -f conftest.$ac_objext
3836if { (ac_try="$ac_compile"
3837case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840esac
3841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3842 (eval "$ac_compile") 2>conftest.er1
3843 ac_status=$?
3844 grep -v '^ *+' conftest.er1 >conftest.err
3845 rm -f conftest.er1
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } &&
3849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3850 { (case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853esac
3854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855 (eval "$ac_try") 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; } &&
3859 { ac_try='test -s conftest.$ac_objext'
3860 { (case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3863esac
3864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3865 (eval "$ac_try") 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003869 ac_cv_header_stdc=yes
3870else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003871 echo "$as_me: failed program was:" >&5
3872sed 's/^/| /' conftest.$ac_ext >&5
3873
3874 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003875fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003876
Reid Spencera773bd52006-08-04 18:18:08 +00003877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003878
3879if test $ac_cv_header_stdc = yes; then
3880 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003881 cat >conftest.$ac_ext <<_ACEOF
3882/* confdefs.h. */
3883_ACEOF
3884cat confdefs.h >>conftest.$ac_ext
3885cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003886/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003887#include <string.h>
3888
3889_ACEOF
3890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003891 $EGREP "memchr" >/dev/null 2>&1; then
3892 :
John Criswell7a73b802003-06-30 21:59:07 +00003893else
3894 ac_cv_header_stdc=no
3895fi
3896rm -f conftest*
3897
3898fi
3899
3900if test $ac_cv_header_stdc = yes; then
3901 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003902 cat >conftest.$ac_ext <<_ACEOF
3903/* confdefs.h. */
3904_ACEOF
3905cat confdefs.h >>conftest.$ac_ext
3906cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003907/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003908#include <stdlib.h>
3909
3910_ACEOF
3911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003912 $EGREP "free" >/dev/null 2>&1; then
3913 :
John Criswell7a73b802003-06-30 21:59:07 +00003914else
3915 ac_cv_header_stdc=no
3916fi
3917rm -f conftest*
3918
3919fi
3920
3921if test $ac_cv_header_stdc = yes; then
3922 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003923 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003924 :
3925else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003926 cat >conftest.$ac_ext <<_ACEOF
3927/* confdefs.h. */
3928_ACEOF
3929cat confdefs.h >>conftest.$ac_ext
3930cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003931/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003932#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003933#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003934#if ((' ' & 0x0FF) == 0x020)
3935# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3936# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3937#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003938# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003939 (('a' <= (c) && (c) <= 'i') \
3940 || ('j' <= (c) && (c) <= 'r') \
3941 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003942# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3943#endif
3944
3945#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3946int
3947main ()
3948{
3949 int i;
3950 for (i = 0; i < 256; i++)
3951 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003952 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003953 return 2;
3954 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003955}
3956_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003957rm -f conftest$ac_exeext
3958if { (ac_try="$ac_link"
3959case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962esac
3963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_link") 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3968 { (case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971esac
3972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_try") 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3977 :
John Criswell7a73b802003-06-30 21:59:07 +00003978else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003979 echo "$as_me: program exited with status $ac_status" >&5
3980echo "$as_me: failed program was:" >&5
3981sed 's/^/| /' conftest.$ac_ext >&5
3982
3983( exit $ac_status )
3984ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003985fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003986rm -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 +00003987fi
3988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003989
John Criswell7a73b802003-06-30 21:59:07 +00003990fi
3991fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003992{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3993echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003994if test $ac_cv_header_stdc = yes; then
3995
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003996cat >>confdefs.h <<\_ACEOF
3997#define STDC_HEADERS 1
3998_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003999
4000fi
4001
Reid Spencera773bd52006-08-04 18:18:08 +00004002# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004003
4004
4005
4006
4007
4008
4009
4010
4011
Reid Spencera773bd52006-08-04 18:18:08 +00004012for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4013 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004014do
4015as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4016{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021 cat >conftest.$ac_ext <<_ACEOF
4022/* confdefs.h. */
4023_ACEOF
4024cat confdefs.h >>conftest.$ac_ext
4025cat >>conftest.$ac_ext <<_ACEOF
4026/* end confdefs.h. */
4027$ac_includes_default
4028
4029#include <$ac_header>
4030_ACEOF
4031rm -f conftest.$ac_objext
4032if { (ac_try="$ac_compile"
4033case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036esac
4037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_compile") 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4046 { (case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049esac
4050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_try") 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest.$ac_objext'
4056 { (case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059esac
4060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_try") 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 eval "$as_ac_Header=yes"
4066else
4067 echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 eval "$as_ac_Header=no"
4071fi
4072
4073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074fi
4075ac_res=`eval echo '${'$as_ac_Header'}'`
4076 { echo "$as_me:$LINENO: result: $ac_res" >&5
4077echo "${ECHO_T}$ac_res" >&6; }
4078if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004079 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004080#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004081_ACEOF
4082
4083fi
4084
4085done
4086
4087
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004088{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4089echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4090if test "${ac_cv_c_bigendian+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004092else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004093 # See if sys/param.h defines the BYTE_ORDER macro.
4094cat >conftest.$ac_ext <<_ACEOF
4095/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004096_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004097cat confdefs.h >>conftest.$ac_ext
4098cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004099/* end confdefs.h. */
4100#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004101#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004102
4103int
4104main ()
4105{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004106#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4107 bogus endian macros
4108#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004109
4110 ;
4111 return 0;
4112}
4113_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004114rm -f conftest.$ac_objext
4115if { (ac_try="$ac_compile"
4116case "(($ac_try" in
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4119esac
4120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121 (eval "$ac_compile") 2>conftest.er1
4122 ac_status=$?
4123 grep -v '^ *+' conftest.er1 >conftest.err
4124 rm -f conftest.er1
4125 cat conftest.err >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4129 { (case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132esac
4133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_try") 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; } &&
4138 { ac_try='test -s conftest.$ac_objext'
4139 { (case "(($ac_try" in
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4142esac
4143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_try") 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004148 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004149cat >conftest.$ac_ext <<_ACEOF
4150/* confdefs.h. */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004154/* end confdefs.h. */
4155#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004156#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004157
4158int
4159main ()
4160{
4161#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004162 not big endian
4163#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004164
4165 ;
4166 return 0;
4167}
4168_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004169rm -f conftest.$ac_objext
4170if { (ac_try="$ac_compile"
4171case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174esac
4175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_compile") 2>conftest.er1
4177 ac_status=$?
4178 grep -v '^ *+' conftest.er1 >conftest.err
4179 rm -f conftest.er1
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187esac
4188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; } &&
4193 { ac_try='test -s conftest.$ac_objext'
4194 { (case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197esac
4198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_try") 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004203 ac_cv_c_bigendian=yes
4204else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004205 echo "$as_me: failed program was:" >&5
4206sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004208 ac_cv_c_bigendian=no
4209fi
4210
4211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212else
4213 echo "$as_me: failed program was:" >&5
4214sed 's/^/| /' conftest.$ac_ext >&5
4215
4216 # It does not; compile a test program.
4217if test "$cross_compiling" = yes; then
4218 # try to guess the endianness by grepping values into an object file
4219 ac_cv_c_bigendian=unknown
4220 cat >conftest.$ac_ext <<_ACEOF
4221/* confdefs.h. */
4222_ACEOF
4223cat confdefs.h >>conftest.$ac_ext
4224cat >>conftest.$ac_ext <<_ACEOF
4225/* end confdefs.h. */
4226short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4227short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4228void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4229short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4230short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4231void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004232int
4233main ()
4234{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004235 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004236 ;
4237 return 0;
4238}
4239_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004240rm -f conftest.$ac_objext
4241if { (ac_try="$ac_compile"
4242case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4245esac
4246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_compile") 2>conftest.er1
4248 ac_status=$?
4249 grep -v '^ *+' conftest.er1 >conftest.err
4250 rm -f conftest.er1
4251 cat conftest.err >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } &&
4254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4255 { (case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258esac
4259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260 (eval "$ac_try") 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4268esac
4269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_try") 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
4274 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004275 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004276fi
4277if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4278 if test "$ac_cv_c_bigendian" = unknown; then
4279 ac_cv_c_bigendian=no
4280 else
4281 # finding both strings is unlikely to happen, but who knows?
4282 ac_cv_c_bigendian=unknown
4283 fi
4284fi
Reid Spencera773bd52006-08-04 18:18:08 +00004285else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004286 echo "$as_me: failed program was:" >&5
4287sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004288
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004289
Torok Edwin871384f2010-01-26 08:50:50 +00004290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004291
Reid Spencera773bd52006-08-04 18:18:08 +00004292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004294 cat >conftest.$ac_ext <<_ACEOF
4295/* confdefs.h. */
4296_ACEOF
4297cat confdefs.h >>conftest.$ac_ext
4298cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004299/* end confdefs.h. */
4300$ac_includes_default
4301int
4302main ()
4303{
4304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004305 /* Are we little or big endian? From Harbison&Steele. */
4306 union
4307 {
4308 long int l;
4309 char c[sizeof (long int)];
4310 } u;
4311 u.l = 1;
4312 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004313
4314 ;
4315 return 0;
4316}
4317_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004318rm -f conftest$ac_exeext
4319if { (ac_try="$ac_link"
4320case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323esac
4324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_link") 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4329 { (case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332esac
4333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_try") 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004338 ac_cv_c_bigendian=no
4339else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004340 echo "$as_me: program exited with status $ac_status" >&5
4341echo "$as_me: failed program was:" >&5
4342sed 's/^/| /' conftest.$ac_ext >&5
4343
4344( exit $ac_status )
4345ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004346fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004347rm -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 +00004348fi
4349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004350
Reid Spencera773bd52006-08-04 18:18:08 +00004351fi
4352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354fi
4355{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4356echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4357case $ac_cv_c_bigendian in
4358 yes)
4359 ENDIAN=big
4360 ;;
4361 no)
4362 ENDIAN=little
4363 ;;
4364 *)
4365 { { echo "$as_me:$LINENO: error: unknown endianness
4366presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4367echo "$as_me: error: unknown endianness
4368presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4369 { (exit 1); exit 1; }; } ;;
4370esac
Reid Spencera773bd52006-08-04 18:18:08 +00004371
4372
4373if test "$cross_compiling" = yes; then
4374 LLVM_CROSS_COMPILING=1
4375
4376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004377{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4378echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4379if test "${ac_cv_build_exeext+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004381else
4382 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4383 ac_cv_build_exeext=.exe
4384else
4385 ac_build_prefix=${build_alias}-
4386
4387 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4388set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004393else
4394 if test -n "$BUILD_CC"; then
4395 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4396else
4397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398for as_dir in $PATH
4399do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 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 +00004404 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004406 break 2
4407 fi
4408done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004409done
Reid Spencera773bd52006-08-04 18:18:08 +00004410IFS=$as_save_IFS
4411
4412fi
4413fi
4414BUILD_CC=$ac_cv_prog_BUILD_CC
4415if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004416 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4417echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004419 { echo "$as_me:$LINENO: result: no" >&5
4420echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004421fi
4422
4423
4424 if test -z "$BUILD_CC"; then
4425 # Extract the first word of "gcc", so it can be a program name with args.
4426set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004431else
4432 if test -n "$BUILD_CC"; then
4433 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4434else
4435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436for as_dir in $PATH
4437do
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 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 +00004442 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004444 break 2
4445 fi
4446done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004447done
Reid Spencera773bd52006-08-04 18:18:08 +00004448IFS=$as_save_IFS
4449
4450fi
4451fi
4452BUILD_CC=$ac_cv_prog_BUILD_CC
4453if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004454 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4455echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004456else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004457 { echo "$as_me:$LINENO: result: no" >&5
4458echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004459fi
4460
4461
4462 if test -z "$BUILD_CC"; then
4463 # Extract the first word of "cc", so it can be a program name with args.
4464set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004469else
4470 if test -n "$BUILD_CC"; then
4471 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4472else
4473 ac_prog_rejected=no
4474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475for as_dir in $PATH
4476do
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 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 +00004481 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4482 ac_prog_rejected=yes
4483 continue
4484 fi
4485 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004487 break 2
4488 fi
4489done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004490done
Reid Spencera773bd52006-08-04 18:18:08 +00004491IFS=$as_save_IFS
4492
4493if test $ac_prog_rejected = yes; then
4494 # We found a bogon in the path, so make sure we never use it.
4495 set dummy $ac_cv_prog_BUILD_CC
4496 shift
4497 if test $# != 0; then
4498 # We chose a different compiler from the bogus one.
4499 # However, it has the same basename, so the bogon will be chosen
4500 # first if we set BUILD_CC to just the basename; use the full file name.
4501 shift
4502 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4503 fi
4504fi
4505fi
4506fi
4507BUILD_CC=$ac_cv_prog_BUILD_CC
4508if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004509 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4510echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004511else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004512 { echo "$as_me:$LINENO: result: no" >&5
4513echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004514fi
4515
4516
4517 fi
4518 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004519 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4520echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4521 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004522 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4523 rm -f conftest*
4524 echo 'int main () { return 0; }' > conftest.$ac_ext
4525 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004526 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004527 (eval $ac_build_link) 2>&5
4528 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004531 for file in conftest.*; do
4532 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004533 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004534 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4535 esac
4536 done
4537 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004538 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4539echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4540 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004541 fi
4542 rm -f conftest*
4543 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4544fi
4545fi
4546
4547BUILD_EXEEXT=""
4548test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004549{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4550echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004551ac_build_exeext=$BUILD_EXEEXT
4552
Jim Grosbach673612e2008-10-02 22:56:44 +00004553 ac_build_prefix=${build_alias}-
4554 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4555set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4558if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004560else
4561 if test -n "$BUILD_CXX"; then
4562 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4563else
4564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565for as_dir in $PATH
4566do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 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 +00004571 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004573 break 2
4574 fi
4575done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004576done
Jim Grosbach673612e2008-10-02 22:56:44 +00004577IFS=$as_save_IFS
4578
4579fi
4580fi
4581BUILD_CXX=$ac_cv_prog_BUILD_CXX
4582if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004583 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4584echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004585else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004586 { echo "$as_me:$LINENO: result: no" >&5
4587echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004588fi
4589
4590
4591 if test -z "$BUILD_CXX"; then
4592 # Extract the first word of "g++", so it can be a program name with args.
4593set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004598else
4599 if test -n "$BUILD_CXX"; then
4600 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4601else
4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 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 +00004609 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004611 break 2
4612 fi
4613done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004614done
Jim Grosbach673612e2008-10-02 22:56:44 +00004615IFS=$as_save_IFS
4616
4617fi
4618fi
4619BUILD_CXX=$ac_cv_prog_BUILD_CXX
4620if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004621 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4622echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004623else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004624 { echo "$as_me:$LINENO: result: no" >&5
4625echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004626fi
4627
4628
4629 if test -z "$BUILD_CXX"; then
4630 # Extract the first word of "c++", so it can be a program name with args.
4631set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4634if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004636else
4637 if test -n "$BUILD_CXX"; then
4638 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4639else
4640 ac_prog_rejected=no
4641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642for as_dir in $PATH
4643do
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 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 +00004648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4649 ac_prog_rejected=yes
4650 continue
4651 fi
4652 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004654 break 2
4655 fi
4656done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004657done
Jim Grosbach673612e2008-10-02 22:56:44 +00004658IFS=$as_save_IFS
4659
4660if test $ac_prog_rejected = yes; then
4661 # We found a bogon in the path, so make sure we never use it.
4662 set dummy $ac_cv_prog_BUILD_CXX
4663 shift
4664 if test $# != 0; then
4665 # We chose a different compiler from the bogus one.
4666 # However, it has the same basename, so the bogon will be chosen
4667 # first if we set BUILD_CXX to just the basename; use the full file name.
4668 shift
4669 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4670 fi
4671fi
4672fi
4673fi
4674BUILD_CXX=$ac_cv_prog_BUILD_CXX
4675if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004676 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4677echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004678else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004679 { echo "$as_me:$LINENO: result: no" >&5
4680echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004681fi
4682
4683
4684 fi
4685 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004686else
4687 LLVM_CROSS_COMPILING=0
4688
4689fi
4690
Nick Lewycky5b28f862009-04-10 05:18:27 +00004691if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004692 cvsbuild="yes"
4693 optimize="no"
4694 CVSBUILD=CVSBUILD=1
4695
4696else
4697 cvsbuild="no"
4698 optimize="yes"
4699fi
4700
4701
4702# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004703if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004704 enableval=$enable_optimized;
4705else
4706 enableval=$optimize
4707fi
4708
4709if test ${enableval} = "no" ; then
4710 ENABLE_OPTIMIZED=
4711
4712else
4713 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4714
4715fi
4716
David Greene2a5a12c2009-04-17 14:50:39 +00004717# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004718if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004719 enableval=$enable_profiling;
4720else
4721 enableval="no"
4722fi
4723
4724if test ${enableval} = "no" ; then
4725 ENABLE_PROFILING=
4726
4727else
4728 ENABLE_PROFILING=ENABLE_PROFILING=1
4729
4730fi
4731
Reid Spencera773bd52006-08-04 18:18:08 +00004732# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004733if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004734 enableval=$enable_assertions;
4735else
4736 enableval="yes"
4737fi
4738
4739if test ${enableval} = "yes" ; then
4740 DISABLE_ASSERTIONS=
4741
4742else
4743 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4744
4745fi
4746
David Greenea696d242007-06-28 19:36:08 +00004747# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004748if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004749 enableval=$enable_expensive_checks;
4750else
4751 enableval="no"
4752fi
4753
4754if test ${enableval} = "yes" ; then
4755 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4756
4757 EXPENSIVE_CHECKS=yes
4758
4759else
4760 ENABLE_EXPENSIVE_CHECKS=
4761
4762 EXPENSIVE_CHECKS=no
4763
4764fi
4765
Reid Spencer8b2e1412006-11-17 03:32:33 +00004766# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004767if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004768 enableval=$enable_debug_runtime;
4769else
4770 enableval=no
4771fi
4772
4773if test ${enableval} = "no" ; then
4774 DEBUG_RUNTIME=
4775
4776else
4777 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4778
4779fi
4780
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004781# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004782if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004783 enableval=$enable_debug_symbols;
4784else
4785 enableval=no
4786fi
4787
4788if test ${enableval} = "no" ; then
4789 DEBUG_SYMBOLS=
4790
4791else
4792 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4793
4794fi
4795
Reid Spencera773bd52006-08-04 18:18:08 +00004796# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004797if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004798 enableval=$enable_jit;
4799else
4800 enableval=default
4801fi
4802
4803if test ${enableval} = "no"
4804then
4805 JIT=
4806
4807else
4808 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004809 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004810 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004811 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004812 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004813 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004814 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004815 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004816 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004817 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004818 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004819 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004820 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004821 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004822 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004823 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004824 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004825 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004826 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004827 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004828 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004829 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004830 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004831 Blackfin) TARGET_HAS_JIT=0
4832 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004833 MBlaze) TARGET_HAS_JIT=0
4834 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004835 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004836 ;;
4837 esac
4838fi
4839
4840# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004841if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004842 enableval=$enable_doxygen;
4843else
4844 enableval=default
4845fi
4846
4847case "$enableval" in
4848 yes) ENABLE_DOXYGEN=1
4849 ;;
4850 no) ENABLE_DOXYGEN=0
4851 ;;
4852 default) ENABLE_DOXYGEN=0
4853 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004854 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4855echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4856 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004857esac
4858
4859# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004860if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004861 enableval=$enable_threads;
4862else
Reid Spencer65c5d752006-11-05 17:08:18 +00004863 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004864fi
4865
4866case "$enableval" in
4867 yes) ENABLE_THREADS=1
4868 ;;
4869 no) ENABLE_THREADS=0
4870 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004871 default) ENABLE_THREADS=1
4872 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004873 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4874echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4875 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004876esac
4877
Owen Andersona8603702009-05-19 22:18:56 +00004878cat >>confdefs.h <<_ACEOF
4879#define ENABLE_THREADS $ENABLE_THREADS
4880_ACEOF
4881
4882
Reid Spencer89b0d992006-12-16 22:07:52 +00004883# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004884if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004885 enableval=$enable_pic;
4886else
4887 enableval=default
4888fi
4889
4890case "$enableval" in
4891 yes) ENABLE_PIC=1
4892 ;;
4893 no) ENABLE_PIC=0
4894 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004895 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004896 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004897 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4898echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4899 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004900esac
4901
4902cat >>confdefs.h <<_ACEOF
4903#define ENABLE_PIC $ENABLE_PIC
4904_ACEOF
4905
4906
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004907# Check whether --enable-shared was given.
4908if test "${enable_shared+set}" = set; then
4909 enableval=$enable_shared;
4910else
4911 enableval=default
4912fi
4913
4914case "$enableval" in
4915 yes) ENABLE_SHARED=1
4916 ;;
4917 no) ENABLE_SHARED=0
4918 ;;
4919 default) ENABLE_SHARED=0
4920 ;;
4921 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4922echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4923 { (exit 1); exit 1; }; } ;;
4924esac
4925
Reid Spencera773bd52006-08-04 18:18:08 +00004926TARGETS_TO_BUILD=""
4927# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004928if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004929 enableval=$enable_targets;
4930else
4931 enableval=all
4932fi
4933
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004934if test "$enableval" = host-only ; then
4935 enableval=host
4936fi
Reid Spencera773bd52006-08-04 18:18:08 +00004937case "$enableval" in
Wesley Pecka70f28c2010-02-23 19:15:24 +00004938 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004939 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4940 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004941 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4942 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4943 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4944 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4945 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4946 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4947 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4948 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4949 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4950 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4951 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4952 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4953 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4954 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4955 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4956 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004957 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004958 host) case "$llvm_cv_target_arch" in
4959 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4960 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4961 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4962 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4963 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4964 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4965 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004966 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004967 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4968 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4969 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4970 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004971 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004972 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004973 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4974echo "$as_me: error: Can not set target to build" >&2;}
4975 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004976 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004977 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4978echo "$as_me: error: Unrecognized target $a_target" >&2;}
4979 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004980 esac
4981 done
4982 ;;
4983esac
Reid Spencera773bd52006-08-04 18:18:08 +00004984TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4985
4986
Douglas Gregor0711c302009-06-17 00:43:20 +00004987# Determine whether we are building LLVM support for the native architecture.
4988# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4989for a_target in $TARGETS_TO_BUILD; do
4990 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004991 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004992
4993cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004994#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004995_ACEOF
4996
4997 fi
4998done
4999
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005000# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5001# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005002LLVM_ENUM_TARGETS=""
5003LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005004LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005005LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005006for target_to_build in $TARGETS_TO_BUILD; do
5007 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5008 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5009 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5010 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005011 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5012 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5013 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005014 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5015 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5016 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005017done
5018
5019
5020
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005021
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005022
Reid Spencer65c5d752006-11-05 17:08:18 +00005023# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005024if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005025 enableval=$enable_cbe_printf_a;
5026else
5027 enableval=default
5028fi
5029
5030case "$enableval" in
5031 yes) ENABLE_CBE_PRINTF_A=1
5032 ;;
5033 no) ENABLE_CBE_PRINTF_A=0
5034 ;;
5035 default) ENABLE_CBE_PRINTF_A=1
5036 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005037 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5038echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5039 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005040esac
5041
5042cat >>confdefs.h <<_ACEOF
5043#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5044_ACEOF
5045
5046
Reid Spencera773bd52006-08-04 18:18:08 +00005047
5048# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005049if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005050 withval=$with_llvmgccdir;
5051else
5052 withval=default
5053fi
5054
5055case "$withval" in
5056 default) WITH_LLVMGCCDIR=default ;;
5057 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005058 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5059echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5060 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005061esac
5062
5063
Devang Patel5d28b882007-12-04 22:54:47 +00005064# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005065if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005066 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5067 WITH_LLVMGCCDIR=""
5068fi
5069
5070
5071
5072# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005073if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005074 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5075 WITH_LLVMGCCDIR=""
5076fi
5077
Douglas Gregor01746742009-05-11 18:05:52 +00005078
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005079if test -n "$LLVMGCC"; then
5080 LLVMGCCCOMMAND="$LLVMGCC"
5081fi
5082
5083if test -n "$LLVMGXX"; then
5084 LLVMGXXCOMMAND="$LLVMGXX"
5085fi
Devang Patel5d28b882007-12-04 22:54:47 +00005086
5087if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005088 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5089echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5090 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005091fi
5092
5093if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005094 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5095echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5096 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005097fi
5098
5099
Daniel Dunbar98515672010-02-23 10:00:49 +00005100# Check whether --with-clang was given.
5101if test "${with_clang+set}" = set; then
5102 withval=$with_clang;
5103else
5104 with_clang=default
5105fi
5106
5107
5108
5109# Check whether --with-built-clang was given.
5110if test "${with_built_clang+set}" = set; then
5111 withval=$with_built_clang;
5112else
5113 with_built_clang=check
5114fi
5115
5116
5117{ echo "$as_me:$LINENO: checking clang compiler" >&5
5118echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5119WITH_CLANGPATH=""
5120WITH_BUILT_CLANG=0
5121if test "$with_clang" != "default"; then
5122 WITH_CLANGPATH="$with_clang"
5123 if ! test -x "$WITH_CLANGPATH"; then
5124 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5125echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5126 { (exit 1); exit 1; }; }
5127 fi
5128elif test "$with_built_clang" = "yes"; then
5129 WITH_BUILT_CLANG=1
5130elif test "$with_built_clang" = "no"; then
5131 WITH_BUILT_CLANG=0
5132else
5133 if test "$with_built_clang" != "check"; then
5134 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5135echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5136 { (exit 1); exit 1; }; }
5137 fi
5138
5139 if test -f ${srcdir}/tools/clang/README.txt; then
5140 WITH_BUILT_CLANG=1
5141 fi
5142fi
5143
5144if ! test -z "$WITH_CLANGPATH"; then
5145 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5146echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5147 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5148elif test "$WITH_BUILT_CLANG" = "1"; then
5149 { echo "$as_me:$LINENO: result: built" >&5
5150echo "${ECHO_T}built" >&6; }
5151else
5152 { echo "$as_me:$LINENO: result: none" >&5
5153echo "${ECHO_T}none" >&6; }
5154fi
5155CLANGPATH=$WITH_CLANGPATH
5156
5157CLANGXXPATH=$WITH_CLANGXXPATH
5158
5159ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5160
5161
5162
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005163# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005164if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005165 withval=$with_optimize_option;
5166else
5167 withval=default
5168fi
5169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005170{ echo "$as_me:$LINENO: checking optimization flags" >&5
5171echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005172case "$withval" in
5173 default)
5174 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005175 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005176 MingW) optimize_option=-O2 ;;
5177 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005178 esac ;;
5179 *) optimize_option="$withval" ;;
5180esac
5181OPTIMIZE_OPTION=$optimize_option
5182
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005183{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5184echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005185
5186
Reid Spencera773bd52006-08-04 18:18:08 +00005187# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005188if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005189 withval=$with_extra_options;
5190else
5191 withval=default
5192fi
5193
5194case "$withval" in
5195 default) EXTRA_OPTIONS= ;;
5196 *) EXTRA_OPTIONS=$withval ;;
5197esac
5198EXTRA_OPTIONS=$EXTRA_OPTIONS
5199
5200
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005201# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005202if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005203 enableval=$enable_bindings;
5204else
5205 enableval=default
5206fi
5207
5208BINDINGS_TO_BUILD=""
5209case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005210 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005211 all ) BINDINGS_TO_BUILD="ocaml" ;;
5212 none | no) BINDINGS_TO_BUILD="" ;;
5213 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5214 case "$a_binding" in
5215 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005216 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5217echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5218 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005219 esac
5220 done
5221 ;;
5222esac
5223
Reid Spencera773bd52006-08-04 18:18:08 +00005224
Gordon Henriksenf0915682007-10-02 16:42:22 +00005225# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005226if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005227 withval=$with_ocaml_libdir;
5228else
5229 withval=auto
5230fi
5231
5232case "$withval" in
5233 auto) with_ocaml_libdir="$withval" ;;
5234 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005235 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5236echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5237 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005238esac
5239
5240
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005241# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005242if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005243 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005244else
5245 withval=""
5246fi
5247
5248
5249cat >>confdefs.h <<_ACEOF
5250#define C_INCLUDE_DIRS "$withval"
5251_ACEOF
5252
5253
5254
Rafael Espindola420d23c2009-11-16 19:46:55 +00005255# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005256if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005257 withval=$with_cxx_include_root;
5258else
5259 withval=""
5260fi
5261
5262
5263cat >>confdefs.h <<_ACEOF
5264#define CXX_INCLUDE_ROOT "$withval"
5265_ACEOF
5266
5267
5268
5269# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005270if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005271 withval=$with_cxx_include_arch;
5272else
5273 withval=""
5274fi
5275
5276
5277cat >>confdefs.h <<_ACEOF
5278#define CXX_INCLUDE_ARCH "$withval"
5279_ACEOF
5280
5281
5282
5283# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005284if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005285 withval=$with_cxx_include_32bit_dir;
5286else
5287 withval=""
5288fi
5289
5290
5291cat >>confdefs.h <<_ACEOF
5292#define CXX_INCLUDE_32BIT_DIR "$withval"
5293_ACEOF
5294
5295
5296
5297# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005298if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005299 withval=$with_cxx_include_64bit_dir;
5300else
5301 withval=""
5302fi
5303
5304
5305cat >>confdefs.h <<_ACEOF
5306#define CXX_INCLUDE_64BIT_DIR "$withval"
5307_ACEOF
5308
5309
5310
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005311# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005312if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005313 withval=$with_binutils_include;
5314else
5315 withval=default
5316fi
5317
5318case "$withval" in
5319 default) WITH_BINUTILS_INCDIR=default ;;
5320 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005321 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5322echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5323 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005324esac
5325if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5326 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5327
5328 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5329 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005330 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5331echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5332 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005333 fi
5334fi
5335
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005336# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005337if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005338 enableval=$enable_libffi; case "$enableval" in
5339 yes) llvm_cv_enable_libffi="yes" ;;
5340 no) llvm_cv_enable_libffi="no" ;;
5341 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005342echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5343 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005344 esac
5345else
5346 llvm_cv_enable_libffi=no
5347fi
5348
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005349
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005350if test "$llvm_cv_os_type" = "Win32" ; then
5351 llvmc_dynamic="yes"
5352else
5353 llvmc_dynamic="no"
5354fi
5355
5356# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005357if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005358 enableval=$enable_llvmc_dynamic;
5359else
5360 enableval=$llvmc_dynamic
5361fi
5362
5363if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5364 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5365
5366else
5367 ENABLE_LLVMC_DYNAMIC=
5368
5369fi
5370
5371# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005372if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005373 enableval=$enable_llvmc_dynamic_plugins;
5374else
5375 enableval=yes
5376fi
5377
5378if test ${enableval} = "yes" ; then
5379 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5380
5381else
5382 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5383
5384fi
5385
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005386
Reid Spencera773bd52006-08-04 18:18:08 +00005387ac_ext=c
5388ac_cpp='$CPP $CPPFLAGS'
5389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005392{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5393echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005394# On Suns, sometimes $CPP names a directory.
5395if test -n "$CPP" && test -d "$CPP"; then
5396 CPP=
5397fi
5398if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005399 if test "${ac_cv_prog_CPP+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005401else
5402 # Double quotes because CPP needs to be expanded
5403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5404 do
5405 ac_preproc_ok=false
5406for ac_c_preproc_warn_flag in '' yes
5407do
5408 # Use a header file that comes with gcc, so configuring glibc
5409 # with a fresh cross-compiler works.
5410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5411 # <limits.h> exists even on freestanding compilers.
5412 # On the NeXT, cc -E runs the code through the compiler's parser,
5413 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005414 cat >conftest.$ac_ext <<_ACEOF
5415/* confdefs.h. */
5416_ACEOF
5417cat confdefs.h >>conftest.$ac_ext
5418cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005419/* end confdefs.h. */
5420#ifdef __STDC__
5421# include <limits.h>
5422#else
5423# include <assert.h>
5424#endif
5425 Syntax error
5426_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005427if { (ac_try="$ac_cpp conftest.$ac_ext"
5428case "(($ac_try" in
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5431esac
5432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } >/dev/null; then
5440 if test -s conftest.err; then
5441 ac_cpp_err=$ac_c_preproc_warn_flag
5442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5443 else
5444 ac_cpp_err=
5445 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005446else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005447 ac_cpp_err=yes
5448fi
5449if test -z "$ac_cpp_err"; then
5450 :
5451else
5452 echo "$as_me: failed program was:" >&5
5453sed 's/^/| /' conftest.$ac_ext >&5
5454
Reid Spencera773bd52006-08-04 18:18:08 +00005455 # Broken: fails on valid input.
5456continue
5457fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005458
Reid Spencera773bd52006-08-04 18:18:08 +00005459rm -f conftest.err conftest.$ac_ext
5460
5461 # OK, works on sane cases. Now check whether nonexistent headers
5462 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005463 cat >conftest.$ac_ext <<_ACEOF
5464/* confdefs.h. */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005468/* end confdefs.h. */
5469#include <ac_nonexistent.h>
5470_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005471if { (ac_try="$ac_cpp conftest.$ac_ext"
5472case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475esac
5476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } >/dev/null; then
5484 if test -s conftest.err; then
5485 ac_cpp_err=$ac_c_preproc_warn_flag
5486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5487 else
5488 ac_cpp_err=
5489 fi
5490else
5491 ac_cpp_err=yes
5492fi
5493if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005494 # Broken: success on invalid input.
5495continue
5496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005497 echo "$as_me: failed program was:" >&5
5498sed 's/^/| /' conftest.$ac_ext >&5
5499
Reid Spencera773bd52006-08-04 18:18:08 +00005500 # Passes both tests.
5501ac_preproc_ok=:
5502break
5503fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005504
Reid Spencera773bd52006-08-04 18:18:08 +00005505rm -f conftest.err conftest.$ac_ext
5506
5507done
5508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5509rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005510if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005511 break
5512fi
5513
5514 done
5515 ac_cv_prog_CPP=$CPP
5516
5517fi
5518 CPP=$ac_cv_prog_CPP
5519else
5520 ac_cv_prog_CPP=$CPP
5521fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005522{ echo "$as_me:$LINENO: result: $CPP" >&5
5523echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005524ac_preproc_ok=false
5525for ac_c_preproc_warn_flag in '' yes
5526do
5527 # Use a header file that comes with gcc, so configuring glibc
5528 # with a fresh cross-compiler works.
5529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5530 # <limits.h> exists even on freestanding compilers.
5531 # On the NeXT, cc -E runs the code through the compiler's parser,
5532 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005533 cat >conftest.$ac_ext <<_ACEOF
5534/* confdefs.h. */
5535_ACEOF
5536cat confdefs.h >>conftest.$ac_ext
5537cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005538/* end confdefs.h. */
5539#ifdef __STDC__
5540# include <limits.h>
5541#else
5542# include <assert.h>
5543#endif
5544 Syntax error
5545_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005546if { (ac_try="$ac_cpp conftest.$ac_ext"
5547case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5550esac
5551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } >/dev/null; then
5559 if test -s conftest.err; then
5560 ac_cpp_err=$ac_c_preproc_warn_flag
5561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5562 else
5563 ac_cpp_err=
5564 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005565else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005566 ac_cpp_err=yes
5567fi
5568if test -z "$ac_cpp_err"; then
5569 :
5570else
5571 echo "$as_me: failed program was:" >&5
5572sed 's/^/| /' conftest.$ac_ext >&5
5573
Reid Spencera773bd52006-08-04 18:18:08 +00005574 # Broken: fails on valid input.
5575continue
5576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005577
Reid Spencera773bd52006-08-04 18:18:08 +00005578rm -f conftest.err conftest.$ac_ext
5579
5580 # OK, works on sane cases. Now check whether nonexistent headers
5581 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005582 cat >conftest.$ac_ext <<_ACEOF
5583/* confdefs.h. */
5584_ACEOF
5585cat confdefs.h >>conftest.$ac_ext
5586cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005587/* end confdefs.h. */
5588#include <ac_nonexistent.h>
5589_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005590if { (ac_try="$ac_cpp conftest.$ac_ext"
5591case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594esac
5595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5597 ac_status=$?
5598 grep -v '^ *+' conftest.er1 >conftest.err
5599 rm -f conftest.er1
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } >/dev/null; then
5603 if test -s conftest.err; then
5604 ac_cpp_err=$ac_c_preproc_warn_flag
5605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5606 else
5607 ac_cpp_err=
5608 fi
5609else
5610 ac_cpp_err=yes
5611fi
5612if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005613 # Broken: success on invalid input.
5614continue
5615else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005616 echo "$as_me: failed program was:" >&5
5617sed 's/^/| /' conftest.$ac_ext >&5
5618
Reid Spencera773bd52006-08-04 18:18:08 +00005619 # Passes both tests.
5620ac_preproc_ok=:
5621break
5622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005623
Reid Spencera773bd52006-08-04 18:18:08 +00005624rm -f conftest.err conftest.$ac_ext
5625
5626done
5627# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5628rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005629if $ac_preproc_ok; then
5630 :
Reid Spencera773bd52006-08-04 18:18:08 +00005631else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5633See \`config.log' for more details." >&5
5634echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5635See \`config.log' for more details." >&2;}
5636 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005637fi
5638
5639ac_ext=c
5640ac_cpp='$CPP $CPPFLAGS'
5641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5643ac_compiler_gnu=$ac_cv_c_compiler_gnu
5644
5645ac_ext=c
5646ac_cpp='$CPP $CPPFLAGS'
5647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650if test -n "$ac_tool_prefix"; then
5651 for ac_prog in gcc
5652 do
5653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5654set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5657if test "${ac_cv_prog_CC+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005659else
5660 if test -n "$CC"; then
5661 ac_cv_prog_CC="$CC" # Let the user override the test.
5662else
5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH
5665do
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 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 +00005670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005672 break 2
5673 fi
5674done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005675done
Reid Spencera773bd52006-08-04 18:18:08 +00005676IFS=$as_save_IFS
5677
5678fi
5679fi
5680CC=$ac_cv_prog_CC
5681if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005682 { echo "$as_me:$LINENO: result: $CC" >&5
5683echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005684else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005685 { echo "$as_me:$LINENO: result: no" >&5
5686echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005687fi
5688
5689
5690 test -n "$CC" && break
5691 done
5692fi
5693if test -z "$CC"; then
5694 ac_ct_CC=$CC
5695 for ac_prog in gcc
5696do
5697 # Extract the first word of "$ac_prog", so it can be a program name with args.
5698set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5701if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005703else
5704 if test -n "$ac_ct_CC"; then
5705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5706else
5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH
5709do
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 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 +00005714 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005716 break 2
5717 fi
5718done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005719done
Reid Spencera773bd52006-08-04 18:18:08 +00005720IFS=$as_save_IFS
5721
5722fi
5723fi
5724ac_ct_CC=$ac_cv_prog_ac_ct_CC
5725if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005726 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5727echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005728else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005729 { echo "$as_me:$LINENO: result: no" >&5
5730echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005731fi
5732
5733
5734 test -n "$ac_ct_CC" && break
5735done
5736
5737 if test "x$ac_ct_CC" = x; then
5738 CC=""
5739 else
5740 case $cross_compiling:$ac_tool_warned in
5741yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005742{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5743whose name does not start with the host triplet. If you think this
5744configuration is useful to you, please write to autoconf@gnu.org." >&5
5745echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5746whose name does not start with the host triplet. If you think this
5747configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005748ac_tool_warned=yes ;;
5749esac
5750 CC=$ac_ct_CC
5751 fi
5752fi
5753
5754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005755test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5756See \`config.log' for more details." >&5
5757echo "$as_me: error: no acceptable C compiler found in \$PATH
5758See \`config.log' for more details." >&2;}
5759 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005760
5761# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005762echo "$as_me:$LINENO: checking for C compiler version" >&5
5763ac_compiler=`set X $ac_compile; echo $2`
5764{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005765case "(($ac_try" in
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5768esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005771 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }
5774{ (ac_try="$ac_compiler -v >&5"
5775case "(($ac_try" in
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5778esac
5779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_compiler -v >&5") 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }
5784{ (ac_try="$ac_compiler -V >&5"
5785case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788esac
5789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_compiler -V >&5") 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005795{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5796echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5797if test "${ac_cv_c_compiler_gnu+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005799else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005800 cat >conftest.$ac_ext <<_ACEOF
5801/* confdefs.h. */
5802_ACEOF
5803cat confdefs.h >>conftest.$ac_ext
5804cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005805/* end confdefs.h. */
5806
5807int
5808main ()
5809{
5810#ifndef __GNUC__
5811 choke me
5812#endif
5813
5814 ;
5815 return 0;
5816}
5817_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005818rm -f conftest.$ac_objext
5819if { (ac_try="$ac_compile"
5820case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5823esac
5824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_compile") 2>conftest.er1
5826 ac_status=$?
5827 grep -v '^ *+' conftest.er1 >conftest.err
5828 rm -f conftest.er1
5829 cat conftest.err >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } &&
5832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5833 { (case "(($ac_try" in
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5836esac
5837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_try") 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try='test -s conftest.$ac_objext'
5843 { (case "(($ac_try" in
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5846esac
5847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_try") 2>&5
5849 ac_status=$?
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005852 ac_compiler_gnu=yes
5853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005854 echo "$as_me: failed program was:" >&5
5855sed 's/^/| /' conftest.$ac_ext >&5
5856
5857 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005858fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005859
Reid Spencera773bd52006-08-04 18:18:08 +00005860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861ac_cv_c_compiler_gnu=$ac_compiler_gnu
5862
5863fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005864{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5865echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5866GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005867ac_test_CFLAGS=${CFLAGS+set}
5868ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005869{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5870echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5871if test "${ac_cv_prog_cc_g+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005873else
5874 ac_save_c_werror_flag=$ac_c_werror_flag
5875 ac_c_werror_flag=yes
5876 ac_cv_prog_cc_g=no
5877 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005878 cat >conftest.$ac_ext <<_ACEOF
5879/* confdefs.h. */
5880_ACEOF
5881cat confdefs.h >>conftest.$ac_ext
5882cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005883/* end confdefs.h. */
5884
5885int
5886main ()
5887{
5888
5889 ;
5890 return 0;
5891}
5892_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005893rm -f conftest.$ac_objext
5894if { (ac_try="$ac_compile"
5895case "(($ac_try" in
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5898esac
5899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_compile") 2>conftest.er1
5901 ac_status=$?
5902 grep -v '^ *+' conftest.er1 >conftest.err
5903 rm -f conftest.er1
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5908 { (case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911esac
5912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_try") 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; } &&
5917 { ac_try='test -s conftest.$ac_objext'
5918 { (case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921esac
5922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_try") 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005927 ac_cv_prog_cc_g=yes
5928else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005929 echo "$as_me: failed program was:" >&5
5930sed 's/^/| /' conftest.$ac_ext >&5
5931
5932 CFLAGS=""
5933 cat >conftest.$ac_ext <<_ACEOF
5934/* confdefs.h. */
5935_ACEOF
5936cat confdefs.h >>conftest.$ac_ext
5937cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005938/* end confdefs.h. */
5939
5940int
5941main ()
5942{
5943
5944 ;
5945 return 0;
5946}
5947_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005948rm -f conftest.$ac_objext
5949if { (ac_try="$ac_compile"
5950case "(($ac_try" in
5951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952 *) ac_try_echo=$ac_try;;
5953esac
5954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5955 (eval "$ac_compile") 2>conftest.er1
5956 ac_status=$?
5957 grep -v '^ *+' conftest.er1 >conftest.err
5958 rm -f conftest.er1
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5963 { (case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5966esac
5967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_try") 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; } &&
5972 { ac_try='test -s conftest.$ac_objext'
5973 { (case "(($ac_try" in
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5976esac
5977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_try") 2>&5
5979 ac_status=$?
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
5982 :
Torok Edwin871384f2010-01-26 08:50:50 +00005983else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005984 echo "$as_me: failed program was:" >&5
5985sed 's/^/| /' conftest.$ac_ext >&5
5986
5987 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005988 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005989 cat >conftest.$ac_ext <<_ACEOF
5990/* confdefs.h. */
5991_ACEOF
5992cat confdefs.h >>conftest.$ac_ext
5993cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005994/* end confdefs.h. */
5995
5996int
5997main ()
5998{
5999
6000 ;
6001 return 0;
6002}
6003_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006004rm -f conftest.$ac_objext
6005if { (ac_try="$ac_compile"
6006case "(($ac_try" in
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6009esac
6010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_compile") 2>conftest.er1
6012 ac_status=$?
6013 grep -v '^ *+' conftest.er1 >conftest.err
6014 rm -f conftest.er1
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6019 { (case "(($ac_try" in
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6022esac
6023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024 (eval "$ac_try") 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (case "(($ac_try" in
6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6032esac
6033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_try") 2>&5
6035 ac_status=$?
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006038 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006039else
6040 echo "$as_me: failed program was:" >&5
6041sed 's/^/| /' conftest.$ac_ext >&5
6042
6043
Reid Spencera773bd52006-08-04 18:18:08 +00006044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006045
Reid Spencera773bd52006-08-04 18:18:08 +00006046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006048
Reid Spencera773bd52006-08-04 18:18:08 +00006049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006051
Reid Spencera773bd52006-08-04 18:18:08 +00006052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 ac_c_werror_flag=$ac_save_c_werror_flag
6054fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006055{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6056echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006057if test "$ac_test_CFLAGS" = set; then
6058 CFLAGS=$ac_save_CFLAGS
6059elif test $ac_cv_prog_cc_g = yes; then
6060 if test "$GCC" = yes; then
6061 CFLAGS="-g -O2"
6062 else
6063 CFLAGS="-g"
6064 fi
6065else
6066 if test "$GCC" = yes; then
6067 CFLAGS="-O2"
6068 else
6069 CFLAGS=
6070 fi
6071fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006072{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6073echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6074if test "${ac_cv_prog_cc_c89+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006076else
6077 ac_cv_prog_cc_c89=no
6078ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006079cat >conftest.$ac_ext <<_ACEOF
6080/* confdefs.h. */
6081_ACEOF
6082cat confdefs.h >>conftest.$ac_ext
6083cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006084/* end confdefs.h. */
6085#include <stdarg.h>
6086#include <stdio.h>
6087#include <sys/types.h>
6088#include <sys/stat.h>
6089/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6090struct buf { int x; };
6091FILE * (*rcsopen) (struct buf *, struct stat *, int);
6092static char *e (p, i)
6093 char **p;
6094 int i;
6095{
6096 return p[i];
6097}
6098static char *f (char * (*g) (char **, int), char **p, ...)
6099{
6100 char *s;
6101 va_list v;
6102 va_start (v,p);
6103 s = g (p, va_arg (v,int));
6104 va_end (v);
6105 return s;
6106}
6107
6108/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6109 function prototypes and stuff, but not '\xHH' hex character constants.
6110 These don't provoke an error unfortunately, instead are silently treated
6111 as 'x'. The following induces an error, until -std is added to get
6112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6113 array size at least. It's necessary to write '\x00'==0 to get something
6114 that's true only with -std. */
6115int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6116
6117/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6118 inside strings and character constants. */
6119#define FOO(x) 'x'
6120int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6121
6122int test (int i, double x);
6123struct s1 {int (*f) (int a);};
6124struct s2 {int (*f) (double a);};
6125int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6126int argc;
6127char **argv;
6128int
6129main ()
6130{
6131return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6132 ;
6133 return 0;
6134}
6135_ACEOF
6136for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6138do
6139 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006140 rm -f conftest.$ac_objext
6141if { (ac_try="$ac_compile"
6142case "(($ac_try" in
6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6145esac
6146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_compile") 2>conftest.er1
6148 ac_status=$?
6149 grep -v '^ *+' conftest.er1 >conftest.err
6150 rm -f conftest.er1
6151 cat conftest.err >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } &&
6154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6155 { (case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158esac
6159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_try") 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; } &&
6164 { ac_try='test -s conftest.$ac_objext'
6165 { (case "(($ac_try" in
6166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167 *) ac_try_echo=$ac_try;;
6168esac
6169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6170 (eval "$ac_try") 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006174 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006175else
6176 echo "$as_me: failed program was:" >&5
6177sed 's/^/| /' conftest.$ac_ext >&5
6178
6179
Reid Spencera773bd52006-08-04 18:18:08 +00006180fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006181
Reid Spencera773bd52006-08-04 18:18:08 +00006182rm -f core conftest.err conftest.$ac_objext
6183 test "x$ac_cv_prog_cc_c89" != "xno" && break
6184done
6185rm -f conftest.$ac_ext
6186CC=$ac_save_CC
6187
6188fi
6189# AC_CACHE_VAL
6190case "x$ac_cv_prog_cc_c89" in
6191 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006192 { echo "$as_me:$LINENO: result: none needed" >&5
6193echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006194 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006195 { echo "$as_me:$LINENO: result: unsupported" >&5
6196echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006197 *)
6198 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006199 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6200echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006201esac
6202
6203
6204ac_ext=c
6205ac_cpp='$CPP $CPPFLAGS'
6206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209
6210ac_ext=cpp
6211ac_cpp='$CXXCPP $CPPFLAGS'
6212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6215if test -z "$CXX"; then
6216 if test -n "$CCC"; then
6217 CXX=$CCC
6218 else
6219 if test -n "$ac_tool_prefix"; then
6220 for ac_prog in g++
6221 do
6222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6223set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006224{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226if test "${ac_cv_prog_CXX+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006228else
6229 if test -n "$CXX"; then
6230 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6231else
6232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 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 +00006239 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006241 break 2
6242 fi
6243done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006244done
Reid Spencera773bd52006-08-04 18:18:08 +00006245IFS=$as_save_IFS
6246
6247fi
6248fi
6249CXX=$ac_cv_prog_CXX
6250if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006251 { echo "$as_me:$LINENO: result: $CXX" >&5
6252echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006253else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006254 { echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006256fi
6257
6258
6259 test -n "$CXX" && break
6260 done
6261fi
6262if test -z "$CXX"; then
6263 ac_ct_CXX=$CXX
6264 for ac_prog in g++
6265do
6266 # Extract the first word of "$ac_prog", so it can be a program name with args.
6267set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006272else
6273 if test -n "$ac_ct_CXX"; then
6274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6275else
6276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277for as_dir in $PATH
6278do
6279 IFS=$as_save_IFS
6280 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 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 +00006283 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006285 break 2
6286 fi
6287done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006288done
Reid Spencera773bd52006-08-04 18:18:08 +00006289IFS=$as_save_IFS
6290
6291fi
6292fi
6293ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6294if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006295 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6296echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006298 { echo "$as_me:$LINENO: result: no" >&5
6299echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006300fi
6301
6302
6303 test -n "$ac_ct_CXX" && break
6304done
6305
6306 if test "x$ac_ct_CXX" = x; then
6307 CXX="g++"
6308 else
6309 case $cross_compiling:$ac_tool_warned in
6310yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006311{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6312whose name does not start with the host triplet. If you think this
6313configuration is useful to you, please write to autoconf@gnu.org." >&5
6314echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6315whose name does not start with the host triplet. If you think this
6316configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006317ac_tool_warned=yes ;;
6318esac
6319 CXX=$ac_ct_CXX
6320 fi
6321fi
6322
6323 fi
6324fi
6325# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006326echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6327ac_compiler=`set X $ac_compile; echo $2`
6328{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006329case "(($ac_try" in
6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6332esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006335 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }
6338{ (ac_try="$ac_compiler -v >&5"
6339case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6342esac
6343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_compiler -v >&5") 2>&5
6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }
6348{ (ac_try="$ac_compiler -V >&5"
6349case "(($ac_try" in
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6352esac
6353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_compiler -V >&5") 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006358
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006359{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6360echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6361if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006363else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006364 cat >conftest.$ac_ext <<_ACEOF
6365/* confdefs.h. */
6366_ACEOF
6367cat confdefs.h >>conftest.$ac_ext
6368cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006369/* end confdefs.h. */
6370
6371int
6372main ()
6373{
6374#ifndef __GNUC__
6375 choke me
6376#endif
6377
6378 ;
6379 return 0;
6380}
6381_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006382rm -f conftest.$ac_objext
6383if { (ac_try="$ac_compile"
6384case "(($ac_try" in
6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6387esac
6388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389 (eval "$ac_compile") 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6397 { (case "(($ac_try" in
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6400esac
6401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_try") 2>&5
6403 ac_status=$?
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; } &&
6406 { ac_try='test -s conftest.$ac_objext'
6407 { (case "(($ac_try" in
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6410esac
6411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_try") 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006416 ac_compiler_gnu=yes
6417else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006418 echo "$as_me: failed program was:" >&5
6419sed 's/^/| /' conftest.$ac_ext >&5
6420
6421 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006422fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006423
Reid Spencera773bd52006-08-04 18:18:08 +00006424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6426
6427fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006428{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6429echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6430GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006431ac_test_CXXFLAGS=${CXXFLAGS+set}
6432ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006433{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6434echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6435if test "${ac_cv_prog_cxx_g+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006437else
6438 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6439 ac_cxx_werror_flag=yes
6440 ac_cv_prog_cxx_g=no
6441 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006442 cat >conftest.$ac_ext <<_ACEOF
6443/* confdefs.h. */
6444_ACEOF
6445cat confdefs.h >>conftest.$ac_ext
6446cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006447/* end confdefs.h. */
6448
6449int
6450main ()
6451{
6452
6453 ;
6454 return 0;
6455}
6456_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006457rm -f conftest.$ac_objext
6458if { (ac_try="$ac_compile"
6459case "(($ac_try" in
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6462esac
6463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_compile") 2>conftest.er1
6465 ac_status=$?
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } &&
6471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6472 { (case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6475esac
6476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477 (eval "$ac_try") 2>&5
6478 ac_status=$?
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; } &&
6481 { ac_try='test -s conftest.$ac_objext'
6482 { (case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485esac
6486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_try") 2>&5
6488 ac_status=$?
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006491 ac_cv_prog_cxx_g=yes
6492else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006493 echo "$as_me: failed program was:" >&5
6494sed 's/^/| /' conftest.$ac_ext >&5
6495
6496 CXXFLAGS=""
6497 cat >conftest.$ac_ext <<_ACEOF
6498/* confdefs.h. */
6499_ACEOF
6500cat confdefs.h >>conftest.$ac_ext
6501cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006502/* end confdefs.h. */
6503
6504int
6505main ()
6506{
6507
6508 ;
6509 return 0;
6510}
6511_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006512rm -f conftest.$ac_objext
6513if { (ac_try="$ac_compile"
6514case "(($ac_try" in
6515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516 *) ac_try_echo=$ac_try;;
6517esac
6518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6519 (eval "$ac_compile") 2>conftest.er1
6520 ac_status=$?
6521 grep -v '^ *+' conftest.er1 >conftest.err
6522 rm -f conftest.er1
6523 cat conftest.err >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6527 { (case "(($ac_try" in
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6530esac
6531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532 (eval "$ac_try") 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest.$ac_objext'
6537 { (case "(($ac_try" in
6538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6539 *) ac_try_echo=$ac_try;;
6540esac
6541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6542 (eval "$ac_try") 2>&5
6543 ac_status=$?
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6546 :
Torok Edwin871384f2010-01-26 08:50:50 +00006547else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006548 echo "$as_me: failed program was:" >&5
6549sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006552 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006553 cat >conftest.$ac_ext <<_ACEOF
6554/* confdefs.h. */
6555_ACEOF
6556cat confdefs.h >>conftest.$ac_ext
6557cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006558/* end confdefs.h. */
6559
6560int
6561main ()
6562{
6563
6564 ;
6565 return 0;
6566}
6567_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006568rm -f conftest.$ac_objext
6569if { (ac_try="$ac_compile"
6570case "(($ac_try" in
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6573esac
6574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575 (eval "$ac_compile") 2>conftest.er1
6576 ac_status=$?
6577 grep -v '^ *+' conftest.er1 >conftest.err
6578 rm -f conftest.er1
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6583 { (case "(($ac_try" in
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6586esac
6587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_try") 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; } &&
6592 { ac_try='test -s conftest.$ac_objext'
6593 { (case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596esac
6597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_try") 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006602 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006603else
6604 echo "$as_me: failed program was:" >&5
6605sed 's/^/| /' conftest.$ac_ext >&5
6606
6607
Reid Spencera773bd52006-08-04 18:18:08 +00006608fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609
Reid Spencera773bd52006-08-04 18:18:08 +00006610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006612
Reid Spencera773bd52006-08-04 18:18:08 +00006613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006615
Reid Spencera773bd52006-08-04 18:18:08 +00006616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6618fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006619{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6620echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006621if test "$ac_test_CXXFLAGS" = set; then
6622 CXXFLAGS=$ac_save_CXXFLAGS
6623elif test $ac_cv_prog_cxx_g = yes; then
6624 if test "$GXX" = yes; then
6625 CXXFLAGS="-g -O2"
6626 else
6627 CXXFLAGS="-g"
6628 fi
6629else
6630 if test "$GXX" = yes; then
6631 CXXFLAGS="-O2"
6632 else
6633 CXXFLAGS=
6634 fi
6635fi
6636ac_ext=c
6637ac_cpp='$CPP $CPPFLAGS'
6638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6640ac_compiler_gnu=$ac_cv_c_compiler_gnu
6641
Reid Spencera773bd52006-08-04 18:18:08 +00006642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006643{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6644echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6645if test "${lt_cv_path_NM+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006647else
6648 if test -n "$NM"; then
6649 # Let the user override the test.
6650 lt_cv_path_NM="$NM"
6651else
6652 lt_nm_to_check="${ac_tool_prefix}nm"
6653 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6654 lt_nm_to_check="$lt_nm_to_check nm"
6655 fi
6656 for lt_tmp_nm in $lt_nm_to_check; do
6657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6658 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6659 IFS="$lt_save_ifs"
6660 test -z "$ac_dir" && ac_dir=.
6661 tmp_nm="$ac_dir/$lt_tmp_nm"
6662 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6663 # Check to see if the nm accepts a BSD-compat flag.
6664 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6665 # nm: unknown option "B" ignored
6666 # Tru64's nm complains that /dev/null is an invalid object file
6667 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6668 */dev/null* | *'Invalid file or object type'*)
6669 lt_cv_path_NM="$tmp_nm -B"
6670 break
6671 ;;
6672 *)
6673 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6674 */dev/null*)
6675 lt_cv_path_NM="$tmp_nm -p"
6676 break
6677 ;;
6678 *)
6679 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6680 continue # so that we can try to find one that supports BSD flags
6681 ;;
6682 esac
6683 ;;
6684 esac
6685 fi
6686 done
6687 IFS="$lt_save_ifs"
6688 done
6689 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6690fi
6691fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006692{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6693echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006694NM="$lt_cv_path_NM"
6695
6696
6697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006698{ echo "$as_me:$LINENO: checking for GNU make" >&5
6699echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6700if test "${llvm_cv_gnu_make_command+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006702else
6703 llvm_cv_gnu_make_command=''
6704 for a in "$MAKE" make gmake gnumake ; do
6705 if test -z "$a" ; then continue ; fi ;
6706 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6707 then
6708 llvm_cv_gnu_make_command=$a ;
6709 break;
6710 fi
6711 done
6712fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006713{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6714echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006715 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6716 ifGNUmake='' ;
6717 else
6718 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006719 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6720echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006721 fi
6722
6723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006724{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6725echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006726LN_S=$as_ln_s
6727if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006728 { echo "$as_me:$LINENO: result: yes" >&5
6729echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006731 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6732echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006733fi
6734
6735# Extract the first word of "cmp", so it can be a program name with args.
6736set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739if test "${ac_cv_path_CMP+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006741else
6742 case $CMP in
6743 [\\/]* | ?:[\\/]*)
6744 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6745 ;;
6746 *)
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748for as_dir in $PATH
6749do
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 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 +00006754 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006756 break 2
6757 fi
6758done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006759done
Reid Spencera773bd52006-08-04 18:18:08 +00006760IFS=$as_save_IFS
6761
6762 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6763 ;;
6764esac
6765fi
6766CMP=$ac_cv_path_CMP
6767if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006768 { echo "$as_me:$LINENO: result: $CMP" >&5
6769echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006770else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006771 { echo "$as_me:$LINENO: result: no" >&5
6772echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006773fi
6774
6775
6776# Extract the first word of "cp", so it can be a program name with args.
6777set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006778{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780if test "${ac_cv_path_CP+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006782else
6783 case $CP in
6784 [\\/]* | ?:[\\/]*)
6785 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6786 ;;
6787 *)
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 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 +00006795 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006797 break 2
6798 fi
6799done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006800done
Reid Spencera773bd52006-08-04 18:18:08 +00006801IFS=$as_save_IFS
6802
6803 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6804 ;;
6805esac
6806fi
6807CP=$ac_cv_path_CP
6808if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006809 { echo "$as_me:$LINENO: result: $CP" >&5
6810echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006811else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006812 { echo "$as_me:$LINENO: result: no" >&5
6813echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006814fi
6815
6816
6817# Extract the first word of "date", so it can be a program name with args.
6818set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821if test "${ac_cv_path_DATE+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006823else
6824 case $DATE in
6825 [\\/]* | ?:[\\/]*)
6826 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6827 ;;
6828 *)
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 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 +00006836 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006838 break 2
6839 fi
6840done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841done
Reid Spencera773bd52006-08-04 18:18:08 +00006842IFS=$as_save_IFS
6843
6844 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6845 ;;
6846esac
6847fi
6848DATE=$ac_cv_path_DATE
6849if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006850 { echo "$as_me:$LINENO: result: $DATE" >&5
6851echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006852else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006853 { echo "$as_me:$LINENO: result: no" >&5
6854echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006855fi
6856
6857
6858# Extract the first word of "find", so it can be a program name with args.
6859set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862if test "${ac_cv_path_FIND+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006864else
6865 case $FIND in
6866 [\\/]* | ?:[\\/]*)
6867 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6868 ;;
6869 *)
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871for as_dir in $PATH
6872do
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 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 +00006877 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006879 break 2
6880 fi
6881done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006882done
Reid Spencera773bd52006-08-04 18:18:08 +00006883IFS=$as_save_IFS
6884
6885 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6886 ;;
6887esac
6888fi
6889FIND=$ac_cv_path_FIND
6890if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006891 { echo "$as_me:$LINENO: result: $FIND" >&5
6892echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006893else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006894 { echo "$as_me:$LINENO: result: no" >&5
6895echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006896fi
6897
6898
6899# Extract the first word of "grep", so it can be a program name with args.
6900set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903if test "${ac_cv_path_GREP+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006905else
6906 case $GREP in
6907 [\\/]* | ?:[\\/]*)
6908 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6909 ;;
6910 *)
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 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 +00006918 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006920 break 2
6921 fi
6922done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006923done
Reid Spencera773bd52006-08-04 18:18:08 +00006924IFS=$as_save_IFS
6925
6926 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6927 ;;
6928esac
6929fi
6930GREP=$ac_cv_path_GREP
6931if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006932 { echo "$as_me:$LINENO: result: $GREP" >&5
6933echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006934else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006935 { echo "$as_me:$LINENO: result: no" >&5
6936echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006937fi
6938
6939
6940# Extract the first word of "mkdir", so it can be a program name with args.
6941set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944if test "${ac_cv_path_MKDIR+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006946else
6947 case $MKDIR in
6948 [\\/]* | ?:[\\/]*)
6949 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6950 ;;
6951 *)
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953for as_dir in $PATH
6954do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 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 +00006959 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006961 break 2
6962 fi
6963done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006964done
Reid Spencera773bd52006-08-04 18:18:08 +00006965IFS=$as_save_IFS
6966
6967 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6968 ;;
6969esac
6970fi
6971MKDIR=$ac_cv_path_MKDIR
6972if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006973 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6974echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006975else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006976 { echo "$as_me:$LINENO: result: no" >&5
6977echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006978fi
6979
6980
6981# Extract the first word of "mv", so it can be a program name with args.
6982set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6985if test "${ac_cv_path_MV+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006987else
6988 case $MV in
6989 [\\/]* | ?:[\\/]*)
6990 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6991 ;;
6992 *)
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH
6995do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 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 +00007000 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007002 break 2
7003 fi
7004done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007005done
Reid Spencera773bd52006-08-04 18:18:08 +00007006IFS=$as_save_IFS
7007
7008 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7009 ;;
7010esac
7011fi
7012MV=$ac_cv_path_MV
7013if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007014 { echo "$as_me:$LINENO: result: $MV" >&5
7015echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007016else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007017 { echo "$as_me:$LINENO: result: no" >&5
7018echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007019fi
7020
7021
7022if test -n "$ac_tool_prefix"; then
7023 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7024set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027if test "${ac_cv_prog_RANLIB+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007029else
7030 if test -n "$RANLIB"; then
7031 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7032else
7033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034for as_dir in $PATH
7035do
7036 IFS=$as_save_IFS
7037 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007040 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007042 break 2
7043 fi
7044done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007045done
Reid Spencera773bd52006-08-04 18:18:08 +00007046IFS=$as_save_IFS
7047
7048fi
7049fi
7050RANLIB=$ac_cv_prog_RANLIB
7051if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007052 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7053echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007054else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007055 { echo "$as_me:$LINENO: result: no" >&5
7056echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007057fi
7058
7059
7060fi
7061if test -z "$ac_cv_prog_RANLIB"; then
7062 ac_ct_RANLIB=$RANLIB
7063 # Extract the first word of "ranlib", so it can be a program name with args.
7064set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007065{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007069else
7070 if test -n "$ac_ct_RANLIB"; then
7071 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7072else
7073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH
7075do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 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 +00007080 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007082 break 2
7083 fi
7084done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007085done
Reid Spencera773bd52006-08-04 18:18:08 +00007086IFS=$as_save_IFS
7087
7088fi
7089fi
7090ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7091if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7093echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007094else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007095 { echo "$as_me:$LINENO: result: no" >&5
7096echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007097fi
7098
7099 if test "x$ac_ct_RANLIB" = x; then
7100 RANLIB=":"
7101 else
7102 case $cross_compiling:$ac_tool_warned in
7103yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007104{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7105whose name does not start with the host triplet. If you think this
7106configuration is useful to you, please write to autoconf@gnu.org." >&5
7107echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7108whose name does not start with the host triplet. If you think this
7109configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007110ac_tool_warned=yes ;;
7111esac
7112 RANLIB=$ac_ct_RANLIB
7113 fi
7114else
7115 RANLIB="$ac_cv_prog_RANLIB"
7116fi
7117
Torok Edwin871384f2010-01-26 08:50:50 +00007118if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7120set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007121{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123if test "${ac_cv_prog_AR+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007125else
7126 if test -n "$AR"; then
7127 ac_cv_prog_AR="$AR" # Let the user override the test.
7128else
7129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130for as_dir in $PATH
7131do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 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 +00007136 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007138 break 2
7139 fi
7140done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007141done
Torok Edwin871384f2010-01-26 08:50:50 +00007142IFS=$as_save_IFS
7143
7144fi
7145fi
7146AR=$ac_cv_prog_AR
7147if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007148 { echo "$as_me:$LINENO: result: $AR" >&5
7149echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007150else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007151 { echo "$as_me:$LINENO: result: no" >&5
7152echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007153fi
7154
7155
7156fi
7157if test -z "$ac_cv_prog_AR"; then
7158 ac_ct_AR=$AR
7159 # Extract the first word of "ar", so it can be a program name with args.
7160set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007161{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007165else
7166 if test -n "$ac_ct_AR"; then
7167 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7168else
7169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH
7171do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 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 +00007176 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007178 break 2
7179 fi
7180done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007181done
Torok Edwin871384f2010-01-26 08:50:50 +00007182IFS=$as_save_IFS
7183
7184fi
7185fi
7186ac_ct_AR=$ac_cv_prog_ac_ct_AR
7187if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007188 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7189echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007190else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007191 { echo "$as_me:$LINENO: result: no" >&5
7192echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007193fi
7194
7195 if test "x$ac_ct_AR" = x; then
7196 AR="false"
7197 else
7198 case $cross_compiling:$ac_tool_warned in
7199yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007200{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7201whose name does not start with the host triplet. If you think this
7202configuration is useful to you, please write to autoconf@gnu.org." >&5
7203echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7204whose name does not start with the host triplet. If you think this
7205configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007206ac_tool_warned=yes ;;
7207esac
7208 AR=$ac_ct_AR
7209 fi
7210else
7211 AR="$ac_cv_prog_AR"
7212fi
7213
Reid Spencera773bd52006-08-04 18:18:08 +00007214# Extract the first word of "rm", so it can be a program name with args.
7215set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007216{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7218if test "${ac_cv_path_RM+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007220else
7221 case $RM in
7222 [\\/]* | ?:[\\/]*)
7223 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7224 ;;
7225 *)
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227for as_dir in $PATH
7228do
7229 IFS=$as_save_IFS
7230 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007231 for ac_exec_ext in '' $ac_executable_extensions; do
7232 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 +00007233 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007235 break 2
7236 fi
7237done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007238done
Reid Spencera773bd52006-08-04 18:18:08 +00007239IFS=$as_save_IFS
7240
7241 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7242 ;;
7243esac
7244fi
7245RM=$ac_cv_path_RM
7246if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007247 { echo "$as_me:$LINENO: result: $RM" >&5
7248echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007249else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007250 { echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007252fi
7253
7254
7255# Extract the first word of "sed", so it can be a program name with args.
7256set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259if test "${ac_cv_path_SED+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007261else
7262 case $SED in
7263 [\\/]* | ?:[\\/]*)
7264 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7265 ;;
7266 *)
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 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 +00007274 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007276 break 2
7277 fi
7278done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007279done
Reid Spencera773bd52006-08-04 18:18:08 +00007280IFS=$as_save_IFS
7281
7282 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7283 ;;
7284esac
7285fi
7286SED=$ac_cv_path_SED
7287if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007288 { echo "$as_me:$LINENO: result: $SED" >&5
7289echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007290else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007291 { echo "$as_me:$LINENO: result: no" >&5
7292echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007293fi
7294
7295
7296# Extract the first word of "tar", so it can be a program name with args.
7297set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300if test "${ac_cv_path_TAR+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007302else
7303 case $TAR in
7304 [\\/]* | ?:[\\/]*)
7305 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7306 ;;
7307 *)
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 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 +00007315 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007317 break 2
7318 fi
7319done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007320done
Reid Spencera773bd52006-08-04 18:18:08 +00007321IFS=$as_save_IFS
7322
7323 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7324 ;;
7325esac
7326fi
7327TAR=$ac_cv_path_TAR
7328if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007329 { echo "$as_me:$LINENO: result: $TAR" >&5
7330echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007331else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007332 { echo "$as_me:$LINENO: result: no" >&5
7333echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007334fi
7335
7336
7337# Extract the first word of "pwd", so it can be a program name with args.
7338set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7341if test "${ac_cv_path_BINPWD+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007343else
7344 case $BINPWD in
7345 [\\/]* | ?:[\\/]*)
7346 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7347 ;;
7348 *)
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350for as_dir in $PATH
7351do
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 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 +00007356 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007358 break 2
7359 fi
7360done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007361done
Reid Spencera773bd52006-08-04 18:18:08 +00007362IFS=$as_save_IFS
7363
7364 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7365 ;;
7366esac
7367fi
7368BINPWD=$ac_cv_path_BINPWD
7369if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007370 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7371echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007372else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007373 { echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007375fi
7376
7377
7378
7379# Extract the first word of "Graphviz", so it can be a program name with args.
7380set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007385else
7386 case $GRAPHVIZ in
7387 [\\/]* | ?:[\\/]*)
7388 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7389 ;;
7390 *)
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392for as_dir in $PATH
7393do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 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 +00007398 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007400 break 2
7401 fi
7402done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007403done
Reid Spencera773bd52006-08-04 18:18:08 +00007404IFS=$as_save_IFS
7405
7406 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7407 ;;
7408esac
7409fi
7410GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7411if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007412 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7413echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007415 { echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007417fi
7418
7419
7420if test "$GRAPHVIZ" != "echo Graphviz" ; then
7421
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007422cat >>confdefs.h <<\_ACEOF
7423#define HAVE_GRAPHVIZ 1
7424_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007425
Jeff Cohen28783c32007-01-12 18:22:38 +00007426 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007427 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7428 fi
7429
7430cat >>confdefs.h <<_ACEOF
7431#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7432_ACEOF
7433
7434fi
7435# Extract the first word of "dot", so it can be a program name with args.
7436set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7439if test "${ac_cv_path_DOT+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007441else
7442 case $DOT in
7443 [\\/]* | ?:[\\/]*)
7444 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7445 ;;
7446 *)
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448for as_dir in $PATH
7449do
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 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 +00007454 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007456 break 2
7457 fi
7458done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007459done
Reid Spencera773bd52006-08-04 18:18:08 +00007460IFS=$as_save_IFS
7461
7462 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7463 ;;
7464esac
7465fi
7466DOT=$ac_cv_path_DOT
7467if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007468 { echo "$as_me:$LINENO: result: $DOT" >&5
7469echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007470else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007471 { echo "$as_me:$LINENO: result: no" >&5
7472echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007473fi
7474
7475
7476if test "$DOT" != "echo dot" ; then
7477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007478cat >>confdefs.h <<\_ACEOF
7479#define HAVE_DOT 1
7480_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007481
Jeff Cohen28783c32007-01-12 18:22:38 +00007482 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007483 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7484 fi
7485
7486cat >>confdefs.h <<_ACEOF
7487#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7488_ACEOF
7489
7490fi
David Greenef0b9eff2009-07-09 17:16:26 +00007491# Extract the first word of "fdp", so it can be a program name with args.
7492set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495if test "${ac_cv_path_FDP+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007497else
7498 case $FDP in
7499 [\\/]* | ?:[\\/]*)
7500 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7501 ;;
7502 *)
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 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 +00007510 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007512 break 2
7513 fi
7514done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007515done
David Greenef0b9eff2009-07-09 17:16:26 +00007516IFS=$as_save_IFS
7517
7518 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7519 ;;
7520esac
7521fi
7522FDP=$ac_cv_path_FDP
7523if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007524 { echo "$as_me:$LINENO: result: $FDP" >&5
7525echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007526else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007527 { echo "$as_me:$LINENO: result: no" >&5
7528echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007529fi
7530
7531
7532if test "$FDP" != "echo fdp" ; then
7533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007534cat >>confdefs.h <<\_ACEOF
7535#define HAVE_FDP 1
7536_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007537
7538 if test "$llvm_cv_os_type" = "MingW" ; then
7539 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7540 fi
7541
7542cat >>confdefs.h <<_ACEOF
7543#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7544_ACEOF
7545
7546fi
7547# Extract the first word of "neato", so it can be a program name with args.
7548set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007549{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7551if test "${ac_cv_path_NEATO+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007553else
7554 case $NEATO in
7555 [\\/]* | ?:[\\/]*)
7556 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7557 ;;
7558 *)
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 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 +00007566 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007568 break 2
7569 fi
7570done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007571done
David Greenef0b9eff2009-07-09 17:16:26 +00007572IFS=$as_save_IFS
7573
7574 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7575 ;;
7576esac
7577fi
7578NEATO=$ac_cv_path_NEATO
7579if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007580 { echo "$as_me:$LINENO: result: $NEATO" >&5
7581echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007582else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007583 { echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007585fi
7586
7587
7588if test "$NEATO" != "echo neato" ; then
7589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007590cat >>confdefs.h <<\_ACEOF
7591#define HAVE_NEATO 1
7592_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007593
7594 if test "$llvm_cv_os_type" = "MingW" ; then
7595 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7596 fi
7597
7598cat >>confdefs.h <<_ACEOF
7599#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7600_ACEOF
7601
7602fi
7603# Extract the first word of "twopi", so it can be a program name with args.
7604set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607if test "${ac_cv_path_TWOPI+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007609else
7610 case $TWOPI in
7611 [\\/]* | ?:[\\/]*)
7612 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7613 ;;
7614 *)
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 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 +00007622 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007624 break 2
7625 fi
7626done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007627done
David Greenef0b9eff2009-07-09 17:16:26 +00007628IFS=$as_save_IFS
7629
7630 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7631 ;;
7632esac
7633fi
7634TWOPI=$ac_cv_path_TWOPI
7635if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007636 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7637echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007638else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007639 { echo "$as_me:$LINENO: result: no" >&5
7640echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007641fi
7642
7643
7644if test "$TWOPI" != "echo twopi" ; then
7645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007646cat >>confdefs.h <<\_ACEOF
7647#define HAVE_TWOPI 1
7648_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007649
7650 if test "$llvm_cv_os_type" = "MingW" ; then
7651 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7652 fi
7653
7654cat >>confdefs.h <<_ACEOF
7655#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7656_ACEOF
7657
7658fi
7659# Extract the first word of "circo", so it can be a program name with args.
7660set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663if test "${ac_cv_path_CIRCO+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007665else
7666 case $CIRCO in
7667 [\\/]* | ?:[\\/]*)
7668 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7669 ;;
7670 *)
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 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 +00007678 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007680 break 2
7681 fi
7682done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007683done
David Greenef0b9eff2009-07-09 17:16:26 +00007684IFS=$as_save_IFS
7685
7686 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7687 ;;
7688esac
7689fi
7690CIRCO=$ac_cv_path_CIRCO
7691if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007692 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7693echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007694else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007695 { echo "$as_me:$LINENO: result: no" >&5
7696echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007697fi
7698
7699
7700if test "$CIRCO" != "echo circo" ; then
7701
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007702cat >>confdefs.h <<\_ACEOF
7703#define HAVE_CIRCO 1
7704_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007705
7706 if test "$llvm_cv_os_type" = "MingW" ; then
7707 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7708 fi
7709
7710cat >>confdefs.h <<_ACEOF
7711#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7712_ACEOF
7713
7714fi
Reid Spencera773bd52006-08-04 18:18:08 +00007715for ac_prog in gv gsview32
7716do
7717 # Extract the first word of "$ac_prog", so it can be a program name with args.
7718set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007719{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7721if test "${ac_cv_path_GV+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007723else
7724 case $GV in
7725 [\\/]* | ?:[\\/]*)
7726 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7727 ;;
7728 *)
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730for as_dir in $PATH
7731do
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 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 +00007736 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007738 break 2
7739 fi
7740done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007741done
Reid Spencera773bd52006-08-04 18:18:08 +00007742IFS=$as_save_IFS
7743
7744 ;;
7745esac
7746fi
7747GV=$ac_cv_path_GV
7748if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007749 { echo "$as_me:$LINENO: result: $GV" >&5
7750echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007751else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752 { echo "$as_me:$LINENO: result: no" >&5
7753echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007754fi
7755
7756
7757 test -n "$GV" && break
7758done
7759test -n "$GV" || GV="echo gv"
7760
7761if test "$GV" != "echo gv" ; then
7762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007763cat >>confdefs.h <<\_ACEOF
7764#define HAVE_GV 1
7765_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007766
Jeff Cohen28783c32007-01-12 18:22:38 +00007767 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007768 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7769 fi
7770
7771cat >>confdefs.h <<_ACEOF
7772#define LLVM_PATH_GV "$GV${EXEEXT}"
7773_ACEOF
7774
7775fi
7776# Extract the first word of "dotty", so it can be a program name with args.
7777set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007778{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7780if test "${ac_cv_path_DOTTY+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007782else
7783 case $DOTTY in
7784 [\\/]* | ?:[\\/]*)
7785 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7786 ;;
7787 *)
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789for as_dir in $PATH
7790do
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 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 +00007795 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007797 break 2
7798 fi
7799done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007800done
Reid Spencera773bd52006-08-04 18:18:08 +00007801IFS=$as_save_IFS
7802
7803 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7804 ;;
7805esac
7806fi
7807DOTTY=$ac_cv_path_DOTTY
7808if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007809 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7810echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007811else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007812 { echo "$as_me:$LINENO: result: no" >&5
7813echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007814fi
7815
7816
7817if test "$DOTTY" != "echo dotty" ; then
7818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007819cat >>confdefs.h <<\_ACEOF
7820#define HAVE_DOTTY 1
7821_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007822
Jeff Cohen28783c32007-01-12 18:22:38 +00007823 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007824 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7825 fi
7826
7827cat >>confdefs.h <<_ACEOF
7828#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7829_ACEOF
7830
7831fi
7832
7833
7834# Extract the first word of "perl", so it can be a program name with args.
7835set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007836{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7838if test "${ac_cv_path_PERL+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007840else
7841 case $PERL in
7842 [\\/]* | ?:[\\/]*)
7843 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7844 ;;
7845 *)
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847for as_dir in $PATH
7848do
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 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 +00007853 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007855 break 2
7856 fi
7857done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007858done
Reid Spencera773bd52006-08-04 18:18:08 +00007859IFS=$as_save_IFS
7860
7861 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7862 ;;
7863esac
7864fi
7865PERL=$ac_cv_path_PERL
7866if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007867 { echo "$as_me:$LINENO: result: $PERL" >&5
7868echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007869else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007870 { echo "$as_me:$LINENO: result: no" >&5
7871echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007872fi
7873
7874
7875if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007876 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7877echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007878 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007879 { echo "$as_me:$LINENO: result: yes" >&5
7880echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007881 else
7882 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007883 { echo "$as_me:$LINENO: result: not found" >&5
7884echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007885 fi
7886fi
7887
7888
7889if test x"$PERL" = xnone; then
7890 HAVE_PERL=0
7891
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007892 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7893echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7894 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007895else
7896 HAVE_PERL=1
7897
7898fi
7899
7900# Find a good install program. We prefer a C program (faster),
7901# so one script is as good as another. But avoid the broken or
7902# incompatible versions:
7903# SysV /etc/install, /usr/sbin/install
7904# SunOS /usr/etc/install
7905# IRIX /sbin/install
7906# AIX /bin/install
7907# AmigaOS /C/install, which installs bootblocks on floppy discs
7908# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7909# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7910# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7911# OS/2's system install, which has a completely different semantic
7912# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007913{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7914echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007915if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007916if test "${ac_cv_path_install+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007918else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920for as_dir in $PATH
7921do
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007924 # Account for people who put trailing slashes in PATH elements.
7925case $as_dir/ in
7926 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007927 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007928 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007929 /usr/ucb/* ) ;;
7930 *)
7931 # OSF1 and SCO ODT 3.0 have their own names for install.
7932 # Don't use installbsd from OSF since it installs stuff as root
7933 # by default.
7934 for ac_prog in ginstall scoinst install; do
7935 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007936 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 +00007937 if test $ac_prog = install &&
7938 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7939 # AIX install. It has an incompatible calling convention.
7940 :
7941 elif test $ac_prog = install &&
7942 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7943 # program-specific install script used by HP pwplus--don't use.
7944 :
7945 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007946 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7947 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007948 fi
7949 fi
7950 done
7951 done
7952 ;;
7953esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007954done
Reid Spencera773bd52006-08-04 18:18:08 +00007955IFS=$as_save_IFS
7956
7957
7958fi
7959 if test "${ac_cv_path_install+set}" = set; then
7960 INSTALL=$ac_cv_path_install
7961 else
7962 # As a last resort, use the slow shell script. Don't cache a
7963 # value for INSTALL within a source directory, because that will
7964 # break other packages using the cache if that directory is
7965 # removed, or if the value is a relative name.
7966 INSTALL=$ac_install_sh
7967 fi
7968fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007969{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7970echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007971
7972# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7973# It thinks the first close brace ends the variable substitution.
7974test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7975
7976test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7977
7978test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7979
7980
7981# Extract the first word of "bzip2", so it can be a program name with args.
7982set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7985if test "${ac_cv_path_BZIP2+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007987else
7988 case $BZIP2 in
7989 [\\/]* | ?:[\\/]*)
7990 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7991 ;;
7992 *)
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994for as_dir in $PATH
7995do
7996 IFS=$as_save_IFS
7997 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 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 +00008000 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008002 break 2
8003 fi
8004done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008005done
Reid Spencera773bd52006-08-04 18:18:08 +00008006IFS=$as_save_IFS
8007
Reid Spencera773bd52006-08-04 18:18:08 +00008008 ;;
8009esac
8010fi
8011BZIP2=$ac_cv_path_BZIP2
8012if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008013 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8014echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008015else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008016 { echo "$as_me:$LINENO: result: no" >&5
8017echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008018fi
8019
8020
mike-m68cb3192010-05-06 23:45:43 +00008021# Extract the first word of "cat", so it can be a program name with args.
8022set dummy cat; ac_word=$2
8023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8025if test "${ac_cv_path_CAT+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8027else
8028 case $CAT in
8029 [\\/]* | ?:[\\/]*)
8030 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8031 ;;
8032 *)
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034for as_dir in $PATH
8035do
8036 IFS=$as_save_IFS
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8040 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 break 2
8043 fi
8044done
8045done
8046IFS=$as_save_IFS
8047
8048 ;;
8049esac
8050fi
8051CAT=$ac_cv_path_CAT
8052if test -n "$CAT"; then
8053 { echo "$as_me:$LINENO: result: $CAT" >&5
8054echo "${ECHO_T}$CAT" >&6; }
8055else
8056 { echo "$as_me:$LINENO: result: no" >&5
8057echo "${ECHO_T}no" >&6; }
8058fi
8059
8060
Reid Spencera773bd52006-08-04 18:18:08 +00008061# Extract the first word of "doxygen", so it can be a program name with args.
8062set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008063{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8065if test "${ac_cv_path_DOXYGEN+set}" = set; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008067else
8068 case $DOXYGEN in
8069 [\\/]* | ?:[\\/]*)
8070 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8071 ;;
8072 *)
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074for as_dir in $PATH
8075do
8076 IFS=$as_save_IFS
8077 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 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 +00008080 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008082 break 2
8083 fi
8084done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008085done
Reid Spencera773bd52006-08-04 18:18:08 +00008086IFS=$as_save_IFS
8087
Reid Spencera773bd52006-08-04 18:18:08 +00008088 ;;
8089esac
8090fi
8091DOXYGEN=$ac_cv_path_DOXYGEN
8092if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008093 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8094echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008095else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008096 { echo "$as_me:$LINENO: result: no" >&5
8097echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008098fi
8099
8100
Reid Spencera773bd52006-08-04 18:18:08 +00008101# Extract the first word of "groff", so it can be a program name with args.
8102set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8105if test "${ac_cv_path_GROFF+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008107else
8108 case $GROFF in
8109 [\\/]* | ?:[\\/]*)
8110 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8111 ;;
8112 *)
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114for as_dir in $PATH
8115do
8116 IFS=$as_save_IFS
8117 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 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 +00008120 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008122 break 2
8123 fi
8124done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008125done
Reid Spencera773bd52006-08-04 18:18:08 +00008126IFS=$as_save_IFS
8127
Reid Spencera773bd52006-08-04 18:18:08 +00008128 ;;
8129esac
8130fi
8131GROFF=$ac_cv_path_GROFF
8132if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008133 { echo "$as_me:$LINENO: result: $GROFF" >&5
8134echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008135else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008136 { echo "$as_me:$LINENO: result: no" >&5
8137echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008138fi
8139
8140
8141# Extract the first word of "gzip", so it can be a program name with args.
8142set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008143{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8145if test "${ac_cv_path_GZIP+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008147else
8148 case $GZIP in
8149 [\\/]* | ?:[\\/]*)
8150 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8151 ;;
8152 *)
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154for as_dir in $PATH
8155do
8156 IFS=$as_save_IFS
8157 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008158 for ac_exec_ext in '' $ac_executable_extensions; do
8159 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 +00008160 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008162 break 2
8163 fi
8164done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008165done
Reid Spencera773bd52006-08-04 18:18:08 +00008166IFS=$as_save_IFS
8167
Reid Spencera773bd52006-08-04 18:18:08 +00008168 ;;
8169esac
8170fi
8171GZIP=$ac_cv_path_GZIP
8172if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008173 { echo "$as_me:$LINENO: result: $GZIP" >&5
8174echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008175else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008176 { echo "$as_me:$LINENO: result: no" >&5
8177echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008178fi
8179
8180
8181# Extract the first word of "pod2html", so it can be a program name with args.
8182set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8185if test "${ac_cv_path_POD2HTML+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008187else
8188 case $POD2HTML in
8189 [\\/]* | ?:[\\/]*)
8190 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8191 ;;
8192 *)
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194for as_dir in $PATH
8195do
8196 IFS=$as_save_IFS
8197 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 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 +00008200 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008202 break 2
8203 fi
8204done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008205done
Reid Spencera773bd52006-08-04 18:18:08 +00008206IFS=$as_save_IFS
8207
Reid Spencera773bd52006-08-04 18:18:08 +00008208 ;;
8209esac
8210fi
8211POD2HTML=$ac_cv_path_POD2HTML
8212if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008213 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8214echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008215else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008216 { echo "$as_me:$LINENO: result: no" >&5
8217echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008218fi
8219
8220
8221# Extract the first word of "pod2man", so it can be a program name with args.
8222set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008223{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8225if test "${ac_cv_path_POD2MAN+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008227else
8228 case $POD2MAN in
8229 [\\/]* | ?:[\\/]*)
8230 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8231 ;;
8232 *)
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234for as_dir in $PATH
8235do
8236 IFS=$as_save_IFS
8237 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 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 +00008240 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008242 break 2
8243 fi
8244done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008245done
Reid Spencera773bd52006-08-04 18:18:08 +00008246IFS=$as_save_IFS
8247
Reid Spencera773bd52006-08-04 18:18:08 +00008248 ;;
8249esac
8250fi
8251POD2MAN=$ac_cv_path_POD2MAN
8252if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008253 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8254echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008255else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008256 { echo "$as_me:$LINENO: result: no" >&5
8257echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008258fi
8259
8260
mike-m68cb3192010-05-06 23:45:43 +00008261# Extract the first word of "pdfroff", so it can be a program name with args.
8262set dummy pdfroff; ac_word=$2
8263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8265if test "${ac_cv_path_PDFROFF+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8267else
8268 case $PDFROFF in
8269 [\\/]* | ?:[\\/]*)
8270 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8271 ;;
8272 *)
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274for as_dir in $PATH
8275do
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8280 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284done
8285done
8286IFS=$as_save_IFS
8287
8288 ;;
8289esac
8290fi
8291PDFROFF=$ac_cv_path_PDFROFF
8292if test -n "$PDFROFF"; then
8293 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8294echo "${ECHO_T}$PDFROFF" >&6; }
8295else
8296 { echo "$as_me:$LINENO: result: no" >&5
8297echo "${ECHO_T}no" >&6; }
8298fi
8299
8300
Reid Spencera773bd52006-08-04 18:18:08 +00008301# Extract the first word of "runtest", so it can be a program name with args.
8302set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8305if test "${ac_cv_path_RUNTEST+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008307else
8308 case $RUNTEST in
8309 [\\/]* | ?:[\\/]*)
8310 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8311 ;;
8312 *)
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314for as_dir in $PATH
8315do
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 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 +00008320 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008322 break 2
8323 fi
8324done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008325done
Reid Spencera773bd52006-08-04 18:18:08 +00008326IFS=$as_save_IFS
8327
Reid Spencera773bd52006-08-04 18:18:08 +00008328 ;;
8329esac
8330fi
8331RUNTEST=$ac_cv_path_RUNTEST
8332if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008333 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8334echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008336 { echo "$as_me:$LINENO: result: no" >&5
8337echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008338fi
8339
8340
8341
8342no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008343{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8344echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008345
8346# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008347if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008348 withval=$with_tclinclude; with_tclinclude=${withval}
8349else
8350 with_tclinclude=''
8351fi
8352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008353if test "${ac_cv_path_tclsh+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008355else
8356
8357if test x"${with_tclinclude}" != x ; then
8358 if test -f ${with_tclinclude}/tclsh ; then
8359 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8360 elif test -f ${with_tclinclude}/src/tclsh ; then
8361 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8362 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008363 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8364echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8365 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008366 fi
8367fi
Torok Edwin871384f2010-01-26 08:50:50 +00008368fi
8369
Reid Spencera773bd52006-08-04 18:18:08 +00008370
8371if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008372 { echo "$as_me:$LINENO: result: none" >&5
8373echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008374 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
8375do
8376 # Extract the first word of "$ac_prog", so it can be a program name with args.
8377set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8380if test "${ac_cv_path_TCLSH+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008382else
8383 case $TCLSH in
8384 [\\/]* | ?:[\\/]*)
8385 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8386 ;;
8387 *)
8388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389for as_dir in $PATH
8390do
8391 IFS=$as_save_IFS
8392 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 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 +00008395 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008397 break 2
8398 fi
8399done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008400done
Reid Spencera773bd52006-08-04 18:18:08 +00008401IFS=$as_save_IFS
8402
8403 ;;
8404esac
8405fi
8406TCLSH=$ac_cv_path_TCLSH
8407if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008408 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8409echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008410else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008411 { echo "$as_me:$LINENO: result: no" >&5
8412echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008413fi
8414
8415
8416 test -n "$TCLSH" && break
8417done
8418
8419 if test x"${TCLSH}" = x ; then
8420 ac_cv_path_tclsh='';
8421 else
8422 ac_cv_path_tclsh="${TCLSH}";
8423 fi
8424else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008425 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8426echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008427 TCLSH="${ac_cv_path_tclsh}"
8428
8429fi
8430
Reid Spencera773bd52006-08-04 18:18:08 +00008431# Extract the first word of "zip", so it can be a program name with args.
8432set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8435if test "${ac_cv_path_ZIP+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008437else
8438 case $ZIP in
8439 [\\/]* | ?:[\\/]*)
8440 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8441 ;;
8442 *)
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444for as_dir in $PATH
8445do
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008448 for ac_exec_ext in '' $ac_executable_extensions; do
8449 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 +00008450 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008452 break 2
8453 fi
8454done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008455done
Reid Spencera773bd52006-08-04 18:18:08 +00008456IFS=$as_save_IFS
8457
Reid Spencera773bd52006-08-04 18:18:08 +00008458 ;;
8459esac
8460fi
8461ZIP=$ac_cv_path_ZIP
8462if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008463 { echo "$as_me:$LINENO: result: $ZIP" >&5
8464echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008465else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008466 { echo "$as_me:$LINENO: result: no" >&5
8467echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008468fi
8469
8470
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008471for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008472do
8473 # Extract the first word of "$ac_prog", so it can be a program name with args.
8474set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8477if test "${ac_cv_path_OCAMLC+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008479else
8480 case $OCAMLC in
8481 [\\/]* | ?:[\\/]*)
8482 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8483 ;;
8484 *)
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486for as_dir in $PATH
8487do
8488 IFS=$as_save_IFS
8489 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 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 +00008492 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008494 break 2
8495 fi
8496done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008497done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008498IFS=$as_save_IFS
8499
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008500 ;;
8501esac
8502fi
8503OCAMLC=$ac_cv_path_OCAMLC
8504if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008505 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8506echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008507else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008508 { echo "$as_me:$LINENO: result: no" >&5
8509echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008510fi
8511
8512
Gordon Henriksene7072162008-03-07 18:20:01 +00008513 test -n "$OCAMLC" && break
8514done
8515
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008516for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008517do
8518 # Extract the first word of "$ac_prog", so it can be a program name with args.
8519set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008520{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8522if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008524else
8525 case $OCAMLOPT in
8526 [\\/]* | ?:[\\/]*)
8527 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8528 ;;
8529 *)
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531for as_dir in $PATH
8532do
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 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 +00008537 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008539 break 2
8540 fi
8541done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008542done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008543IFS=$as_save_IFS
8544
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008545 ;;
8546esac
8547fi
8548OCAMLOPT=$ac_cv_path_OCAMLOPT
8549if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008550 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8551echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008553 { echo "$as_me:$LINENO: result: no" >&5
8554echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008555fi
8556
8557
Gordon Henriksene7072162008-03-07 18:20:01 +00008558 test -n "$OCAMLOPT" && break
8559done
8560
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008561for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008562do
8563 # Extract the first word of "$ac_prog", so it can be a program name with args.
8564set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8567if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008569else
8570 case $OCAMLDEP in
8571 [\\/]* | ?:[\\/]*)
8572 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8573 ;;
8574 *)
8575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576for as_dir in $PATH
8577do
8578 IFS=$as_save_IFS
8579 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008580 for ac_exec_ext in '' $ac_executable_extensions; do
8581 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 +00008582 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008584 break 2
8585 fi
8586done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008587done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008588IFS=$as_save_IFS
8589
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008590 ;;
8591esac
8592fi
8593OCAMLDEP=$ac_cv_path_OCAMLDEP
8594if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008595 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8596echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008597else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008598 { echo "$as_me:$LINENO: result: no" >&5
8599echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008600fi
8601
8602
Gordon Henriksene7072162008-03-07 18:20:01 +00008603 test -n "$OCAMLDEP" && break
8604done
8605
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008606for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008607do
8608 # Extract the first word of "$ac_prog", so it can be a program name with args.
8609set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8612if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008614else
8615 case $OCAMLDOC in
8616 [\\/]* | ?:[\\/]*)
8617 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8618 ;;
8619 *)
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621for as_dir in $PATH
8622do
8623 IFS=$as_save_IFS
8624 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 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 +00008627 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008629 break 2
8630 fi
8631done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008632done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008633IFS=$as_save_IFS
8634
8635 ;;
8636esac
8637fi
8638OCAMLDOC=$ac_cv_path_OCAMLDOC
8639if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008640 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8641echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008642else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008643 { echo "$as_me:$LINENO: result: no" >&5
8644echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008645fi
8646
8647
8648 test -n "$OCAMLDOC" && break
8649done
8650
Torok Edwincc499a42008-10-22 09:56:27 +00008651for ac_prog in gas as
8652do
8653 # Extract the first word of "$ac_prog", so it can be a program name with args.
8654set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8657if test "${ac_cv_path_GAS+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008659else
8660 case $GAS in
8661 [\\/]* | ?:[\\/]*)
8662 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8663 ;;
8664 *)
8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666for as_dir in $PATH
8667do
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 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 +00008672 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008674 break 2
8675 fi
8676done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008677done
Torok Edwincc499a42008-10-22 09:56:27 +00008678IFS=$as_save_IFS
8679
8680 ;;
8681esac
8682fi
8683GAS=$ac_cv_path_GAS
8684if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008685 { echo "$as_me:$LINENO: result: $GAS" >&5
8686echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008687else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008688 { echo "$as_me:$LINENO: result: no" >&5
8689echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008690fi
8691
8692
8693 test -n "$GAS" && break
8694done
8695
Reid Spencera773bd52006-08-04 18:18:08 +00008696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008697{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8698echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8699if test "${llvm_cv_link_use_r+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008701else
8702 ac_ext=c
8703ac_cpp='$CPP $CPPFLAGS'
8704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8706ac_compiler_gnu=$ac_cv_c_compiler_gnu
8707
8708 oldcflags="$CFLAGS"
8709 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008710 cat >conftest.$ac_ext <<_ACEOF
8711/* confdefs.h. */
8712_ACEOF
8713cat confdefs.h >>conftest.$ac_ext
8714cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008715/* end confdefs.h. */
8716
8717int
8718main ()
8719{
Dan Gohman39ed6782010-04-25 00:12:20 +00008720
Reid Spencera773bd52006-08-04 18:18:08 +00008721 ;
8722 return 0;
8723}
8724_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008725rm -f conftest.$ac_objext conftest$ac_exeext
8726if { (ac_try="$ac_link"
8727case "(($ac_try" in
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8730esac
8731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_link") 2>conftest.er1
8733 ac_status=$?
8734 grep -v '^ *+' conftest.er1 >conftest.err
8735 rm -f conftest.er1
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } &&
8739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8740 { (case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8743esac
8744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_try") 2>&5
8746 ac_status=$?
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; } &&
8749 { ac_try='test -s conftest$ac_exeext'
8750 { (case "(($ac_try" in
8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;;
8753esac
8754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755 (eval "$ac_try") 2>&5
8756 ac_status=$?
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008759 llvm_cv_link_use_r=yes
8760else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008761 echo "$as_me: failed program was:" >&5
8762sed 's/^/| /' conftest.$ac_ext >&5
8763
8764 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008765fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008766
Bill Wendlingebcceee2009-04-18 11:20:33 +00008767rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008768 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008769 CFLAGS="$oldcflags"
8770 ac_ext=c
8771ac_cpp='$CPP $CPPFLAGS'
8772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8774ac_compiler_gnu=$ac_cv_c_compiler_gnu
8775
8776
8777fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008778{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8779echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008780if test "$llvm_cv_link_use_r" = yes ; then
8781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008782cat >>confdefs.h <<\_ACEOF
8783#define HAVE_LINK_R 1
8784_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008785
8786 fi
8787
8788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008789{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8790echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8791if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008793else
8794 ac_ext=c
8795ac_cpp='$CPP $CPPFLAGS'
8796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8798ac_compiler_gnu=$ac_cv_c_compiler_gnu
8799
8800 oldcflags="$CFLAGS"
8801 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008802 cat >conftest.$ac_ext <<_ACEOF
8803/* confdefs.h. */
8804_ACEOF
8805cat confdefs.h >>conftest.$ac_ext
8806cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008807/* end confdefs.h. */
8808
8809int
8810main ()
8811{
Dan Gohman39ed6782010-04-25 00:12:20 +00008812
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008813 ;
8814 return 0;
8815}
8816_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008817rm -f conftest.$ac_objext conftest$ac_exeext
8818if { (ac_try="$ac_link"
8819case "(($ac_try" in
8820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821 *) ac_try_echo=$ac_try;;
8822esac
8823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8824 (eval "$ac_link") 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8832 { (case "(($ac_try" in
8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8835esac
8836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837 (eval "$ac_try") 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; } &&
8841 { ac_try='test -s conftest$ac_exeext'
8842 { (case "(($ac_try" in
8843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844 *) ac_try_echo=$ac_try;;
8845esac
8846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847 (eval "$ac_try") 2>&5
8848 ac_status=$?
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008851 llvm_cv_link_use_export_dynamic=yes
8852else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008853 echo "$as_me: failed program was:" >&5
8854sed 's/^/| /' conftest.$ac_ext >&5
8855
8856 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008857fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008858
Bill Wendlingebcceee2009-04-18 11:20:33 +00008859rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008860 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008861 CFLAGS="$oldcflags"
8862 ac_ext=c
8863ac_cpp='$CPP $CPPFLAGS'
8864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8866ac_compiler_gnu=$ac_cv_c_compiler_gnu
8867
8868
8869fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008870{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8871echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008872if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008874cat >>confdefs.h <<\_ACEOF
8875#define HAVE_LINK_EXPORT_DYNAMIC 1
8876_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008877
8878 fi
8879
8880
Dan Gohman391569c2010-04-16 22:59:06 +00008881{ echo "$as_me:$LINENO: checking for compiler -Wl,-retain-symbols-file option" >&5
8882echo $ECHO_N "checking for compiler -Wl,-retain-symbols-file option... $ECHO_C" >&6; }
8883if test "${llvm_cv_link_use_retain_symbols_file+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8885else
8886 ac_ext=c
8887ac_cpp='$CPP $CPPFLAGS'
8888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8890ac_compiler_gnu=$ac_cv_c_compiler_gnu
8891
8892 oldcflags="$CFLAGS"
8893
8894 # The following code is from the autoconf manual,
8895 # "11.13: Limitations of Usual Tools".
8896 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8897 # Use mktemp if possible; otherwise fall back on mkdir,
8898 # with $RANDOM to make collisions less likely.
8899 : ${TMPDIR=/tmp}
8900 {
8901 tmp=`
8902 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8903 ` &&
8904 test -n "$tmp" && test -d "$tmp"
8905 } || {
8906 tmp=$TMPDIR/foo$$-$RANDOM
8907 (umask 077 && mkdir "$tmp")
8908 } || exit $?
8909
8910 echo "main" > "$tmp/exports"
8911
8912 CFLAGS="$CFLAGS -Wl,-retain-symbols-file=$tmp/exports"
8913 cat >conftest.$ac_ext <<_ACEOF
8914/* confdefs.h. */
8915_ACEOF
8916cat confdefs.h >>conftest.$ac_ext
8917cat >>conftest.$ac_ext <<_ACEOF
8918/* end confdefs.h. */
8919
8920int
8921main ()
8922{
Dan Gohman39ed6782010-04-25 00:12:20 +00008923
Dan Gohman391569c2010-04-16 22:59:06 +00008924 ;
8925 return 0;
8926}
8927_ACEOF
8928rm -f conftest.$ac_objext conftest$ac_exeext
8929if { (ac_try="$ac_link"
8930case "(($ac_try" in
8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932 *) ac_try_echo=$ac_try;;
8933esac
8934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935 (eval "$ac_link") 2>conftest.er1
8936 ac_status=$?
8937 grep -v '^ *+' conftest.er1 >conftest.err
8938 rm -f conftest.er1
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8943 { (case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946esac
8947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_try") 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try='test -s conftest$ac_exeext'
8953 { (case "(($ac_try" in
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8956esac
8957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958 (eval "$ac_try") 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 llvm_cv_link_use_retain_symbols_file=yes
8963else
8964 echo "$as_me: failed program was:" >&5
8965sed 's/^/| /' conftest.$ac_ext >&5
8966
8967 llvm_cv_link_use_retain_symbols_file=no
8968fi
8969
8970rm -f core conftest.err conftest.$ac_objext \
8971 conftest$ac_exeext conftest.$ac_ext
8972 rm "$tmp/exports"
8973 rmdir "$tmp"
8974 CFLAGS="$oldcflags"
8975 ac_ext=c
8976ac_cpp='$CPP $CPPFLAGS'
8977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8979ac_compiler_gnu=$ac_cv_c_compiler_gnu
8980
8981
8982fi
8983{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_retain_symbols_file" >&5
8984echo "${ECHO_T}$llvm_cv_link_use_retain_symbols_file" >&6; }
8985if test "$llvm_cv_link_use_retain_symbols_file" = yes ; then
8986 HAVE_LINK_RETAIN_SYMBOLS_FILE=1
8987
8988 fi
8989
8990
Reid Spencera773bd52006-08-04 18:18:08 +00008991
8992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008993{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8994echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8995if test "${ac_cv_c_const+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008997else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008998 cat >conftest.$ac_ext <<_ACEOF
8999/* confdefs.h. */
9000_ACEOF
9001cat confdefs.h >>conftest.$ac_ext
9002cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009003/* end confdefs.h. */
9004
9005int
9006main ()
9007{
9008/* FIXME: Include the comments suggested by Paul. */
9009#ifndef __cplusplus
9010 /* Ultrix mips cc rejects this. */
9011 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009012 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009013 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009014 char const *const *ccp;
9015 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009016 /* NEC SVR4.0.2 mips cc rejects this. */
9017 struct point {int x, y;};
9018 static struct point const zero = {0,0};
9019 /* AIX XL C 1.02.0.0 rejects this.
9020 It does not let you subtract one const X* pointer from another in
9021 an arm of an if-expression whose if-part is not a constant
9022 expression */
9023 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009024 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009025 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009026 ++ccp;
9027 p = (char**) ccp;
9028 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009029 { /* SCO 3.2v4 cc rejects this. */
9030 char *t;
9031 char const *s = 0 ? (char *) 0 : (char const *) 0;
9032
9033 *t++ = 0;
9034 if (s) return 0;
9035 }
9036 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9037 int x[] = {25, 17};
9038 const int *foo = &x[0];
9039 ++foo;
9040 }
9041 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9042 typedef const int *iptr;
9043 iptr p = 0;
9044 ++p;
9045 }
9046 { /* AIX XL C 1.02.0.0 rejects this saying
9047 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9048 struct s { int j; const int *ap[3]; };
9049 struct s *b; b->j = 5;
9050 }
9051 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9052 const int foo = 10;
9053 if (!foo) return 0;
9054 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009055 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009056#endif
9057
9058 ;
9059 return 0;
9060}
9061_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009062rm -f conftest.$ac_objext
9063if { (ac_try="$ac_compile"
9064case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9067esac
9068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_compile") 2>conftest.er1
9070 ac_status=$?
9071 grep -v '^ *+' conftest.er1 >conftest.err
9072 rm -f conftest.er1
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } &&
9076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9077 { (case "(($ac_try" in
9078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079 *) ac_try_echo=$ac_try;;
9080esac
9081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082 (eval "$ac_try") 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try='test -s conftest.$ac_objext'
9087 { (case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9090esac
9091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_try") 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009096 ac_cv_c_const=yes
9097else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009098 echo "$as_me: failed program was:" >&5
9099sed 's/^/| /' conftest.$ac_ext >&5
9100
9101 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009102fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009103
Reid Spencera773bd52006-08-04 18:18:08 +00009104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009106{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9107echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009108if test $ac_cv_c_const = no; then
9109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009110cat >>confdefs.h <<\_ACEOF
9111#define const
9112_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009113
9114fi
9115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009116
9117
9118
9119
9120
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009121ac_header_dirent=no
9122for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009123 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9124{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9125echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009129 cat >conftest.$ac_ext <<_ACEOF
9130/* confdefs.h. */
9131_ACEOF
9132cat confdefs.h >>conftest.$ac_ext
9133cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009134/* end confdefs.h. */
9135#include <sys/types.h>
9136#include <$ac_hdr>
9137
9138int
9139main ()
9140{
9141if ((DIR *) 0)
9142return 0;
9143 ;
9144 return 0;
9145}
9146_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009147rm -f conftest.$ac_objext
9148if { (ac_try="$ac_compile"
9149case "(($ac_try" in
9150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9152esac
9153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 (eval "$ac_compile") 2>conftest.er1
9155 ac_status=$?
9156 grep -v '^ *+' conftest.er1 >conftest.err
9157 rm -f conftest.er1
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } &&
9161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9162 { (case "(($ac_try" in
9163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164 *) ac_try_echo=$ac_try;;
9165esac
9166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167 (eval "$ac_try") 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; } &&
9171 { ac_try='test -s conftest.$ac_objext'
9172 { (case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9175esac
9176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177 (eval "$ac_try") 2>&5
9178 ac_status=$?
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009181 eval "$as_ac_Header=yes"
9182else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009183 echo "$as_me: failed program was:" >&5
9184sed 's/^/| /' conftest.$ac_ext >&5
9185
9186 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009187fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009188
Reid Spencera773bd52006-08-04 18:18:08 +00009189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009190fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009191ac_res=`eval echo '${'$as_ac_Header'}'`
9192 { echo "$as_me:$LINENO: result: $ac_res" >&5
9193echo "${ECHO_T}$ac_res" >&6; }
9194if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009195 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009196#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009197_ACEOF
9198
9199ac_header_dirent=$ac_hdr; break
9200fi
9201
9202done
9203# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9204if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009205 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9206echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9207if test "${ac_cv_search_opendir+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009209else
9210 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009211cat >conftest.$ac_ext <<_ACEOF
9212/* confdefs.h. */
9213_ACEOF
9214cat confdefs.h >>conftest.$ac_ext
9215cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009216/* end confdefs.h. */
9217
Reid Spencera773bd52006-08-04 18:18:08 +00009218/* Override any GCC internal prototype to avoid an error.
9219 Use char because int might match the return type of a GCC
9220 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009221#ifdef __cplusplus
9222extern "C"
9223#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009224char opendir ();
9225int
9226main ()
9227{
Reid Spencera773bd52006-08-04 18:18:08 +00009228return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009229 ;
9230 return 0;
9231}
9232_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009233for ac_lib in '' dir; do
9234 if test -z "$ac_lib"; then
9235 ac_res="none required"
9236 else
9237 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009239 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009240 rm -f conftest.$ac_objext conftest$ac_exeext
9241if { (ac_try="$ac_link"
9242case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9245esac
9246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_link") 2>conftest.er1
9248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } &&
9254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9255 { (case "(($ac_try" in
9256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9257 *) ac_try_echo=$ac_try;;
9258esac
9259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260 (eval "$ac_try") 2>&5
9261 ac_status=$?
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; } &&
9264 { ac_try='test -s conftest$ac_exeext'
9265 { (case "(($ac_try" in
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9268esac
9269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_try") 2>&5
9271 ac_status=$?
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009274 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009275else
9276 echo "$as_me: failed program was:" >&5
9277sed 's/^/| /' conftest.$ac_ext >&5
9278
9279
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009280fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009281
Bill Wendlingebcceee2009-04-18 11:20:33 +00009282rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009283 conftest$ac_exeext
9284 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009285 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009286fi
John Criswell7a73b802003-06-30 21:59:07 +00009287done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009288if test "${ac_cv_search_opendir+set}" = set; then
9289 :
Reid Spencera773bd52006-08-04 18:18:08 +00009290else
9291 ac_cv_search_opendir=no
9292fi
9293rm conftest.$ac_ext
9294LIBS=$ac_func_search_save_LIBS
9295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009296{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9297echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009298ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009299if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009301
Reid Spencera773bd52006-08-04 18:18:08 +00009302fi
9303
9304else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009305 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9306echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9307if test "${ac_cv_search_opendir+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009309else
9310 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009311cat >conftest.$ac_ext <<_ACEOF
9312/* confdefs.h. */
9313_ACEOF
9314cat confdefs.h >>conftest.$ac_ext
9315cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009316/* end confdefs.h. */
9317
9318/* Override any GCC internal prototype to avoid an error.
9319 Use char because int might match the return type of a GCC
9320 builtin and then its argument prototype would still apply. */
9321#ifdef __cplusplus
9322extern "C"
9323#endif
9324char opendir ();
9325int
9326main ()
9327{
9328return opendir ();
9329 ;
9330 return 0;
9331}
9332_ACEOF
9333for ac_lib in '' x; do
9334 if test -z "$ac_lib"; then
9335 ac_res="none required"
9336 else
9337 ac_res=-l$ac_lib
9338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9339 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009340 rm -f conftest.$ac_objext conftest$ac_exeext
9341if { (ac_try="$ac_link"
9342case "(($ac_try" in
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9345esac
9346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_link") 2>conftest.er1
9348 ac_status=$?
9349 grep -v '^ *+' conftest.er1 >conftest.err
9350 rm -f conftest.er1
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } &&
9354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9355 { (case "(($ac_try" in
9356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357 *) ac_try_echo=$ac_try;;
9358esac
9359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_try") 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; } &&
9364 { ac_try='test -s conftest$ac_exeext'
9365 { (case "(($ac_try" in
9366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367 *) ac_try_echo=$ac_try;;
9368esac
9369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370 (eval "$ac_try") 2>&5
9371 ac_status=$?
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009374 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009375else
9376 echo "$as_me: failed program was:" >&5
9377sed 's/^/| /' conftest.$ac_ext >&5
9378
9379
Reid Spencera773bd52006-08-04 18:18:08 +00009380fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009381
Bill Wendlingebcceee2009-04-18 11:20:33 +00009382rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009383 conftest$ac_exeext
9384 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009385 break
9386fi
9387done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009388if test "${ac_cv_search_opendir+set}" = set; then
9389 :
Reid Spencera773bd52006-08-04 18:18:08 +00009390else
9391 ac_cv_search_opendir=no
9392fi
9393rm conftest.$ac_ext
9394LIBS=$ac_func_search_save_LIBS
9395fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009396{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9397echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009398ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009399if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9401
9402fi
9403
9404fi
John Criswell7a73b802003-06-30 21:59:07 +00009405
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009406
John Criswell7a73b802003-06-30 21:59:07 +00009407for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009408do
9409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9415fi
9416ac_res=`eval echo '${'$as_ac_Header'}'`
9417 { echo "$as_me:$LINENO: result: $ac_res" >&5
9418echo "${ECHO_T}$ac_res" >&6; }
9419else
9420 # Is the header compilable?
9421{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9422echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9423cat >conftest.$ac_ext <<_ACEOF
9424/* confdefs.h. */
9425_ACEOF
9426cat confdefs.h >>conftest.$ac_ext
9427cat >>conftest.$ac_ext <<_ACEOF
9428/* end confdefs.h. */
9429$ac_includes_default
9430#include <$ac_header>
9431_ACEOF
9432rm -f conftest.$ac_objext
9433if { (ac_try="$ac_compile"
9434case "(($ac_try" in
9435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9436 *) ac_try_echo=$ac_try;;
9437esac
9438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9439 (eval "$ac_compile") 2>conftest.er1
9440 ac_status=$?
9441 grep -v '^ *+' conftest.er1 >conftest.err
9442 rm -f conftest.er1
9443 cat conftest.err >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } &&
9446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9447 { (case "(($ac_try" in
9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449 *) ac_try_echo=$ac_try;;
9450esac
9451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_try") 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; } &&
9456 { ac_try='test -s conftest.$ac_objext'
9457 { (case "(($ac_try" in
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459 *) ac_try_echo=$ac_try;;
9460esac
9461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462 (eval "$ac_try") 2>&5
9463 ac_status=$?
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 ac_header_compiler=yes
9467else
9468 echo "$as_me: failed program was:" >&5
9469sed 's/^/| /' conftest.$ac_ext >&5
9470
9471 ac_header_compiler=no
9472fi
9473
9474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9475{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9476echo "${ECHO_T}$ac_header_compiler" >&6; }
9477
9478# Is the header present?
9479{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9480echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9481cat >conftest.$ac_ext <<_ACEOF
9482/* confdefs.h. */
9483_ACEOF
9484cat confdefs.h >>conftest.$ac_ext
9485cat >>conftest.$ac_ext <<_ACEOF
9486/* end confdefs.h. */
9487#include <$ac_header>
9488_ACEOF
9489if { (ac_try="$ac_cpp conftest.$ac_ext"
9490case "(($ac_try" in
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9493esac
9494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9496 ac_status=$?
9497 grep -v '^ *+' conftest.er1 >conftest.err
9498 rm -f conftest.er1
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } >/dev/null; then
9502 if test -s conftest.err; then
9503 ac_cpp_err=$ac_c_preproc_warn_flag
9504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9505 else
9506 ac_cpp_err=
9507 fi
9508else
9509 ac_cpp_err=yes
9510fi
9511if test -z "$ac_cpp_err"; then
9512 ac_header_preproc=yes
9513else
9514 echo "$as_me: failed program was:" >&5
9515sed 's/^/| /' conftest.$ac_ext >&5
9516
9517 ac_header_preproc=no
9518fi
9519
9520rm -f conftest.err conftest.$ac_ext
9521{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9522echo "${ECHO_T}$ac_header_preproc" >&6; }
9523
9524# So? What about this header?
9525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9526 yes:no: )
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9528echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9530echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9531 ac_header_preproc=yes
9532 ;;
9533 no:yes:* )
9534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9535echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9537echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9539echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9541echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9543echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9545echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9546 ( cat <<\_ASBOX
9547## ----------------------------------- ##
9548## Report this to llvmbugs@cs.uiuc.edu ##
9549## ----------------------------------- ##
9550_ASBOX
9551 ) | sed "s/^/$as_me: WARNING: /" >&2
9552 ;;
9553esac
9554{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9558else
9559 eval "$as_ac_Header=\$ac_header_preproc"
9560fi
9561ac_res=`eval echo '${'$as_ac_Header'}'`
9562 { echo "$as_me:$LINENO: result: $ac_res" >&5
9563echo "${ECHO_T}$ac_res" >&6; }
9564
9565fi
9566if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009567 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009569_ACEOF
9570
9571fi
9572
9573done
9574
Reid Spencera773bd52006-08-04 18:18:08 +00009575# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009576if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009577 enableval=$enable_ltdl_install;
9578fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009579
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009580
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009581
9582
9583if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009584 INSTALL_LTDL_TRUE=
9585 INSTALL_LTDL_FALSE='#'
9586else
9587 INSTALL_LTDL_TRUE='#'
9588 INSTALL_LTDL_FALSE=
9589fi
9590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009591
9592
9593if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009594 CONVENIENCE_LTDL_TRUE=
9595 CONVENIENCE_LTDL_FALSE='#'
9596else
9597 CONVENIENCE_LTDL_TRUE='#'
9598 CONVENIENCE_LTDL_FALSE=
9599fi
9600
9601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009602{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9603echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009604library_names_spec=
9605libname_spec='lib$name'
9606soname_spec=
9607shrext_cmds=".so"
9608postinstall_cmds=
9609postuninstall_cmds=
9610finish_cmds=
9611finish_eval=
9612shlibpath_var=
9613shlibpath_overrides_runpath=unknown
9614version_type=none
9615dynamic_linker="$host_os ld.so"
9616sys_lib_dlsearch_path_spec="/lib /usr/lib"
9617if test "$GCC" = yes; then
9618 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9619 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9620 # if the path contains ";" then we assume it to be the separator
9621 # otherwise default to the standard path separator (i.e. ":") - it is
9622 # assumed that no part of a normal pathname contains ";" but that should
9623 # okay in the real world where ";" in dirpaths is itself problematic.
9624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9625 else
9626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9627 fi
9628else
9629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9630fi
9631need_lib_prefix=unknown
9632hardcode_into_libs=no
9633
9634# when you set need_version to no, make sure it does not cause -set_version
9635# flags to be left without arguments
9636need_version=unknown
9637
9638case $host_os in
9639aix3*)
9640 version_type=linux
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9642 shlibpath_var=LIBPATH
9643
9644 # AIX 3 has no versioning support, so we append a major version to the name.
9645 soname_spec='${libname}${release}${shared_ext}$major'
9646 ;;
9647
9648aix4* | aix5*)
9649 version_type=linux
9650 need_lib_prefix=no
9651 need_version=no
9652 hardcode_into_libs=yes
9653 if test "$host_cpu" = ia64; then
9654 # AIX 5 supports IA64
9655 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9656 shlibpath_var=LD_LIBRARY_PATH
9657 else
9658 # With GCC up to 2.95.x, collect2 would create an import file
9659 # for dependence libraries. The import file would start with
9660 # the line `#! .'. This would cause the generated library to
9661 # depend on `.', always an invalid library. This was fixed in
9662 # development snapshots of GCC prior to 3.0.
9663 case $host_os in
9664 aix4 | aix4.[01] | aix4.[01].*)
9665 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9666 echo ' yes '
9667 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9668 :
9669 else
9670 can_build_shared=no
9671 fi
9672 ;;
9673 esac
9674 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9675 # soname into executable. Probably we can add versioning support to
9676 # collect2, so additional links can be useful in future.
9677 if test "$aix_use_runtimelinking" = yes; then
9678 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9679 # instead of lib<name>.a to let people know that these are not
9680 # typical AIX shared libraries.
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9682 else
9683 # We preserve .a as extension for shared libraries through AIX4.2
9684 # and later when we are not doing run time linking.
9685 library_names_spec='${libname}${release}.a $libname.a'
9686 soname_spec='${libname}${release}${shared_ext}$major'
9687 fi
9688 shlibpath_var=LIBPATH
9689 fi
9690 ;;
9691
9692amigaos*)
9693 library_names_spec='$libname.ixlibrary $libname.a'
9694 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9695 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'
9696 ;;
9697
9698beos*)
9699 library_names_spec='${libname}${shared_ext}'
9700 dynamic_linker="$host_os ld.so"
9701 shlibpath_var=LIBRARY_PATH
9702 ;;
9703
9704bsdi[45]*)
9705 version_type=linux
9706 need_version=no
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9710 shlibpath_var=LD_LIBRARY_PATH
9711 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9712 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9713 # the default ld.so.conf also contains /usr/contrib/lib and
9714 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9715 # libtool to hard-code these into programs
9716 ;;
9717
9718cygwin* | mingw* | pw32*)
9719 version_type=windows
9720 shrext_cmds=".dll"
9721 need_version=no
9722 need_lib_prefix=no
9723
9724 case $GCC,$host_os in
9725 yes,cygwin* | yes,mingw* | yes,pw32*)
9726 library_names_spec='$libname.dll.a'
9727 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9728 postinstall_cmds='base_file=`basename \${file}`~
9729 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9730 dldir=$destdir/`dirname \$dlpath`~
9731 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009732 $install_prog $dir/$dlname \$dldir/$dlname~
9733 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009734 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9735 dlpath=$dir/\$dldll~
9736 $rm \$dlpath'
9737 shlibpath_overrides_runpath=yes
9738
9739 case $host_os in
9740 cygwin*)
9741 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9742 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9743 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9744 ;;
9745 mingw*)
9746 # MinGW DLLs use traditional 'lib' prefix
9747 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9748 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9749 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9750 # It is most probably a Windows format PATH printed by
9751 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9752 # path with ; separators, and with drive letters. We can handle the
9753 # drive letters (cygwin fileutils understands them), so leave them,
9754 # especially as we might pass files found there to a mingw objdump,
9755 # which wouldn't understand a cygwinified path. Ahh.
9756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9757 else
9758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9759 fi
9760 ;;
9761 pw32*)
9762 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009763 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 +00009764 ;;
9765 esac
9766 ;;
9767
9768 *)
9769 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9770 ;;
9771 esac
9772 dynamic_linker='Win32 ld.exe'
9773 # FIXME: first we should search . and the directory the executable is in
9774 shlibpath_var=PATH
9775 ;;
9776
9777darwin* | rhapsody*)
9778 dynamic_linker="$host_os dyld"
9779 version_type=darwin
9780 need_lib_prefix=no
9781 need_version=no
9782 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9783 soname_spec='${libname}${release}${major}$shared_ext'
9784 shlibpath_overrides_runpath=yes
9785 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009786 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009787 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9788 if test "$GCC" = yes; then
9789 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"`
9790 else
9791 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9792 fi
9793 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9794 ;;
9795
9796dgux*)
9797 version_type=linux
9798 need_lib_prefix=no
9799 need_version=no
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 shlibpath_var=LD_LIBRARY_PATH
9803 ;;
9804
9805freebsd1*)
9806 dynamic_linker=no
9807 ;;
9808
9809kfreebsd*-gnu)
9810 version_type=linux
9811 need_lib_prefix=no
9812 need_version=no
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9814 soname_spec='${libname}${release}${shared_ext}$major'
9815 shlibpath_var=LD_LIBRARY_PATH
9816 shlibpath_overrides_runpath=no
9817 hardcode_into_libs=yes
9818 dynamic_linker='GNU ld.so'
9819 ;;
9820
Reid Spencera773bd52006-08-04 18:18:08 +00009821freebsd* | dragonfly*)
9822 # DragonFly does not have aout. When/if they implement a new
9823 # versioning mechanism, adjust this.
9824 if test -x /usr/bin/objformat; then
9825 objformat=`/usr/bin/objformat`
9826 else
9827 case $host_os in
9828 freebsd[123]*) objformat=aout ;;
9829 *) objformat=elf ;;
9830 esac
9831 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009832 version_type=freebsd-$objformat
9833 case $version_type in
9834 freebsd-elf*)
9835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9836 need_version=no
9837 need_lib_prefix=no
9838 ;;
9839 freebsd-*)
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9841 need_version=yes
9842 ;;
9843 esac
9844 shlibpath_var=LD_LIBRARY_PATH
9845 case $host_os in
9846 freebsd2*)
9847 shlibpath_overrides_runpath=yes
9848 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009849 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009850 shlibpath_overrides_runpath=yes
9851 hardcode_into_libs=yes
9852 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009853 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9854 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855 shlibpath_overrides_runpath=no
9856 hardcode_into_libs=yes
9857 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009858 freebsd*) # from 4.6 on
9859 shlibpath_overrides_runpath=yes
9860 hardcode_into_libs=yes
9861 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009862 esac
9863 ;;
9864
9865gnu*)
9866 version_type=linux
9867 need_lib_prefix=no
9868 need_version=no
9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9870 soname_spec='${libname}${release}${shared_ext}$major'
9871 shlibpath_var=LD_LIBRARY_PATH
9872 hardcode_into_libs=yes
9873 ;;
9874
9875hpux9* | hpux10* | hpux11*)
9876 # Give a soname corresponding to the major version so that dld.sl refuses to
9877 # link against other versions.
9878 version_type=sunos
9879 need_lib_prefix=no
9880 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009881 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009882 ia64*)
9883 shrext_cmds='.so'
9884 hardcode_into_libs=yes
9885 dynamic_linker="$host_os dld.so"
9886 shlibpath_var=LD_LIBRARY_PATH
9887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 if test "X$HPUX_IA64_MODE" = X32; then
9891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9892 else
9893 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9894 fi
9895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9896 ;;
9897 hppa*64*)
9898 shrext_cmds='.sl'
9899 hardcode_into_libs=yes
9900 dynamic_linker="$host_os dld.sl"
9901 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9907 ;;
9908 *)
9909 shrext_cmds='.sl'
9910 dynamic_linker="$host_os dld.sl"
9911 shlibpath_var=SHLIB_PATH
9912 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914 soname_spec='${libname}${release}${shared_ext}$major'
9915 ;;
9916 esac
9917 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9918 postinstall_cmds='chmod 555 $lib'
9919 ;;
9920
Reid Spencera773bd52006-08-04 18:18:08 +00009921interix3*)
9922 version_type=linux
9923 need_lib_prefix=no
9924 need_version=no
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 shlibpath_overrides_runpath=no
9930 hardcode_into_libs=yes
9931 ;;
9932
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009933irix5* | irix6* | nonstopux*)
9934 case $host_os in
9935 nonstopux*) version_type=nonstopux ;;
9936 *)
9937 if test "$lt_cv_prog_gnu_ld" = yes; then
9938 version_type=linux
9939 else
9940 version_type=irix
9941 fi ;;
9942 esac
9943 need_lib_prefix=no
9944 need_version=no
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9947 case $host_os in
9948 irix5* | nonstopux*)
9949 libsuff= shlibsuff=
9950 ;;
9951 *)
9952 case $LD in # libtool.m4 will add one of these switches to LD
9953 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9954 libsuff= shlibsuff= libmagic=32-bit;;
9955 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9956 libsuff=32 shlibsuff=N32 libmagic=N32;;
9957 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9958 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9959 *) libsuff= shlibsuff= libmagic=never-match;;
9960 esac
9961 ;;
9962 esac
9963 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9964 shlibpath_overrides_runpath=no
9965 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9966 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9967 hardcode_into_libs=yes
9968 ;;
9969
9970# No shared lib support for Linux oldld, aout, or coff.
9971linux*oldld* | linux*aout* | linux*coff*)
9972 dynamic_linker=no
9973 ;;
9974
9975# This must be Linux ELF.
9976linux*)
9977 version_type=linux
9978 need_lib_prefix=no
9979 need_version=no
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 soname_spec='${libname}${release}${shared_ext}$major'
9982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9983 shlibpath_var=LD_LIBRARY_PATH
9984 shlibpath_overrides_runpath=no
9985 # This implies no fast_install, which is unacceptable.
9986 # Some rework will be needed to allow for fast_install
9987 # before this can be enabled.
9988 hardcode_into_libs=yes
9989
9990 # Append ld.so.conf contents to the search path
9991 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009992 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 +00009993 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9994 fi
9995
9996 # We used to test for /lib/ld.so.1 and disable shared libraries on
9997 # powerpc, because MkLinux only supported shared libraries with the
9998 # GNU dynamic linker. Since this was broken with cross compilers,
9999 # most powerpc-linux boxes support dynamic linking these days and
10000 # people can always --disable-shared, the test was removed, and we
10001 # assume the GNU/Linux dynamic linker is in use.
10002 dynamic_linker='GNU/Linux ld.so'
10003 ;;
10004
10005knetbsd*-gnu)
10006 version_type=linux
10007 need_lib_prefix=no
10008 need_version=no
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 shlibpath_var=LD_LIBRARY_PATH
10012 shlibpath_overrides_runpath=no
10013 hardcode_into_libs=yes
10014 dynamic_linker='GNU ld.so'
10015 ;;
10016
10017netbsd*)
10018 version_type=sunos
10019 need_lib_prefix=no
10020 need_version=no
10021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10024 dynamic_linker='NetBSD (a.out) ld.so'
10025 else
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 dynamic_linker='NetBSD ld.elf_so'
10029 fi
10030 shlibpath_var=LD_LIBRARY_PATH
10031 shlibpath_overrides_runpath=yes
10032 hardcode_into_libs=yes
10033 ;;
10034
10035newsos6)
10036 version_type=linux
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038 shlibpath_var=LD_LIBRARY_PATH
10039 shlibpath_overrides_runpath=yes
10040 ;;
10041
10042nto-qnx*)
10043 version_type=linux
10044 need_lib_prefix=no
10045 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
10049 shlibpath_overrides_runpath=yes
10050 ;;
10051
10052openbsd*)
10053 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010054 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010055 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010056 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10057 case $host_os in
10058 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10059 *) need_version=no ;;
10060 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10065 case $host_os in
10066 openbsd2.[89] | openbsd2.[89].*)
10067 shlibpath_overrides_runpath=no
10068 ;;
10069 *)
10070 shlibpath_overrides_runpath=yes
10071 ;;
10072 esac
10073 else
10074 shlibpath_overrides_runpath=yes
10075 fi
10076 ;;
10077
10078os2*)
10079 libname_spec='$name'
10080 shrext_cmds=".dll"
10081 need_lib_prefix=no
10082 library_names_spec='$libname${shared_ext} $libname.a'
10083 dynamic_linker='OS/2 ld.exe'
10084 shlibpath_var=LIBPATH
10085 ;;
10086
10087osf3* | osf4* | osf5*)
10088 version_type=osf
10089 need_lib_prefix=no
10090 need_version=no
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10095 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10096 ;;
10097
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010098solaris*)
10099 version_type=linux
10100 need_lib_prefix=no
10101 need_version=no
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 shlibpath_overrides_runpath=yes
10106 hardcode_into_libs=yes
10107 # ldd complains unless libraries are executable
10108 postinstall_cmds='chmod +x $lib'
10109 ;;
10110
10111sunos4*)
10112 version_type=sunos
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10114 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10115 shlibpath_var=LD_LIBRARY_PATH
10116 shlibpath_overrides_runpath=yes
10117 if test "$with_gnu_ld" = yes; then
10118 need_lib_prefix=no
10119 fi
10120 need_version=yes
10121 ;;
10122
Reid Spencera773bd52006-08-04 18:18:08 +000010123sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010124 version_type=linux
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 shlibpath_var=LD_LIBRARY_PATH
10128 case $host_vendor in
10129 sni)
10130 shlibpath_overrides_runpath=no
10131 need_lib_prefix=no
10132 export_dynamic_flag_spec='${wl}-Blargedynsym'
10133 runpath_var=LD_RUN_PATH
10134 ;;
10135 siemens)
10136 need_lib_prefix=no
10137 ;;
10138 motorola)
10139 need_lib_prefix=no
10140 need_version=no
10141 shlibpath_overrides_runpath=no
10142 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10143 ;;
10144 esac
10145 ;;
10146
10147sysv4*MP*)
10148 if test -d /usr/nec ;then
10149 version_type=linux
10150 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10151 soname_spec='$libname${shared_ext}.$major'
10152 shlibpath_var=LD_LIBRARY_PATH
10153 fi
10154 ;;
10155
Reid Spencera773bd52006-08-04 18:18:08 +000010156sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10157 version_type=freebsd-elf
10158 need_lib_prefix=no
10159 need_version=no
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 shlibpath_var=LD_LIBRARY_PATH
10163 hardcode_into_libs=yes
10164 if test "$with_gnu_ld" = yes; then
10165 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10166 shlibpath_overrides_runpath=no
10167 else
10168 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10169 shlibpath_overrides_runpath=yes
10170 case $host_os in
10171 sco3.2v5*)
10172 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10173 ;;
10174 esac
10175 fi
10176 sys_lib_dlsearch_path_spec='/usr/lib'
10177 ;;
10178
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010179uts4*)
10180 version_type=linux
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 shlibpath_var=LD_LIBRARY_PATH
10184 ;;
10185
10186*)
10187 dynamic_linker=no
10188 ;;
10189esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010190{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10191echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010192test "$dynamic_linker" = no && can_build_shared=no
10193
Reid Spencera773bd52006-08-04 18:18:08 +000010194variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10195if test "$GCC" = yes; then
10196 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10197fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010198
Reid Spencera773bd52006-08-04 18:18:08 +000010199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010200{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10201echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10202if test "${libltdl_cv_shlibext+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010204else
10205
10206module=yes
10207eval libltdl_cv_shlibext=$shrext_cmds
10208
10209fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010210{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10211echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010212if test -n "$libltdl_cv_shlibext"; then
10213
10214cat >>confdefs.h <<_ACEOF
10215#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10216_ACEOF
10217
10218fi
10219
10220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010221{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10222echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10223if test "${libltdl_cv_shlibpath_var+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010225else
10226 libltdl_cv_shlibpath_var="$shlibpath_var"
10227fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010228{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10229echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010230if test -n "$libltdl_cv_shlibpath_var"; then
10231
10232cat >>confdefs.h <<_ACEOF
10233#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10234_ACEOF
10235
10236fi
10237
10238
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010239{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10240echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10241if test "${libltdl_cv_sys_search_path+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010243else
10244 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10245fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010246{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10247echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010248if test -n "$libltdl_cv_sys_search_path"; then
10249 sys_search_path=
10250 for dir in $libltdl_cv_sys_search_path; do
10251 if test -z "$sys_search_path"; then
10252 sys_search_path="$dir"
10253 else
10254 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10255 fi
10256 done
10257
10258cat >>confdefs.h <<_ACEOF
10259#define LTDL_SYSSEARCHPATH "$sys_search_path"
10260_ACEOF
10261
10262fi
10263
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010264{ echo "$as_me:$LINENO: checking for objdir" >&5
10265echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10266if test "${libltdl_cv_objdir+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268else
10269 libltdl_cv_objdir="$objdir"
10270 if test -n "$objdir"; then
10271 :
10272 else
10273 rm -f .libs 2>/dev/null
10274 mkdir .libs 2>/dev/null
10275 if test -d .libs; then
10276 libltdl_cv_objdir=.libs
10277 else
10278 # MS-DOS does not allow filenames that begin with a dot.
10279 libltdl_cv_objdir=_libs
10280 fi
10281 rmdir .libs 2>/dev/null
10282 fi
10283
10284fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010285{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10286echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010287
10288cat >>confdefs.h <<_ACEOF
10289#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10290_ACEOF
10291
10292
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010293
10294
10295
10296
10297# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010298{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10299echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10300if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010302else
10303
10304# These are sane defaults that work on at least a few old systems.
10305# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10306
10307# Character class describing NM global symbol codes.
10308symcode='[BCDEGRST]'
10309
10310# Regexp to match symbols that can be accessed directly from C.
10311sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10312
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010313# Transform an extracted symbol line into a proper C declaration
10314lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10315
10316# Transform an extracted symbol line into symbol name and symbol address
10317lt_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'"
10318
10319# Define system-specific variables.
10320case $host_os in
10321aix*)
10322 symcode='[BCDT]'
10323 ;;
10324cygwin* | mingw* | pw32*)
10325 symcode='[ABCDGISTW]'
10326 ;;
10327hpux*) # Its linker distinguishes data from code symbols
10328 if test "$host_cpu" = ia64; then
10329 symcode='[ABCDEGRST]'
10330 fi
10331 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10332 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'"
10333 ;;
10334linux*)
10335 if test "$host_cpu" = ia64; then
10336 symcode='[ABCDGIRSTW]'
10337 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10338 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'"
10339 fi
10340 ;;
10341irix* | nonstopux*)
10342 symcode='[BCDEGRST]'
10343 ;;
10344osf*)
10345 symcode='[BCDEGQRST]'
10346 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010347solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010348 symcode='[BDRT]'
10349 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010350sco3.2v5*)
10351 symcode='[DT]'
10352 ;;
10353sysv4.2uw2*)
10354 symcode='[DT]'
10355 ;;
10356sysv5* | sco5v6* | unixware* | OpenUNIX*)
10357 symcode='[ABDT]'
10358 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010359sysv4)
10360 symcode='[DFNSTU]'
10361 ;;
10362esac
10363
10364# Handle CRLF in mingw tool chain
10365opt_cr=
10366case $build_os in
10367mingw*)
10368 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10369 ;;
10370esac
10371
10372# If we're using GNU nm, then use its standard symbol codes.
10373case `$NM -V 2>&1` in
10374*GNU* | *'with BFD'*)
10375 symcode='[ABCDGIRSTW]' ;;
10376esac
10377
10378# Try without a prefix undercore, then with it.
10379for ac_symprfx in "" "_"; do
10380
Reid Spencera773bd52006-08-04 18:18:08 +000010381 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10382 symxfrm="\\1 $ac_symprfx\\2 \\2"
10383
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010384 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010385 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 +000010386
10387 # Check to see that the pipe works correctly.
10388 pipe_works=no
10389
10390 rm -f conftest*
10391 cat > conftest.$ac_ext <<EOF
10392#ifdef __cplusplus
10393extern "C" {
10394#endif
10395char nm_test_var;
10396void nm_test_func(){}
10397#ifdef __cplusplus
10398}
10399#endif
10400int main(){nm_test_var='a';nm_test_func();return(0);}
10401EOF
10402
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010404 (eval $ac_compile) 2>&5
10405 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010408 # Now try to grab the symbols.
10409 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010410 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 +000010411 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10412 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415 # Try sorting and uniquifying the output.
10416 if sort "$nlist" | uniq > "$nlist"T; then
10417 mv -f "$nlist"T "$nlist"
10418 else
10419 rm -f "$nlist"T
10420 fi
10421
10422 # Make sure that we snagged all the symbols we need.
10423 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10424 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10425 cat <<EOF > conftest.$ac_ext
10426#ifdef __cplusplus
10427extern "C" {
10428#endif
10429
10430EOF
10431 # Now generate the symbol file.
10432 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10433
10434 cat <<EOF >> conftest.$ac_ext
10435#if defined (__STDC__) && __STDC__
10436# define lt_ptr_t void *
10437#else
10438# define lt_ptr_t char *
10439# define const
10440#endif
10441
10442/* The mapping between symbol names and symbols. */
10443const struct {
10444 const char *name;
10445 lt_ptr_t address;
10446}
10447lt_preloaded_symbols[] =
10448{
10449EOF
10450 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10451 cat <<\EOF >> conftest.$ac_ext
10452 {0, (lt_ptr_t) 0}
10453};
10454
10455#ifdef __cplusplus
10456}
10457#endif
10458EOF
10459 # Now try linking the two files.
10460 mv conftest.$ac_objext conftstm.$ac_objext
10461 lt_save_LIBS="$LIBS"
10462 lt_save_CFLAGS="$CFLAGS"
10463 LIBS="conftstm.$ac_objext"
10464 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010466 (eval $ac_link) 2>&5
10467 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010470 pipe_works=yes
10471 fi
10472 LIBS="$lt_save_LIBS"
10473 CFLAGS="$lt_save_CFLAGS"
10474 else
10475 echo "cannot find nm_test_func in $nlist" >&5
10476 fi
10477 else
10478 echo "cannot find nm_test_var in $nlist" >&5
10479 fi
10480 else
10481 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10482 fi
10483 else
10484 echo "$progname: failed program was:" >&5
10485 cat conftest.$ac_ext >&5
10486 fi
10487 rm -f conftest* conftst*
10488
10489 # Do not use the global_symbol_pipe unless it works.
10490 if test "$pipe_works" = yes; then
10491 break
10492 else
10493 lt_cv_sys_global_symbol_pipe=
10494 fi
10495done
10496
10497fi
10498
10499if test -z "$lt_cv_sys_global_symbol_pipe"; then
10500 lt_cv_sys_global_symbol_to_cdecl=
10501fi
10502if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010503 { echo "$as_me:$LINENO: result: failed" >&5
10504echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010505else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010506 { echo "$as_me:$LINENO: result: ok" >&5
10507echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010508fi
10509
10510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010511{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10512echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10513if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010515else
10516 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10517 libltdl_cv_preloaded_symbols=yes
10518 else
10519 libltdl_cv_preloaded_symbols=no
10520 fi
10521
10522fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010523{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10524echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010525if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10526
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010527cat >>confdefs.h <<\_ACEOF
10528#define HAVE_PRELOADED_SYMBOLS 1
10529_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010530
10531fi
10532
10533LIBADD_DL=
10534
10535ac_ext=c
10536ac_cpp='$CPP $CPPFLAGS'
10537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10539ac_compiler_gnu=$ac_cv_c_compiler_gnu
10540
10541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010542{ echo "$as_me:$LINENO: checking for shl_load" >&5
10543echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10544if test "${ac_cv_func_shl_load+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10546else
10547 cat >conftest.$ac_ext <<_ACEOF
10548/* confdefs.h. */
10549_ACEOF
10550cat confdefs.h >>conftest.$ac_ext
10551cat >>conftest.$ac_ext <<_ACEOF
10552/* end confdefs.h. */
10553/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10555#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010556
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010557/* System header to define __stub macros and hopefully few prototypes,
10558 which can conflict with char shl_load (); below.
10559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10560 <limits.h> exists even on freestanding compilers. */
10561
10562#ifdef __STDC__
10563# include <limits.h>
10564#else
10565# include <assert.h>
10566#endif
10567
10568#undef shl_load
10569
10570/* Override any GCC internal prototype to avoid an error.
10571 Use char because int might match the return type of a GCC
10572 builtin and then its argument prototype would still apply. */
10573#ifdef __cplusplus
10574extern "C"
10575#endif
10576char shl_load ();
10577/* The GNU C library defines this for functions which it implements
10578 to always fail with ENOSYS. Some functions are actually named
10579 something starting with __ and the normal name is an alias. */
10580#if defined __stub_shl_load || defined __stub___shl_load
10581choke me
10582#endif
10583
10584int
10585main ()
10586{
10587return shl_load ();
10588 ;
10589 return 0;
10590}
10591_ACEOF
10592rm -f conftest.$ac_objext conftest$ac_exeext
10593if { (ac_try="$ac_link"
10594case "(($ac_try" in
10595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10597esac
10598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599 (eval "$ac_link") 2>conftest.er1
10600 ac_status=$?
10601 grep -v '^ *+' conftest.er1 >conftest.err
10602 rm -f conftest.er1
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } &&
10606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10607 { (case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10610esac
10611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_try") 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; } &&
10616 { ac_try='test -s conftest$ac_exeext'
10617 { (case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620esac
10621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_try") 2>&5
10623 ac_status=$?
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }; then
10626 ac_cv_func_shl_load=yes
10627else
10628 echo "$as_me: failed program was:" >&5
10629sed 's/^/| /' conftest.$ac_ext >&5
10630
10631 ac_cv_func_shl_load=no
10632fi
10633
10634rm -f core conftest.err conftest.$ac_objext \
10635 conftest$ac_exeext conftest.$ac_ext
10636fi
10637{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10638echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10639if test $ac_cv_func_shl_load = yes; then
10640
10641cat >>confdefs.h <<\_ACEOF
10642#define HAVE_SHL_LOAD 1
10643_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010644
10645else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010646 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10647echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10648if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010650else
10651 ac_check_lib_save_LIBS=$LIBS
10652LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010653cat >conftest.$ac_ext <<_ACEOF
10654/* confdefs.h. */
10655_ACEOF
10656cat confdefs.h >>conftest.$ac_ext
10657cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010658/* end confdefs.h. */
10659
Reid Spencera773bd52006-08-04 18:18:08 +000010660/* Override any GCC internal prototype to avoid an error.
10661 Use char because int might match the return type of a GCC
10662 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010663#ifdef __cplusplus
10664extern "C"
10665#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010666char shl_load ();
10667int
10668main ()
10669{
Reid Spencera773bd52006-08-04 18:18:08 +000010670return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010671 ;
10672 return 0;
10673}
10674_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010675rm -f conftest.$ac_objext conftest$ac_exeext
10676if { (ac_try="$ac_link"
10677case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10680esac
10681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10682 (eval "$ac_link") 2>conftest.er1
10683 ac_status=$?
10684 grep -v '^ *+' conftest.er1 >conftest.err
10685 rm -f conftest.er1
10686 cat conftest.err >&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); } &&
10689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10690 { (case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10693esac
10694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_try") 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; } &&
10699 { ac_try='test -s conftest$ac_exeext'
10700 { (case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10703esac
10704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705 (eval "$ac_try") 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010709 ac_cv_lib_dld_shl_load=yes
10710else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010711 echo "$as_me: failed program was:" >&5
10712sed 's/^/| /' conftest.$ac_ext >&5
10713
10714 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010715fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010716
Bill Wendlingebcceee2009-04-18 11:20:33 +000010717rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010718 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719LIBS=$ac_check_lib_save_LIBS
10720fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010721{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10722echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10723if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010725cat >>confdefs.h <<\_ACEOF
10726#define HAVE_SHL_LOAD 1
10727_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010728
10729 LIBADD_DL="$LIBADD_DL -ldld"
10730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010731 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10732echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10733if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010735else
10736 ac_check_lib_save_LIBS=$LIBS
10737LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010738cat >conftest.$ac_ext <<_ACEOF
10739/* confdefs.h. */
10740_ACEOF
10741cat confdefs.h >>conftest.$ac_ext
10742cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010743/* end confdefs.h. */
10744
Reid Spencera773bd52006-08-04 18:18:08 +000010745/* Override any GCC internal prototype to avoid an error.
10746 Use char because int might match the return type of a GCC
10747 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010748#ifdef __cplusplus
10749extern "C"
10750#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010751char dlopen ();
10752int
10753main ()
10754{
Reid Spencera773bd52006-08-04 18:18:08 +000010755return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010756 ;
10757 return 0;
10758}
10759_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010760rm -f conftest.$ac_objext conftest$ac_exeext
10761if { (ac_try="$ac_link"
10762case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765esac
10766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_link") 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } &&
10774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10775 { (case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10778esac
10779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_try") 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; } &&
10784 { ac_try='test -s conftest$ac_exeext'
10785 { (case "(($ac_try" in
10786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787 *) ac_try_echo=$ac_try;;
10788esac
10789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10790 (eval "$ac_try") 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010794 ac_cv_lib_dl_dlopen=yes
10795else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010796 echo "$as_me: failed program was:" >&5
10797sed 's/^/| /' conftest.$ac_ext >&5
10798
10799 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010800fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010801
Bill Wendlingebcceee2009-04-18 11:20:33 +000010802rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010803 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010804LIBS=$ac_check_lib_save_LIBS
10805fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010806{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10807echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10808if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010809
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010810cat >>confdefs.h <<\_ACEOF
10811#define HAVE_LIBDL 1
10812_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010813
10814 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010816 cat >conftest.$ac_ext <<_ACEOF
10817/* confdefs.h. */
10818_ACEOF
10819cat confdefs.h >>conftest.$ac_ext
10820cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010821/* end confdefs.h. */
10822#if HAVE_DLFCN_H
10823# include <dlfcn.h>
10824#endif
10825
10826int
10827main ()
10828{
10829dlopen(0, 0);
10830 ;
10831 return 0;
10832}
10833_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010834rm -f conftest.$ac_objext conftest$ac_exeext
10835if { (ac_try="$ac_link"
10836case "(($ac_try" in
10837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838 *) ac_try_echo=$ac_try;;
10839esac
10840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841 (eval "$ac_link") 2>conftest.er1
10842 ac_status=$?
10843 grep -v '^ *+' conftest.er1 >conftest.err
10844 rm -f conftest.er1
10845 cat conftest.err >&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } &&
10848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10849 { (case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10852esac
10853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_try") 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; } &&
10858 { ac_try='test -s conftest$ac_exeext'
10859 { (case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862esac
10863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 (eval "$ac_try") 2>&5
10865 ac_status=$?
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010869cat >>confdefs.h <<\_ACEOF
10870#define HAVE_LIBDL 1
10871_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010872 libltdl_cv_func_dlopen="yes"
10873else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010874 echo "$as_me: failed program was:" >&5
10875sed 's/^/| /' conftest.$ac_ext >&5
10876
10877 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10878echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10879if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010881else
10882 ac_check_lib_save_LIBS=$LIBS
10883LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010884cat >conftest.$ac_ext <<_ACEOF
10885/* confdefs.h. */
10886_ACEOF
10887cat confdefs.h >>conftest.$ac_ext
10888cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010889/* end confdefs.h. */
10890
Reid Spencera773bd52006-08-04 18:18:08 +000010891/* Override any GCC internal prototype to avoid an error.
10892 Use char because int might match the return type of a GCC
10893 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010894#ifdef __cplusplus
10895extern "C"
10896#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010897char dlopen ();
10898int
10899main ()
10900{
Reid Spencera773bd52006-08-04 18:18:08 +000010901return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010902 ;
10903 return 0;
10904}
10905_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010906rm -f conftest.$ac_objext conftest$ac_exeext
10907if { (ac_try="$ac_link"
10908case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10911esac
10912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_link") 2>conftest.er1
10914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10921 { (case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924esac
10925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_try") 2>&5
10927 ac_status=$?
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; } &&
10930 { ac_try='test -s conftest$ac_exeext'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10934esac
10935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010940 ac_cv_lib_svld_dlopen=yes
10941else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010942 echo "$as_me: failed program was:" >&5
10943sed 's/^/| /' conftest.$ac_ext >&5
10944
10945 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010946fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010947
Bill Wendlingebcceee2009-04-18 11:20:33 +000010948rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010949 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010950LIBS=$ac_check_lib_save_LIBS
10951fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010952{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10953echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10954if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010956cat >>confdefs.h <<\_ACEOF
10957#define HAVE_LIBDL 1
10958_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010959
10960 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010962 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10963echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10964if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010966else
10967 ac_check_lib_save_LIBS=$LIBS
10968LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010969cat >conftest.$ac_ext <<_ACEOF
10970/* confdefs.h. */
10971_ACEOF
10972cat confdefs.h >>conftest.$ac_ext
10973cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010974/* end confdefs.h. */
10975
Reid Spencera773bd52006-08-04 18:18:08 +000010976/* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979#ifdef __cplusplus
10980extern "C"
10981#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010982char dld_link ();
10983int
10984main ()
10985{
Reid Spencera773bd52006-08-04 18:18:08 +000010986return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010987 ;
10988 return 0;
10989}
10990_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010991rm -f conftest.$ac_objext conftest$ac_exeext
10992if { (ac_try="$ac_link"
10993case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10996esac
10997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_link") 2>conftest.er1
10999 ac_status=$?
11000 grep -v '^ *+' conftest.er1 >conftest.err
11001 rm -f conftest.er1
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11006 { (case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11009esac
11010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011 (eval "$ac_try") 2>&5
11012 ac_status=$?
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; } &&
11015 { ac_try='test -s conftest$ac_exeext'
11016 { (case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019esac
11020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_try") 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011025 ac_cv_lib_dld_dld_link=yes
11026else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011027 echo "$as_me: failed program was:" >&5
11028sed 's/^/| /' conftest.$ac_ext >&5
11029
11030 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011031fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011032
Bill Wendlingebcceee2009-04-18 11:20:33 +000011033rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011034 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011035LIBS=$ac_check_lib_save_LIBS
11036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011037{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11038echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11039if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011041cat >>confdefs.h <<\_ACEOF
11042#define HAVE_DLD 1
11043_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011044
11045 LIBADD_DL="$LIBADD_DL -ldld"
11046else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011047 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11048echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11049if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11051else
11052 cat >conftest.$ac_ext <<_ACEOF
11053/* confdefs.h. */
11054_ACEOF
11055cat confdefs.h >>conftest.$ac_ext
11056cat >>conftest.$ac_ext <<_ACEOF
11057/* end confdefs.h. */
11058/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11060#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011062/* System header to define __stub macros and hopefully few prototypes,
11063 which can conflict with char _dyld_func_lookup (); below.
11064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11065 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011067#ifdef __STDC__
11068# include <limits.h>
11069#else
11070# include <assert.h>
11071#endif
11072
11073#undef _dyld_func_lookup
11074
11075/* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
11078#ifdef __cplusplus
11079extern "C"
11080#endif
11081char _dyld_func_lookup ();
11082/* The GNU C library defines this for functions which it implements
11083 to always fail with ENOSYS. Some functions are actually named
11084 something starting with __ and the normal name is an alias. */
11085#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11086choke me
11087#endif
11088
11089int
11090main ()
11091{
11092return _dyld_func_lookup ();
11093 ;
11094 return 0;
11095}
11096_ACEOF
11097rm -f conftest.$ac_objext conftest$ac_exeext
11098if { (ac_try="$ac_link"
11099case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11102esac
11103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 (eval "$ac_link") 2>conftest.er1
11105 ac_status=$?
11106 grep -v '^ *+' conftest.er1 >conftest.err
11107 rm -f conftest.er1
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11112 { (case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11115esac
11116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_try") 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; } &&
11121 { ac_try='test -s conftest$ac_exeext'
11122 { (case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11125esac
11126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_try") 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 ac_cv_func__dyld_func_lookup=yes
11132else
11133 echo "$as_me: failed program was:" >&5
11134sed 's/^/| /' conftest.$ac_ext >&5
11135
11136 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011137fi
Reid Spencera773bd52006-08-04 18:18:08 +000011138
Bill Wendlingebcceee2009-04-18 11:20:33 +000011139rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011140 conftest$ac_exeext conftest.$ac_ext
11141fi
11142{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11143echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11144if test $ac_cv_func__dyld_func_lookup = yes; then
11145
11146cat >>confdefs.h <<\_ACEOF
11147#define HAVE_DYLD 1
11148_ACEOF
11149
11150fi
11151
11152
11153fi
11154
11155
11156fi
11157
11158
11159fi
11160
11161rm -f core conftest.err conftest.$ac_objext \
11162 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011163
11164fi
11165
11166
11167fi
11168
11169
11170fi
11171
11172
11173if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11174then
11175 lt_save_LIBS="$LIBS"
11176 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011177
11178for ac_func in dlerror
11179do
11180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11181{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11183if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185else
11186 cat >conftest.$ac_ext <<_ACEOF
11187/* confdefs.h. */
11188_ACEOF
11189cat confdefs.h >>conftest.$ac_ext
11190cat >>conftest.$ac_ext <<_ACEOF
11191/* end confdefs.h. */
11192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11194#define $ac_func innocuous_$ac_func
11195
11196/* System header to define __stub macros and hopefully few prototypes,
11197 which can conflict with char $ac_func (); below.
11198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11199 <limits.h> exists even on freestanding compilers. */
11200
11201#ifdef __STDC__
11202# include <limits.h>
11203#else
11204# include <assert.h>
11205#endif
11206
11207#undef $ac_func
11208
11209/* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
11212#ifdef __cplusplus
11213extern "C"
11214#endif
11215char $ac_func ();
11216/* The GNU C library defines this for functions which it implements
11217 to always fail with ENOSYS. Some functions are actually named
11218 something starting with __ and the normal name is an alias. */
11219#if defined __stub_$ac_func || defined __stub___$ac_func
11220choke me
11221#endif
11222
11223int
11224main ()
11225{
11226return $ac_func ();
11227 ;
11228 return 0;
11229}
11230_ACEOF
11231rm -f conftest.$ac_objext conftest$ac_exeext
11232if { (ac_try="$ac_link"
11233case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11236esac
11237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_link") 2>conftest.er1
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } &&
11245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11246 { (case "(($ac_try" in
11247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248 *) ac_try_echo=$ac_try;;
11249esac
11250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251 (eval "$ac_try") 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try='test -s conftest$ac_exeext'
11256 { (case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11259esac
11260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_try") 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; }; then
11265 eval "$as_ac_var=yes"
11266else
11267 echo "$as_me: failed program was:" >&5
11268sed 's/^/| /' conftest.$ac_ext >&5
11269
11270 eval "$as_ac_var=no"
11271fi
11272
11273rm -f core conftest.err conftest.$ac_objext \
11274 conftest$ac_exeext conftest.$ac_ext
11275fi
11276ac_res=`eval echo '${'$as_ac_var'}'`
11277 { echo "$as_me:$LINENO: result: $ac_res" >&5
11278echo "${ECHO_T}$ac_res" >&6; }
11279if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011280 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011282_ACEOF
11283
11284fi
11285done
11286
11287 LIBS="$lt_save_LIBS"
11288fi
11289ac_ext=c
11290ac_cpp='$CPP $CPPFLAGS'
11291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11293ac_compiler_gnu=$ac_cv_c_compiler_gnu
11294
11295
11296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011297{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11298echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11299if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011301else
11302 ac_cv_sys_symbol_underscore=no
11303 cat > conftest.$ac_ext <<EOF
11304void nm_test_func(){}
11305int main(){nm_test_func;return 0;}
11306EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011308 (eval $ac_compile) 2>&5
11309 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011312 # Now try to grab the symbols.
11313 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011314 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 +000011315 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11316 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011319 # See whether the symbols have a leading underscore.
11320 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11321 ac_cv_sys_symbol_underscore=yes
11322 else
11323 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11324 :
11325 else
11326 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11327 fi
11328 fi
11329 else
11330 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11331 fi
11332 else
11333 echo "configure: failed program was:" >&5
11334 cat conftest.c >&5
11335 fi
11336 rm -rf conftest*
11337
11338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011339{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11340echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011341
11342
11343if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11344 if test x"$libltdl_cv_func_dlopen" = xyes ||
11345 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011346 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11347echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11348if test "${libltdl_cv_need_uscore+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011350else
11351 libltdl_cv_need_uscore=unknown
11352 save_LIBS="$LIBS"
11353 LIBS="$LIBS $LIBADD_DL"
11354 if test "$cross_compiling" = yes; then :
11355 libltdl_cv_need_uscore=cross
11356else
11357 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11358 lt_status=$lt_dlunknown
11359 cat > conftest.$ac_ext <<EOF
mike-m68cb3192010-05-06 23:45:43 +000011360#line 11360 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011361#include "confdefs.h"
11362
11363#if HAVE_DLFCN_H
11364#include <dlfcn.h>
11365#endif
11366
11367#include <stdio.h>
11368
11369#ifdef RTLD_GLOBAL
11370# define LT_DLGLOBAL RTLD_GLOBAL
11371#else
11372# ifdef DL_GLOBAL
11373# define LT_DLGLOBAL DL_GLOBAL
11374# else
11375# define LT_DLGLOBAL 0
11376# endif
11377#endif
11378
11379/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11380 find out it does not work in some platform. */
11381#ifndef LT_DLLAZY_OR_NOW
11382# ifdef RTLD_LAZY
11383# define LT_DLLAZY_OR_NOW RTLD_LAZY
11384# else
11385# ifdef DL_LAZY
11386# define LT_DLLAZY_OR_NOW DL_LAZY
11387# else
11388# ifdef RTLD_NOW
11389# define LT_DLLAZY_OR_NOW RTLD_NOW
11390# else
11391# ifdef DL_NOW
11392# define LT_DLLAZY_OR_NOW DL_NOW
11393# else
11394# define LT_DLLAZY_OR_NOW 0
11395# endif
11396# endif
11397# endif
11398# endif
11399#endif
11400
11401#ifdef __cplusplus
11402extern "C" void exit (int);
11403#endif
11404
11405void fnord() { int i=42;}
11406int main ()
11407{
11408 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11409 int status = $lt_dlunknown;
11410
11411 if (self)
11412 {
11413 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11414 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11415 /* dlclose (self); */
11416 }
Reid Spencera773bd52006-08-04 18:18:08 +000011417 else
11418 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011419
11420 exit (status);
11421}
11422EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011424 (eval $ac_link) 2>&5
11425 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011428 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011429 lt_status=$?
11430 case x$lt_status in
11431 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11432 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011433 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011434 esac
11435 else :
11436 # compilation failed
11437
11438 fi
11439fi
11440rm -fr conftest*
11441
11442 LIBS="$save_LIBS"
11443
11444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011445{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11446echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011447 fi
11448fi
11449
11450if test x"$libltdl_cv_need_uscore" = xyes; then
11451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011452cat >>confdefs.h <<\_ACEOF
11453#define NEED_USCORE 1
11454_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011455
11456fi
11457
11458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011459{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11460echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11461if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011463else
11464 # PORTME does your system automatically load deplibs for dlopen?
11465 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11466 # For now, we just catch OSes we know something about -- in the
11467 # future, we'll try test this programmatically.
11468 libltdl_cv_sys_dlopen_deplibs=unknown
11469 case "$host_os" in
11470 aix3*|aix4.1.*|aix4.2.*)
11471 # Unknown whether this is true for these versions of AIX, but
11472 # we want this `case' here to explicitly catch those versions.
11473 libltdl_cv_sys_dlopen_deplibs=unknown
11474 ;;
11475 aix[45]*)
11476 libltdl_cv_sys_dlopen_deplibs=yes
11477 ;;
11478 darwin*)
11479 # Assuming the user has installed a libdl from somewhere, this is true
11480 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11481 libltdl_cv_sys_dlopen_deplibs=yes
11482 ;;
11483 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11484 # GNU and its variants, using gnu ld.so (Glibc)
11485 libltdl_cv_sys_dlopen_deplibs=yes
11486 ;;
11487 hpux10*|hpux11*)
11488 libltdl_cv_sys_dlopen_deplibs=yes
11489 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011490 interix*)
11491 libltdl_cv_sys_dlopen_deplibs=yes
11492 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011493 irix[12345]*|irix6.[01]*)
11494 # Catch all versions of IRIX before 6.2, and indicate that we don't
11495 # know how it worked for any of those versions.
11496 libltdl_cv_sys_dlopen_deplibs=unknown
11497 ;;
11498 irix*)
11499 # The case above catches anything before 6.2, and it's known that
11500 # at 6.2 and later dlopen does load deplibs.
11501 libltdl_cv_sys_dlopen_deplibs=yes
11502 ;;
11503 netbsd*)
11504 libltdl_cv_sys_dlopen_deplibs=yes
11505 ;;
11506 openbsd*)
11507 libltdl_cv_sys_dlopen_deplibs=yes
11508 ;;
11509 osf[1234]*)
11510 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11511 # it did *not* use an RPATH in a shared library to find objects the
11512 # library depends on, so we explictly say `no'.
11513 libltdl_cv_sys_dlopen_deplibs=no
11514 ;;
11515 osf5.0|osf5.0a|osf5.1)
11516 # dlopen *does* load deplibs and with the right loader patch applied
11517 # it even uses RPATH in a shared library to search for shared objects
11518 # that the library depends on, but there's no easy way to know if that
11519 # patch is installed. Since this is the case, all we can really
11520 # say is unknown -- it depends on the patch being installed. If
11521 # it is, this changes to `yes'. Without it, it would be `no'.
11522 libltdl_cv_sys_dlopen_deplibs=unknown
11523 ;;
11524 osf*)
11525 # the two cases above should catch all versions of osf <= 5.1. Read
11526 # the comments above for what we know about them.
11527 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11528 # is used to find them so we can finally say `yes'.
11529 libltdl_cv_sys_dlopen_deplibs=yes
11530 ;;
11531 solaris*)
11532 libltdl_cv_sys_dlopen_deplibs=yes
11533 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11535 libltdl_cv_sys_dlopen_deplibs=yes
11536 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011537 esac
11538
11539fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011540{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11541echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011542if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011544cat >>confdefs.h <<\_ACEOF
11545#define LTDL_DLOPEN_DEPLIBS 1
11546_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011547
11548fi
11549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011550
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011551for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011552do
11553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11559fi
11560ac_res=`eval echo '${'$as_ac_Header'}'`
11561 { echo "$as_me:$LINENO: result: $ac_res" >&5
11562echo "${ECHO_T}$ac_res" >&6; }
11563else
11564 # Is the header compilable?
11565{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11567cat >conftest.$ac_ext <<_ACEOF
11568/* confdefs.h. */
11569_ACEOF
11570cat confdefs.h >>conftest.$ac_ext
11571cat >>conftest.$ac_ext <<_ACEOF
11572/* end confdefs.h. */
11573$ac_includes_default
11574#include <$ac_header>
11575_ACEOF
11576rm -f conftest.$ac_objext
11577if { (ac_try="$ac_compile"
11578case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11581esac
11582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_compile") 2>conftest.er1
11584 ac_status=$?
11585 grep -v '^ *+' conftest.er1 >conftest.err
11586 rm -f conftest.er1
11587 cat conftest.err >&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } &&
11590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11591 { (case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11594esac
11595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_try") 2>&5
11597 ac_status=$?
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; } &&
11600 { ac_try='test -s conftest.$ac_objext'
11601 { (case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11604esac
11605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11606 (eval "$ac_try") 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 ac_header_compiler=yes
11611else
11612 echo "$as_me: failed program was:" >&5
11613sed 's/^/| /' conftest.$ac_ext >&5
11614
11615 ac_header_compiler=no
11616fi
11617
11618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11619{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11620echo "${ECHO_T}$ac_header_compiler" >&6; }
11621
11622# Is the header present?
11623{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11624echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11625cat >conftest.$ac_ext <<_ACEOF
11626/* confdefs.h. */
11627_ACEOF
11628cat confdefs.h >>conftest.$ac_ext
11629cat >>conftest.$ac_ext <<_ACEOF
11630/* end confdefs.h. */
11631#include <$ac_header>
11632_ACEOF
11633if { (ac_try="$ac_cpp conftest.$ac_ext"
11634case "(($ac_try" in
11635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636 *) ac_try_echo=$ac_try;;
11637esac
11638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11640 ac_status=$?
11641 grep -v '^ *+' conftest.er1 >conftest.err
11642 rm -f conftest.er1
11643 cat conftest.err >&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } >/dev/null; then
11646 if test -s conftest.err; then
11647 ac_cpp_err=$ac_c_preproc_warn_flag
11648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11649 else
11650 ac_cpp_err=
11651 fi
11652else
11653 ac_cpp_err=yes
11654fi
11655if test -z "$ac_cpp_err"; then
11656 ac_header_preproc=yes
11657else
11658 echo "$as_me: failed program was:" >&5
11659sed 's/^/| /' conftest.$ac_ext >&5
11660
11661 ac_header_preproc=no
11662fi
11663
11664rm -f conftest.err conftest.$ac_ext
11665{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11666echo "${ECHO_T}$ac_header_preproc" >&6; }
11667
11668# So? What about this header?
11669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11670 yes:no: )
11671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11675 ac_header_preproc=yes
11676 ;;
11677 no:yes:* )
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11681echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11685echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11690 ( cat <<\_ASBOX
11691## ----------------------------------- ##
11692## Report this to llvmbugs@cs.uiuc.edu ##
11693## ----------------------------------- ##
11694_ASBOX
11695 ) | sed "s/^/$as_me: WARNING: /" >&2
11696 ;;
11697esac
11698{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11702else
11703 eval "$as_ac_Header=\$ac_header_preproc"
11704fi
11705ac_res=`eval echo '${'$as_ac_Header'}'`
11706 { echo "$as_me:$LINENO: result: $ac_res" >&5
11707echo "${ECHO_T}$ac_res" >&6; }
11708
11709fi
11710if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011713_ACEOF
11714
11715fi
11716
11717done
11718
11719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011720{ echo "$as_me:$LINENO: checking for error_t" >&5
11721echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11722if test "${ac_cv_type_error_t+set}" = set; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11724else
11725 cat >conftest.$ac_ext <<_ACEOF
11726/* confdefs.h. */
11727_ACEOF
11728cat confdefs.h >>conftest.$ac_ext
11729cat >>conftest.$ac_ext <<_ACEOF
11730/* end confdefs.h. */
11731#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011732# include <argz.h>
11733#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011734
11735typedef error_t ac__type_new_;
11736int
11737main ()
11738{
11739if ((ac__type_new_ *) 0)
11740 return 0;
11741if (sizeof (ac__type_new_))
11742 return 0;
11743 ;
11744 return 0;
11745}
11746_ACEOF
11747rm -f conftest.$ac_objext
11748if { (ac_try="$ac_compile"
11749case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11752esac
11753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_compile") 2>conftest.er1
11755 ac_status=$?
11756 grep -v '^ *+' conftest.er1 >conftest.err
11757 rm -f conftest.er1
11758 cat conftest.err >&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11762 { (case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11765esac
11766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_try") 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; } &&
11771 { ac_try='test -s conftest.$ac_objext'
11772 { (case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11775esac
11776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_try") 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 ac_cv_type_error_t=yes
11782else
11783 echo "$as_me: failed program was:" >&5
11784sed 's/^/| /' conftest.$ac_ext >&5
11785
11786 ac_cv_type_error_t=no
11787fi
11788
11789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11790fi
11791{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11792echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11793if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011794
11795cat >>confdefs.h <<_ACEOF
11796#define HAVE_ERROR_T 1
11797_ACEOF
11798
11799
11800else
11801
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011802cat >>confdefs.h <<\_ACEOF
11803#define error_t int
11804_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011805
11806fi
11807
11808
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011809
11810
11811
11812
11813
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011815do
11816as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11817{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11818echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11819if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821else
11822 cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
11828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11830#define $ac_func innocuous_$ac_func
11831
11832/* System header to define __stub macros and hopefully few prototypes,
11833 which can conflict with char $ac_func (); below.
11834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11835 <limits.h> exists even on freestanding compilers. */
11836
11837#ifdef __STDC__
11838# include <limits.h>
11839#else
11840# include <assert.h>
11841#endif
11842
11843#undef $ac_func
11844
11845/* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11848#ifdef __cplusplus
11849extern "C"
11850#endif
11851char $ac_func ();
11852/* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855#if defined __stub_$ac_func || defined __stub___$ac_func
11856choke me
11857#endif
11858
11859int
11860main ()
11861{
11862return $ac_func ();
11863 ;
11864 return 0;
11865}
11866_ACEOF
11867rm -f conftest.$ac_objext conftest$ac_exeext
11868if { (ac_try="$ac_link"
11869case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11872esac
11873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_link") 2>conftest.er1
11875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885esac
11886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest$ac_exeext'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11895esac
11896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 eval "$as_ac_var=yes"
11902else
11903 echo "$as_me: failed program was:" >&5
11904sed 's/^/| /' conftest.$ac_ext >&5
11905
11906 eval "$as_ac_var=no"
11907fi
11908
11909rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11911fi
11912ac_res=`eval echo '${'$as_ac_var'}'`
11913 { echo "$as_me:$LINENO: result: $ac_res" >&5
11914echo "${ECHO_T}$ac_res" >&6; }
11915if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011916 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011917#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011918_ACEOF
11919
11920fi
11921done
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011942
11943
11944
11945
11946
11947
11948
11949
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011950for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11951 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011952do
11953as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11959fi
11960ac_res=`eval echo '${'$as_ac_Header'}'`
11961 { echo "$as_me:$LINENO: result: $ac_res" >&5
11962echo "${ECHO_T}$ac_res" >&6; }
11963else
11964 # Is the header compilable?
11965{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11966echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11967cat >conftest.$ac_ext <<_ACEOF
11968/* confdefs.h. */
11969_ACEOF
11970cat confdefs.h >>conftest.$ac_ext
11971cat >>conftest.$ac_ext <<_ACEOF
11972/* end confdefs.h. */
11973$ac_includes_default
11974#include <$ac_header>
11975_ACEOF
11976rm -f conftest.$ac_objext
11977if { (ac_try="$ac_compile"
11978case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11981esac
11982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983 (eval "$ac_compile") 2>conftest.er1
11984 ac_status=$?
11985 grep -v '^ *+' conftest.er1 >conftest.err
11986 rm -f conftest.er1
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } &&
11990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11991 { (case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11994esac
11995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996 (eval "$ac_try") 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; } &&
12000 { ac_try='test -s conftest.$ac_objext'
12001 { (case "(($ac_try" in
12002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003 *) ac_try_echo=$ac_try;;
12004esac
12005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006 (eval "$ac_try") 2>&5
12007 ac_status=$?
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
12010 ac_header_compiler=yes
12011else
12012 echo "$as_me: failed program was:" >&5
12013sed 's/^/| /' conftest.$ac_ext >&5
12014
12015 ac_header_compiler=no
12016fi
12017
12018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12020echo "${ECHO_T}$ac_header_compiler" >&6; }
12021
12022# Is the header present?
12023{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12024echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12025cat >conftest.$ac_ext <<_ACEOF
12026/* confdefs.h. */
12027_ACEOF
12028cat confdefs.h >>conftest.$ac_ext
12029cat >>conftest.$ac_ext <<_ACEOF
12030/* end confdefs.h. */
12031#include <$ac_header>
12032_ACEOF
12033if { (ac_try="$ac_cpp conftest.$ac_ext"
12034case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12037esac
12038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12040 ac_status=$?
12041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } >/dev/null; then
12046 if test -s conftest.err; then
12047 ac_cpp_err=$ac_c_preproc_warn_flag
12048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12049 else
12050 ac_cpp_err=
12051 fi
12052else
12053 ac_cpp_err=yes
12054fi
12055if test -z "$ac_cpp_err"; then
12056 ac_header_preproc=yes
12057else
12058 echo "$as_me: failed program was:" >&5
12059sed 's/^/| /' conftest.$ac_ext >&5
12060
12061 ac_header_preproc=no
12062fi
12063
12064rm -f conftest.err conftest.$ac_ext
12065{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12066echo "${ECHO_T}$ac_header_preproc" >&6; }
12067
12068# So? What about this header?
12069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12070 yes:no: )
12071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12072echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12074echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12075 ac_header_preproc=yes
12076 ;;
12077 no:yes:* )
12078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12079echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12081echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12083echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12085echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12089echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12090 ( cat <<\_ASBOX
12091## ----------------------------------- ##
12092## Report this to llvmbugs@cs.uiuc.edu ##
12093## ----------------------------------- ##
12094_ASBOX
12095 ) | sed "s/^/$as_me: WARNING: /" >&2
12096 ;;
12097esac
12098{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102else
12103 eval "$as_ac_Header=\$ac_header_preproc"
12104fi
12105ac_res=`eval echo '${'$as_ac_Header'}'`
12106 { echo "$as_me:$LINENO: result: $ac_res" >&5
12107echo "${ECHO_T}$ac_res" >&6; }
12108
12109fi
12110if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012111 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012112#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012113_ACEOF
12114
12115fi
12116
12117done
12118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012119
12120
12121
12122
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012123for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012124do
12125as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12131fi
12132ac_res=`eval echo '${'$as_ac_Header'}'`
12133 { echo "$as_me:$LINENO: result: $ac_res" >&5
12134echo "${ECHO_T}$ac_res" >&6; }
12135else
12136 # Is the header compilable?
12137{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12138echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12139cat >conftest.$ac_ext <<_ACEOF
12140/* confdefs.h. */
12141_ACEOF
12142cat confdefs.h >>conftest.$ac_ext
12143cat >>conftest.$ac_ext <<_ACEOF
12144/* end confdefs.h. */
12145$ac_includes_default
12146#include <$ac_header>
12147_ACEOF
12148rm -f conftest.$ac_objext
12149if { (ac_try="$ac_compile"
12150case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12153esac
12154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_compile") 2>conftest.er1
12156 ac_status=$?
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -f conftest.er1
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } &&
12162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12163 { (case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166esac
12167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_try") 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest.$ac_objext'
12173 { (case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12176esac
12177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_try") 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; }; then
12182 ac_header_compiler=yes
12183else
12184 echo "$as_me: failed program was:" >&5
12185sed 's/^/| /' conftest.$ac_ext >&5
12186
12187 ac_header_compiler=no
12188fi
12189
12190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12192echo "${ECHO_T}$ac_header_compiler" >&6; }
12193
12194# Is the header present?
12195{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12196echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12197cat >conftest.$ac_ext <<_ACEOF
12198/* confdefs.h. */
12199_ACEOF
12200cat confdefs.h >>conftest.$ac_ext
12201cat >>conftest.$ac_ext <<_ACEOF
12202/* end confdefs.h. */
12203#include <$ac_header>
12204_ACEOF
12205if { (ac_try="$ac_cpp conftest.$ac_ext"
12206case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12209esac
12210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12212 ac_status=$?
12213 grep -v '^ *+' conftest.er1 >conftest.err
12214 rm -f conftest.er1
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } >/dev/null; then
12218 if test -s conftest.err; then
12219 ac_cpp_err=$ac_c_preproc_warn_flag
12220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12221 else
12222 ac_cpp_err=
12223 fi
12224else
12225 ac_cpp_err=yes
12226fi
12227if test -z "$ac_cpp_err"; then
12228 ac_header_preproc=yes
12229else
12230 echo "$as_me: failed program was:" >&5
12231sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 ac_header_preproc=no
12234fi
12235
12236rm -f conftest.err conftest.$ac_ext
12237{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12238echo "${ECHO_T}$ac_header_preproc" >&6; }
12239
12240# So? What about this header?
12241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12242 yes:no: )
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12244echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12246echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12247 ac_header_preproc=yes
12248 ;;
12249 no:yes:* )
12250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12251echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12253echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12255echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12257echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12259echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12261echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12262 ( cat <<\_ASBOX
12263## ----------------------------------- ##
12264## Report this to llvmbugs@cs.uiuc.edu ##
12265## ----------------------------------- ##
12266_ASBOX
12267 ) | sed "s/^/$as_me: WARNING: /" >&2
12268 ;;
12269esac
12270{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12274else
12275 eval "$as_ac_Header=\$ac_header_preproc"
12276fi
12277ac_res=`eval echo '${'$as_ac_Header'}'`
12278 { echo "$as_me:$LINENO: result: $ac_res" >&5
12279echo "${ECHO_T}$ac_res" >&6; }
12280
12281fi
12282if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012283 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012284#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012285_ACEOF
12286
12287fi
12288
12289done
12290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012291
12292
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012293for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012294do
12295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301fi
12302ac_res=`eval echo '${'$as_ac_Header'}'`
12303 { echo "$as_me:$LINENO: result: $ac_res" >&5
12304echo "${ECHO_T}$ac_res" >&6; }
12305else
12306 # Is the header compilable?
12307{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12308echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12309cat >conftest.$ac_ext <<_ACEOF
12310/* confdefs.h. */
12311_ACEOF
12312cat confdefs.h >>conftest.$ac_ext
12313cat >>conftest.$ac_ext <<_ACEOF
12314/* end confdefs.h. */
12315$ac_includes_default
12316#include <$ac_header>
12317_ACEOF
12318rm -f conftest.$ac_objext
12319if { (ac_try="$ac_compile"
12320case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12323esac
12324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_compile") 2>conftest.er1
12326 ac_status=$?
12327 grep -v '^ *+' conftest.er1 >conftest.err
12328 rm -f conftest.er1
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } &&
12332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12333 { (case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12336esac
12337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_try") 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; } &&
12342 { ac_try='test -s conftest.$ac_objext'
12343 { (case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12346esac
12347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_try") 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12352 ac_header_compiler=yes
12353else
12354 echo "$as_me: failed program was:" >&5
12355sed 's/^/| /' conftest.$ac_ext >&5
12356
12357 ac_header_compiler=no
12358fi
12359
12360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12362echo "${ECHO_T}$ac_header_compiler" >&6; }
12363
12364# Is the header present?
12365{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12366echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12367cat >conftest.$ac_ext <<_ACEOF
12368/* confdefs.h. */
12369_ACEOF
12370cat confdefs.h >>conftest.$ac_ext
12371cat >>conftest.$ac_ext <<_ACEOF
12372/* end confdefs.h. */
12373#include <$ac_header>
12374_ACEOF
12375if { (ac_try="$ac_cpp conftest.$ac_ext"
12376case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12379esac
12380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12382 ac_status=$?
12383 grep -v '^ *+' conftest.er1 >conftest.err
12384 rm -f conftest.er1
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } >/dev/null; then
12388 if test -s conftest.err; then
12389 ac_cpp_err=$ac_c_preproc_warn_flag
12390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12391 else
12392 ac_cpp_err=
12393 fi
12394else
12395 ac_cpp_err=yes
12396fi
12397if test -z "$ac_cpp_err"; then
12398 ac_header_preproc=yes
12399else
12400 echo "$as_me: failed program was:" >&5
12401sed 's/^/| /' conftest.$ac_ext >&5
12402
12403 ac_header_preproc=no
12404fi
12405
12406rm -f conftest.err conftest.$ac_ext
12407{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12408echo "${ECHO_T}$ac_header_preproc" >&6; }
12409
12410# So? What about this header?
12411case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12412 yes:no: )
12413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12414echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12416echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12417 ac_header_preproc=yes
12418 ;;
12419 no:yes:* )
12420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12421echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12423echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12425echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12427echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12429echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12431echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12432 ( cat <<\_ASBOX
12433## ----------------------------------- ##
12434## Report this to llvmbugs@cs.uiuc.edu ##
12435## ----------------------------------- ##
12436_ASBOX
12437 ) | sed "s/^/$as_me: WARNING: /" >&2
12438 ;;
12439esac
12440{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12444else
12445 eval "$as_ac_Header=\$ac_header_preproc"
12446fi
12447ac_res=`eval echo '${'$as_ac_Header'}'`
12448 { echo "$as_me:$LINENO: result: $ac_res" >&5
12449echo "${ECHO_T}$ac_res" >&6; }
12450
12451fi
12452if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012453 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012455_ACEOF
12456 break
12457fi
12458
12459done
12460
12461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012462
12463
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012464for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012465do
12466as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12467{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12468echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12469if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12471else
12472 cat >conftest.$ac_ext <<_ACEOF
12473/* confdefs.h. */
12474_ACEOF
12475cat confdefs.h >>conftest.$ac_ext
12476cat >>conftest.$ac_ext <<_ACEOF
12477/* end confdefs.h. */
12478/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12480#define $ac_func innocuous_$ac_func
12481
12482/* System header to define __stub macros and hopefully few prototypes,
12483 which can conflict with char $ac_func (); below.
12484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12485 <limits.h> exists even on freestanding compilers. */
12486
12487#ifdef __STDC__
12488# include <limits.h>
12489#else
12490# include <assert.h>
12491#endif
12492
12493#undef $ac_func
12494
12495/* Override any GCC internal prototype to avoid an error.
12496 Use char because int might match the return type of a GCC
12497 builtin and then its argument prototype would still apply. */
12498#ifdef __cplusplus
12499extern "C"
12500#endif
12501char $ac_func ();
12502/* The GNU C library defines this for functions which it implements
12503 to always fail with ENOSYS. Some functions are actually named
12504 something starting with __ and the normal name is an alias. */
12505#if defined __stub_$ac_func || defined __stub___$ac_func
12506choke me
12507#endif
12508
12509int
12510main ()
12511{
12512return $ac_func ();
12513 ;
12514 return 0;
12515}
12516_ACEOF
12517rm -f conftest.$ac_objext conftest$ac_exeext
12518if { (ac_try="$ac_link"
12519case "(($ac_try" in
12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521 *) ac_try_echo=$ac_try;;
12522esac
12523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_link") 2>conftest.er1
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
12531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12532 { (case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12535esac
12536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_try") 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; } &&
12541 { ac_try='test -s conftest$ac_exeext'
12542 { (case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12545esac
12546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_try") 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; }; then
12551 eval "$as_ac_var=yes"
12552else
12553 echo "$as_me: failed program was:" >&5
12554sed 's/^/| /' conftest.$ac_ext >&5
12555
12556 eval "$as_ac_var=no"
12557fi
12558
12559rm -f core conftest.err conftest.$ac_objext \
12560 conftest$ac_exeext conftest.$ac_ext
12561fi
12562ac_res=`eval echo '${'$as_ac_var'}'`
12563 { echo "$as_me:$LINENO: result: $ac_res" >&5
12564echo "${ECHO_T}$ac_res" >&6; }
12565if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012566 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012567#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012568_ACEOF
12569 break
12570fi
12571done
12572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012573
12574
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012575for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012576do
12577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12578{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12580if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12582else
12583 cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
12589/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12591#define $ac_func innocuous_$ac_func
12592
12593/* System header to define __stub macros and hopefully few prototypes,
12594 which can conflict with char $ac_func (); below.
12595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12596 <limits.h> exists even on freestanding compilers. */
12597
12598#ifdef __STDC__
12599# include <limits.h>
12600#else
12601# include <assert.h>
12602#endif
12603
12604#undef $ac_func
12605
12606/* Override any GCC internal prototype to avoid an error.
12607 Use char because int might match the return type of a GCC
12608 builtin and then its argument prototype would still apply. */
12609#ifdef __cplusplus
12610extern "C"
12611#endif
12612char $ac_func ();
12613/* The GNU C library defines this for functions which it implements
12614 to always fail with ENOSYS. Some functions are actually named
12615 something starting with __ and the normal name is an alias. */
12616#if defined __stub_$ac_func || defined __stub___$ac_func
12617choke me
12618#endif
12619
12620int
12621main ()
12622{
12623return $ac_func ();
12624 ;
12625 return 0;
12626}
12627_ACEOF
12628rm -f conftest.$ac_objext conftest$ac_exeext
12629if { (ac_try="$ac_link"
12630case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12633esac
12634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_link") 2>conftest.er1
12636 ac_status=$?
12637 grep -v '^ *+' conftest.er1 >conftest.err
12638 rm -f conftest.er1
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12643 { (case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12646esac
12647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_try") 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest$ac_exeext'
12653 { (case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12656esac
12657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_try") 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 eval "$as_ac_var=yes"
12663else
12664 echo "$as_me: failed program was:" >&5
12665sed 's/^/| /' conftest.$ac_ext >&5
12666
12667 eval "$as_ac_var=no"
12668fi
12669
12670rm -f core conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
12672fi
12673ac_res=`eval echo '${'$as_ac_var'}'`
12674 { echo "$as_me:$LINENO: result: $ac_res" >&5
12675echo "${ECHO_T}$ac_res" >&6; }
12676if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012677 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012678#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012679_ACEOF
12680 break
12681fi
12682done
12683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012684
12685
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012686for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012687do
12688as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12689{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12690echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12691if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12693else
12694 cat >conftest.$ac_ext <<_ACEOF
12695/* confdefs.h. */
12696_ACEOF
12697cat confdefs.h >>conftest.$ac_ext
12698cat >>conftest.$ac_ext <<_ACEOF
12699/* end confdefs.h. */
12700/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12702#define $ac_func innocuous_$ac_func
12703
12704/* System header to define __stub macros and hopefully few prototypes,
12705 which can conflict with char $ac_func (); below.
12706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12707 <limits.h> exists even on freestanding compilers. */
12708
12709#ifdef __STDC__
12710# include <limits.h>
12711#else
12712# include <assert.h>
12713#endif
12714
12715#undef $ac_func
12716
12717/* Override any GCC internal prototype to avoid an error.
12718 Use char because int might match the return type of a GCC
12719 builtin and then its argument prototype would still apply. */
12720#ifdef __cplusplus
12721extern "C"
12722#endif
12723char $ac_func ();
12724/* The GNU C library defines this for functions which it implements
12725 to always fail with ENOSYS. Some functions are actually named
12726 something starting with __ and the normal name is an alias. */
12727#if defined __stub_$ac_func || defined __stub___$ac_func
12728choke me
12729#endif
12730
12731int
12732main ()
12733{
12734return $ac_func ();
12735 ;
12736 return 0;
12737}
12738_ACEOF
12739rm -f conftest.$ac_objext conftest$ac_exeext
12740if { (ac_try="$ac_link"
12741case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12744esac
12745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_link") 2>conftest.er1
12747 ac_status=$?
12748 grep -v '^ *+' conftest.er1 >conftest.err
12749 rm -f conftest.er1
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
12753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12754 { (case "(($ac_try" in
12755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756 *) ac_try_echo=$ac_try;;
12757esac
12758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759 (eval "$ac_try") 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try='test -s conftest$ac_exeext'
12764 { (case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12767esac
12768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_try") 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; }; then
12773 eval "$as_ac_var=yes"
12774else
12775 echo "$as_me: failed program was:" >&5
12776sed 's/^/| /' conftest.$ac_ext >&5
12777
12778 eval "$as_ac_var=no"
12779fi
12780
12781rm -f core conftest.err conftest.$ac_objext \
12782 conftest$ac_exeext conftest.$ac_ext
12783fi
12784ac_res=`eval echo '${'$as_ac_var'}'`
12785 { echo "$as_me:$LINENO: result: $ac_res" >&5
12786echo "${ECHO_T}$ac_res" >&6; }
12787if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012788 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012789#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012790_ACEOF
12791 break
12792fi
12793done
12794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012795
12796
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012797for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012798do
12799as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12800{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12801echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12802if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12804else
12805 cat >conftest.$ac_ext <<_ACEOF
12806/* confdefs.h. */
12807_ACEOF
12808cat confdefs.h >>conftest.$ac_ext
12809cat >>conftest.$ac_ext <<_ACEOF
12810/* end confdefs.h. */
12811/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12813#define $ac_func innocuous_$ac_func
12814
12815/* System header to define __stub macros and hopefully few prototypes,
12816 which can conflict with char $ac_func (); below.
12817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12818 <limits.h> exists even on freestanding compilers. */
12819
12820#ifdef __STDC__
12821# include <limits.h>
12822#else
12823# include <assert.h>
12824#endif
12825
12826#undef $ac_func
12827
12828/* Override any GCC internal prototype to avoid an error.
12829 Use char because int might match the return type of a GCC
12830 builtin and then its argument prototype would still apply. */
12831#ifdef __cplusplus
12832extern "C"
12833#endif
12834char $ac_func ();
12835/* The GNU C library defines this for functions which it implements
12836 to always fail with ENOSYS. Some functions are actually named
12837 something starting with __ and the normal name is an alias. */
12838#if defined __stub_$ac_func || defined __stub___$ac_func
12839choke me
12840#endif
12841
12842int
12843main ()
12844{
12845return $ac_func ();
12846 ;
12847 return 0;
12848}
12849_ACEOF
12850rm -f conftest.$ac_objext conftest$ac_exeext
12851if { (ac_try="$ac_link"
12852case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12855esac
12856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_link") 2>conftest.er1
12858 ac_status=$?
12859 grep -v '^ *+' conftest.er1 >conftest.err
12860 rm -f conftest.er1
12861 cat conftest.err >&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } &&
12864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12865 { (case "(($ac_try" in
12866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12867 *) ac_try_echo=$ac_try;;
12868esac
12869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12870 (eval "$ac_try") 2>&5
12871 ac_status=$?
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; } &&
12874 { ac_try='test -s conftest$ac_exeext'
12875 { (case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12878esac
12879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_try") 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12884 eval "$as_ac_var=yes"
12885else
12886 echo "$as_me: failed program was:" >&5
12887sed 's/^/| /' conftest.$ac_ext >&5
12888
12889 eval "$as_ac_var=no"
12890fi
12891
12892rm -f core conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext conftest.$ac_ext
12894fi
12895ac_res=`eval echo '${'$as_ac_var'}'`
12896 { echo "$as_me:$LINENO: result: $ac_res" >&5
12897echo "${ECHO_T}$ac_res" >&6; }
12898if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012899 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012901_ACEOF
12902
12903fi
12904done
12905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012906
12907
12908
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012909for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012910do
12911as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12912{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12913echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12914if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12916else
12917 cat >conftest.$ac_ext <<_ACEOF
12918/* confdefs.h. */
12919_ACEOF
12920cat confdefs.h >>conftest.$ac_ext
12921cat >>conftest.$ac_ext <<_ACEOF
12922/* end confdefs.h. */
12923/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12925#define $ac_func innocuous_$ac_func
12926
12927/* System header to define __stub macros and hopefully few prototypes,
12928 which can conflict with char $ac_func (); below.
12929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12930 <limits.h> exists even on freestanding compilers. */
12931
12932#ifdef __STDC__
12933# include <limits.h>
12934#else
12935# include <assert.h>
12936#endif
12937
12938#undef $ac_func
12939
12940/* Override any GCC internal prototype to avoid an error.
12941 Use char because int might match the return type of a GCC
12942 builtin and then its argument prototype would still apply. */
12943#ifdef __cplusplus
12944extern "C"
12945#endif
12946char $ac_func ();
12947/* The GNU C library defines this for functions which it implements
12948 to always fail with ENOSYS. Some functions are actually named
12949 something starting with __ and the normal name is an alias. */
12950#if defined __stub_$ac_func || defined __stub___$ac_func
12951choke me
12952#endif
12953
12954int
12955main ()
12956{
12957return $ac_func ();
12958 ;
12959 return 0;
12960}
12961_ACEOF
12962rm -f conftest.$ac_objext conftest$ac_exeext
12963if { (ac_try="$ac_link"
12964case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12967esac
12968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_link") 2>conftest.er1
12970 ac_status=$?
12971 grep -v '^ *+' conftest.er1 >conftest.err
12972 rm -f conftest.er1
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
12976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12977 { (case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12980esac
12981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_try") 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; } &&
12986 { ac_try='test -s conftest$ac_exeext'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12990esac
12991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 eval "$as_ac_var=yes"
12997else
12998 echo "$as_me: failed program was:" >&5
12999sed 's/^/| /' conftest.$ac_ext >&5
13000
13001 eval "$as_ac_var=no"
13002fi
13003
13004rm -f core conftest.err conftest.$ac_objext \
13005 conftest$ac_exeext conftest.$ac_ext
13006fi
13007ac_res=`eval echo '${'$as_ac_var'}'`
13008 { echo "$as_me:$LINENO: result: $ac_res" >&5
13009echo "${ECHO_T}$ac_res" >&6; }
13010if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013011 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013012#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013013_ACEOF
13014
13015fi
13016done
13017
13018
Douglas Gregor01746742009-05-11 18:05:52 +000013019
Reid Spencer7931a782004-12-27 06:15:02 +000013020if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013021 LLVMGCC="llvm-gcc${EXEEXT}"
13022 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013023 LLVMGCCCOMMAND="$LLVMGCC"
13024 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013025 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13026
13027 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13028
Reid Spencerc84492c2005-06-02 22:34:49 +000013029 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13030set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13033if test "${ac_cv_path_LLVMGCC+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013035else
13036 case $LLVMGCC in
13037 [\\/]* | ?:[\\/]*)
13038 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13039 ;;
13040 *)
13041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042for as_dir in $PATH
13043do
13044 IFS=$as_save_IFS
13045 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013046 for ac_exec_ext in '' $ac_executable_extensions; do
13047 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 +000013048 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013050 break 2
13051 fi
13052done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013053done
Reid Spencera773bd52006-08-04 18:18:08 +000013054IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013055
Reid Spencer59473af2004-12-25 07:31:29 +000013056 ;;
13057esac
13058fi
13059LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013060if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013061 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13062echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013063else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013064 { echo "$as_me:$LINENO: result: no" >&5
13065echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013066fi
13067
Reid Spencera773bd52006-08-04 18:18:08 +000013068
Reid Spencerc84492c2005-06-02 22:34:49 +000013069 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13070set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13073if test "${ac_cv_path_LLVMGXX+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013075else
13076 case $LLVMGXX in
13077 [\\/]* | ?:[\\/]*)
13078 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13079 ;;
13080 *)
13081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13082for as_dir in $PATH
13083do
13084 IFS=$as_save_IFS
13085 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013086 for ac_exec_ext in '' $ac_executable_extensions; do
13087 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 +000013088 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013090 break 2
13091 fi
13092done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013093done
Reid Spencera773bd52006-08-04 18:18:08 +000013094IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013095
Reid Spencer59473af2004-12-25 07:31:29 +000013096 ;;
13097esac
13098fi
13099LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013100if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013101 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13102echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013103else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013104 { echo "$as_me:$LINENO: result: no" >&5
13105echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013106fi
13107
Reid Spencera773bd52006-08-04 18:18:08 +000013108
Reid Spencer59473af2004-12-25 07:31:29 +000013109else
Devang Patel5d28b882007-12-04 22:54:47 +000013110 if test -z "$LLVMGCC"; then
13111 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013112 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013113 fi
13114 if test -z "$LLVMGXX"; then
13115 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013116 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013117 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013118
Reid Spencer59473af2004-12-25 07:31:29 +000013119 LLVMGCC=$LLVMGCC
13120
13121 LLVMGXX=$LLVMGXX
13122
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013123 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13124
13125 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13126
Reid Spencer59473af2004-12-25 07:31:29 +000013127fi
13128
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013129
Daniel Dunbar98515672010-02-23 10:00:49 +000013130# Check whether --with-llvmcc was given.
13131if test "${with_llvmcc+set}" = set; then
13132 withval=$with_llvmcc;
13133else
13134 with_llvmcc=check
13135fi
13136
13137{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13138echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13139if test "$with_llvmcc" != "check"; then
13140 if (test "$with_llvmcc" != "llvm-gcc" &&
13141 test "$with_llvmcc" != "clang" &&
13142 test "$with_llvmcc" != "none"); then
13143 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13144echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13145 { (exit 1); exit 1; }; }
13146 fi
13147 WITH_LLVMCC="$with_llvmcc"
13148elif test -n "$LLVMGCC"; then
13149 WITH_LLVMCC=llvm-gcc
13150elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13151 WITH_LLVMCC=clang
13152else
13153 WITH_LLVMCC=none
13154fi
13155{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13156echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13157LLVMCC_OPTION=$WITH_LLVMCC
13158
13159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013160{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13161echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013162
Reid Spencer86901802004-12-08 23:07:27 +000013163ICC=no
13164IXX=no
13165case $CC in
13166 icc*|icpc*)
13167 ICC=yes
13168 IXX=yes
13169 ;;
13170 *)
13171 ;;
13172esac
13173
Duraid Madina937c60a2006-02-15 07:57:42 +000013174if test "$GCC" != "yes" && test "$ICC" != "yes"
13175then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013176 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13177echo "$as_me: error: gcc|icc required but not found" >&2;}
13178 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013179fi
13180
13181if test "$GXX" != "yes" && test "$IXX" != "yes"
13182then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013183 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13184echo "$as_me: error: g++|icc required but not found" >&2;}
13185 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013186fi
13187
Reid Spencer86901802004-12-08 23:07:27 +000013188if test "$GCC" = "yes"
13189then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013190 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013191#if !defined(__GNUC__) || __GNUC__ < 3
13192#error Unsupported GCC version
13193#endif
13194
13195_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013196rm -f conftest.$ac_objext
13197if { (ac_try="$ac_compile"
13198case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13201esac
13202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_compile") 2>conftest.er1
13204 ac_status=$?
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13211 { (case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13214esac
13215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_try") 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; } &&
13220 { ac_try='test -s conftest.$ac_objext'
13221 { (case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13224esac
13225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_try") 2>&5
13227 ac_status=$?
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013231else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013232 echo "$as_me: failed program was:" >&5
13233sed 's/^/| /' conftest.$ac_ext >&5
13234
13235 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13236echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13237 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013238fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013239
Chris Lattner399c7c72008-02-05 19:43:53 +000013240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013241fi
13242
13243if test -z "$llvm_cv_gnu_make_command"
13244then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013245 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13246echo "$as_me: error: GNU Make required but not found" >&2;}
13247 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013248fi
13249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013250{ echo "$as_me:$LINENO: result: ok" >&5
13251echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013253{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13254echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013255NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13256
13257NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013259{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13260echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013261
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013263
13264{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13265echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13266if test "${ac_cv_lib_m_sin+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013268else
13269 ac_check_lib_save_LIBS=$LIBS
13270LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013271cat >conftest.$ac_ext <<_ACEOF
13272/* confdefs.h. */
13273_ACEOF
13274cat confdefs.h >>conftest.$ac_ext
13275cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013276/* end confdefs.h. */
13277
Reid Spencera773bd52006-08-04 18:18:08 +000013278/* Override any GCC internal prototype to avoid an error.
13279 Use char because int might match the return type of a GCC
13280 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013281#ifdef __cplusplus
13282extern "C"
13283#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013284char sin ();
13285int
13286main ()
13287{
Reid Spencera773bd52006-08-04 18:18:08 +000013288return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013289 ;
13290 return 0;
13291}
13292_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013293rm -f conftest.$ac_objext conftest$ac_exeext
13294if { (ac_try="$ac_link"
13295case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13298esac
13299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_link") 2>conftest.er1
13301 ac_status=$?
13302 grep -v '^ *+' conftest.er1 >conftest.err
13303 rm -f conftest.er1
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } &&
13307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13308 { (case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13311esac
13312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_try") 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; } &&
13317 { ac_try='test -s conftest$ac_exeext'
13318 { (case "(($ac_try" in
13319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320 *) ac_try_echo=$ac_try;;
13321esac
13322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323 (eval "$ac_try") 2>&5
13324 ac_status=$?
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013327 ac_cv_lib_m_sin=yes
13328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013329 echo "$as_me: failed program was:" >&5
13330sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013334
Bill Wendlingebcceee2009-04-18 11:20:33 +000013335rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013336 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013337LIBS=$ac_check_lib_save_LIBS
13338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013339{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13340echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13341if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013342 cat >>confdefs.h <<_ACEOF
13343#define HAVE_LIBM 1
13344_ACEOF
13345
13346 LIBS="-lm $LIBS"
13347
13348fi
13349
Jeff Cohen28783c32007-01-12 18:22:38 +000013350if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013351
13352{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13353echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13354if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013356else
13357 ac_check_lib_save_LIBS=$LIBS
13358LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013359cat >conftest.$ac_ext <<_ACEOF
13360/* confdefs.h. */
13361_ACEOF
13362cat confdefs.h >>conftest.$ac_ext
13363cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013364/* end confdefs.h. */
13365
Reid Spencer48fdf912006-06-01 19:03:21 +000013366
Reid Spencer484fc8e2006-06-01 16:55:59 +000013367int
13368main ()
13369{
Reid Spencera773bd52006-08-04 18:18:08 +000013370return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013371 ;
13372 return 0;
13373}
13374_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013375rm -f conftest.$ac_objext conftest$ac_exeext
13376if { (ac_try="$ac_link"
13377case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13380esac
13381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382 (eval "$ac_link") 2>conftest.er1
13383 ac_status=$?
13384 grep -v '^ *+' conftest.er1 >conftest.err
13385 rm -f conftest.er1
13386 cat conftest.err >&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); } &&
13389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13390 { (case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13393esac
13394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_try") 2>&5
13396 ac_status=$?
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; } &&
13399 { ac_try='test -s conftest$ac_exeext'
13400 { (case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13403esac
13404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_try") 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013409 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013410else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013411 echo "$as_me: failed program was:" >&5
13412sed 's/^/| /' conftest.$ac_ext >&5
13413
13414 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013415fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013416
Bill Wendlingebcceee2009-04-18 11:20:33 +000013417rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013418 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013419LIBS=$ac_check_lib_save_LIBS
13420fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013421{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13422echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13423if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013424 cat >>confdefs.h <<_ACEOF
13425#define HAVE_LIBIMAGEHLP 1
13426_ACEOF
13427
13428 LIBS="-limagehlp $LIBS"
13429
13430fi
13431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013432
13433{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13434echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13435if test "${ac_cv_lib_psapi_main+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013437else
13438 ac_check_lib_save_LIBS=$LIBS
13439LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013440cat >conftest.$ac_ext <<_ACEOF
13441/* confdefs.h. */
13442_ACEOF
13443cat confdefs.h >>conftest.$ac_ext
13444cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013445/* end confdefs.h. */
13446
Reid Spencer48fdf912006-06-01 19:03:21 +000013447
Reid Spencer484fc8e2006-06-01 16:55:59 +000013448int
13449main ()
13450{
Reid Spencera773bd52006-08-04 18:18:08 +000013451return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013452 ;
13453 return 0;
13454}
13455_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013456rm -f conftest.$ac_objext conftest$ac_exeext
13457if { (ac_try="$ac_link"
13458case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13461esac
13462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_link") 2>conftest.er1
13464 ac_status=$?
13465 grep -v '^ *+' conftest.er1 >conftest.err
13466 rm -f conftest.er1
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } &&
13470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13471 { (case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13474esac
13475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_try") 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; } &&
13480 { ac_try='test -s conftest$ac_exeext'
13481 { (case "(($ac_try" in
13482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483 *) ac_try_echo=$ac_try;;
13484esac
13485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486 (eval "$ac_try") 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013490 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013491else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013492 echo "$as_me: failed program was:" >&5
13493sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013496fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013497
Bill Wendlingebcceee2009-04-18 11:20:33 +000013498rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013499 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013500LIBS=$ac_check_lib_save_LIBS
13501fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013502{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13503echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13504if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013505 cat >>confdefs.h <<_ACEOF
13506#define HAVE_LIBPSAPI 1
13507_ACEOF
13508
13509 LIBS="-lpsapi $LIBS"
13510
13511fi
13512
13513fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013515{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13516echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13517if test "${ac_cv_search_dlopen+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013519else
13520 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013521cat >conftest.$ac_ext <<_ACEOF
13522/* confdefs.h. */
13523_ACEOF
13524cat confdefs.h >>conftest.$ac_ext
13525cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013526/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013527
Reid Spencera773bd52006-08-04 18:18:08 +000013528/* Override any GCC internal prototype to avoid an error.
13529 Use char because int might match the return type of a GCC
13530 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013531#ifdef __cplusplus
13532extern "C"
13533#endif
John Criswell7a73b802003-06-30 21:59:07 +000013534char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013535int
13536main ()
13537{
Reid Spencera773bd52006-08-04 18:18:08 +000013538return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013539 ;
13540 return 0;
13541}
13542_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013543for ac_lib in '' dl; do
13544 if test -z "$ac_lib"; then
13545 ac_res="none required"
13546 else
13547 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013549 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013550 rm -f conftest.$ac_objext conftest$ac_exeext
13551if { (ac_try="$ac_link"
13552case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13555esac
13556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_link") 2>conftest.er1
13558 ac_status=$?
13559 grep -v '^ *+' conftest.er1 >conftest.err
13560 rm -f conftest.er1
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13565 { (case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13568esac
13569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_try") 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try='test -s conftest$ac_exeext'
13575 { (case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13578esac
13579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_try") 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013584 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013585else
13586 echo "$as_me: failed program was:" >&5
13587sed 's/^/| /' conftest.$ac_ext >&5
13588
13589
John Criswell7a73b802003-06-30 21:59:07 +000013590fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013591
Bill Wendlingebcceee2009-04-18 11:20:33 +000013592rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013593 conftest$ac_exeext
13594 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013595 break
John Criswell7a73b802003-06-30 21:59:07 +000013596fi
Reid Spencera773bd52006-08-04 18:18:08 +000013597done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013598if test "${ac_cv_search_dlopen+set}" = set; then
13599 :
Reid Spencera773bd52006-08-04 18:18:08 +000013600else
13601 ac_cv_search_dlopen=no
13602fi
13603rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013604LIBS=$ac_func_search_save_LIBS
13605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013606{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13607echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013608ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013609if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013612cat >>confdefs.h <<\_ACEOF
13613#define HAVE_DLOPEN 1
13614_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013615
13616else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013617 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13618echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013619fi
13620
13621
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013622if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013623 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13624echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13625if test "${ac_cv_search_ffi_call+set}" = set; then
13626 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013627else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013628 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013629cat >conftest.$ac_ext <<_ACEOF
13630/* confdefs.h. */
13631_ACEOF
13632cat confdefs.h >>conftest.$ac_ext
13633cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013634/* end confdefs.h. */
13635
13636/* Override any GCC internal prototype to avoid an error.
13637 Use char because int might match the return type of a GCC
13638 builtin and then its argument prototype would still apply. */
13639#ifdef __cplusplus
13640extern "C"
13641#endif
13642char ffi_call ();
13643int
13644main ()
13645{
13646return ffi_call ();
13647 ;
13648 return 0;
13649}
13650_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013651for ac_lib in '' ffi; do
13652 if test -z "$ac_lib"; then
13653 ac_res="none required"
13654 else
13655 ac_res=-l$ac_lib
13656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13657 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013658 rm -f conftest.$ac_objext conftest$ac_exeext
13659if { (ac_try="$ac_link"
13660case "(($ac_try" in
13661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662 *) ac_try_echo=$ac_try;;
13663esac
13664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13665 (eval "$ac_link") 2>conftest.er1
13666 ac_status=$?
13667 grep -v '^ *+' conftest.er1 >conftest.err
13668 rm -f conftest.er1
13669 cat conftest.err >&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } &&
13672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13673 { (case "(($ac_try" in
13674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675 *) ac_try_echo=$ac_try;;
13676esac
13677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13678 (eval "$ac_try") 2>&5
13679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try='test -s conftest$ac_exeext'
13683 { (case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13686esac
13687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13688 (eval "$ac_try") 2>&5
13689 ac_status=$?
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013692 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013693else
13694 echo "$as_me: failed program was:" >&5
13695sed 's/^/| /' conftest.$ac_ext >&5
13696
13697
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013698fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013699
Bill Wendlingebcceee2009-04-18 11:20:33 +000013700rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013701 conftest$ac_exeext
13702 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013703 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013704fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013705done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013706if test "${ac_cv_search_ffi_call+set}" = set; then
13707 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013708else
13709 ac_cv_search_ffi_call=no
13710fi
13711rm conftest.$ac_ext
13712LIBS=$ac_func_search_save_LIBS
13713fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013714{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13715echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013716ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013717if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013720cat >>confdefs.h <<\_ACEOF
13721#define HAVE_FFI_CALL 1
13722_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013723
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013724else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013725 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13726echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13727 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013728fi
13729
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013730fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013732{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13733echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13734if test "${ac_cv_search_mallinfo+set}" = set; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013736else
13737 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013738cat >conftest.$ac_ext <<_ACEOF
13739/* confdefs.h. */
13740_ACEOF
13741cat confdefs.h >>conftest.$ac_ext
13742cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013743/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013744
Reid Spencera773bd52006-08-04 18:18:08 +000013745/* Override any GCC internal prototype to avoid an error.
13746 Use char because int might match the return type of a GCC
13747 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013748#ifdef __cplusplus
13749extern "C"
13750#endif
John Criswell7a73b802003-06-30 21:59:07 +000013751char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013752int
13753main ()
13754{
Reid Spencera773bd52006-08-04 18:18:08 +000013755return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013756 ;
13757 return 0;
13758}
13759_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013760for ac_lib in '' malloc; do
13761 if test -z "$ac_lib"; then
13762 ac_res="none required"
13763 else
13764 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013766 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013767 rm -f conftest.$ac_objext conftest$ac_exeext
13768if { (ac_try="$ac_link"
13769case "(($ac_try" in
13770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13772esac
13773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774 (eval "$ac_link") 2>conftest.er1
13775 ac_status=$?
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13782 { (case "(($ac_try" in
13783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784 *) ac_try_echo=$ac_try;;
13785esac
13786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787 (eval "$ac_try") 2>&5
13788 ac_status=$?
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; } &&
13791 { ac_try='test -s conftest$ac_exeext'
13792 { (case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13795esac
13796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_try") 2>&5
13798 ac_status=$?
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013801 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013802else
13803 echo "$as_me: failed program was:" >&5
13804sed 's/^/| /' conftest.$ac_ext >&5
13805
13806
John Criswell7a73b802003-06-30 21:59:07 +000013807fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013808
Bill Wendlingebcceee2009-04-18 11:20:33 +000013809rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013810 conftest$ac_exeext
13811 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013812 break
John Criswell7a73b802003-06-30 21:59:07 +000013813fi
Reid Spencera773bd52006-08-04 18:18:08 +000013814done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013815if test "${ac_cv_search_mallinfo+set}" = set; then
13816 :
Reid Spencera773bd52006-08-04 18:18:08 +000013817else
13818 ac_cv_search_mallinfo=no
13819fi
13820rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013821LIBS=$ac_func_search_save_LIBS
13822fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013823{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13824echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013825ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013826if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013829cat >>confdefs.h <<\_ACEOF
13830#define HAVE_MALLINFO 1
13831_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013832
13833fi
13834
13835
Reid Spencer0a262ba2005-08-24 10:07:20 +000013836if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013837
13838{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13839echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13840if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013842else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013843 ac_check_lib_save_LIBS=$LIBS
13844LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013845cat >conftest.$ac_ext <<_ACEOF
13846/* confdefs.h. */
13847_ACEOF
13848cat confdefs.h >>conftest.$ac_ext
13849cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013850/* end confdefs.h. */
13851
Reid Spencera773bd52006-08-04 18:18:08 +000013852/* Override any GCC internal prototype to avoid an error.
13853 Use char because int might match the return type of a GCC
13854 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013855#ifdef __cplusplus
13856extern "C"
13857#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013858char pthread_mutex_init ();
13859int
13860main ()
13861{
Reid Spencera773bd52006-08-04 18:18:08 +000013862return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013863 ;
13864 return 0;
13865}
13866_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013867rm -f conftest.$ac_objext conftest$ac_exeext
13868if { (ac_try="$ac_link"
13869case "(($ac_try" in
13870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871 *) ac_try_echo=$ac_try;;
13872esac
13873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874 (eval "$ac_link") 2>conftest.er1
13875 ac_status=$?
13876 grep -v '^ *+' conftest.er1 >conftest.err
13877 rm -f conftest.er1
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
13881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13882 { (case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13885esac
13886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_try") 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; } &&
13891 { ac_try='test -s conftest$ac_exeext'
13892 { (case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13895esac
13896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_try") 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013901 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013902else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013903 echo "$as_me: failed program was:" >&5
13904sed 's/^/| /' conftest.$ac_ext >&5
13905
13906 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013907fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013908
Bill Wendlingebcceee2009-04-18 11:20:33 +000013909rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013910 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013911LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013913{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13914echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13915if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013916 cat >>confdefs.h <<_ACEOF
13917#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013918_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013919
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013920 LIBS="-lpthread $LIBS"
13921
Reid Spencer22177fe2005-07-12 15:24:20 +000013922fi
13923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013924 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13925echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13926if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013928else
13929 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013930cat >conftest.$ac_ext <<_ACEOF
13931/* confdefs.h. */
13932_ACEOF
13933cat confdefs.h >>conftest.$ac_ext
13934cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013935/* end confdefs.h. */
13936
Reid Spencera773bd52006-08-04 18:18:08 +000013937/* Override any GCC internal prototype to avoid an error.
13938 Use char because int might match the return type of a GCC
13939 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013940#ifdef __cplusplus
13941extern "C"
13942#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013943char pthread_mutex_lock ();
13944int
13945main ()
13946{
Reid Spencera773bd52006-08-04 18:18:08 +000013947return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013948 ;
13949 return 0;
13950}
13951_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013952for ac_lib in '' pthread; do
13953 if test -z "$ac_lib"; then
13954 ac_res="none required"
13955 else
13956 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013958 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013959 rm -f conftest.$ac_objext conftest$ac_exeext
13960if { (ac_try="$ac_link"
13961case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13964esac
13965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_link") 2>conftest.er1
13967 ac_status=$?
13968 grep -v '^ *+' conftest.er1 >conftest.err
13969 rm -f conftest.er1
13970 cat conftest.err >&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } &&
13973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13974 { (case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13977esac
13978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_try") 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; } &&
13983 { ac_try='test -s conftest$ac_exeext'
13984 { (case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13987esac
13988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13989 (eval "$ac_try") 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013993 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013994else
13995 echo "$as_me: failed program was:" >&5
13996sed 's/^/| /' conftest.$ac_ext >&5
13997
13998
Brian Gaeke5f268f72003-12-05 19:29:01 +000013999fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014000
Bill Wendlingebcceee2009-04-18 11:20:33 +000014001rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014002 conftest$ac_exeext
14003 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014004 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014005fi
Reid Spencera773bd52006-08-04 18:18:08 +000014006done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014007if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14008 :
Reid Spencera773bd52006-08-04 18:18:08 +000014009else
14010 ac_cv_search_pthread_mutex_lock=no
14011fi
14012rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014013LIBS=$ac_func_search_save_LIBS
14014fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014015{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14016echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014017ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014018if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014021cat >>confdefs.h <<\_ACEOF
14022#define HAVE_PTHREAD_MUTEX_LOCK 1
14023_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014024
14025fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014027 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14028echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14029if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014031else
14032 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014033cat >conftest.$ac_ext <<_ACEOF
14034/* confdefs.h. */
14035_ACEOF
14036cat confdefs.h >>conftest.$ac_ext
14037cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014038/* end confdefs.h. */
14039
14040/* Override any GCC internal prototype to avoid an error.
14041 Use char because int might match the return type of a GCC
14042 builtin and then its argument prototype would still apply. */
14043#ifdef __cplusplus
14044extern "C"
14045#endif
14046char pthread_rwlock_init ();
14047int
14048main ()
14049{
14050return pthread_rwlock_init ();
14051 ;
14052 return 0;
14053}
14054_ACEOF
14055for ac_lib in '' pthread; do
14056 if test -z "$ac_lib"; then
14057 ac_res="none required"
14058 else
14059 ac_res=-l$ac_lib
14060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14061 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014062 rm -f conftest.$ac_objext conftest$ac_exeext
14063if { (ac_try="$ac_link"
14064case "(($ac_try" in
14065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066 *) ac_try_echo=$ac_try;;
14067esac
14068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069 (eval "$ac_link") 2>conftest.er1
14070 ac_status=$?
14071 grep -v '^ *+' conftest.er1 >conftest.err
14072 rm -f conftest.er1
14073 cat conftest.err >&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } &&
14076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14077 { (case "(($ac_try" in
14078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 *) ac_try_echo=$ac_try;;
14080esac
14081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082 (eval "$ac_try") 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; } &&
14086 { ac_try='test -s conftest$ac_exeext'
14087 { (case "(($ac_try" in
14088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14089 *) ac_try_echo=$ac_try;;
14090esac
14091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092 (eval "$ac_try") 2>&5
14093 ac_status=$?
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014096 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014097else
14098 echo "$as_me: failed program was:" >&5
14099sed 's/^/| /' conftest.$ac_ext >&5
14100
14101
Owen Andersonde8aed22009-06-16 18:20:20 +000014102fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014103
Owen Andersonde8aed22009-06-16 18:20:20 +000014104rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014105 conftest$ac_exeext
14106 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014107 break
14108fi
14109done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014110if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14111 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014112else
14113 ac_cv_search_pthread_rwlock_init=no
14114fi
14115rm conftest.$ac_ext
14116LIBS=$ac_func_search_save_LIBS
14117fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014118{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14119echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014120ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014121if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014124cat >>confdefs.h <<\_ACEOF
14125#define HAVE_PTHREAD_RWLOCK_INIT 1
14126_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014127
14128fi
14129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014130 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14131echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14132if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014134else
14135 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014136cat >conftest.$ac_ext <<_ACEOF
14137/* confdefs.h. */
14138_ACEOF
14139cat confdefs.h >>conftest.$ac_ext
14140cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014141/* end confdefs.h. */
14142
14143/* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14146#ifdef __cplusplus
14147extern "C"
14148#endif
14149char pthread_getspecific ();
14150int
14151main ()
14152{
14153return pthread_getspecific ();
14154 ;
14155 return 0;
14156}
14157_ACEOF
14158for ac_lib in '' pthread; do
14159 if test -z "$ac_lib"; then
14160 ac_res="none required"
14161 else
14162 ac_res=-l$ac_lib
14163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14164 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014165 rm -f conftest.$ac_objext conftest$ac_exeext
14166if { (ac_try="$ac_link"
14167case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14170esac
14171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_link") 2>conftest.er1
14173 ac_status=$?
14174 grep -v '^ *+' conftest.er1 >conftest.err
14175 rm -f conftest.er1
14176 cat conftest.err >&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
14179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14180 { (case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14183esac
14184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185 (eval "$ac_try") 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; } &&
14189 { ac_try='test -s conftest$ac_exeext'
14190 { (case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14193esac
14194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_try") 2>&5
14196 ac_status=$?
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014199 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014200else
14201 echo "$as_me: failed program was:" >&5
14202sed 's/^/| /' conftest.$ac_ext >&5
14203
14204
Owen Anderson27fcfe12009-06-25 23:10:26 +000014205fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014206
Owen Anderson27fcfe12009-06-25 23:10:26 +000014207rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014208 conftest$ac_exeext
14209 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014210 break
14211fi
14212done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014213if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14214 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014215else
14216 ac_cv_search_pthread_getspecific=no
14217fi
14218rm conftest.$ac_ext
14219LIBS=$ac_func_search_save_LIBS
14220fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014221{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14222echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014223ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014224if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14226
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014227cat >>confdefs.h <<\_ACEOF
14228#define HAVE_PTHREAD_GETSPECIFIC 1
14229_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014230
14231fi
14232
Reid Spencer0a262ba2005-08-24 10:07:20 +000014233fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014234
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014235
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014236# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014237if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014238 withval=$with_udis86;
14239 USE_UDIS86=1
14240
14241 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014242 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014243 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14244 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014245
14246{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14247echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14248if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014250else
14251 ac_check_lib_save_LIBS=$LIBS
14252LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014253cat >conftest.$ac_ext <<_ACEOF
14254/* confdefs.h. */
14255_ACEOF
14256cat confdefs.h >>conftest.$ac_ext
14257cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014258/* end confdefs.h. */
14259
14260/* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
14263#ifdef __cplusplus
14264extern "C"
14265#endif
14266char ud_init ();
14267int
14268main ()
14269{
14270return ud_init ();
14271 ;
14272 return 0;
14273}
14274_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014275rm -f conftest.$ac_objext conftest$ac_exeext
14276if { (ac_try="$ac_link"
14277case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14280esac
14281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_link") 2>conftest.er1
14283 ac_status=$?
14284 grep -v '^ *+' conftest.er1 >conftest.err
14285 rm -f conftest.er1
14286 cat conftest.err >&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } &&
14289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14290 { (case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14293esac
14294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_try") 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest$ac_exeext'
14300 { (case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14303esac
14304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_try") 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014309 ac_cv_lib_udis86_ud_init=yes
14310else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014311 echo "$as_me: failed program was:" >&5
14312sed 's/^/| /' conftest.$ac_ext >&5
14313
14314 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014316
Bill Wendlingebcceee2009-04-18 11:20:33 +000014317rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014318 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014319LIBS=$ac_check_lib_save_LIBS
14320fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014321{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14322echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14323if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014324 cat >>confdefs.h <<_ACEOF
14325#define HAVE_LIBUDIS86 1
14326_ACEOF
14327
14328 LIBS="-ludis86 $LIBS"
14329
14330else
14331
14332 echo "Error! You need to have libudis86 around."
14333 exit -1
14334
14335fi
14336
14337
14338else
14339 USE_UDIS86=0
14340
14341fi
14342
14343
14344cat >>confdefs.h <<_ACEOF
14345#define USE_UDIS86 $USE_UDIS86
14346_ACEOF
14347
14348
14349
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014350# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014351if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014352 withval=$with_oprofile;
14353 USE_OPROFILE=1
14354
14355 case "$withval" in
14356 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014357 no) llvm_cv_oppath=
14358 USE_OPROFILE=0
14359 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014360 *) llvm_cv_oppath="${withval}/lib/oprofile"
14361 CPPFLAGS="-I${withval}/include";;
14362 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014363 if test -n "$llvm_cv_oppath" ; then
14364 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014365 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14366echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14367if test "${ac_cv_search_bfd_init+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014369else
14370 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014371cat >conftest.$ac_ext <<_ACEOF
14372/* confdefs.h. */
14373_ACEOF
14374cat confdefs.h >>conftest.$ac_ext
14375cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014376/* end confdefs.h. */
14377
14378/* Override any GCC internal prototype to avoid an error.
14379 Use char because int might match the return type of a GCC
14380 builtin and then its argument prototype would still apply. */
14381#ifdef __cplusplus
14382extern "C"
14383#endif
14384char bfd_init ();
14385int
14386main ()
14387{
14388return bfd_init ();
14389 ;
14390 return 0;
14391}
14392_ACEOF
14393for ac_lib in '' bfd; do
14394 if test -z "$ac_lib"; then
14395 ac_res="none required"
14396 else
14397 ac_res=-l$ac_lib
14398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14399 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014400 rm -f conftest.$ac_objext conftest$ac_exeext
14401if { (ac_try="$ac_link"
14402case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14405esac
14406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_link") 2>conftest.er1
14408 ac_status=$?
14409 grep -v '^ *+' conftest.er1 >conftest.err
14410 rm -f conftest.er1
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } &&
14414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14415 { (case "(($ac_try" in
14416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417 *) ac_try_echo=$ac_try;;
14418esac
14419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420 (eval "$ac_try") 2>&5
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; } &&
14424 { ac_try='test -s conftest$ac_exeext'
14425 { (case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14428esac
14429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_try") 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014434 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014435else
14436 echo "$as_me: failed program was:" >&5
14437sed 's/^/| /' conftest.$ac_ext >&5
14438
14439
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014441
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014442rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014443 conftest$ac_exeext
14444 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014445 break
14446fi
14447done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014448if test "${ac_cv_search_bfd_init+set}" = set; then
14449 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014450else
14451 ac_cv_search_bfd_init=no
14452fi
14453rm conftest.$ac_ext
14454LIBS=$ac_func_search_save_LIBS
14455fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014456{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14457echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014458ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014459if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14461
14462fi
14463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014464 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14465echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14466if test "${ac_cv_search_op_open_agent+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014468else
14469 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014470cat >conftest.$ac_ext <<_ACEOF
14471/* confdefs.h. */
14472_ACEOF
14473cat confdefs.h >>conftest.$ac_ext
14474cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014475/* end confdefs.h. */
14476
14477/* Override any GCC internal prototype to avoid an error.
14478 Use char because int might match the return type of a GCC
14479 builtin and then its argument prototype would still apply. */
14480#ifdef __cplusplus
14481extern "C"
14482#endif
14483char op_open_agent ();
14484int
14485main ()
14486{
14487return op_open_agent ();
14488 ;
14489 return 0;
14490}
14491_ACEOF
14492for ac_lib in '' opagent; do
14493 if test -z "$ac_lib"; then
14494 ac_res="none required"
14495 else
14496 ac_res=-l$ac_lib
14497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14498 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014499 rm -f conftest.$ac_objext conftest$ac_exeext
14500if { (ac_try="$ac_link"
14501case "(($ac_try" in
14502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503 *) ac_try_echo=$ac_try;;
14504esac
14505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506 (eval "$ac_link") 2>conftest.er1
14507 ac_status=$?
14508 grep -v '^ *+' conftest.er1 >conftest.err
14509 rm -f conftest.er1
14510 cat conftest.err >&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } &&
14513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14514 { (case "(($ac_try" in
14515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14517esac
14518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_try") 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try='test -s conftest$ac_exeext'
14524 { (case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14527esac
14528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_try") 2>&5
14530 ac_status=$?
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014533 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014534else
14535 echo "$as_me: failed program was:" >&5
14536sed 's/^/| /' conftest.$ac_ext >&5
14537
14538
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014539fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014540
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014541rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014542 conftest$ac_exeext
14543 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014544 break
14545fi
14546done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014547if test "${ac_cv_search_op_open_agent+set}" = set; then
14548 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014549else
14550 ac_cv_search_op_open_agent=no
14551fi
14552rm conftest.$ac_ext
14553LIBS=$ac_func_search_save_LIBS
14554fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014555{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14556echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014557ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014558if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14560
14561else
14562
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014563 echo "Error! You need to have libopagent around."
14564 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014565
14566fi
14567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014568 if test "${ac_cv_header_opagent_h+set}" = set; then
14569 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14570echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14571if test "${ac_cv_header_opagent_h+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14573fi
14574{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14575echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14576else
14577 # Is the header compilable?
14578{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14579echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14580cat >conftest.$ac_ext <<_ACEOF
14581/* confdefs.h. */
14582_ACEOF
14583cat confdefs.h >>conftest.$ac_ext
14584cat >>conftest.$ac_ext <<_ACEOF
14585/* end confdefs.h. */
14586$ac_includes_default
14587#include <opagent.h>
14588_ACEOF
14589rm -f conftest.$ac_objext
14590if { (ac_try="$ac_compile"
14591case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14594esac
14595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_compile") 2>conftest.er1
14597 ac_status=$?
14598 grep -v '^ *+' conftest.er1 >conftest.err
14599 rm -f conftest.er1
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } &&
14603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14604 { (case "(($ac_try" in
14605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14607esac
14608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609 (eval "$ac_try") 2>&5
14610 ac_status=$?
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; } &&
14613 { ac_try='test -s conftest.$ac_objext'
14614 { (case "(($ac_try" in
14615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616 *) ac_try_echo=$ac_try;;
14617esac
14618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619 (eval "$ac_try") 2>&5
14620 ac_status=$?
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); }; }; then
14623 ac_header_compiler=yes
14624else
14625 echo "$as_me: failed program was:" >&5
14626sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014628 ac_header_compiler=no
14629fi
14630
14631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14632{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14633echo "${ECHO_T}$ac_header_compiler" >&6; }
14634
14635# Is the header present?
14636{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14637echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14638cat >conftest.$ac_ext <<_ACEOF
14639/* confdefs.h. */
14640_ACEOF
14641cat confdefs.h >>conftest.$ac_ext
14642cat >>conftest.$ac_ext <<_ACEOF
14643/* end confdefs.h. */
14644#include <opagent.h>
14645_ACEOF
14646if { (ac_try="$ac_cpp conftest.$ac_ext"
14647case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14650esac
14651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14653 ac_status=$?
14654 grep -v '^ *+' conftest.er1 >conftest.err
14655 rm -f conftest.er1
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } >/dev/null; then
14659 if test -s conftest.err; then
14660 ac_cpp_err=$ac_c_preproc_warn_flag
14661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14662 else
14663 ac_cpp_err=
14664 fi
14665else
14666 ac_cpp_err=yes
14667fi
14668if test -z "$ac_cpp_err"; then
14669 ac_header_preproc=yes
14670else
14671 echo "$as_me: failed program was:" >&5
14672sed 's/^/| /' conftest.$ac_ext >&5
14673
14674 ac_header_preproc=no
14675fi
14676
14677rm -f conftest.err conftest.$ac_ext
14678{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14679echo "${ECHO_T}$ac_header_preproc" >&6; }
14680
14681# So? What about this header?
14682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14683 yes:no: )
14684 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14685echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14686 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14687echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14688 ac_header_preproc=yes
14689 ;;
14690 no:yes:* )
14691 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14692echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14693 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14694echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14695 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14696echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14697 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14698echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14700echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14702echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14703 ( cat <<\_ASBOX
14704## ----------------------------------- ##
14705## Report this to llvmbugs@cs.uiuc.edu ##
14706## ----------------------------------- ##
14707_ASBOX
14708 ) | sed "s/^/$as_me: WARNING: /" >&2
14709 ;;
14710esac
14711{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14712echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14713if test "${ac_cv_header_opagent_h+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14715else
14716 ac_cv_header_opagent_h=$ac_header_preproc
14717fi
14718{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14719echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14720
14721fi
14722if test $ac_cv_header_opagent_h = yes; then
14723 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014724else
14725
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014726 echo "Error! You need to have opagent.h around."
14727 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014728
14729fi
14730
14731
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014732 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014733
14734else
14735
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014736 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014737
14738
14739fi
14740
14741
14742cat >>confdefs.h <<_ACEOF
14743#define USE_OPROFILE $USE_OPROFILE
14744_ACEOF
14745
14746
14747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014748
14749
14750
14751
14752
Reid Spencer59473af2004-12-25 07:31:29 +000014753ac_header_dirent=no
14754for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014755 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14756{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14757echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014760else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014761 cat >conftest.$ac_ext <<_ACEOF
14762/* confdefs.h. */
14763_ACEOF
14764cat confdefs.h >>conftest.$ac_ext
14765cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014766/* end confdefs.h. */
14767#include <sys/types.h>
14768#include <$ac_hdr>
14769
14770int
14771main ()
14772{
14773if ((DIR *) 0)
14774return 0;
14775 ;
14776 return 0;
14777}
14778_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014779rm -f conftest.$ac_objext
14780if { (ac_try="$ac_compile"
14781case "(($ac_try" in
14782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14784esac
14785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786 (eval "$ac_compile") 2>conftest.er1
14787 ac_status=$?
14788 grep -v '^ *+' conftest.er1 >conftest.err
14789 rm -f conftest.er1
14790 cat conftest.err >&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } &&
14793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14794 { (case "(($ac_try" in
14795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14796 *) ac_try_echo=$ac_try;;
14797esac
14798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14799 (eval "$ac_try") 2>&5
14800 ac_status=$?
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); }; } &&
14803 { ac_try='test -s conftest.$ac_objext'
14804 { (case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14807esac
14808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_try") 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014813 eval "$as_ac_Header=yes"
14814else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014815 echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
14818 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014819fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014820
Reid Spencera773bd52006-08-04 18:18:08 +000014821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014822fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014823ac_res=`eval echo '${'$as_ac_Header'}'`
14824 { echo "$as_me:$LINENO: result: $ac_res" >&5
14825echo "${ECHO_T}$ac_res" >&6; }
14826if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014827 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014828#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014829_ACEOF
14830
14831ac_header_dirent=$ac_hdr; break
14832fi
14833
14834done
14835# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14836if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014837 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14838echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14839if test "${ac_cv_search_opendir+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014841else
14842 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014843cat >conftest.$ac_ext <<_ACEOF
14844/* confdefs.h. */
14845_ACEOF
14846cat confdefs.h >>conftest.$ac_ext
14847cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014848/* end confdefs.h. */
14849
Reid Spencera773bd52006-08-04 18:18:08 +000014850/* Override any GCC internal prototype to avoid an error.
14851 Use char because int might match the return type of a GCC
14852 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014853#ifdef __cplusplus
14854extern "C"
14855#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014856char opendir ();
14857int
14858main ()
14859{
Reid Spencera773bd52006-08-04 18:18:08 +000014860return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014861 ;
14862 return 0;
14863}
14864_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014865for ac_lib in '' dir; do
14866 if test -z "$ac_lib"; then
14867 ac_res="none required"
14868 else
14869 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014871 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014872 rm -f conftest.$ac_objext conftest$ac_exeext
14873if { (ac_try="$ac_link"
14874case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14877esac
14878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_link") 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14887 { (case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14890esac
14891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_try") 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; } &&
14896 { ac_try='test -s conftest$ac_exeext'
14897 { (case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14900esac
14901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_try") 2>&5
14903 ac_status=$?
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014906 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014907else
14908 echo "$as_me: failed program was:" >&5
14909sed 's/^/| /' conftest.$ac_ext >&5
14910
14911
Reid Spencer59473af2004-12-25 07:31:29 +000014912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014913
Bill Wendlingebcceee2009-04-18 11:20:33 +000014914rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014915 conftest$ac_exeext
14916 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014917 break
Reid Spencer59473af2004-12-25 07:31:29 +000014918fi
Reid Spencera773bd52006-08-04 18:18:08 +000014919done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014920if test "${ac_cv_search_opendir+set}" = set; then
14921 :
Reid Spencera773bd52006-08-04 18:18:08 +000014922else
14923 ac_cv_search_opendir=no
14924fi
14925rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014926LIBS=$ac_func_search_save_LIBS
14927fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014928{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14929echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014930ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014931if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014933
14934fi
14935
14936else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014937 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14938echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14939if test "${ac_cv_search_opendir+set}" = set; then
14940 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014941else
14942 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014943cat >conftest.$ac_ext <<_ACEOF
14944/* confdefs.h. */
14945_ACEOF
14946cat confdefs.h >>conftest.$ac_ext
14947cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014948/* end confdefs.h. */
14949
Reid Spencera773bd52006-08-04 18:18:08 +000014950/* Override any GCC internal prototype to avoid an error.
14951 Use char because int might match the return type of a GCC
14952 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014953#ifdef __cplusplus
14954extern "C"
14955#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014956char opendir ();
14957int
14958main ()
14959{
Reid Spencera773bd52006-08-04 18:18:08 +000014960return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014961 ;
14962 return 0;
14963}
14964_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014965for ac_lib in '' x; do
14966 if test -z "$ac_lib"; then
14967 ac_res="none required"
14968 else
14969 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014971 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014972 rm -f conftest.$ac_objext conftest$ac_exeext
14973if { (ac_try="$ac_link"
14974case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14977esac
14978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_link") 2>conftest.er1
14980 ac_status=$?
14981 grep -v '^ *+' conftest.er1 >conftest.err
14982 rm -f conftest.er1
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
14986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14987 { (case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14990esac
14991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_try") 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; } &&
14996 { ac_try='test -s conftest$ac_exeext'
14997 { (case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15000esac
15001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_try") 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015006 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015007else
15008 echo "$as_me: failed program was:" >&5
15009sed 's/^/| /' conftest.$ac_ext >&5
15010
15011
Reid Spencer59473af2004-12-25 07:31:29 +000015012fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015013
Bill Wendlingebcceee2009-04-18 11:20:33 +000015014rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015015 conftest$ac_exeext
15016 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015017 break
Reid Spencer59473af2004-12-25 07:31:29 +000015018fi
Reid Spencera773bd52006-08-04 18:18:08 +000015019done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015020if test "${ac_cv_search_opendir+set}" = set; then
15021 :
Reid Spencera773bd52006-08-04 18:18:08 +000015022else
15023 ac_cv_search_opendir=no
15024fi
15025rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015026LIBS=$ac_func_search_save_LIBS
15027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015028{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15029echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015030ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015031if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015033
15034fi
15035
15036fi
15037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015038{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15039echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15040if test "${ac_cv_header_mmap_anon+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015042else
15043 ac_ext=c
15044ac_cpp='$CPP $CPPFLAGS'
15045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15047ac_compiler_gnu=$ac_cv_c_compiler_gnu
15048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015049 cat >conftest.$ac_ext <<_ACEOF
15050/* confdefs.h. */
15051_ACEOF
15052cat confdefs.h >>conftest.$ac_ext
15053cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015054/* end confdefs.h. */
15055#include <sys/mman.h>
15056#include <unistd.h>
15057#include <fcntl.h>
15058int
15059main ()
15060{
15061mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15062 ;
15063 return 0;
15064}
15065_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015066rm -f conftest.$ac_objext
15067if { (ac_try="$ac_compile"
15068case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15071esac
15072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_compile") 2>conftest.er1
15074 ac_status=$?
15075 grep -v '^ *+' conftest.er1 >conftest.err
15076 rm -f conftest.er1
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15081 { (case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15084esac
15085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_try") 2>&5
15087 ac_status=$?
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; } &&
15090 { ac_try='test -s conftest.$ac_objext'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094esac
15095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015100 ac_cv_header_mmap_anon=yes
15101else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015102 echo "$as_me: failed program was:" >&5
15103sed 's/^/| /' conftest.$ac_ext >&5
15104
15105 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015106fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015107
Reid Spencera773bd52006-08-04 18:18:08 +000015108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015109 ac_ext=c
15110ac_cpp='$CPP $CPPFLAGS'
15111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15113ac_compiler_gnu=$ac_cv_c_compiler_gnu
15114
15115
15116fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015117{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15118echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015119if test "$ac_cv_header_mmap_anon" = yes; then
15120
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015121cat >>confdefs.h <<\_ACEOF
15122#define HAVE_MMAP_ANONYMOUS 1
15123_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015124
15125fi
15126
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015127{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15128echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15129if test "${ac_cv_header_stat_broken+set}" = set; then
15130 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015131else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015132 cat >conftest.$ac_ext <<_ACEOF
15133/* confdefs.h. */
15134_ACEOF
15135cat confdefs.h >>conftest.$ac_ext
15136cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015137/* end confdefs.h. */
15138#include <sys/types.h>
15139#include <sys/stat.h>
15140
Reid Spencera773bd52006-08-04 18:18:08 +000015141#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015142# if S_ISBLK (S_IFDIR)
15143You lose.
15144# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015145#endif
15146
Reid Spencera773bd52006-08-04 18:18:08 +000015147#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015148# if S_ISBLK (S_IFCHR)
15149You lose.
15150# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015151#endif
15152
Reid Spencera773bd52006-08-04 18:18:08 +000015153#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015154# if S_ISLNK (S_IFREG)
15155You lose.
15156# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015157#endif
15158
Reid Spencera773bd52006-08-04 18:18:08 +000015159#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015160# if S_ISSOCK (S_IFREG)
15161You lose.
15162# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015163#endif
15164
15165_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15167 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015168 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015169else
15170 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015171fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015172rm -f conftest*
15173
Reid Spencer59473af2004-12-25 07:31:29 +000015174fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015175{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15176echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015177if test $ac_cv_header_stat_broken = yes; then
15178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015179cat >>confdefs.h <<\_ACEOF
15180#define STAT_MACROS_BROKEN 1
15181_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015182
15183fi
15184
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015185{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15186echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15187if test "${ac_cv_header_stdc+set}" = set; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015189else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015190 cat >conftest.$ac_ext <<_ACEOF
15191/* confdefs.h. */
15192_ACEOF
15193cat confdefs.h >>conftest.$ac_ext
15194cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015195/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015196#include <stdlib.h>
15197#include <stdarg.h>
15198#include <string.h>
15199#include <float.h>
15200
John Criswell0c38eaf2003-09-10 15:17:25 +000015201int
15202main ()
15203{
15204
15205 ;
15206 return 0;
15207}
John Criswell7a73b802003-06-30 21:59:07 +000015208_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015209rm -f conftest.$ac_objext
15210if { (ac_try="$ac_compile"
15211case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15214esac
15215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_compile") 2>conftest.er1
15217 ac_status=$?
15218 grep -v '^ *+' conftest.er1 >conftest.err
15219 rm -f conftest.er1
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } &&
15223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15224 { (case "(($ac_try" in
15225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226 *) ac_try_echo=$ac_try;;
15227esac
15228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229 (eval "$ac_try") 2>&5
15230 ac_status=$?
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; } &&
15233 { ac_try='test -s conftest.$ac_objext'
15234 { (case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15237esac
15238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15239 (eval "$ac_try") 2>&5
15240 ac_status=$?
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015243 ac_cv_header_stdc=yes
15244else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015245 echo "$as_me: failed program was:" >&5
15246sed 's/^/| /' conftest.$ac_ext >&5
15247
15248 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015249fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015250
Reid Spencera773bd52006-08-04 18:18:08 +000015251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015252
15253if test $ac_cv_header_stdc = yes; then
15254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015255 cat >conftest.$ac_ext <<_ACEOF
15256/* confdefs.h. */
15257_ACEOF
15258cat confdefs.h >>conftest.$ac_ext
15259cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015260/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015261#include <string.h>
15262
15263_ACEOF
15264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015265 $EGREP "memchr" >/dev/null 2>&1; then
15266 :
John Criswell7a73b802003-06-30 21:59:07 +000015267else
15268 ac_cv_header_stdc=no
15269fi
15270rm -f conftest*
15271
15272fi
15273
15274if test $ac_cv_header_stdc = yes; then
15275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015276 cat >conftest.$ac_ext <<_ACEOF
15277/* confdefs.h. */
15278_ACEOF
15279cat confdefs.h >>conftest.$ac_ext
15280cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015281/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015282#include <stdlib.h>
15283
15284_ACEOF
15285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015286 $EGREP "free" >/dev/null 2>&1; then
15287 :
John Criswell7a73b802003-06-30 21:59:07 +000015288else
15289 ac_cv_header_stdc=no
15290fi
15291rm -f conftest*
15292
15293fi
15294
15295if test $ac_cv_header_stdc = yes; then
15296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015297 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015298 :
15299else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015300 cat >conftest.$ac_ext <<_ACEOF
15301/* confdefs.h. */
15302_ACEOF
15303cat confdefs.h >>conftest.$ac_ext
15304cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015306#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015307#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015308#if ((' ' & 0x0FF) == 0x020)
15309# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15310# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15311#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015312# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015313 (('a' <= (c) && (c) <= 'i') \
15314 || ('j' <= (c) && (c) <= 'r') \
15315 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015316# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15317#endif
15318
15319#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15320int
15321main ()
15322{
15323 int i;
15324 for (i = 0; i < 256; i++)
15325 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015326 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015327 return 2;
15328 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015329}
15330_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015331rm -f conftest$ac_exeext
15332if { (ac_try="$ac_link"
15333case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15336esac
15337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_link") 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15342 { (case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345esac
15346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_try") 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }; then
15351 :
John Criswell7a73b802003-06-30 21:59:07 +000015352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015353 echo "$as_me: program exited with status $ac_status" >&5
15354echo "$as_me: failed program was:" >&5
15355sed 's/^/| /' conftest.$ac_ext >&5
15356
15357( exit $ac_status )
15358ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015360rm -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 +000015361fi
15362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015363
John Criswell7a73b802003-06-30 21:59:07 +000015364fi
15365fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015366{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15367echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015368if test $ac_cv_header_stdc = yes; then
15369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015370cat >>confdefs.h <<\_ACEOF
15371#define STDC_HEADERS 1
15372_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015373
15374fi
15375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015376{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15377echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15378if test "${ac_cv_header_sys_wait_h+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015380else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015381 cat >conftest.$ac_ext <<_ACEOF
15382/* confdefs.h. */
15383_ACEOF
15384cat confdefs.h >>conftest.$ac_ext
15385cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015386/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015387#include <sys/types.h>
15388#include <sys/wait.h>
15389#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015390# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015391#endif
15392#ifndef WIFEXITED
15393# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15394#endif
15395
John Criswell7a73b802003-06-30 21:59:07 +000015396int
15397main ()
15398{
15399 int s;
15400 wait (&s);
15401 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15402 ;
15403 return 0;
15404}
15405_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015406rm -f conftest.$ac_objext
15407if { (ac_try="$ac_compile"
15408case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15411esac
15412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413 (eval "$ac_compile") 2>conftest.er1
15414 ac_status=$?
15415 grep -v '^ *+' conftest.er1 >conftest.err
15416 rm -f conftest.er1
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
15420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15421 { (case "(($ac_try" in
15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423 *) ac_try_echo=$ac_try;;
15424esac
15425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_try") 2>&5
15427 ac_status=$?
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; } &&
15430 { ac_try='test -s conftest.$ac_objext'
15431 { (case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15434esac
15435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_try") 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015440 ac_cv_header_sys_wait_h=yes
15441else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015442 echo "$as_me: failed program was:" >&5
15443sed 's/^/| /' conftest.$ac_ext >&5
15444
15445 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015446fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015447
Reid Spencera773bd52006-08-04 18:18:08 +000015448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015449fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015450{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15451echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015452if test $ac_cv_header_sys_wait_h = yes; then
15453
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015454cat >>confdefs.h <<\_ACEOF
15455#define HAVE_SYS_WAIT_H 1
15456_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015457
15458fi
15459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015460{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15461echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15462if test "${ac_cv_header_time+set}" = set; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015464else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015465 cat >conftest.$ac_ext <<_ACEOF
15466/* confdefs.h. */
15467_ACEOF
15468cat confdefs.h >>conftest.$ac_ext
15469cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015470/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015471#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015472#include <sys/time.h>
15473#include <time.h>
15474
15475int
15476main ()
15477{
15478if ((struct tm *) 0)
15479return 0;
15480 ;
15481 return 0;
15482}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015483_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015484rm -f conftest.$ac_objext
15485if { (ac_try="$ac_compile"
15486case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15489esac
15490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_compile") 2>conftest.er1
15492 ac_status=$?
15493 grep -v '^ *+' conftest.er1 >conftest.err
15494 rm -f conftest.er1
15495 cat conftest.err >&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } &&
15498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15499 { (case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15502esac
15503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_try") 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; } &&
15508 { ac_try='test -s conftest.$ac_objext'
15509 { (case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15512esac
15513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_try") 2>&5
15515 ac_status=$?
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015518 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015519else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015520 echo "$as_me: failed program was:" >&5
15521sed 's/^/| /' conftest.$ac_ext >&5
15522
15523 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015524fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015525
Reid Spencera773bd52006-08-04 18:18:08 +000015526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015527fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015528{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15529echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015530if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015532cat >>confdefs.h <<\_ACEOF
15533#define TIME_WITH_SYS_TIME 1
15534_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015535
15536fi
15537
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015539
15540
15541
15542
15543
15544
Reid Spencer59473af2004-12-25 07:31:29 +000015545for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015546do
15547as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15553fi
15554ac_res=`eval echo '${'$as_ac_Header'}'`
15555 { echo "$as_me:$LINENO: result: $ac_res" >&5
15556echo "${ECHO_T}$ac_res" >&6; }
15557else
15558 # Is the header compilable?
15559{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15560echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15561cat >conftest.$ac_ext <<_ACEOF
15562/* confdefs.h. */
15563_ACEOF
15564cat confdefs.h >>conftest.$ac_ext
15565cat >>conftest.$ac_ext <<_ACEOF
15566/* end confdefs.h. */
15567$ac_includes_default
15568#include <$ac_header>
15569_ACEOF
15570rm -f conftest.$ac_objext
15571if { (ac_try="$ac_compile"
15572case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15575esac
15576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577 (eval "$ac_compile") 2>conftest.er1
15578 ac_status=$?
15579 grep -v '^ *+' conftest.er1 >conftest.err
15580 rm -f conftest.er1
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15585 { (case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15588esac
15589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_try") 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; } &&
15594 { ac_try='test -s conftest.$ac_objext'
15595 { (case "(($ac_try" in
15596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597 *) ac_try_echo=$ac_try;;
15598esac
15599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15600 (eval "$ac_try") 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 ac_header_compiler=yes
15605else
15606 echo "$as_me: failed program was:" >&5
15607sed 's/^/| /' conftest.$ac_ext >&5
15608
15609 ac_header_compiler=no
15610fi
15611
15612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15613{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15614echo "${ECHO_T}$ac_header_compiler" >&6; }
15615
15616# Is the header present?
15617{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15618echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15619cat >conftest.$ac_ext <<_ACEOF
15620/* confdefs.h. */
15621_ACEOF
15622cat confdefs.h >>conftest.$ac_ext
15623cat >>conftest.$ac_ext <<_ACEOF
15624/* end confdefs.h. */
15625#include <$ac_header>
15626_ACEOF
15627if { (ac_try="$ac_cpp conftest.$ac_ext"
15628case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15631esac
15632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15634 ac_status=$?
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -f conftest.er1
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } >/dev/null; then
15640 if test -s conftest.err; then
15641 ac_cpp_err=$ac_c_preproc_warn_flag
15642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15643 else
15644 ac_cpp_err=
15645 fi
15646else
15647 ac_cpp_err=yes
15648fi
15649if test -z "$ac_cpp_err"; then
15650 ac_header_preproc=yes
15651else
15652 echo "$as_me: failed program was:" >&5
15653sed 's/^/| /' conftest.$ac_ext >&5
15654
15655 ac_header_preproc=no
15656fi
15657
15658rm -f conftest.err conftest.$ac_ext
15659{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15660echo "${ECHO_T}$ac_header_preproc" >&6; }
15661
15662# So? What about this header?
15663case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15664 yes:no: )
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15666echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15668echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15669 ac_header_preproc=yes
15670 ;;
15671 no:yes:* )
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15673echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15675echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15677echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15679echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15681echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15683echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15684 ( cat <<\_ASBOX
15685## ----------------------------------- ##
15686## Report this to llvmbugs@cs.uiuc.edu ##
15687## ----------------------------------- ##
15688_ASBOX
15689 ) | sed "s/^/$as_me: WARNING: /" >&2
15690 ;;
15691esac
15692{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15695 echo $ECHO_N "(cached) $ECHO_C" >&6
15696else
15697 eval "$as_ac_Header=\$ac_header_preproc"
15698fi
15699ac_res=`eval echo '${'$as_ac_Header'}'`
15700 { echo "$as_me:$LINENO: result: $ac_res" >&5
15701echo "${ECHO_T}$ac_res" >&6; }
15702
15703fi
15704if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015705 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015707_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015708
15709fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015710
Reid Spencer59473af2004-12-25 07:31:29 +000015711done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015713
15714
15715
15716
15717
15718
Douglas Gregor071d73d2009-05-18 17:21:34 +000015719for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015720do
15721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15727fi
15728ac_res=`eval echo '${'$as_ac_Header'}'`
15729 { echo "$as_me:$LINENO: result: $ac_res" >&5
15730echo "${ECHO_T}$ac_res" >&6; }
15731else
15732 # Is the header compilable?
15733{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15734echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15735cat >conftest.$ac_ext <<_ACEOF
15736/* confdefs.h. */
15737_ACEOF
15738cat confdefs.h >>conftest.$ac_ext
15739cat >>conftest.$ac_ext <<_ACEOF
15740/* end confdefs.h. */
15741$ac_includes_default
15742#include <$ac_header>
15743_ACEOF
15744rm -f conftest.$ac_objext
15745if { (ac_try="$ac_compile"
15746case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15749esac
15750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_compile") 2>conftest.er1
15752 ac_status=$?
15753 grep -v '^ *+' conftest.er1 >conftest.err
15754 rm -f conftest.er1
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15759 { (case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15762esac
15763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764 (eval "$ac_try") 2>&5
15765 ac_status=$?
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; } &&
15768 { ac_try='test -s conftest.$ac_objext'
15769 { (case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15772esac
15773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_try") 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 ac_header_compiler=yes
15779else
15780 echo "$as_me: failed program was:" >&5
15781sed 's/^/| /' conftest.$ac_ext >&5
15782
15783 ac_header_compiler=no
15784fi
15785
15786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15787{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15788echo "${ECHO_T}$ac_header_compiler" >&6; }
15789
15790# Is the header present?
15791{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15793cat >conftest.$ac_ext <<_ACEOF
15794/* confdefs.h. */
15795_ACEOF
15796cat confdefs.h >>conftest.$ac_ext
15797cat >>conftest.$ac_ext <<_ACEOF
15798/* end confdefs.h. */
15799#include <$ac_header>
15800_ACEOF
15801if { (ac_try="$ac_cpp conftest.$ac_ext"
15802case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15805esac
15806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15808 ac_status=$?
15809 grep -v '^ *+' conftest.er1 >conftest.err
15810 rm -f conftest.er1
15811 cat conftest.err >&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } >/dev/null; then
15814 if test -s conftest.err; then
15815 ac_cpp_err=$ac_c_preproc_warn_flag
15816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15817 else
15818 ac_cpp_err=
15819 fi
15820else
15821 ac_cpp_err=yes
15822fi
15823if test -z "$ac_cpp_err"; then
15824 ac_header_preproc=yes
15825else
15826 echo "$as_me: failed program was:" >&5
15827sed 's/^/| /' conftest.$ac_ext >&5
15828
15829 ac_header_preproc=no
15830fi
15831
15832rm -f conftest.err conftest.$ac_ext
15833{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15834echo "${ECHO_T}$ac_header_preproc" >&6; }
15835
15836# So? What about this header?
15837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15838 yes:no: )
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15840echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15842echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15843 ac_header_preproc=yes
15844 ;;
15845 no:yes:* )
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15847echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15849echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15851echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15853echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15855echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15857echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15858 ( cat <<\_ASBOX
15859## ----------------------------------- ##
15860## Report this to llvmbugs@cs.uiuc.edu ##
15861## ----------------------------------- ##
15862_ASBOX
15863 ) | sed "s/^/$as_me: WARNING: /" >&2
15864 ;;
15865esac
15866{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15869 echo $ECHO_N "(cached) $ECHO_C" >&6
15870else
15871 eval "$as_ac_Header=\$ac_header_preproc"
15872fi
15873ac_res=`eval echo '${'$as_ac_Header'}'`
15874 { echo "$as_me:$LINENO: result: $ac_res" >&5
15875echo "${ECHO_T}$ac_res" >&6; }
15876
15877fi
15878if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015879 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015880#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015881_ACEOF
15882
15883fi
15884
15885done
15886
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015887
15888
Douglas Gregor071d73d2009-05-18 17:21:34 +000015889for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015890do
15891as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15895if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15896 echo $ECHO_N "(cached) $ECHO_C" >&6
15897fi
15898ac_res=`eval echo '${'$as_ac_Header'}'`
15899 { echo "$as_me:$LINENO: result: $ac_res" >&5
15900echo "${ECHO_T}$ac_res" >&6; }
15901else
15902 # Is the header compilable?
15903{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15904echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15905cat >conftest.$ac_ext <<_ACEOF
15906/* confdefs.h. */
15907_ACEOF
15908cat confdefs.h >>conftest.$ac_ext
15909cat >>conftest.$ac_ext <<_ACEOF
15910/* end confdefs.h. */
15911$ac_includes_default
15912#include <$ac_header>
15913_ACEOF
15914rm -f conftest.$ac_objext
15915if { (ac_try="$ac_compile"
15916case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15919esac
15920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_compile") 2>conftest.er1
15922 ac_status=$?
15923 grep -v '^ *+' conftest.er1 >conftest.err
15924 rm -f conftest.er1
15925 cat conftest.err >&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); } &&
15928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15929 { (case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15932esac
15933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_try") 2>&5
15935 ac_status=$?
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; } &&
15938 { ac_try='test -s conftest.$ac_objext'
15939 { (case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15942esac
15943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_try") 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15948 ac_header_compiler=yes
15949else
15950 echo "$as_me: failed program was:" >&5
15951sed 's/^/| /' conftest.$ac_ext >&5
15952
15953 ac_header_compiler=no
15954fi
15955
15956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15957{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15958echo "${ECHO_T}$ac_header_compiler" >&6; }
15959
15960# Is the header present?
15961{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15962echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15963cat >conftest.$ac_ext <<_ACEOF
15964/* confdefs.h. */
15965_ACEOF
15966cat confdefs.h >>conftest.$ac_ext
15967cat >>conftest.$ac_ext <<_ACEOF
15968/* end confdefs.h. */
15969#include <$ac_header>
15970_ACEOF
15971if { (ac_try="$ac_cpp conftest.$ac_ext"
15972case "(($ac_try" in
15973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15974 *) ac_try_echo=$ac_try;;
15975esac
15976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15978 ac_status=$?
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } >/dev/null; then
15984 if test -s conftest.err; then
15985 ac_cpp_err=$ac_c_preproc_warn_flag
15986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15987 else
15988 ac_cpp_err=
15989 fi
15990else
15991 ac_cpp_err=yes
15992fi
15993if test -z "$ac_cpp_err"; then
15994 ac_header_preproc=yes
15995else
15996 echo "$as_me: failed program was:" >&5
15997sed 's/^/| /' conftest.$ac_ext >&5
15998
15999 ac_header_preproc=no
16000fi
16001
16002rm -f conftest.err conftest.$ac_ext
16003{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16004echo "${ECHO_T}$ac_header_preproc" >&6; }
16005
16006# So? What about this header?
16007case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16008 yes:no: )
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16010echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16012echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16013 ac_header_preproc=yes
16014 ;;
16015 no:yes:* )
16016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16017echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16019echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16021echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16023echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16025echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16027echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16028 ( cat <<\_ASBOX
16029## ----------------------------------- ##
16030## Report this to llvmbugs@cs.uiuc.edu ##
16031## ----------------------------------- ##
16032_ASBOX
16033 ) | sed "s/^/$as_me: WARNING: /" >&2
16034 ;;
16035esac
16036{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16040else
16041 eval "$as_ac_Header=\$ac_header_preproc"
16042fi
16043ac_res=`eval echo '${'$as_ac_Header'}'`
16044 { echo "$as_me:$LINENO: result: $ac_res" >&5
16045echo "${ECHO_T}$ac_res" >&6; }
16046
16047fi
16048if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016049 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016051_ACEOF
16052
16053fi
16054
16055done
Reid Spencer59473af2004-12-25 07:31:29 +000016056
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016057
16058
16059
16060
Reid Spencerbe3e4192007-08-17 05:45:26 +000016061for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016062do
16063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16067if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16068 echo $ECHO_N "(cached) $ECHO_C" >&6
16069fi
16070ac_res=`eval echo '${'$as_ac_Header'}'`
16071 { echo "$as_me:$LINENO: result: $ac_res" >&5
16072echo "${ECHO_T}$ac_res" >&6; }
16073else
16074 # Is the header compilable?
16075{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16076echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16077cat >conftest.$ac_ext <<_ACEOF
16078/* confdefs.h. */
16079_ACEOF
16080cat confdefs.h >>conftest.$ac_ext
16081cat >>conftest.$ac_ext <<_ACEOF
16082/* end confdefs.h. */
16083$ac_includes_default
16084#include <$ac_header>
16085_ACEOF
16086rm -f conftest.$ac_objext
16087if { (ac_try="$ac_compile"
16088case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16091esac
16092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093 (eval "$ac_compile") 2>conftest.er1
16094 ac_status=$?
16095 grep -v '^ *+' conftest.er1 >conftest.err
16096 rm -f conftest.er1
16097 cat conftest.err >&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } &&
16100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16101 { (case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16104esac
16105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_try") 2>&5
16107 ac_status=$?
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; } &&
16110 { ac_try='test -s conftest.$ac_objext'
16111 { (case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16114esac
16115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_try") 2>&5
16117 ac_status=$?
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; }; then
16120 ac_header_compiler=yes
16121else
16122 echo "$as_me: failed program was:" >&5
16123sed 's/^/| /' conftest.$ac_ext >&5
16124
16125 ac_header_compiler=no
16126fi
16127
16128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16130echo "${ECHO_T}$ac_header_compiler" >&6; }
16131
16132# Is the header present?
16133{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16135cat >conftest.$ac_ext <<_ACEOF
16136/* confdefs.h. */
16137_ACEOF
16138cat confdefs.h >>conftest.$ac_ext
16139cat >>conftest.$ac_ext <<_ACEOF
16140/* end confdefs.h. */
16141#include <$ac_header>
16142_ACEOF
16143if { (ac_try="$ac_cpp conftest.$ac_ext"
16144case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16147esac
16148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16150 ac_status=$?
16151 grep -v '^ *+' conftest.er1 >conftest.err
16152 rm -f conftest.er1
16153 cat conftest.err >&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } >/dev/null; then
16156 if test -s conftest.err; then
16157 ac_cpp_err=$ac_c_preproc_warn_flag
16158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16159 else
16160 ac_cpp_err=
16161 fi
16162else
16163 ac_cpp_err=yes
16164fi
16165if test -z "$ac_cpp_err"; then
16166 ac_header_preproc=yes
16167else
16168 echo "$as_me: failed program was:" >&5
16169sed 's/^/| /' conftest.$ac_ext >&5
16170
16171 ac_header_preproc=no
16172fi
16173
16174rm -f conftest.err conftest.$ac_ext
16175{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16176echo "${ECHO_T}$ac_header_preproc" >&6; }
16177
16178# So? What about this header?
16179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16180 yes:no: )
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16185 ac_header_preproc=yes
16186 ;;
16187 no:yes:* )
16188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16191echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16195echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16200 ( cat <<\_ASBOX
16201## ----------------------------------- ##
16202## Report this to llvmbugs@cs.uiuc.edu ##
16203## ----------------------------------- ##
16204_ASBOX
16205 ) | sed "s/^/$as_me: WARNING: /" >&2
16206 ;;
16207esac
16208{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16212else
16213 eval "$as_ac_Header=\$ac_header_preproc"
16214fi
16215ac_res=`eval echo '${'$as_ac_Header'}'`
16216 { echo "$as_me:$LINENO: result: $ac_res" >&5
16217echo "${ECHO_T}$ac_res" >&6; }
16218
16219fi
16220if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016221 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016222#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016223_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016224
16225fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016226
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016227done
16228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016229
16230
16231
16232
Douglas Gregor01746742009-05-11 18:05:52 +000016233for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016234do
16235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16241fi
16242ac_res=`eval echo '${'$as_ac_Header'}'`
16243 { echo "$as_me:$LINENO: result: $ac_res" >&5
16244echo "${ECHO_T}$ac_res" >&6; }
16245else
16246 # Is the header compilable?
16247{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16249cat >conftest.$ac_ext <<_ACEOF
16250/* confdefs.h. */
16251_ACEOF
16252cat confdefs.h >>conftest.$ac_ext
16253cat >>conftest.$ac_ext <<_ACEOF
16254/* end confdefs.h. */
16255$ac_includes_default
16256#include <$ac_header>
16257_ACEOF
16258rm -f conftest.$ac_objext
16259if { (ac_try="$ac_compile"
16260case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16263esac
16264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265 (eval "$ac_compile") 2>conftest.er1
16266 ac_status=$?
16267 grep -v '^ *+' conftest.er1 >conftest.err
16268 rm -f conftest.er1
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } &&
16272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16273 { (case "(($ac_try" in
16274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275 *) ac_try_echo=$ac_try;;
16276esac
16277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16278 (eval "$ac_try") 2>&5
16279 ac_status=$?
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest.$ac_objext'
16283 { (case "(($ac_try" in
16284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285 *) ac_try_echo=$ac_try;;
16286esac
16287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16288 (eval "$ac_try") 2>&5
16289 ac_status=$?
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; }; then
16292 ac_header_compiler=yes
16293else
16294 echo "$as_me: failed program was:" >&5
16295sed 's/^/| /' conftest.$ac_ext >&5
16296
16297 ac_header_compiler=no
16298fi
16299
16300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16302echo "${ECHO_T}$ac_header_compiler" >&6; }
16303
16304# Is the header present?
16305{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16307cat >conftest.$ac_ext <<_ACEOF
16308/* confdefs.h. */
16309_ACEOF
16310cat confdefs.h >>conftest.$ac_ext
16311cat >>conftest.$ac_ext <<_ACEOF
16312/* end confdefs.h. */
16313#include <$ac_header>
16314_ACEOF
16315if { (ac_try="$ac_cpp conftest.$ac_ext"
16316case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16319esac
16320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16322 ac_status=$?
16323 grep -v '^ *+' conftest.er1 >conftest.err
16324 rm -f conftest.er1
16325 cat conftest.err >&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } >/dev/null; then
16328 if test -s conftest.err; then
16329 ac_cpp_err=$ac_c_preproc_warn_flag
16330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16331 else
16332 ac_cpp_err=
16333 fi
16334else
16335 ac_cpp_err=yes
16336fi
16337if test -z "$ac_cpp_err"; then
16338 ac_header_preproc=yes
16339else
16340 echo "$as_me: failed program was:" >&5
16341sed 's/^/| /' conftest.$ac_ext >&5
16342
16343 ac_header_preproc=no
16344fi
16345
16346rm -f conftest.err conftest.$ac_ext
16347{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16348echo "${ECHO_T}$ac_header_preproc" >&6; }
16349
16350# So? What about this header?
16351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16352 yes:no: )
16353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16357 ac_header_preproc=yes
16358 ;;
16359 no:yes:* )
16360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16372 ( cat <<\_ASBOX
16373## ----------------------------------- ##
16374## Report this to llvmbugs@cs.uiuc.edu ##
16375## ----------------------------------- ##
16376_ASBOX
16377 ) | sed "s/^/$as_me: WARNING: /" >&2
16378 ;;
16379esac
16380{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16384else
16385 eval "$as_ac_Header=\$ac_header_preproc"
16386fi
16387ac_res=`eval echo '${'$as_ac_Header'}'`
16388 { echo "$as_me:$LINENO: result: $ac_res" >&5
16389echo "${ECHO_T}$ac_res" >&6; }
16390
16391fi
16392if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016393 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016395_ACEOF
16396
16397fi
16398
16399done
16400
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016401
16402for ac_header in valgrind/valgrind.h
16403do
16404as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16408if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16410fi
16411ac_res=`eval echo '${'$as_ac_Header'}'`
16412 { echo "$as_me:$LINENO: result: $ac_res" >&5
16413echo "${ECHO_T}$ac_res" >&6; }
16414else
16415 # Is the header compilable?
16416{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16417echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16418cat >conftest.$ac_ext <<_ACEOF
16419/* confdefs.h. */
16420_ACEOF
16421cat confdefs.h >>conftest.$ac_ext
16422cat >>conftest.$ac_ext <<_ACEOF
16423/* end confdefs.h. */
16424$ac_includes_default
16425#include <$ac_header>
16426_ACEOF
16427rm -f conftest.$ac_objext
16428if { (ac_try="$ac_compile"
16429case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16432esac
16433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_compile") 2>conftest.er1
16435 ac_status=$?
16436 grep -v '^ *+' conftest.er1 >conftest.err
16437 rm -f conftest.er1
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } &&
16441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16442 { (case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16445esac
16446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_try") 2>&5
16448 ac_status=$?
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; } &&
16451 { ac_try='test -s conftest.$ac_objext'
16452 { (case "(($ac_try" in
16453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454 *) ac_try_echo=$ac_try;;
16455esac
16456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457 (eval "$ac_try") 2>&5
16458 ac_status=$?
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16461 ac_header_compiler=yes
16462else
16463 echo "$as_me: failed program was:" >&5
16464sed 's/^/| /' conftest.$ac_ext >&5
16465
16466 ac_header_compiler=no
16467fi
16468
16469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16470{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16471echo "${ECHO_T}$ac_header_compiler" >&6; }
16472
16473# Is the header present?
16474{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16475echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16476cat >conftest.$ac_ext <<_ACEOF
16477/* confdefs.h. */
16478_ACEOF
16479cat confdefs.h >>conftest.$ac_ext
16480cat >>conftest.$ac_ext <<_ACEOF
16481/* end confdefs.h. */
16482#include <$ac_header>
16483_ACEOF
16484if { (ac_try="$ac_cpp conftest.$ac_ext"
16485case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16488esac
16489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16491 ac_status=$?
16492 grep -v '^ *+' conftest.er1 >conftest.err
16493 rm -f conftest.er1
16494 cat conftest.err >&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } >/dev/null; then
16497 if test -s conftest.err; then
16498 ac_cpp_err=$ac_c_preproc_warn_flag
16499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16500 else
16501 ac_cpp_err=
16502 fi
16503else
16504 ac_cpp_err=yes
16505fi
16506if test -z "$ac_cpp_err"; then
16507 ac_header_preproc=yes
16508else
16509 echo "$as_me: failed program was:" >&5
16510sed 's/^/| /' conftest.$ac_ext >&5
16511
16512 ac_header_preproc=no
16513fi
16514
16515rm -f conftest.err conftest.$ac_ext
16516{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16517echo "${ECHO_T}$ac_header_preproc" >&6; }
16518
16519# So? What about this header?
16520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16521 yes:no: )
16522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16523echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16525echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16526 ac_header_preproc=yes
16527 ;;
16528 no:yes:* )
16529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16530echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16532echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16533 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16534echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16535 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16536echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16538echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16539 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16540echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16541 ( cat <<\_ASBOX
16542## ----------------------------------- ##
16543## Report this to llvmbugs@cs.uiuc.edu ##
16544## ----------------------------------- ##
16545_ASBOX
16546 ) | sed "s/^/$as_me: WARNING: /" >&2
16547 ;;
16548esac
16549{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16553else
16554 eval "$as_ac_Header=\$ac_header_preproc"
16555fi
16556ac_res=`eval echo '${'$as_ac_Header'}'`
16557 { echo "$as_me:$LINENO: result: $ac_res" >&5
16558echo "${ECHO_T}$ac_res" >&6; }
16559
16560fi
16561if test `eval echo '${'$as_ac_Header'}'` = yes; then
16562 cat >>confdefs.h <<_ACEOF
16563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16564_ACEOF
16565
16566fi
16567
16568done
16569
Reid Spencer0a262ba2005-08-24 10:07:20 +000016570if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016571
16572for ac_header in pthread.h
16573do
16574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
16580fi
16581ac_res=`eval echo '${'$as_ac_Header'}'`
16582 { echo "$as_me:$LINENO: result: $ac_res" >&5
16583echo "${ECHO_T}$ac_res" >&6; }
16584else
16585 # Is the header compilable?
16586{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16588cat >conftest.$ac_ext <<_ACEOF
16589/* confdefs.h. */
16590_ACEOF
16591cat confdefs.h >>conftest.$ac_ext
16592cat >>conftest.$ac_ext <<_ACEOF
16593/* end confdefs.h. */
16594$ac_includes_default
16595#include <$ac_header>
16596_ACEOF
16597rm -f conftest.$ac_objext
16598if { (ac_try="$ac_compile"
16599case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16602esac
16603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_compile") 2>conftest.er1
16605 ac_status=$?
16606 grep -v '^ *+' conftest.er1 >conftest.err
16607 rm -f conftest.er1
16608 cat conftest.err >&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16612 { (case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16615esac
16616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_try") 2>&5
16618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; } &&
16621 { ac_try='test -s conftest.$ac_objext'
16622 { (case "(($ac_try" in
16623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624 *) ac_try_echo=$ac_try;;
16625esac
16626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627 (eval "$ac_try") 2>&5
16628 ac_status=$?
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; }; then
16631 ac_header_compiler=yes
16632else
16633 echo "$as_me: failed program was:" >&5
16634sed 's/^/| /' conftest.$ac_ext >&5
16635
16636 ac_header_compiler=no
16637fi
16638
16639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16640{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16641echo "${ECHO_T}$ac_header_compiler" >&6; }
16642
16643# Is the header present?
16644{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16645echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16646cat >conftest.$ac_ext <<_ACEOF
16647/* confdefs.h. */
16648_ACEOF
16649cat confdefs.h >>conftest.$ac_ext
16650cat >>conftest.$ac_ext <<_ACEOF
16651/* end confdefs.h. */
16652#include <$ac_header>
16653_ACEOF
16654if { (ac_try="$ac_cpp conftest.$ac_ext"
16655case "(($ac_try" in
16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16658esac
16659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16661 ac_status=$?
16662 grep -v '^ *+' conftest.er1 >conftest.err
16663 rm -f conftest.er1
16664 cat conftest.err >&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } >/dev/null; then
16667 if test -s conftest.err; then
16668 ac_cpp_err=$ac_c_preproc_warn_flag
16669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16670 else
16671 ac_cpp_err=
16672 fi
16673else
16674 ac_cpp_err=yes
16675fi
16676if test -z "$ac_cpp_err"; then
16677 ac_header_preproc=yes
16678else
16679 echo "$as_me: failed program was:" >&5
16680sed 's/^/| /' conftest.$ac_ext >&5
16681
16682 ac_header_preproc=no
16683fi
16684
16685rm -f conftest.err conftest.$ac_ext
16686{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16687echo "${ECHO_T}$ac_header_preproc" >&6; }
16688
16689# So? What about this header?
16690case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16691 yes:no: )
16692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16693echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16695echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16696 ac_header_preproc=yes
16697 ;;
16698 no:yes:* )
16699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16700echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16702echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16704echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16706echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16708echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16710echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16711 ( cat <<\_ASBOX
16712## ----------------------------------- ##
16713## Report this to llvmbugs@cs.uiuc.edu ##
16714## ----------------------------------- ##
16715_ASBOX
16716 ) | sed "s/^/$as_me: WARNING: /" >&2
16717 ;;
16718esac
16719{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16723else
16724 eval "$as_ac_Header=\$ac_header_preproc"
16725fi
16726ac_res=`eval echo '${'$as_ac_Header'}'`
16727 { echo "$as_me:$LINENO: result: $ac_res" >&5
16728echo "${ECHO_T}$ac_res" >&6; }
16729
16730fi
16731if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016732 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016734_ACEOF
16735 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016736
16737else
16738 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016739
16740fi
16741
Reid Spencerbe3e4192007-08-17 05:45:26 +000016742done
Reid Spencer1000b732006-12-01 00:37:14 +000016743
16744else
16745 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016746
16747fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016748
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016749if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016750
16751
16752for ac_header in ffi.h ffi/ffi.h
16753do
16754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16760fi
16761ac_res=`eval echo '${'$as_ac_Header'}'`
16762 { echo "$as_me:$LINENO: result: $ac_res" >&5
16763echo "${ECHO_T}$ac_res" >&6; }
16764else
16765 # Is the header compilable?
16766{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16767echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16768cat >conftest.$ac_ext <<_ACEOF
16769/* confdefs.h. */
16770_ACEOF
16771cat confdefs.h >>conftest.$ac_ext
16772cat >>conftest.$ac_ext <<_ACEOF
16773/* end confdefs.h. */
16774$ac_includes_default
16775#include <$ac_header>
16776_ACEOF
16777rm -f conftest.$ac_objext
16778if { (ac_try="$ac_compile"
16779case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16782esac
16783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_compile") 2>conftest.er1
16785 ac_status=$?
16786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
16791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16792 { (case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16795esac
16796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797 (eval "$ac_try") 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest.$ac_objext'
16802 { (case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16805esac
16806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_try") 2>&5
16808 ac_status=$?
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 ac_header_compiler=yes
16812else
16813 echo "$as_me: failed program was:" >&5
16814sed 's/^/| /' conftest.$ac_ext >&5
16815
16816 ac_header_compiler=no
16817fi
16818
16819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16820{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16821echo "${ECHO_T}$ac_header_compiler" >&6; }
16822
16823# Is the header present?
16824{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16825echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16826cat >conftest.$ac_ext <<_ACEOF
16827/* confdefs.h. */
16828_ACEOF
16829cat confdefs.h >>conftest.$ac_ext
16830cat >>conftest.$ac_ext <<_ACEOF
16831/* end confdefs.h. */
16832#include <$ac_header>
16833_ACEOF
16834if { (ac_try="$ac_cpp conftest.$ac_ext"
16835case "(($ac_try" in
16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837 *) ac_try_echo=$ac_try;;
16838esac
16839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16841 ac_status=$?
16842 grep -v '^ *+' conftest.er1 >conftest.err
16843 rm -f conftest.er1
16844 cat conftest.err >&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); } >/dev/null; then
16847 if test -s conftest.err; then
16848 ac_cpp_err=$ac_c_preproc_warn_flag
16849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16850 else
16851 ac_cpp_err=
16852 fi
16853else
16854 ac_cpp_err=yes
16855fi
16856if test -z "$ac_cpp_err"; then
16857 ac_header_preproc=yes
16858else
16859 echo "$as_me: failed program was:" >&5
16860sed 's/^/| /' conftest.$ac_ext >&5
16861
16862 ac_header_preproc=no
16863fi
16864
16865rm -f conftest.err conftest.$ac_ext
16866{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16867echo "${ECHO_T}$ac_header_preproc" >&6; }
16868
16869# So? What about this header?
16870case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16871 yes:no: )
16872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16875echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16876 ac_header_preproc=yes
16877 ;;
16878 no:yes:* )
16879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16880echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16882echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16884echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16886echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16890echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16891 ( cat <<\_ASBOX
16892## ----------------------------------- ##
16893## Report this to llvmbugs@cs.uiuc.edu ##
16894## ----------------------------------- ##
16895_ASBOX
16896 ) | sed "s/^/$as_me: WARNING: /" >&2
16897 ;;
16898esac
16899{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16902 echo $ECHO_N "(cached) $ECHO_C" >&6
16903else
16904 eval "$as_ac_Header=\$ac_header_preproc"
16905fi
16906ac_res=`eval echo '${'$as_ac_Header'}'`
16907 { echo "$as_me:$LINENO: result: $ac_res" >&5
16908echo "${ECHO_T}$ac_res" >&6; }
16909
16910fi
16911if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016912 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016914_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016915
16916fi
16917
16918done
16919
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016920fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016921
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016922
Reid Spencer8085cff2005-01-16 02:58:39 +000016923
Torok Edwin871384f2010-01-26 08:50:50 +000016924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016925 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16926echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16927if test "${ac_cv_huge_val_sanity+set}" = set; then
16928 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016929else
16930
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016931 ac_ext=cpp
16932ac_cpp='$CXXCPP $CPPFLAGS'
16933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016936
Eric Christopherc7718502010-03-02 05:06:54 +000016937 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016938 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016939 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016940 ac_cv_huge_val_sanity=yes
16941else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016942 cat >conftest.$ac_ext <<_ACEOF
16943/* confdefs.h. */
16944_ACEOF
16945cat confdefs.h >>conftest.$ac_ext
16946cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016947/* end confdefs.h. */
16948#include <math.h>
16949int
16950main ()
16951{
16952double x = HUGE_VAL; return x != x;
16953 ;
16954 return 0;
16955}
16956_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016957rm -f conftest$ac_exeext
16958if { (ac_try="$ac_link"
16959case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16962esac
16963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_link") 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16968 { (case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16971esac
16972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973 (eval "$ac_try") 2>&5
16974 ac_status=$?
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016977 ac_cv_huge_val_sanity=yes
16978else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016979 echo "$as_me: program exited with status $ac_status" >&5
16980echo "$as_me: failed program was:" >&5
16981sed 's/^/| /' conftest.$ac_ext >&5
16982
16983( exit $ac_status )
16984ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016985fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016986rm -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 +000016987fi
16988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016989
Eric Christopherc7718502010-03-02 05:06:54 +000016990 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016991 ac_ext=c
16992ac_cpp='$CPP $CPPFLAGS'
16993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16995ac_compiler_gnu=$ac_cv_c_compiler_gnu
16996
16997
16998fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016999{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17000echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017001 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17002
17003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017004{ echo "$as_me:$LINENO: checking for pid_t" >&5
17005echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17006if test "${ac_cv_type_pid_t+set}" = set; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17008else
17009 cat >conftest.$ac_ext <<_ACEOF
17010/* confdefs.h. */
17011_ACEOF
17012cat confdefs.h >>conftest.$ac_ext
17013cat >>conftest.$ac_ext <<_ACEOF
17014/* end confdefs.h. */
17015$ac_includes_default
17016typedef pid_t ac__type_new_;
17017int
17018main ()
17019{
17020if ((ac__type_new_ *) 0)
17021 return 0;
17022if (sizeof (ac__type_new_))
17023 return 0;
17024 ;
17025 return 0;
17026}
17027_ACEOF
17028rm -f conftest.$ac_objext
17029if { (ac_try="$ac_compile"
17030case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17033esac
17034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_compile") 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17043 { (case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17046esac
17047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_try") 2>&5
17049 ac_status=$?
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; } &&
17052 { ac_try='test -s conftest.$ac_objext'
17053 { (case "(($ac_try" in
17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17056esac
17057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058 (eval "$ac_try") 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17062 ac_cv_type_pid_t=yes
17063else
17064 echo "$as_me: failed program was:" >&5
17065sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017067 ac_cv_type_pid_t=no
17068fi
17069
17070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17071fi
17072{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17073echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17074if test $ac_cv_type_pid_t = yes; then
17075 :
John Criswell7a73b802003-06-30 21:59:07 +000017076else
17077
17078cat >>confdefs.h <<_ACEOF
17079#define pid_t int
17080_ACEOF
17081
17082fi
17083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017084{ echo "$as_me:$LINENO: checking for size_t" >&5
17085echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17086if test "${ac_cv_type_size_t+set}" = set; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17088else
17089 cat >conftest.$ac_ext <<_ACEOF
17090/* confdefs.h. */
17091_ACEOF
17092cat confdefs.h >>conftest.$ac_ext
17093cat >>conftest.$ac_ext <<_ACEOF
17094/* end confdefs.h. */
17095$ac_includes_default
17096typedef size_t ac__type_new_;
17097int
17098main ()
17099{
17100if ((ac__type_new_ *) 0)
17101 return 0;
17102if (sizeof (ac__type_new_))
17103 return 0;
17104 ;
17105 return 0;
17106}
17107_ACEOF
17108rm -f conftest.$ac_objext
17109if { (ac_try="$ac_compile"
17110case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17113esac
17114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_compile") 2>conftest.er1
17116 ac_status=$?
17117 grep -v '^ *+' conftest.er1 >conftest.err
17118 rm -f conftest.er1
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
17122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17123 { (case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17126esac
17127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_try") 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try='test -s conftest.$ac_objext'
17133 { (case "(($ac_try" in
17134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135 *) ac_try_echo=$ac_try;;
17136esac
17137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17138 (eval "$ac_try") 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_cv_type_size_t=yes
17143else
17144 echo "$as_me: failed program was:" >&5
17145sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017146
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017147 ac_cv_type_size_t=no
17148fi
17149
17150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17151fi
17152{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17153echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17154if test $ac_cv_type_size_t = yes; then
17155 :
John Criswell7a73b802003-06-30 21:59:07 +000017156else
17157
17158cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017159#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017160_ACEOF
17161
17162fi
17163
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017164
17165cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017166#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017167_ACEOF
17168
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017169{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17170echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17171if test "${ac_cv_struct_tm+set}" = set; then
17172 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017173else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017174 cat >conftest.$ac_ext <<_ACEOF
17175/* confdefs.h. */
17176_ACEOF
17177cat confdefs.h >>conftest.$ac_ext
17178cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017179/* end confdefs.h. */
17180#include <sys/types.h>
17181#include <time.h>
17182
17183int
17184main ()
17185{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017186struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017187 ;
17188 return 0;
17189}
17190_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017191rm -f conftest.$ac_objext
17192if { (ac_try="$ac_compile"
17193case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17196esac
17197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_compile") 2>conftest.er1
17199 ac_status=$?
17200 grep -v '^ *+' conftest.er1 >conftest.err
17201 rm -f conftest.er1
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
17205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17209esac
17210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; } &&
17215 { ac_try='test -s conftest.$ac_objext'
17216 { (case "(($ac_try" in
17217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218 *) ac_try_echo=$ac_try;;
17219esac
17220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221 (eval "$ac_try") 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017225 ac_cv_struct_tm=time.h
17226else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017227 echo "$as_me: failed program was:" >&5
17228sed 's/^/| /' conftest.$ac_ext >&5
17229
17230 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017231fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017232
Reid Spencera773bd52006-08-04 18:18:08 +000017233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017234fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017235{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17236echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017237if test $ac_cv_struct_tm = sys/time.h; then
17238
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017239cat >>confdefs.h <<\_ACEOF
17240#define TM_IN_SYS_TIME 1
17241_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017242
17243fi
17244
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017245{ echo "$as_me:$LINENO: checking for int64_t" >&5
17246echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17247if test "${ac_cv_type_int64_t+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17249else
17250 cat >conftest.$ac_ext <<_ACEOF
17251/* confdefs.h. */
17252_ACEOF
17253cat confdefs.h >>conftest.$ac_ext
17254cat >>conftest.$ac_ext <<_ACEOF
17255/* end confdefs.h. */
17256$ac_includes_default
17257typedef int64_t ac__type_new_;
17258int
17259main ()
17260{
17261if ((ac__type_new_ *) 0)
17262 return 0;
17263if (sizeof (ac__type_new_))
17264 return 0;
17265 ;
17266 return 0;
17267}
17268_ACEOF
17269rm -f conftest.$ac_objext
17270if { (ac_try="$ac_compile"
17271case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17274esac
17275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276 (eval "$ac_compile") 2>conftest.er1
17277 ac_status=$?
17278 grep -v '^ *+' conftest.er1 >conftest.err
17279 rm -f conftest.er1
17280 cat conftest.err >&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } &&
17283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17284 { (case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17287esac
17288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_try") 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; } &&
17293 { ac_try='test -s conftest.$ac_objext'
17294 { (case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17297esac
17298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_try") 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; }; then
17303 ac_cv_type_int64_t=yes
17304else
17305 echo "$as_me: failed program was:" >&5
17306sed 's/^/| /' conftest.$ac_ext >&5
17307
17308 ac_cv_type_int64_t=no
17309fi
17310
17311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17312fi
17313{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17314echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17315if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017316
17317cat >>confdefs.h <<_ACEOF
17318#define HAVE_INT64_T 1
17319_ACEOF
17320
17321
17322else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017323 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17324echo "$as_me: error: Type int64_t required but not found" >&2;}
17325 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017326fi
17327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017328{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17329echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17330if test "${ac_cv_type_uint64_t+set}" = set; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17332else
17333 cat >conftest.$ac_ext <<_ACEOF
17334/* confdefs.h. */
17335_ACEOF
17336cat confdefs.h >>conftest.$ac_ext
17337cat >>conftest.$ac_ext <<_ACEOF
17338/* end confdefs.h. */
17339$ac_includes_default
17340typedef uint64_t ac__type_new_;
17341int
17342main ()
17343{
17344if ((ac__type_new_ *) 0)
17345 return 0;
17346if (sizeof (ac__type_new_))
17347 return 0;
17348 ;
17349 return 0;
17350}
17351_ACEOF
17352rm -f conftest.$ac_objext
17353if { (ac_try="$ac_compile"
17354case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17357esac
17358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_compile") 2>conftest.er1
17360 ac_status=$?
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17367 { (case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17370esac
17371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_try") 2>&5
17373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; } &&
17376 { ac_try='test -s conftest.$ac_objext'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380esac
17381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; }; then
17386 ac_cv_type_uint64_t=yes
17387else
17388 echo "$as_me: failed program was:" >&5
17389sed 's/^/| /' conftest.$ac_ext >&5
17390
17391 ac_cv_type_uint64_t=no
17392fi
17393
17394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17395fi
17396{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17397echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17398if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017399
17400cat >>confdefs.h <<_ACEOF
17401#define HAVE_UINT64_T 1
17402_ACEOF
17403
17404
17405else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017406 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17407echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17408if test "${ac_cv_type_u_int64_t+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17410else
17411 cat >conftest.$ac_ext <<_ACEOF
17412/* confdefs.h. */
17413_ACEOF
17414cat confdefs.h >>conftest.$ac_ext
17415cat >>conftest.$ac_ext <<_ACEOF
17416/* end confdefs.h. */
17417$ac_includes_default
17418typedef u_int64_t ac__type_new_;
17419int
17420main ()
17421{
17422if ((ac__type_new_ *) 0)
17423 return 0;
17424if (sizeof (ac__type_new_))
17425 return 0;
17426 ;
17427 return 0;
17428}
17429_ACEOF
17430rm -f conftest.$ac_objext
17431if { (ac_try="$ac_compile"
17432case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17435esac
17436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 (eval "$ac_compile") 2>conftest.er1
17438 ac_status=$?
17439 grep -v '^ *+' conftest.er1 >conftest.err
17440 rm -f conftest.er1
17441 cat conftest.err >&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } &&
17444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17445 { (case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17448esac
17449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_try") 2>&5
17451 ac_status=$?
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; } &&
17454 { ac_try='test -s conftest.$ac_objext'
17455 { (case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17458esac
17459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460 (eval "$ac_try") 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
17464 ac_cv_type_u_int64_t=yes
17465else
17466 echo "$as_me: failed program was:" >&5
17467sed 's/^/| /' conftest.$ac_ext >&5
17468
17469 ac_cv_type_u_int64_t=no
17470fi
17471
17472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473fi
17474{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17475echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17476if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017477
17478cat >>confdefs.h <<_ACEOF
17479#define HAVE_U_INT64_T 1
17480_ACEOF
17481
17482
Misha Brukmanceca9042004-09-02 23:02:30 +000017483else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017484 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17485echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17486 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017487fi
17488
John Criswell679ff312004-09-02 18:44:44 +000017489fi
17490
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017491
17492
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017493
17494
17495
17496
17497
17498
17499
Reid Spencerdf3be822006-01-23 08:15:53 +000017500for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017501do
17502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17503{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17505if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17507else
17508 cat >conftest.$ac_ext <<_ACEOF
17509/* confdefs.h. */
17510_ACEOF
17511cat confdefs.h >>conftest.$ac_ext
17512cat >>conftest.$ac_ext <<_ACEOF
17513/* end confdefs.h. */
17514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17516#define $ac_func innocuous_$ac_func
17517
17518/* System header to define __stub macros and hopefully few prototypes,
17519 which can conflict with char $ac_func (); below.
17520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17521 <limits.h> exists even on freestanding compilers. */
17522
17523#ifdef __STDC__
17524# include <limits.h>
17525#else
17526# include <assert.h>
17527#endif
17528
17529#undef $ac_func
17530
17531/* Override any GCC internal prototype to avoid an error.
17532 Use char because int might match the return type of a GCC
17533 builtin and then its argument prototype would still apply. */
17534#ifdef __cplusplus
17535extern "C"
17536#endif
17537char $ac_func ();
17538/* The GNU C library defines this for functions which it implements
17539 to always fail with ENOSYS. Some functions are actually named
17540 something starting with __ and the normal name is an alias. */
17541#if defined __stub_$ac_func || defined __stub___$ac_func
17542choke me
17543#endif
17544
17545int
17546main ()
17547{
17548return $ac_func ();
17549 ;
17550 return 0;
17551}
17552_ACEOF
17553rm -f conftest.$ac_objext conftest$ac_exeext
17554if { (ac_try="$ac_link"
17555case "(($ac_try" in
17556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557 *) ac_try_echo=$ac_try;;
17558esac
17559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560 (eval "$ac_link") 2>conftest.er1
17561 ac_status=$?
17562 grep -v '^ *+' conftest.er1 >conftest.err
17563 rm -f conftest.er1
17564 cat conftest.err >&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); } &&
17567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17568 { (case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17571esac
17572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_try") 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; } &&
17577 { ac_try='test -s conftest$ac_exeext'
17578 { (case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17581esac
17582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_try") 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; }; then
17587 eval "$as_ac_var=yes"
17588else
17589 echo "$as_me: failed program was:" >&5
17590sed 's/^/| /' conftest.$ac_ext >&5
17591
17592 eval "$as_ac_var=no"
17593fi
17594
17595rm -f core conftest.err conftest.$ac_objext \
17596 conftest$ac_exeext conftest.$ac_ext
17597fi
17598ac_res=`eval echo '${'$as_ac_var'}'`
17599 { echo "$as_me:$LINENO: result: $ac_res" >&5
17600echo "${ECHO_T}$ac_res" >&6; }
17601if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017602 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017603#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017604_ACEOF
17605
17606fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017607done
John Criswell7a73b802003-06-30 21:59:07 +000017608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017609
17610
17611
17612
Reid Spencer96cf5872007-07-13 10:05:30 +000017613for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017614do
17615as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17616{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17617echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17618if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17620else
17621 cat >conftest.$ac_ext <<_ACEOF
17622/* confdefs.h. */
17623_ACEOF
17624cat confdefs.h >>conftest.$ac_ext
17625cat >>conftest.$ac_ext <<_ACEOF
17626/* end confdefs.h. */
17627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17629#define $ac_func innocuous_$ac_func
17630
17631/* System header to define __stub macros and hopefully few prototypes,
17632 which can conflict with char $ac_func (); below.
17633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17634 <limits.h> exists even on freestanding compilers. */
17635
17636#ifdef __STDC__
17637# include <limits.h>
17638#else
17639# include <assert.h>
17640#endif
17641
17642#undef $ac_func
17643
17644/* Override any GCC internal prototype to avoid an error.
17645 Use char because int might match the return type of a GCC
17646 builtin and then its argument prototype would still apply. */
17647#ifdef __cplusplus
17648extern "C"
17649#endif
17650char $ac_func ();
17651/* The GNU C library defines this for functions which it implements
17652 to always fail with ENOSYS. Some functions are actually named
17653 something starting with __ and the normal name is an alias. */
17654#if defined __stub_$ac_func || defined __stub___$ac_func
17655choke me
17656#endif
17657
17658int
17659main ()
17660{
17661return $ac_func ();
17662 ;
17663 return 0;
17664}
17665_ACEOF
17666rm -f conftest.$ac_objext conftest$ac_exeext
17667if { (ac_try="$ac_link"
17668case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17671esac
17672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_link") 2>conftest.er1
17674 ac_status=$?
17675 grep -v '^ *+' conftest.er1 >conftest.err
17676 rm -f conftest.er1
17677 cat conftest.err >&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } &&
17680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17681 { (case "(($ac_try" in
17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683 *) ac_try_echo=$ac_try;;
17684esac
17685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686 (eval "$ac_try") 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; } &&
17690 { ac_try='test -s conftest$ac_exeext'
17691 { (case "(($ac_try" in
17692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17693 *) ac_try_echo=$ac_try;;
17694esac
17695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17696 (eval "$ac_try") 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; }; then
17700 eval "$as_ac_var=yes"
17701else
17702 echo "$as_me: failed program was:" >&5
17703sed 's/^/| /' conftest.$ac_ext >&5
17704
17705 eval "$as_ac_var=no"
17706fi
17707
17708rm -f core conftest.err conftest.$ac_objext \
17709 conftest$ac_exeext conftest.$ac_ext
17710fi
17711ac_res=`eval echo '${'$as_ac_var'}'`
17712 { echo "$as_me:$LINENO: result: $ac_res" >&5
17713echo "${ECHO_T}$ac_res" >&6; }
17714if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017715 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017716#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017717_ACEOF
17718
17719fi
17720done
17721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017722
17723
17724
17725
17726
Reid Spencerb90645c2007-02-16 19:17:20 +000017727for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017728do
17729as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17730{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17731echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17732if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17734else
17735 cat >conftest.$ac_ext <<_ACEOF
17736/* confdefs.h. */
17737_ACEOF
17738cat confdefs.h >>conftest.$ac_ext
17739cat >>conftest.$ac_ext <<_ACEOF
17740/* end confdefs.h. */
17741/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17743#define $ac_func innocuous_$ac_func
17744
17745/* System header to define __stub macros and hopefully few prototypes,
17746 which can conflict with char $ac_func (); below.
17747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17748 <limits.h> exists even on freestanding compilers. */
17749
17750#ifdef __STDC__
17751# include <limits.h>
17752#else
17753# include <assert.h>
17754#endif
17755
17756#undef $ac_func
17757
17758/* Override any GCC internal prototype to avoid an error.
17759 Use char because int might match the return type of a GCC
17760 builtin and then its argument prototype would still apply. */
17761#ifdef __cplusplus
17762extern "C"
17763#endif
17764char $ac_func ();
17765/* The GNU C library defines this for functions which it implements
17766 to always fail with ENOSYS. Some functions are actually named
17767 something starting with __ and the normal name is an alias. */
17768#if defined __stub_$ac_func || defined __stub___$ac_func
17769choke me
17770#endif
17771
17772int
17773main ()
17774{
17775return $ac_func ();
17776 ;
17777 return 0;
17778}
17779_ACEOF
17780rm -f conftest.$ac_objext conftest$ac_exeext
17781if { (ac_try="$ac_link"
17782case "(($ac_try" in
17783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784 *) ac_try_echo=$ac_try;;
17785esac
17786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17787 (eval "$ac_link") 2>conftest.er1
17788 ac_status=$?
17789 grep -v '^ *+' conftest.er1 >conftest.err
17790 rm -f conftest.er1
17791 cat conftest.err >&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); } &&
17794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17795 { (case "(($ac_try" in
17796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797 *) ac_try_echo=$ac_try;;
17798esac
17799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800 (eval "$ac_try") 2>&5
17801 ac_status=$?
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; } &&
17804 { ac_try='test -s conftest$ac_exeext'
17805 { (case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17808esac
17809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_try") 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
17814 eval "$as_ac_var=yes"
17815else
17816 echo "$as_me: failed program was:" >&5
17817sed 's/^/| /' conftest.$ac_ext >&5
17818
17819 eval "$as_ac_var=no"
17820fi
17821
17822rm -f core conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
17824fi
17825ac_res=`eval echo '${'$as_ac_var'}'`
17826 { echo "$as_me:$LINENO: result: $ac_res" >&5
17827echo "${ECHO_T}$ac_res" >&6; }
17828if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017829 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017830#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017831_ACEOF
17832
17833fi
17834done
17835
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017836
17837
17838
Reid Spencerb90645c2007-02-16 19:17:20 +000017839for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017840do
17841as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17842{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17843echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17844if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17846else
17847 cat >conftest.$ac_ext <<_ACEOF
17848/* confdefs.h. */
17849_ACEOF
17850cat confdefs.h >>conftest.$ac_ext
17851cat >>conftest.$ac_ext <<_ACEOF
17852/* end confdefs.h. */
17853/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17855#define $ac_func innocuous_$ac_func
17856
17857/* System header to define __stub macros and hopefully few prototypes,
17858 which can conflict with char $ac_func (); below.
17859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17860 <limits.h> exists even on freestanding compilers. */
17861
17862#ifdef __STDC__
17863# include <limits.h>
17864#else
17865# include <assert.h>
17866#endif
17867
17868#undef $ac_func
17869
17870/* Override any GCC internal prototype to avoid an error.
17871 Use char because int might match the return type of a GCC
17872 builtin and then its argument prototype would still apply. */
17873#ifdef __cplusplus
17874extern "C"
17875#endif
17876char $ac_func ();
17877/* The GNU C library defines this for functions which it implements
17878 to always fail with ENOSYS. Some functions are actually named
17879 something starting with __ and the normal name is an alias. */
17880#if defined __stub_$ac_func || defined __stub___$ac_func
17881choke me
17882#endif
17883
17884int
17885main ()
17886{
17887return $ac_func ();
17888 ;
17889 return 0;
17890}
17891_ACEOF
17892rm -f conftest.$ac_objext conftest$ac_exeext
17893if { (ac_try="$ac_link"
17894case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17897esac
17898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_link") 2>conftest.er1
17900 ac_status=$?
17901 grep -v '^ *+' conftest.er1 >conftest.err
17902 rm -f conftest.er1
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } &&
17906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17907 { (case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17910esac
17911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912 (eval "$ac_try") 2>&5
17913 ac_status=$?
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest$ac_exeext'
17917 { (case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17920esac
17921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922 (eval "$ac_try") 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 eval "$as_ac_var=yes"
17927else
17928 echo "$as_me: failed program was:" >&5
17929sed 's/^/| /' conftest.$ac_ext >&5
17930
17931 eval "$as_ac_var=no"
17932fi
17933
17934rm -f core conftest.err conftest.$ac_objext \
17935 conftest$ac_exeext conftest.$ac_ext
17936fi
17937ac_res=`eval echo '${'$as_ac_var'}'`
17938 { echo "$as_me:$LINENO: result: $ac_res" >&5
17939echo "${ECHO_T}$ac_res" >&6; }
17940if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017941 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017942#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017943_ACEOF
17944
17945fi
17946done
17947
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017948
17949
17950
17951
17952
Eric Christophere4291822010-04-16 05:14:21 +000017953
17954for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017955do
17956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17957{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17959if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17961else
17962 cat >conftest.$ac_ext <<_ACEOF
17963/* confdefs.h. */
17964_ACEOF
17965cat confdefs.h >>conftest.$ac_ext
17966cat >>conftest.$ac_ext <<_ACEOF
17967/* end confdefs.h. */
17968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17970#define $ac_func innocuous_$ac_func
17971
17972/* System header to define __stub macros and hopefully few prototypes,
17973 which can conflict with char $ac_func (); below.
17974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17975 <limits.h> exists even on freestanding compilers. */
17976
17977#ifdef __STDC__
17978# include <limits.h>
17979#else
17980# include <assert.h>
17981#endif
17982
17983#undef $ac_func
17984
17985/* Override any GCC internal prototype to avoid an error.
17986 Use char because int might match the return type of a GCC
17987 builtin and then its argument prototype would still apply. */
17988#ifdef __cplusplus
17989extern "C"
17990#endif
17991char $ac_func ();
17992/* The GNU C library defines this for functions which it implements
17993 to always fail with ENOSYS. Some functions are actually named
17994 something starting with __ and the normal name is an alias. */
17995#if defined __stub_$ac_func || defined __stub___$ac_func
17996choke me
17997#endif
17998
17999int
18000main ()
18001{
18002return $ac_func ();
18003 ;
18004 return 0;
18005}
18006_ACEOF
18007rm -f conftest.$ac_objext conftest$ac_exeext
18008if { (ac_try="$ac_link"
18009case "(($ac_try" in
18010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011 *) ac_try_echo=$ac_try;;
18012esac
18013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014 (eval "$ac_link") 2>conftest.er1
18015 ac_status=$?
18016 grep -v '^ *+' conftest.er1 >conftest.err
18017 rm -f conftest.er1
18018 cat conftest.err >&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
18021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18022 { (case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18025esac
18026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_try") 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; } &&
18031 { ac_try='test -s conftest$ac_exeext'
18032 { (case "(($ac_try" in
18033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034 *) ac_try_echo=$ac_try;;
18035esac
18036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18037 (eval "$ac_try") 2>&5
18038 ac_status=$?
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18041 eval "$as_ac_var=yes"
18042else
18043 echo "$as_me: failed program was:" >&5
18044sed 's/^/| /' conftest.$ac_ext >&5
18045
18046 eval "$as_ac_var=no"
18047fi
18048
18049rm -f core conftest.err conftest.$ac_objext \
18050 conftest$ac_exeext conftest.$ac_ext
18051fi
18052ac_res=`eval echo '${'$as_ac_var'}'`
18053 { echo "$as_me:$LINENO: result: $ac_res" >&5
18054echo "${ECHO_T}$ac_res" >&6; }
18055if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018056 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018057#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018058_ACEOF
18059
18060fi
18061done
Reid Spencerdf3be822006-01-23 08:15:53 +000018062
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018063
18064
18065
18066
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018067for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018068do
18069as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18070{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18071echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18072if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18074else
18075 cat >conftest.$ac_ext <<_ACEOF
18076/* confdefs.h. */
18077_ACEOF
18078cat confdefs.h >>conftest.$ac_ext
18079cat >>conftest.$ac_ext <<_ACEOF
18080/* end confdefs.h. */
18081/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18083#define $ac_func innocuous_$ac_func
18084
18085/* System header to define __stub macros and hopefully few prototypes,
18086 which can conflict with char $ac_func (); below.
18087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18088 <limits.h> exists even on freestanding compilers. */
18089
18090#ifdef __STDC__
18091# include <limits.h>
18092#else
18093# include <assert.h>
18094#endif
18095
18096#undef $ac_func
18097
18098/* Override any GCC internal prototype to avoid an error.
18099 Use char because int might match the return type of a GCC
18100 builtin and then its argument prototype would still apply. */
18101#ifdef __cplusplus
18102extern "C"
18103#endif
18104char $ac_func ();
18105/* The GNU C library defines this for functions which it implements
18106 to always fail with ENOSYS. Some functions are actually named
18107 something starting with __ and the normal name is an alias. */
18108#if defined __stub_$ac_func || defined __stub___$ac_func
18109choke me
18110#endif
18111
18112int
18113main ()
18114{
18115return $ac_func ();
18116 ;
18117 return 0;
18118}
18119_ACEOF
18120rm -f conftest.$ac_objext conftest$ac_exeext
18121if { (ac_try="$ac_link"
18122case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18125esac
18126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_link") 2>conftest.er1
18128 ac_status=$?
18129 grep -v '^ *+' conftest.er1 >conftest.err
18130 rm -f conftest.er1
18131 cat conftest.err >&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } &&
18134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18135 { (case "(($ac_try" in
18136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137 *) ac_try_echo=$ac_try;;
18138esac
18139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140 (eval "$ac_try") 2>&5
18141 ac_status=$?
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; } &&
18144 { ac_try='test -s conftest$ac_exeext'
18145 { (case "(($ac_try" in
18146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147 *) ac_try_echo=$ac_try;;
18148esac
18149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150 (eval "$ac_try") 2>&5
18151 ac_status=$?
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; }; then
18154 eval "$as_ac_var=yes"
18155else
18156 echo "$as_me: failed program was:" >&5
18157sed 's/^/| /' conftest.$ac_ext >&5
18158
18159 eval "$as_ac_var=no"
18160fi
18161
18162rm -f core conftest.err conftest.$ac_objext \
18163 conftest$ac_exeext conftest.$ac_ext
18164fi
18165ac_res=`eval echo '${'$as_ac_var'}'`
18166 { echo "$as_me:$LINENO: result: $ac_res" >&5
18167echo "${ECHO_T}$ac_res" >&6; }
18168if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018169 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018170#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018171_ACEOF
18172
18173fi
18174done
18175
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018176
18177
18178
18179
Chris Lattner511f11d2005-11-14 07:25:50 +000018180for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018181do
18182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18183{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18185if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18187else
18188 cat >conftest.$ac_ext <<_ACEOF
18189/* confdefs.h. */
18190_ACEOF
18191cat confdefs.h >>conftest.$ac_ext
18192cat >>conftest.$ac_ext <<_ACEOF
18193/* end confdefs.h. */
18194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18196#define $ac_func innocuous_$ac_func
18197
18198/* System header to define __stub macros and hopefully few prototypes,
18199 which can conflict with char $ac_func (); below.
18200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18201 <limits.h> exists even on freestanding compilers. */
18202
18203#ifdef __STDC__
18204# include <limits.h>
18205#else
18206# include <assert.h>
18207#endif
18208
18209#undef $ac_func
18210
18211/* Override any GCC internal prototype to avoid an error.
18212 Use char because int might match the return type of a GCC
18213 builtin and then its argument prototype would still apply. */
18214#ifdef __cplusplus
18215extern "C"
18216#endif
18217char $ac_func ();
18218/* The GNU C library defines this for functions which it implements
18219 to always fail with ENOSYS. Some functions are actually named
18220 something starting with __ and the normal name is an alias. */
18221#if defined __stub_$ac_func || defined __stub___$ac_func
18222choke me
18223#endif
18224
18225int
18226main ()
18227{
18228return $ac_func ();
18229 ;
18230 return 0;
18231}
18232_ACEOF
18233rm -f conftest.$ac_objext conftest$ac_exeext
18234if { (ac_try="$ac_link"
18235case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18238esac
18239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_link") 2>conftest.er1
18241 ac_status=$?
18242 grep -v '^ *+' conftest.er1 >conftest.err
18243 rm -f conftest.er1
18244 cat conftest.err >&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } &&
18247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18248 { (case "(($ac_try" in
18249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250 *) ac_try_echo=$ac_try;;
18251esac
18252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18253 (eval "$ac_try") 2>&5
18254 ac_status=$?
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; } &&
18257 { ac_try='test -s conftest$ac_exeext'
18258 { (case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18261esac
18262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263 (eval "$ac_try") 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 eval "$as_ac_var=yes"
18268else
18269 echo "$as_me: failed program was:" >&5
18270sed 's/^/| /' conftest.$ac_ext >&5
18271
18272 eval "$as_ac_var=no"
18273fi
18274
18275rm -f core conftest.err conftest.$ac_objext \
18276 conftest$ac_exeext conftest.$ac_ext
18277fi
18278ac_res=`eval echo '${'$as_ac_var'}'`
18279 { echo "$as_me:$LINENO: result: $ac_res" >&5
18280echo "${ECHO_T}$ac_res" >&6; }
18281if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018282 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018284_ACEOF
18285
18286fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018287done
John Criswell7a73b802003-06-30 21:59:07 +000018288
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018289
18290
18291
18292
Reid Spencerafa22e22006-12-10 23:29:19 +000018293for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018294do
18295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18296{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18298if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18300else
18301 cat >conftest.$ac_ext <<_ACEOF
18302/* confdefs.h. */
18303_ACEOF
18304cat confdefs.h >>conftest.$ac_ext
18305cat >>conftest.$ac_ext <<_ACEOF
18306/* end confdefs.h. */
18307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18309#define $ac_func innocuous_$ac_func
18310
18311/* System header to define __stub macros and hopefully few prototypes,
18312 which can conflict with char $ac_func (); below.
18313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18314 <limits.h> exists even on freestanding compilers. */
18315
18316#ifdef __STDC__
18317# include <limits.h>
18318#else
18319# include <assert.h>
18320#endif
18321
18322#undef $ac_func
18323
18324/* Override any GCC internal prototype to avoid an error.
18325 Use char because int might match the return type of a GCC
18326 builtin and then its argument prototype would still apply. */
18327#ifdef __cplusplus
18328extern "C"
18329#endif
18330char $ac_func ();
18331/* The GNU C library defines this for functions which it implements
18332 to always fail with ENOSYS. Some functions are actually named
18333 something starting with __ and the normal name is an alias. */
18334#if defined __stub_$ac_func || defined __stub___$ac_func
18335choke me
18336#endif
18337
18338int
18339main ()
18340{
18341return $ac_func ();
18342 ;
18343 return 0;
18344}
18345_ACEOF
18346rm -f conftest.$ac_objext conftest$ac_exeext
18347if { (ac_try="$ac_link"
18348case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18351esac
18352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_link") 2>conftest.er1
18354 ac_status=$?
18355 grep -v '^ *+' conftest.er1 >conftest.err
18356 rm -f conftest.er1
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } &&
18360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18361 { (case "(($ac_try" in
18362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18363 *) ac_try_echo=$ac_try;;
18364esac
18365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18366 (eval "$ac_try") 2>&5
18367 ac_status=$?
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; } &&
18370 { ac_try='test -s conftest$ac_exeext'
18371 { (case "(($ac_try" in
18372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373 *) ac_try_echo=$ac_try;;
18374esac
18375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376 (eval "$ac_try") 2>&5
18377 ac_status=$?
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
18380 eval "$as_ac_var=yes"
18381else
18382 echo "$as_me: failed program was:" >&5
18383sed 's/^/| /' conftest.$ac_ext >&5
18384
18385 eval "$as_ac_var=no"
18386fi
18387
18388rm -f core conftest.err conftest.$ac_objext \
18389 conftest$ac_exeext conftest.$ac_ext
18390fi
18391ac_res=`eval echo '${'$as_ac_var'}'`
18392 { echo "$as_me:$LINENO: result: $ac_res" >&5
18393echo "${ECHO_T}$ac_res" >&6; }
18394if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018395 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018397_ACEOF
18398
18399fi
18400done
18401
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018402{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18403echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18404if test "${llvm_cv_c_printf_a+set}" = set; then
18405 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018406else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018407 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018408ac_cpp='$CPP $CPPFLAGS'
18409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18411ac_compiler_gnu=$ac_cv_c_compiler_gnu
18412
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018413 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018414 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018416 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018418 /* confdefs.h. */
18419_ACEOF
18420cat confdefs.h >>conftest.$ac_ext
18421cat >>conftest.$ac_ext <<_ACEOF
18422/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018423
John Criswella0137d32003-10-13 16:22:01 +000018424#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018425#include <stdlib.h>
18426
John Criswella0137d32003-10-13 16:22:01 +000018427int
18428main ()
18429{
18430
Reid Spencer2706f8c2004-09-19 23:53:36 +000018431volatile double A, B;
18432char Buffer[100];
18433A = 1;
18434A /= 10.0;
18435sprintf(Buffer, "%a", A);
18436B = atof(Buffer);
18437if (A != B)
18438 return (1);
18439if (A != 0x1.999999999999ap-4)
18440 return (1);
18441return (0);
John Criswella0137d32003-10-13 16:22:01 +000018442 ;
18443 return 0;
18444}
18445_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018446rm -f conftest$ac_exeext
18447if { (ac_try="$ac_link"
18448case "(($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_link") 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18457 { (case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18460esac
18461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_try") 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018466 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018467else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018468 echo "$as_me: program exited with status $ac_status" >&5
18469echo "$as_me: failed program was:" >&5
18470sed 's/^/| /' conftest.$ac_ext >&5
18471
18472( exit $ac_status )
18473llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018474fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018475rm -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 +000018476fi
Reid Spencera773bd52006-08-04 18:18:08 +000018477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018478
Reid Spencer2706f8c2004-09-19 23:53:36 +000018479 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018480ac_cpp='$CPP $CPPFLAGS'
18481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18483ac_compiler_gnu=$ac_cv_c_compiler_gnu
18484
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018485fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018486{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18487echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018488 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018489
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018490cat >>confdefs.h <<\_ACEOF
18491#define HAVE_PRINTF_A 1
18492_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018493
Reid Spencer2706f8c2004-09-19 23:53:36 +000018494 fi
John Criswella0137d32003-10-13 16:22:01 +000018495
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018497{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18498echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18499if test "${ac_cv_func_rand48+set}" = set; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018501else
Reid Spencera773bd52006-08-04 18:18:08 +000018502 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018503ac_cpp='$CXXCPP $CPPFLAGS'
18504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018508 cat >conftest.$ac_ext <<_ACEOF
18509/* confdefs.h. */
18510_ACEOF
18511cat confdefs.h >>conftest.$ac_ext
18512cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018513/* end confdefs.h. */
18514#include <stdlib.h>
18515int
18516main ()
18517{
18518srand48(0);lrand48();drand48();
18519 ;
18520 return 0;
18521}
18522_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018523rm -f conftest.$ac_objext
18524if { (ac_try="$ac_compile"
18525case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18528esac
18529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_compile") 2>conftest.er1
18531 ac_status=$?
18532 grep -v '^ *+' conftest.er1 >conftest.err
18533 rm -f conftest.er1
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18538 { (case "(($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_try") 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest.$ac_objext'
18548 { (case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18551esac
18552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_try") 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018557 ac_cv_func_rand48=yes
18558else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018559 echo "$as_me: failed program was:" >&5
18560sed 's/^/| /' conftest.$ac_ext >&5
18561
18562 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018563fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018564
Reid Spencera773bd52006-08-04 18:18:08 +000018565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018566 ac_ext=c
18567ac_cpp='$CPP $CPPFLAGS'
18568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18570ac_compiler_gnu=$ac_cv_c_compiler_gnu
18571
18572fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018573{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18574echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018575
18576if test "$ac_cv_func_rand48" = "yes" ; then
18577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018578cat >>confdefs.h <<\_ACEOF
18579#define HAVE_RAND48 1
18580_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018581
18582fi
John Criswell0021c312004-02-13 21:57:29 +000018583
18584
Torok Edwin871384f2010-01-26 08:50:50 +000018585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018586{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18587echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18588if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018590else
Reid Spencera773bd52006-08-04 18:18:08 +000018591 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018592ac_cpp='$CXXCPP $CPPFLAGS'
18593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018597 cat >conftest.$ac_ext <<_ACEOF
18598/* confdefs.h. */
18599_ACEOF
18600cat confdefs.h >>conftest.$ac_ext
18601cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018602/* end confdefs.h. */
18603#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018604int
18605main ()
18606{
18607float f; isnan(f);
18608 ;
18609 return 0;
18610}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018611_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018612rm -f conftest.$ac_objext
18613if { (ac_try="$ac_compile"
18614case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18617esac
18618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_compile") 2>conftest.er1
18620 ac_status=$?
18621 grep -v '^ *+' conftest.er1 >conftest.err
18622 rm -f conftest.er1
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } &&
18626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18627 { (case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18630esac
18631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_try") 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; } &&
18636 { ac_try='test -s conftest.$ac_objext'
18637 { (case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18640esac
18641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_try") 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018646 ac_cv_func_isnan_in_math_h=yes
18647else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018648 echo "$as_me: failed program was:" >&5
18649sed 's/^/| /' conftest.$ac_ext >&5
18650
18651 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018652fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018653
Reid Spencera773bd52006-08-04 18:18:08 +000018654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018655 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018656ac_cpp='$CPP $CPPFLAGS'
18657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18659ac_compiler_gnu=$ac_cv_c_compiler_gnu
18660
18661fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018662{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18663echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018664
18665
18666if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018668cat >>confdefs.h <<\_ACEOF
18669#define HAVE_ISNAN_IN_MATH_H 1
18670_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018671
Reid Spencerabec8f92004-10-27 23:03:44 +000018672fi
18673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018674{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18675echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18676if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018678else
Reid Spencera773bd52006-08-04 18:18:08 +000018679 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018680ac_cpp='$CXXCPP $CPPFLAGS'
18681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018685 cat >conftest.$ac_ext <<_ACEOF
18686/* confdefs.h. */
18687_ACEOF
18688cat confdefs.h >>conftest.$ac_ext
18689cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018690/* end confdefs.h. */
18691#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018692int
18693main ()
18694{
18695float f; isnan(f);
18696 ;
18697 return 0;
18698}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018699_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018700rm -f conftest.$ac_objext
18701if { (ac_try="$ac_compile"
18702case "(($ac_try" in
18703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704 *) ac_try_echo=$ac_try;;
18705esac
18706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707 (eval "$ac_compile") 2>conftest.er1
18708 ac_status=$?
18709 grep -v '^ *+' conftest.er1 >conftest.err
18710 rm -f conftest.er1
18711 cat conftest.err >&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } &&
18714 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18715 { (case "(($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_try") 2>&5
18721 ac_status=$?
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; } &&
18724 { ac_try='test -s conftest.$ac_objext'
18725 { (case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18728esac
18729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730 (eval "$ac_try") 2>&5
18731 ac_status=$?
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018734 ac_cv_func_isnan_in_cmath=yes
18735else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018736 echo "$as_me: failed program was:" >&5
18737sed 's/^/| /' conftest.$ac_ext >&5
18738
18739 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018740fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018741
Reid Spencera773bd52006-08-04 18:18:08 +000018742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018743 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018744ac_cpp='$CPP $CPPFLAGS'
18745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18747ac_compiler_gnu=$ac_cv_c_compiler_gnu
18748
18749fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018750{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18751echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018752
18753if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018755cat >>confdefs.h <<\_ACEOF
18756#define HAVE_ISNAN_IN_CMATH 1
18757_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018758
Reid Spencerabec8f92004-10-27 23:03:44 +000018759fi
18760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018761{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18762echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18763if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018765else
Reid Spencera773bd52006-08-04 18:18:08 +000018766 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018767ac_cpp='$CXXCPP $CPPFLAGS'
18768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018772 cat >conftest.$ac_ext <<_ACEOF
18773/* confdefs.h. */
18774_ACEOF
18775cat confdefs.h >>conftest.$ac_ext
18776cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018777/* end confdefs.h. */
18778#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018779int
18780main ()
18781{
18782float f; std::isnan(f);
18783 ;
18784 return 0;
18785}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018786_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018787rm -f conftest.$ac_objext
18788if { (ac_try="$ac_compile"
18789case "(($ac_try" in
18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791 *) ac_try_echo=$ac_try;;
18792esac
18793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18794 (eval "$ac_compile") 2>conftest.er1
18795 ac_status=$?
18796 grep -v '^ *+' conftest.er1 >conftest.err
18797 rm -f conftest.er1
18798 cat conftest.err >&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } &&
18801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18802 { (case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18805esac
18806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_try") 2>&5
18808 ac_status=$?
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; } &&
18811 { ac_try='test -s conftest.$ac_objext'
18812 { (case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18815esac
18816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_try") 2>&5
18818 ac_status=$?
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018821 ac_cv_func_std_isnan_in_cmath=yes
18822else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018823 echo "$as_me: failed program was:" >&5
18824sed 's/^/| /' conftest.$ac_ext >&5
18825
18826 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018827fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018828
Reid Spencera773bd52006-08-04 18:18:08 +000018829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018830 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018831ac_cpp='$CPP $CPPFLAGS'
18832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18834ac_compiler_gnu=$ac_cv_c_compiler_gnu
18835
18836fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018837{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18838echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018839
18840if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018842cat >>confdefs.h <<\_ACEOF
18843#define HAVE_STD_ISNAN_IN_CMATH 1
18844_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018845
Reid Spencerabec8f92004-10-27 23:03:44 +000018846fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018847
18848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018849{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18850echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18851if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18852 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018853else
Reid Spencera773bd52006-08-04 18:18:08 +000018854 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018855ac_cpp='$CXXCPP $CPPFLAGS'
18856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18859
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018860 cat >conftest.$ac_ext <<_ACEOF
18861/* confdefs.h. */
18862_ACEOF
18863cat confdefs.h >>conftest.$ac_ext
18864cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018865/* end confdefs.h. */
18866#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018867int
18868main ()
18869{
18870float f; isinf(f);
18871 ;
18872 return 0;
18873}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018874_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018875rm -f conftest.$ac_objext
18876if { (ac_try="$ac_compile"
18877case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18880esac
18881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_compile") 2>conftest.er1
18883 ac_status=$?
18884 grep -v '^ *+' conftest.er1 >conftest.err
18885 rm -f conftest.er1
18886 cat conftest.err >&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); } &&
18889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18890 { (case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18893esac
18894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_try") 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try='test -s conftest.$ac_objext'
18900 { (case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18903esac
18904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_try") 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018909 ac_cv_func_isinf_in_math_h=yes
18910else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018911 echo "$as_me: failed program was:" >&5
18912sed 's/^/| /' conftest.$ac_ext >&5
18913
18914 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018916
Reid Spencera773bd52006-08-04 18:18:08 +000018917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018918 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018919ac_cpp='$CPP $CPPFLAGS'
18920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18922ac_compiler_gnu=$ac_cv_c_compiler_gnu
18923
18924fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018925{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18926echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018927
18928if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018930cat >>confdefs.h <<\_ACEOF
18931#define HAVE_ISINF_IN_MATH_H 1
18932_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018933
Reid Spencerabec8f92004-10-27 23:03:44 +000018934fi
18935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018936{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18937echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18938if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018940else
Reid Spencera773bd52006-08-04 18:18:08 +000018941 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018942ac_cpp='$CXXCPP $CPPFLAGS'
18943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018947 cat >conftest.$ac_ext <<_ACEOF
18948/* confdefs.h. */
18949_ACEOF
18950cat confdefs.h >>conftest.$ac_ext
18951cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018952/* end confdefs.h. */
18953#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018954int
18955main ()
18956{
18957float f; isinf(f);
18958 ;
18959 return 0;
18960}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018961_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018962rm -f conftest.$ac_objext
18963if { (ac_try="$ac_compile"
18964case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18967esac
18968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_compile") 2>conftest.er1
18970 ac_status=$?
18971 grep -v '^ *+' conftest.er1 >conftest.err
18972 rm -f conftest.er1
18973 cat conftest.err >&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } &&
18976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18977 { (case "(($ac_try" in
18978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18979 *) ac_try_echo=$ac_try;;
18980esac
18981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18982 (eval "$ac_try") 2>&5
18983 ac_status=$?
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; } &&
18986 { ac_try='test -s conftest.$ac_objext'
18987 { (case "(($ac_try" in
18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989 *) ac_try_echo=$ac_try;;
18990esac
18991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992 (eval "$ac_try") 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018996 ac_cv_func_isinf_in_cmath=yes
18997else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018998 echo "$as_me: failed program was:" >&5
18999sed 's/^/| /' conftest.$ac_ext >&5
19000
19001 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019003
Reid Spencera773bd52006-08-04 18:18:08 +000019004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019005 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019006ac_cpp='$CPP $CPPFLAGS'
19007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19009ac_compiler_gnu=$ac_cv_c_compiler_gnu
19010
19011fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019012{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19013echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019014
19015if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019017cat >>confdefs.h <<\_ACEOF
19018#define HAVE_ISINF_IN_CMATH 1
19019_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019020
Reid Spencerabec8f92004-10-27 23:03:44 +000019021fi
19022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019023{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19024echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19025if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19026 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019027else
Reid Spencera773bd52006-08-04 18:18:08 +000019028 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019029ac_cpp='$CXXCPP $CPPFLAGS'
19030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019034 cat >conftest.$ac_ext <<_ACEOF
19035/* confdefs.h. */
19036_ACEOF
19037cat confdefs.h >>conftest.$ac_ext
19038cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019039/* end confdefs.h. */
19040#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019041int
19042main ()
19043{
19044float f; std::isinf(f)}
19045 ;
19046 return 0;
19047}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019048_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019049rm -f conftest.$ac_objext
19050if { (ac_try="$ac_compile"
19051case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19054esac
19055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056 (eval "$ac_compile") 2>conftest.er1
19057 ac_status=$?
19058 grep -v '^ *+' conftest.er1 >conftest.err
19059 rm -f conftest.er1
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } &&
19063 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19064 { (case "(($ac_try" in
19065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066 *) ac_try_echo=$ac_try;;
19067esac
19068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19069 (eval "$ac_try") 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try='test -s conftest.$ac_objext'
19074 { (case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19077esac
19078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_try") 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019083 ac_cv_func_std_isinf_in_cmath=yes
19084else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019085 echo "$as_me: failed program was:" >&5
19086sed 's/^/| /' conftest.$ac_ext >&5
19087
19088 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019089fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019090
Reid Spencera773bd52006-08-04 18:18:08 +000019091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019092 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019093ac_cpp='$CPP $CPPFLAGS'
19094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19096ac_compiler_gnu=$ac_cv_c_compiler_gnu
19097
19098fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019099{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19100echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019101
19102if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019103
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019104cat >>confdefs.h <<\_ACEOF
19105#define HAVE_STD_ISINF_IN_CMATH 1
19106_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019107
Reid Spencerabec8f92004-10-27 23:03:44 +000019108fi
19109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019110{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19111echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19112if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019114else
Reid Spencera773bd52006-08-04 18:18:08 +000019115 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019116ac_cpp='$CXXCPP $CPPFLAGS'
19117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19120
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019121 cat >conftest.$ac_ext <<_ACEOF
19122/* confdefs.h. */
19123_ACEOF
19124cat confdefs.h >>conftest.$ac_ext
19125cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019126/* end confdefs.h. */
19127#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019128int
19129main ()
19130{
19131float f; finite(f);
19132 ;
19133 return 0;
19134}
Brian Gaeked59a6472004-07-21 03:33:58 +000019135_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019136rm -f conftest.$ac_objext
19137if { (ac_try="$ac_compile"
19138case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19141esac
19142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_compile") 2>conftest.er1
19144 ac_status=$?
19145 grep -v '^ *+' conftest.er1 >conftest.err
19146 rm -f conftest.er1
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } &&
19150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19151 { (case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19154esac
19155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_try") 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; } &&
19160 { ac_try='test -s conftest.$ac_objext'
19161 { (case "(($ac_try" in
19162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163 *) ac_try_echo=$ac_try;;
19164esac
19165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166 (eval "$ac_try") 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019170 ac_cv_func_finite_in_ieeefp_h=yes
19171else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019172 echo "$as_me: failed program was:" >&5
19173sed 's/^/| /' conftest.$ac_ext >&5
19174
19175 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019176fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019177
Reid Spencera773bd52006-08-04 18:18:08 +000019178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019179 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019180ac_cpp='$CPP $CPPFLAGS'
19181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19183ac_compiler_gnu=$ac_cv_c_compiler_gnu
19184
19185fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019186{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19187echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019188
Brian Gaeke6802b552004-10-28 05:06:45 +000019189if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019190
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019191cat >>confdefs.h <<\_ACEOF
19192#define HAVE_FINITE_IN_IEEEFP_H 1
19193_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019194
Reid Spencerabec8f92004-10-27 23:03:44 +000019195fi
19196
19197
19198
Reid Spencer30fe5262007-01-20 07:48:49 +000019199if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019200
19201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019202for ac_header in stdlib.h unistd.h
19203do
19204as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19210fi
19211ac_res=`eval echo '${'$as_ac_Header'}'`
19212 { echo "$as_me:$LINENO: result: $ac_res" >&5
19213echo "${ECHO_T}$ac_res" >&6; }
19214else
19215 # Is the header compilable?
19216{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19217echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19218cat >conftest.$ac_ext <<_ACEOF
19219/* confdefs.h. */
19220_ACEOF
19221cat confdefs.h >>conftest.$ac_ext
19222cat >>conftest.$ac_ext <<_ACEOF
19223/* end confdefs.h. */
19224$ac_includes_default
19225#include <$ac_header>
19226_ACEOF
19227rm -f conftest.$ac_objext
19228if { (ac_try="$ac_compile"
19229case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19232esac
19233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_compile") 2>conftest.er1
19235 ac_status=$?
19236 grep -v '^ *+' conftest.er1 >conftest.err
19237 rm -f conftest.er1
19238 cat conftest.err >&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } &&
19241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19242 { (case "(($ac_try" in
19243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244 *) ac_try_echo=$ac_try;;
19245esac
19246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247 (eval "$ac_try") 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try='test -s conftest.$ac_objext'
19252 { (case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19255esac
19256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_try") 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19261 ac_header_compiler=yes
19262else
19263 echo "$as_me: failed program was:" >&5
19264sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019266 ac_header_compiler=no
19267fi
19268
19269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19270{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19271echo "${ECHO_T}$ac_header_compiler" >&6; }
19272
19273# Is the header present?
19274{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19275echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19276cat >conftest.$ac_ext <<_ACEOF
19277/* confdefs.h. */
19278_ACEOF
19279cat confdefs.h >>conftest.$ac_ext
19280cat >>conftest.$ac_ext <<_ACEOF
19281/* end confdefs.h. */
19282#include <$ac_header>
19283_ACEOF
19284if { (ac_try="$ac_cpp conftest.$ac_ext"
19285case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19288esac
19289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19291 ac_status=$?
19292 grep -v '^ *+' conftest.er1 >conftest.err
19293 rm -f conftest.er1
19294 cat conftest.err >&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } >/dev/null; then
19297 if test -s conftest.err; then
19298 ac_cpp_err=$ac_c_preproc_warn_flag
19299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19300 else
19301 ac_cpp_err=
19302 fi
19303else
19304 ac_cpp_err=yes
19305fi
19306if test -z "$ac_cpp_err"; then
19307 ac_header_preproc=yes
19308else
19309 echo "$as_me: failed program was:" >&5
19310sed 's/^/| /' conftest.$ac_ext >&5
19311
19312 ac_header_preproc=no
19313fi
19314
19315rm -f conftest.err conftest.$ac_ext
19316{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19317echo "${ECHO_T}$ac_header_preproc" >&6; }
19318
19319# So? What about this header?
19320case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19321 yes:no: )
19322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19323echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19325echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19326 ac_header_preproc=yes
19327 ;;
19328 no:yes:* )
19329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19330echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19332echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19334echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19336echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19338echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19340echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19341 ( cat <<\_ASBOX
19342## ----------------------------------- ##
19343## Report this to llvmbugs@cs.uiuc.edu ##
19344## ----------------------------------- ##
19345_ASBOX
19346 ) | sed "s/^/$as_me: WARNING: /" >&2
19347 ;;
19348esac
19349{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19352 echo $ECHO_N "(cached) $ECHO_C" >&6
19353else
19354 eval "$as_ac_Header=\$ac_header_preproc"
19355fi
19356ac_res=`eval echo '${'$as_ac_Header'}'`
19357 { echo "$as_me:$LINENO: result: $ac_res" >&5
19358echo "${ECHO_T}$ac_res" >&6; }
19359
19360fi
19361if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019362 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019363#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019364_ACEOF
19365
19366fi
19367
19368done
19369
19370
19371for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019372do
19373as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19374{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19375echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19376if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
19378else
19379 cat >conftest.$ac_ext <<_ACEOF
19380/* confdefs.h. */
19381_ACEOF
19382cat confdefs.h >>conftest.$ac_ext
19383cat >>conftest.$ac_ext <<_ACEOF
19384/* end confdefs.h. */
19385/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19387#define $ac_func innocuous_$ac_func
19388
19389/* System header to define __stub macros and hopefully few prototypes,
19390 which can conflict with char $ac_func (); below.
19391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19392 <limits.h> exists even on freestanding compilers. */
19393
19394#ifdef __STDC__
19395# include <limits.h>
19396#else
19397# include <assert.h>
19398#endif
19399
19400#undef $ac_func
19401
19402/* Override any GCC internal prototype to avoid an error.
19403 Use char because int might match the return type of a GCC
19404 builtin and then its argument prototype would still apply. */
19405#ifdef __cplusplus
19406extern "C"
19407#endif
19408char $ac_func ();
19409/* The GNU C library defines this for functions which it implements
19410 to always fail with ENOSYS. Some functions are actually named
19411 something starting with __ and the normal name is an alias. */
19412#if defined __stub_$ac_func || defined __stub___$ac_func
19413choke me
19414#endif
19415
19416int
19417main ()
19418{
19419return $ac_func ();
19420 ;
19421 return 0;
19422}
19423_ACEOF
19424rm -f conftest.$ac_objext conftest$ac_exeext
19425if { (ac_try="$ac_link"
19426case "(($ac_try" in
19427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428 *) ac_try_echo=$ac_try;;
19429esac
19430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431 (eval "$ac_link") 2>conftest.er1
19432 ac_status=$?
19433 grep -v '^ *+' conftest.er1 >conftest.err
19434 rm -f conftest.er1
19435 cat conftest.err >&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } &&
19438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19439 { (case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19442esac
19443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_try") 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; } &&
19448 { ac_try='test -s conftest$ac_exeext'
19449 { (case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19452esac
19453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_try") 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458 eval "$as_ac_var=yes"
19459else
19460 echo "$as_me: failed program was:" >&5
19461sed 's/^/| /' conftest.$ac_ext >&5
19462
19463 eval "$as_ac_var=no"
19464fi
19465
19466rm -f core conftest.err conftest.$ac_objext \
19467 conftest$ac_exeext conftest.$ac_ext
19468fi
19469ac_res=`eval echo '${'$as_ac_var'}'`
19470 { echo "$as_me:$LINENO: result: $ac_res" >&5
19471echo "${ECHO_T}$ac_res" >&6; }
19472if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019473 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019475_ACEOF
19476
19477fi
19478done
19479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019480{ echo "$as_me:$LINENO: checking for working mmap" >&5
19481echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19482if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019485 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019486 ac_cv_func_mmap_fixed_mapped=no
19487else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019488 cat >conftest.$ac_ext <<_ACEOF
19489/* confdefs.h. */
19490_ACEOF
19491cat confdefs.h >>conftest.$ac_ext
19492cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019493/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019494$ac_includes_default
19495/* malloc might have been renamed as rpl_malloc. */
19496#undef malloc
19497
19498/* Thanks to Mike Haertel and Jim Avera for this test.
19499 Here is a matrix of mmap possibilities:
19500 mmap private not fixed
19501 mmap private fixed at somewhere currently unmapped
19502 mmap private fixed at somewhere already mapped
19503 mmap shared not fixed
19504 mmap shared fixed at somewhere currently unmapped
19505 mmap shared fixed at somewhere already mapped
19506 For private mappings, we should verify that changes cannot be read()
19507 back from the file, nor mmap's back from the file at a different
19508 address. (There have been systems where private was not correctly
19509 implemented like the infamous i386 svr4.0, and systems where the
19510 VM page cache was not coherent with the file system buffer cache
19511 like early versions of FreeBSD and possibly contemporary NetBSD.)
19512 For shared mappings, we should conversely verify that changes get
19513 propagated back to all the places they're supposed to be.
19514
19515 Grep wants private fixed already mapped.
19516 The main things grep needs to know about mmap are:
19517 * does it exist and is it safe to write into the mmap'd area
19518 * how to use it (BSD variants) */
19519
19520#include <fcntl.h>
19521#include <sys/mman.h>
19522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019523#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019524char *malloc ();
19525#endif
19526
19527/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019528#if !HAVE_GETPAGESIZE
19529/* Assume that all systems that can run configure have sys/param.h. */
19530# if !HAVE_SYS_PARAM_H
19531# define HAVE_SYS_PARAM_H 1
19532# endif
19533
John Criswell7a73b802003-06-30 21:59:07 +000019534# ifdef _SC_PAGESIZE
19535# define getpagesize() sysconf(_SC_PAGESIZE)
19536# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019537# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019538# include <sys/param.h>
19539# ifdef EXEC_PAGESIZE
19540# define getpagesize() EXEC_PAGESIZE
19541# else /* no EXEC_PAGESIZE */
19542# ifdef NBPG
19543# define getpagesize() NBPG * CLSIZE
19544# ifndef CLSIZE
19545# define CLSIZE 1
19546# endif /* no CLSIZE */
19547# else /* no NBPG */
19548# ifdef NBPC
19549# define getpagesize() NBPC
19550# else /* no NBPC */
19551# ifdef PAGESIZE
19552# define getpagesize() PAGESIZE
19553# endif /* PAGESIZE */
19554# endif /* no NBPC */
19555# endif /* no NBPG */
19556# endif /* no EXEC_PAGESIZE */
19557# else /* no HAVE_SYS_PARAM_H */
19558# define getpagesize() 8192 /* punt totally */
19559# endif /* no HAVE_SYS_PARAM_H */
19560# endif /* no _SC_PAGESIZE */
19561
19562#endif /* no HAVE_GETPAGESIZE */
19563
19564int
19565main ()
19566{
19567 char *data, *data2, *data3;
19568 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019569 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019570
19571 pagesize = getpagesize ();
19572
19573 /* First, make a file with some known garbage in it. */
19574 data = (char *) malloc (pagesize);
19575 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019576 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019577 for (i = 0; i < pagesize; ++i)
19578 *(data + i) = rand ();
19579 umask (0);
19580 fd = creat ("conftest.mmap", 0600);
19581 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019582 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019583 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019584 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019585 close (fd);
19586
19587 /* Next, try to mmap the file at a fixed address which already has
19588 something else allocated at it. If we can, also make sure that
19589 we see the same garbage. */
19590 fd = open ("conftest.mmap", O_RDWR);
19591 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019592 return 1;
19593 data2 = (char *) malloc (2 * pagesize);
19594 if (!data2)
19595 return 1;
19596 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019597 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019598 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019599 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019600 for (i = 0; i < pagesize; ++i)
19601 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019602 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019603
19604 /* Finally, make sure that changes to the mapped area do not
19605 percolate back to the file as seen by read(). (This is a bug on
19606 some variants of i386 svr4.0.) */
19607 for (i = 0; i < pagesize; ++i)
19608 *(data2 + i) = *(data2 + i) + 1;
19609 data3 = (char *) malloc (pagesize);
19610 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019611 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019612 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019613 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019614 for (i = 0; i < pagesize; ++i)
19615 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019616 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019617 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019618 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019619}
19620_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019621rm -f conftest$ac_exeext
19622if { (ac_try="$ac_link"
19623case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19626esac
19627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_link") 2>&5
19629 ac_status=$?
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19632 { (case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19635esac
19636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_try") 2>&5
19638 ac_status=$?
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019641 ac_cv_func_mmap_fixed_mapped=yes
19642else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019643 echo "$as_me: program exited with status $ac_status" >&5
19644echo "$as_me: failed program was:" >&5
19645sed 's/^/| /' conftest.$ac_ext >&5
19646
19647( exit $ac_status )
19648ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019649fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019650rm -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 +000019651fi
Reid Spencera773bd52006-08-04 18:18:08 +000019652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019653
John Criswell7a73b802003-06-30 21:59:07 +000019654fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019655{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19656echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019657if test $ac_cv_func_mmap_fixed_mapped = yes; then
19658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019659cat >>confdefs.h <<\_ACEOF
19660#define HAVE_MMAP 1
19661_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019662
19663fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019664rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019666 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19667echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19668if test "${ac_cv_func_mmap_file+set}" = set; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019670else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019671 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019672ac_cpp='$CPP $CPPFLAGS'
19673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19675ac_compiler_gnu=$ac_cv_c_compiler_gnu
19676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019677 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019678 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019680 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019682 /* confdefs.h. */
19683_ACEOF
19684cat confdefs.h >>conftest.$ac_ext
19685cat >>conftest.$ac_ext <<_ACEOF
19686/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019687
John Criswell7a73b802003-06-30 21:59:07 +000019688#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019689#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019690#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019691
19692int
19693main ()
19694{
John Criswell7a73b802003-06-30 21:59:07 +000019695
19696 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019697 fd = creat ("foo",0777);
19698 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19699 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019700 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019701 ;
19702 return 0;
19703}
John Criswell7a73b802003-06-30 21:59:07 +000019704_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019705rm -f conftest$ac_exeext
19706if { (ac_try="$ac_link"
19707case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19710esac
19711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712 (eval "$ac_link") 2>&5
19713 ac_status=$?
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19716 { (case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19719esac
19720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_try") 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019725 ac_cv_func_mmap_file=yes
19726else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019727 echo "$as_me: program exited with status $ac_status" >&5
19728echo "$as_me: failed program was:" >&5
19729sed 's/^/| /' conftest.$ac_ext >&5
19730
19731( exit $ac_status )
19732ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019733fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019734rm -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 +000019735fi
Reid Spencera773bd52006-08-04 18:18:08 +000019736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019737
John Criswell7a73b802003-06-30 21:59:07 +000019738 ac_ext=c
19739ac_cpp='$CPP $CPPFLAGS'
19740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742ac_compiler_gnu=$ac_cv_c_compiler_gnu
19743
19744
19745fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019746{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19747echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019748if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019750cat >>confdefs.h <<\_ACEOF
19751#define HAVE_MMAP_FILE
19752_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019753
19754 MMAP_FILE=yes
19755
19756fi
19757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019758 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19759echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19760if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019762else
Reid Spencer582a23c2004-12-29 07:07:57 +000019763 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019764 ac_cv_need_dev_zero_for_mmap=yes
19765 else
19766 ac_cv_need_dev_zero_for_mmap=no
19767 fi
19768
19769fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019770{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19771echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019772if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019774cat >>confdefs.h <<\_ACEOF
19775#define NEED_DEV_ZERO_FOR_MMAP 1
19776_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019777
19778fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019779
Reid Spencer30fe5262007-01-20 07:48:49 +000019780 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19781 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019782 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19783echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019784 fi
19785 if test "$ac_cv_func_mmap_file" = "no"
19786 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019787 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19788echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019789 fi
John Criswellb13092b2003-07-22 21:00:24 +000019790fi
John Criswell7a73b802003-06-30 21:59:07 +000019791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019792{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19793echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19794cat >conftest.$ac_ext <<_ACEOF
19795/* confdefs.h. */
19796_ACEOF
19797cat confdefs.h >>conftest.$ac_ext
19798cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000019799/* end confdefs.h. */
19800int main() {
Owen Andersona8603702009-05-19 22:18:56 +000019801 volatile unsigned long val = 1;
19802 __sync_synchronize();
19803 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000019804 __sync_add_and_fetch(&val, 1);
19805 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000019806 return 0;
19807 }
Owen Andersond4b272b2009-05-18 23:58:51 +000019808
19809_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019810rm -f conftest.$ac_objext conftest$ac_exeext
19811if { (ac_try="$ac_link"
19812case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19815esac
19816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_link") 2>conftest.er1
19818 ac_status=$?
19819 grep -v '^ *+' conftest.er1 >conftest.err
19820 rm -f conftest.er1
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } &&
19824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19825 { (case "(($ac_try" in
19826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827 *) ac_try_echo=$ac_try;;
19828esac
19829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19830 (eval "$ac_try") 2>&5
19831 ac_status=$?
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; } &&
19834 { ac_try='test -s conftest$ac_exeext'
19835 { (case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19838esac
19839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_try") 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 { echo "$as_me:$LINENO: result: yes" >&5
19845echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000019846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019847cat >>confdefs.h <<\_ACEOF
19848#define LLVM_MULTITHREADED 1
19849_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000019850
Owen Andersond4b272b2009-05-18 23:58:51 +000019851else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019852 echo "$as_me: failed program was:" >&5
19853sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000019854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019855 { echo "$as_me:$LINENO: result: no" >&5
19856echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000019857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019858cat >>confdefs.h <<\_ACEOF
19859#define LLVM_MULTITHREADED 0
19860_ACEOF
19861
19862 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19863echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000019864fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019865
Owen Andersond4b272b2009-05-18 23:58:51 +000019866rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019867 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000019868
19869
John Criswell7a73b802003-06-30 21:59:07 +000019870
Nick Lewycky4372e692009-09-29 06:18:23 +000019871if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019872 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19873echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19874if test "${llvm_cv_linux_mixed+set}" = set; then
19875 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000019876else
19877 ac_ext=c
19878ac_cpp='$CPP $CPPFLAGS'
19879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19881ac_compiler_gnu=$ac_cv_c_compiler_gnu
19882
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019883 cat >conftest.$ac_ext <<_ACEOF
19884/* confdefs.h. */
19885_ACEOF
19886cat confdefs.h >>conftest.$ac_ext
19887cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000019888/* end confdefs.h. */
19889#ifndef __x86_64__
19890 error: Not x86-64 even if uname says so!
19891 #endif
19892
19893int
19894main ()
19895{
19896
19897 ;
19898 return 0;
19899}
19900_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019901rm -f conftest.$ac_objext
19902if { (ac_try="$ac_compile"
19903case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19906esac
19907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19908 (eval "$ac_compile") 2>conftest.er1
19909 ac_status=$?
19910 grep -v '^ *+' conftest.er1 >conftest.err
19911 rm -f conftest.er1
19912 cat conftest.err >&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } &&
19915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19916 { (case "(($ac_try" in
19917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19918 *) ac_try_echo=$ac_try;;
19919esac
19920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19921 (eval "$ac_try") 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; } &&
19925 { ac_try='test -s conftest.$ac_objext'
19926 { (case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19929esac
19930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_try") 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000019935 llvm_cv_linux_mixed=no
19936else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019937 echo "$as_me: failed program was:" >&5
19938sed 's/^/| /' conftest.$ac_ext >&5
19939
19940 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000019941fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019942
Nick Lewycky4372e692009-09-29 06:18:23 +000019943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19944 ac_ext=c
19945ac_cpp='$CPP $CPPFLAGS'
19946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19948ac_compiler_gnu=$ac_cv_c_compiler_gnu
19949
19950
19951fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019952{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19953echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000019954
19955 if test "$llvm_cv_linux_mixed" = "yes"; then
19956 llvm_cv_target_arch="x86"
19957 ARCH="x86"
19958 fi
19959fi
19960
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019961
Reid Spencer9372f152007-07-30 20:13:24 +000019962for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019963do
19964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19965{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19967if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19969else
19970 cat >conftest.$ac_ext <<_ACEOF
19971/* confdefs.h. */
19972_ACEOF
19973cat confdefs.h >>conftest.$ac_ext
19974cat >>conftest.$ac_ext <<_ACEOF
19975/* end confdefs.h. */
19976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19978#define $ac_func innocuous_$ac_func
19979
19980/* System header to define __stub macros and hopefully few prototypes,
19981 which can conflict with char $ac_func (); below.
19982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19983 <limits.h> exists even on freestanding compilers. */
19984
19985#ifdef __STDC__
19986# include <limits.h>
19987#else
19988# include <assert.h>
19989#endif
19990
19991#undef $ac_func
19992
19993/* Override any GCC internal prototype to avoid an error.
19994 Use char because int might match the return type of a GCC
19995 builtin and then its argument prototype would still apply. */
19996#ifdef __cplusplus
19997extern "C"
19998#endif
19999char $ac_func ();
20000/* The GNU C library defines this for functions which it implements
20001 to always fail with ENOSYS. Some functions are actually named
20002 something starting with __ and the normal name is an alias. */
20003#if defined __stub_$ac_func || defined __stub___$ac_func
20004choke me
20005#endif
20006
20007int
20008main ()
20009{
20010return $ac_func ();
20011 ;
20012 return 0;
20013}
20014_ACEOF
20015rm -f conftest.$ac_objext conftest$ac_exeext
20016if { (ac_try="$ac_link"
20017case "(($ac_try" in
20018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019 *) ac_try_echo=$ac_try;;
20020esac
20021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20022 (eval "$ac_link") 2>conftest.er1
20023 ac_status=$?
20024 grep -v '^ *+' conftest.er1 >conftest.err
20025 rm -f conftest.er1
20026 cat conftest.err >&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } &&
20029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20030 { (case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20033esac
20034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_try") 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; } &&
20039 { ac_try='test -s conftest$ac_exeext'
20040 { (case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20043esac
20044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045 (eval "$ac_try") 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; }; then
20049 eval "$as_ac_var=yes"
20050else
20051 echo "$as_me: failed program was:" >&5
20052sed 's/^/| /' conftest.$ac_ext >&5
20053
20054 eval "$as_ac_var=no"
20055fi
20056
20057rm -f core conftest.err conftest.$ac_objext \
20058 conftest$ac_exeext conftest.$ac_ext
20059fi
20060ac_res=`eval echo '${'$as_ac_var'}'`
20061 { echo "$as_me:$LINENO: result: $ac_res" >&5
20062echo "${ECHO_T}$ac_res" >&6; }
20063if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020064 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020066_ACEOF
20067
20068fi
20069done
20070
20071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020072{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20073echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20074if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020076else
20077 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000020078if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020079 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000020080 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20081 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020082 if test $? -eq 0 ; then
20083 llvm_cv_llvmgcc_sanity="yes"
20084 fi
20085 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020086fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020087fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020088{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20089echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020090
20091if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020092 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20093echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020094 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020095 LLVMCC1=$llvmcc1path
20096
Reid Spencer502935f2004-12-22 05:56:56 +000020097 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020098 LLVMCC1PLUS=$llvmcc1pluspath
20099
Reid Spencer502935f2004-12-22 05:56:56 +000020100 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20101 LLVMGCCDIR=$llvmgccdir
20102
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020103 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020104 LLVMGCC_LANGS=$llvmgcclangs
20105
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020106 { echo "$as_me:$LINENO: result: ok" >&5
20107echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020108fi
20109
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020110SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020111
20112
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020113SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20114
20115
Reid Spencere9de0912004-08-20 09:03:57 +000020116# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020117# information into substitutions that will end up in Makefile.config.in
20118# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020119if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020120 prefix="/usr/local"
20121fi
Reid Spencere9de0912004-08-20 09:03:57 +000020122eval LLVM_PREFIX="${prefix}";
20123eval LLVM_BINDIR="${prefix}/bin";
20124eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020125eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020126eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020127eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020128eval LLVM_INCLUDEDIR="${prefix}/include";
20129eval LLVM_INFODIR="${prefix}/info";
20130eval LLVM_MANDIR="${prefix}/man";
20131LLVM_CONFIGTIME=`date`
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020143# Place the various directores into the config.h file as #defines so that we
20144# can know about the installation paths within LLVM.
20145
Reid Spencere9de0912004-08-20 09:03:57 +000020146cat >>confdefs.h <<_ACEOF
20147#define LLVM_PREFIX "$LLVM_PREFIX"
20148_ACEOF
20149
20150
20151cat >>confdefs.h <<_ACEOF
20152#define LLVM_BINDIR "$LLVM_BINDIR"
20153_ACEOF
20154
20155
20156cat >>confdefs.h <<_ACEOF
20157#define LLVM_LIBDIR "$LLVM_LIBDIR"
20158_ACEOF
20159
20160
20161cat >>confdefs.h <<_ACEOF
20162#define LLVM_DATADIR "$LLVM_DATADIR"
20163_ACEOF
20164
20165
20166cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020167#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020168_ACEOF
20169
20170
20171cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020172#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020173_ACEOF
20174
20175
20176cat >>confdefs.h <<_ACEOF
20177#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20178_ACEOF
20179
20180
20181cat >>confdefs.h <<_ACEOF
20182#define LLVM_INFODIR "$LLVM_INFODIR"
20183_ACEOF
20184
20185
20186cat >>confdefs.h <<_ACEOF
20187#define LLVM_MANDIR "$LLVM_MANDIR"
20188_ACEOF
20189
20190
20191cat >>confdefs.h <<_ACEOF
20192#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20193_ACEOF
20194
20195
Eric Christopher790e11c2007-12-01 00:34:39 +000020196cat >>confdefs.h <<_ACEOF
20197#define LLVM_HOSTTRIPLE "$host"
20198_ACEOF
20199
20200
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020201# Determine which bindings to build.
20202if test "$BINDINGS_TO_BUILD" = auto ; then
20203 BINDINGS_TO_BUILD=""
20204 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20205 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20206 fi
20207fi
20208BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20209
20210
20211# This isn't really configurey, but it avoids having to repeat the list in
20212# other files.
20213ALL_BINDINGS=ocaml
20214
20215
Gordon Henriksenf0915682007-10-02 16:42:22 +000020216# Do any work necessary to ensure that bindings have what they need.
20217binding_prereqs_failed=0
20218for a_binding in $BINDINGS_TO_BUILD ; do
20219 case "$a_binding" in
20220 ocaml)
20221 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020222 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20223echo "$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 +000020224 binding_prereqs_failed=1
20225 fi
20226 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020227 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20228echo "$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 +000020229 binding_prereqs_failed=1
20230 fi
20231 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020232 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20233echo "$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 +000020234 fi
20235 if test "x$with_ocaml_libdir" != xauto ; then
20236 OCAML_LIBDIR=$with_ocaml_libdir
20237
20238 else
20239 ocaml_stdlib="`"$OCAMLC" -where`"
20240 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20241 then
20242 # ocaml stdlib is beneath our prefix; use stdlib
20243 OCAML_LIBDIR=$ocaml_stdlib
20244
20245 else
20246 # ocaml stdlib is outside our prefix; use libdir/ocaml
20247 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20248
20249 fi
20250 fi
20251 ;;
20252 esac
20253done
20254if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020255 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20256echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20257 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020258fi
20259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020260{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20261echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20262if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020264else
20265 ac_ext=cpp
20266ac_cpp='$CXXCPP $CPPFLAGS'
20267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20270
20271 oldcxxflags="$CXXFLAGS"
20272 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020273 cat >conftest.$ac_ext <<_ACEOF
20274/* confdefs.h. */
20275_ACEOF
20276cat confdefs.h >>conftest.$ac_ext
20277cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020278/* end confdefs.h. */
20279
20280int
20281main ()
20282{
20283
20284 ;
20285 return 0;
20286}
20287_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020288rm -f conftest.$ac_objext
20289if { (ac_try="$ac_compile"
20290case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20293esac
20294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_compile") 2>conftest.er1
20296 ac_status=$?
20297 grep -v '^ *+' conftest.er1 >conftest.err
20298 rm -f conftest.er1
20299 cat conftest.err >&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } &&
20302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20303 { (case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20306esac
20307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_try") 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; } &&
20312 { ac_try='test -s conftest.$ac_objext'
20313 { (case "(($ac_try" in
20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315 *) ac_try_echo=$ac_try;;
20316esac
20317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318 (eval "$ac_try") 2>&5
20319 ac_status=$?
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020322 llvm_cv_cxx_visibility_inlines_hidden=yes
20323else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020324 echo "$as_me: failed program was:" >&5
20325sed 's/^/| /' conftest.$ac_ext >&5
20326
20327 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020328fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020329
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20331 CXXFLAGS="$oldcxxflags"
20332 ac_ext=c
20333ac_cpp='$CPP $CPPFLAGS'
20334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20336ac_compiler_gnu=$ac_cv_c_compiler_gnu
20337
20338
20339fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020340{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20341echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020342if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20343 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20344
20345else
20346 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20347
20348fi
20349
Gordon Henriksenf0915682007-10-02 16:42:22 +000020350
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020351if test "$llvm_cv_link_use_r" = "yes" ; then
20352 RPATH="-Wl,-R"
20353else
20354 RPATH="-Wl,-rpath"
20355fi
20356
20357
20358if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20359 RDYNAMIC="-Wl,-export-dynamic"
20360else
20361 RDYNAMIC=""
20362fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020363
20364
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020365
Reid Spencera773bd52006-08-04 18:18:08 +000020366ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020367
Douglas Gregor1555a232009-06-16 20:12:29 +000020368ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20369
20370ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20371
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020372ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20373
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020374ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20375
Chandler Carruth8b67f772009-10-26 01:35:46 +000020376ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020377
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020378
Reid Spencera773bd52006-08-04 18:18:08 +000020379ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020380
20381
Reid Spencerea949cf2006-08-16 00:45:38 +000020382ac_config_files="$ac_config_files llvm.spec"
20383
20384
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020385ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20386
20387
Reid Spencera773bd52006-08-04 18:18:08 +000020388ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020389
20390
Reid Spencera773bd52006-08-04 18:18:08 +000020391ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020392
Reid Spencera773bd52006-08-04 18:18:08 +000020393ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020394
20395
Reid Spencera773bd52006-08-04 18:18:08 +000020396ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020397
20398
Reid Spencera773bd52006-08-04 18:18:08 +000020399ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020400
20401
Reid Spencera773bd52006-08-04 18:18:08 +000020402ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020403
20404
Reid Spencer8b2e1412006-11-17 03:32:33 +000020405ac_config_commands="$ac_config_commands runtime/Makefile"
20406
20407
Reid Spencera773bd52006-08-04 18:18:08 +000020408ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020409
20410
Reid Spencera773bd52006-08-04 18:18:08 +000020411ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020412
20413
Bill Wendlingf24eb392009-01-04 23:12:30 +000020414ac_config_commands="$ac_config_commands unittests/Makefile"
20415
20416
Reid Spencera773bd52006-08-04 18:18:08 +000020417ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020418
20419
Reid Spencera773bd52006-08-04 18:18:08 +000020420ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020421
20422
Reid Spencera773bd52006-08-04 18:18:08 +000020423ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020424
20425
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020426ac_config_commands="$ac_config_commands bindings/Makefile"
20427
20428
20429ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20430
20431
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020432
John Criswell7a73b802003-06-30 21:59:07 +000020433cat >confcache <<\_ACEOF
20434# This file is a shell script that caches the results of configure
20435# tests run on this system so they can be shared between configure
20436# scripts and configure runs, see configure's option --config-cache.
20437# It is not useful on other systems. If it contains results you don't
20438# want to keep, you may remove or edit it.
20439#
20440# config.status only pays attention to the cache file if you give it
20441# the --recheck option to rerun configure.
20442#
John Criswell0c38eaf2003-09-10 15:17:25 +000020443# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020444# loading this file, other *unset* `ac_cv_foo' will be assigned the
20445# following values.
20446
20447_ACEOF
20448
20449# The following way of writing the cache mishandles newlines in values,
20450# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020451# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020452# Ultrix sh set writes to stderr and can't be redirected directly,
20453# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020454(
20455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20456 eval ac_val=\$$ac_var
20457 case $ac_val in #(
20458 *${as_nl}*)
20459 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020460 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20461echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020462 esac
20463 case $ac_var in #(
20464 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020465 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020466 esac ;;
20467 esac
20468 done
20469
John Criswell7a73b802003-06-30 21:59:07 +000020470 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020471 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20472 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020473 # `set' does not quote correctly, so add quotes (double-quote
20474 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020475 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020476 "s/'/'\\\\''/g;
20477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020478 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020479 *)
20480 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020482 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020483 esac |
20484 sort
20485) |
John Criswell7a73b802003-06-30 21:59:07 +000020486 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020487 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020488 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020489 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20491 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020492 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20493 :end' >>confcache
20494if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20495 if test -w "$cache_file"; then
20496 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020497 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20498echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020499 cat confcache >$cache_file
20500 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020501 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20502echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020503 fi
20504fi
20505rm -f confcache
20506
20507test "x$prefix" = xNONE && prefix=$ac_default_prefix
20508# Let make expand exec_prefix.
20509test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20510
John Criswell7a73b802003-06-30 21:59:07 +000020511DEFS=-DHAVE_CONFIG_H
20512
John Criswell0c38eaf2003-09-10 15:17:25 +000020513ac_libobjs=
20514ac_ltlibobjs=
20515for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20516 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020517 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020518 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020519 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20520 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020521 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20522 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020523done
20524LIBOBJS=$ac_libobjs
20525
20526LTLIBOBJS=$ac_ltlibobjs
20527
20528
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020529if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020530 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20531Usually this means the macro was only invoked conditionally." >&5
20532echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20533Usually this means the macro was only invoked conditionally." >&2;}
20534 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020535fi
20536if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020537 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20538Usually this means the macro was only invoked conditionally." >&5
20539echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20540Usually this means the macro was only invoked conditionally." >&2;}
20541 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020542fi
John Criswell7a73b802003-06-30 21:59:07 +000020543
20544: ${CONFIG_STATUS=./config.status}
20545ac_clean_files_save=$ac_clean_files
20546ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020547{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20548echo "$as_me: creating $CONFIG_STATUS" >&6;}
20549cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020550#! $SHELL
20551# Generated by $as_me.
20552# Run this file to recreate the current configuration.
20553# Compiler output produced by configure, useful for debugging
20554# configure, is in config.log if it exists.
20555
20556debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020557ac_cs_recheck=false
20558ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020559SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020560_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020562cat >>$CONFIG_STATUS <<\_ACEOF
20563## --------------------- ##
20564## M4sh Initialization. ##
20565## --------------------- ##
20566
20567# Be Bourne compatible
20568if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020569 emulate sh
20570 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020571 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020572 # is contrary to our usage. Disable this feature.
20573 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020574 setopt NO_GLOB_SUBST
20575else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020576 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020578BIN_SH=xpg4; export BIN_SH # for Tru64
20579DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020580
John Criswell7a73b802003-06-30 21:59:07 +000020581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020582# PATH needs CR
20583# Avoid depending upon Character Ranges.
20584as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20585as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20586as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20587as_cr_digits='0123456789'
20588as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020589
20590# The user is always right.
20591if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020592 echo "#! /bin/sh" >conf$$.sh
20593 echo "exit 0" >>conf$$.sh
20594 chmod +x conf$$.sh
20595 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20596 PATH_SEPARATOR=';'
20597 else
20598 PATH_SEPARATOR=:
20599 fi
20600 rm -f conf$$.sh
20601fi
20602
20603# Support unset when possible.
20604if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20605 as_unset=unset
20606else
20607 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020608fi
John Criswell7a73b802003-06-30 21:59:07 +000020609
Reid Spencera773bd52006-08-04 18:18:08 +000020610
20611# IFS
20612# We need space, tab and new line, in precisely that order. Quoting is
20613# there to prevent editors from complaining about space-tab.
20614# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20615# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020616as_nl='
20617'
Reid Spencera773bd52006-08-04 18:18:08 +000020618IFS=" "" $as_nl"
20619
20620# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020621case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020622 *[\\/]* ) as_myself=$0 ;;
20623 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020624for as_dir in $PATH
20625do
20626 IFS=$as_save_IFS
20627 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020628 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20629done
Reid Spencera773bd52006-08-04 18:18:08 +000020630IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020631
Reid Spencera773bd52006-08-04 18:18:08 +000020632 ;;
20633esac
20634# We did not find ourselves, most probably we were run as `sh COMMAND'
20635# in which case we are not to be found in the path.
20636if test "x$as_myself" = x; then
20637 as_myself=$0
20638fi
20639if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020640 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20641 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020642fi
20643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020644# Work around bugs in pre-3.0 UWIN ksh.
20645for as_var in ENV MAIL MAILPATH
20646do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020647done
20648PS1='$ '
20649PS2='> '
20650PS4='+ '
20651
20652# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020653for as_var in \
20654 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20655 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20656 LC_TELEPHONE LC_TIME
20657do
20658 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20659 eval $as_var=C; export $as_var
20660 else
20661 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020662 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020663done
Torok Edwin871384f2010-01-26 08:50:50 +000020664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020665# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020666if expr a : '\(a\)' >/dev/null 2>&1 &&
20667 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20668 as_expr=expr
20669else
20670 as_expr=false
20671fi
20672
20673if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20674 as_basename=basename
20675else
20676 as_basename=false
20677fi
20678
20679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020680# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020681as_me=`$as_basename -- "$0" ||
20682$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20683 X"$0" : 'X\(//\)$' \| \
20684 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020685echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020686 sed '/^.*\/\([^/][^/]*\)\/*$/{
20687 s//\1/
20688 q
20689 }
20690 /^X\/\(\/\/\)$/{
20691 s//\1/
20692 q
20693 }
20694 /^X\/\(\/\).*/{
20695 s//\1/
20696 q
20697 }
20698 s/.*/./; q'`
20699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020700# CDPATH.
20701$as_unset CDPATH
20702
20703
20704
20705 as_lineno_1=$LINENO
20706 as_lineno_2=$LINENO
20707 test "x$as_lineno_1" != "x$as_lineno_2" &&
20708 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20709
20710 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20711 # uniformly replaced by the line number. The first 'sed' inserts a
20712 # line-number line after each line using $LINENO; the second 'sed'
20713 # does the real work. The second script uses 'N' to pair each
20714 # line-number line with the line containing $LINENO, and appends
20715 # trailing '-' during substitution so that $LINENO is not a special
20716 # case at line end.
20717 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20718 # scripts with optimization help from Paolo Bonzini. Blame Lee
20719 # E. McMahon (1931-1989) for sed's syntax. :-)
20720 sed -n '
20721 p
20722 /[$]LINENO/=
20723 ' <$as_myself |
20724 sed '
20725 s/[$]LINENO.*/&-/
20726 t lineno
20727 b
20728 :lineno
20729 N
20730 :loop
20731 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20732 t loop
20733 s/-\n.*//
20734 ' >$as_me.lineno &&
20735 chmod +x "$as_me.lineno" ||
20736 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20737 { (exit 1); exit 1; }; }
20738
20739 # Don't try to exec as it changes $[0], causing all sort of problems
20740 # (the dirname of $[0] is not the place where we might find the
20741 # original and so on. Autoconf is especially sensitive to this).
20742 . "./$as_me.lineno"
20743 # Exit status is that of the last command.
20744 exit
20745}
20746
20747
20748if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20749 as_dirname=dirname
20750else
20751 as_dirname=false
20752fi
Reid Spencera773bd52006-08-04 18:18:08 +000020753
20754ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020755case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020756-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020757 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020758 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020759 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020760 esac;;
20761*)
20762 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020763esac
20764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020765if expr a : '\(a\)' >/dev/null 2>&1 &&
20766 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20767 as_expr=expr
20768else
20769 as_expr=false
20770fi
20771
John Criswell7a73b802003-06-30 21:59:07 +000020772rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020773if test -d conf$$.dir; then
20774 rm -f conf$$.dir/conf$$.file
20775else
20776 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020777 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000020778fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020779echo >conf$$.file
20780if ln -s conf$$.file conf$$ 2>/dev/null; then
20781 as_ln_s='ln -s'
20782 # ... but there are two gotchas:
20783 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20784 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20785 # In both cases, we have to default to `cp -p'.
20786 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000020787 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020788elif ln conf$$.file conf$$ 2>/dev/null; then
20789 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000020790else
20791 as_ln_s='cp -p'
20792fi
Reid Spencera773bd52006-08-04 18:18:08 +000020793rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20794rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000020795
John Criswell0c38eaf2003-09-10 15:17:25 +000020796if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020797 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000020798else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020799 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000020800 as_mkdir_p=false
20801fi
20802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020803# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20804# systems may use methods other than mode bits to determine executability.
20805cat >conf$$.file <<_ASEOF
20806#! /bin/sh
20807exit 0
20808_ASEOF
20809chmod +x conf$$.file
20810if test -x conf$$.file >/dev/null 2>&1; then
20811 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000020812else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020813 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000020814fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020815rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000020816
20817# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020818as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020819
20820# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020821as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020822
20823
John Criswell7a73b802003-06-30 21:59:07 +000020824exec 6>&1
20825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020826# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000020827# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000020828# values after options handling.
20829ac_log="
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000020830This file was extended by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020831generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000020832
20833 CONFIG_FILES = $CONFIG_FILES
20834 CONFIG_HEADERS = $CONFIG_HEADERS
20835 CONFIG_LINKS = $CONFIG_LINKS
20836 CONFIG_COMMANDS = $CONFIG_COMMANDS
20837 $ $0 $@
20838
Reid Spencera773bd52006-08-04 18:18:08 +000020839on `(hostname || uname -n) 2>/dev/null | sed 1q`
20840"
20841
John Criswell7a73b802003-06-30 21:59:07 +000020842_ACEOF
20843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020844cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020845# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000020846config_files="$ac_config_files"
20847config_headers="$ac_config_headers"
20848config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000020849
Reid Spencera773bd52006-08-04 18:18:08 +000020850_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020852cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020853ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020854\`$as_me' instantiates files from templates according to the
20855current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000020856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020857Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000020858
20859 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020860 -V, --version print version number, then exit
20861 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000020862 -d, --debug don't remove temporary files
20863 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020864 --file=FILE[:TEMPLATE]
20865 instantiate the configuration file FILE
20866 --header=FILE[:TEMPLATE]
20867 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000020868
20869Configuration files:
20870$config_files
20871
20872Configuration headers:
20873$config_headers
20874
John Criswellc764fbc2003-09-06 15:17:13 +000020875Configuration commands:
20876$config_commands
20877
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020878Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000020879
Reid Spencera773bd52006-08-04 18:18:08 +000020880_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020881cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020882ac_cs_version="\\
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000020883llvm config.status 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020884configured by $0, generated by GNU Autoconf 2.60,
20885 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000020886
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020887Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000020888This config.status script is free software; the Free Software Foundation
20889gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000020890
20891ac_pwd='$ac_pwd'
20892srcdir='$srcdir'
20893INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000020894_ACEOF
20895
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020896cat >>$CONFIG_STATUS <<\_ACEOF
20897# If no file are specified by the user, then we need to provide default
20898# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000020899ac_need_defaults=:
20900while test $# != 0
20901do
20902 case $1 in
20903 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000020904 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20905 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000020906 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000020907 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020908 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020909 ac_option=$1
20910 ac_optarg=$2
20911 ac_shift=shift
20912 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020913 esac
20914
John Criswell0c38eaf2003-09-10 15:17:25 +000020915 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000020916 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000020917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20918 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020919 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020920 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020921 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000020922 debug=: ;;
20923 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000020924 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020925 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020926 ac_need_defaults=false;;
20927 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000020928 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020929 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020930 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000020931 --he | --h)
20932 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020933 { echo "$as_me: error: ambiguous option: $1
20934Try \`$0 --help' for more information." >&2
20935 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020936 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020937 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000020938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20939 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20940 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000020941
20942 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020943 -*) { echo "$as_me: error: unrecognized option: $1
20944Try \`$0 --help' for more information." >&2
20945 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000020946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020947 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000020948 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000020949
20950 esac
20951 shift
20952done
20953
John Criswell0c38eaf2003-09-10 15:17:25 +000020954ac_configure_extra_args=
20955
20956if $ac_cs_silent; then
20957 exec 6>/dev/null
20958 ac_configure_extra_args="$ac_configure_extra_args --silent"
20959fi
20960
20961_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020962cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020963if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020964 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20965 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000020966 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020967 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000020968fi
20969
John Criswell7a73b802003-06-30 21:59:07 +000020970_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020971cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020972exec 5>>config.log
20973{
20974 echo
20975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20976## Running $as_me. ##
20977_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020978 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000020979} >&5
John Criswell7a73b802003-06-30 21:59:07 +000020980
Reid Spencera773bd52006-08-04 18:18:08 +000020981_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020982cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000020983#
Reid Spencera773bd52006-08-04 18:18:08 +000020984# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000020985#
Reid Spencerc0682832005-02-24 19:05:19 +000020986llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000020987
20988_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020990cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020991
20992# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000020993for ac_config_target in $ac_config_targets
20994do
Reid Spencera773bd52006-08-04 18:18:08 +000020995 case $ac_config_target in
20996 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000020997 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20998 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020999 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021000 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000021001 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021002 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021003 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000021004 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021005 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21006 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21007 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21008 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21009 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21010 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021011 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021012 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21013 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021014 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021015 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21016 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21017 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021018 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21019 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021021 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21022echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21023 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021024 esac
21025done
21026
Reid Spencera773bd52006-08-04 18:18:08 +000021027
John Criswell7a73b802003-06-30 21:59:07 +000021028# If the user did not use the arguments to specify the items to instantiate,
21029# then the envvar interface is used. Set only those that are not.
21030# We use the long form for the default assignment because of an extremely
21031# bizarre bug on SunOS 4.1.3.
21032if $ac_need_defaults; then
21033 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21034 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021035 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021036fi
21037
John Criswell0c38eaf2003-09-10 15:17:25 +000021038# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021039# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021040# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021041# Hook for its removal unless debugging.
21042# Note that there is a small window in which the directory will not be cleaned:
21043# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021044$debug ||
21045{
Reid Spencera773bd52006-08-04 18:18:08 +000021046 tmp=
21047 trap 'exit_status=$?
21048 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21049' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021050 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021051}
John Criswell7a73b802003-06-30 21:59:07 +000021052# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021053
John Criswell7a73b802003-06-30 21:59:07 +000021054{
Reid Spencera773bd52006-08-04 18:18:08 +000021055 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021056 test -n "$tmp" && test -d "$tmp"
21057} ||
21058{
Reid Spencera773bd52006-08-04 18:18:08 +000021059 tmp=./conf$$-$RANDOM
21060 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021061} ||
21062{
21063 echo "$me: cannot create a temporary directory in ." >&2
21064 { (exit 1); exit 1; }
21065}
John Criswell7a73b802003-06-30 21:59:07 +000021066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021067#
21068# Set up the sed scripts for CONFIG_FILES section.
21069#
21070
21071# No need to generate the scripts if there are no CONFIG_FILES.
21072# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021073if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021074
21075_ACEOF
21076
Reid Spencera773bd52006-08-04 18:18:08 +000021077
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021078
Reid Spencera773bd52006-08-04 18:18:08 +000021079ac_delim='%!_!# '
21080for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021081 cat >conf$$subs.sed <<_ACEOF
21082SHELL!$SHELL$ac_delim
21083PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21084PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21085PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21086PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21087PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21088PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21089exec_prefix!$exec_prefix$ac_delim
21090prefix!$prefix$ac_delim
21091program_transform_name!$program_transform_name$ac_delim
21092bindir!$bindir$ac_delim
21093sbindir!$sbindir$ac_delim
21094libexecdir!$libexecdir$ac_delim
21095datarootdir!$datarootdir$ac_delim
21096datadir!$datadir$ac_delim
21097sysconfdir!$sysconfdir$ac_delim
21098sharedstatedir!$sharedstatedir$ac_delim
21099localstatedir!$localstatedir$ac_delim
21100includedir!$includedir$ac_delim
21101oldincludedir!$oldincludedir$ac_delim
21102docdir!$docdir$ac_delim
21103infodir!$infodir$ac_delim
21104htmldir!$htmldir$ac_delim
21105dvidir!$dvidir$ac_delim
21106pdfdir!$pdfdir$ac_delim
21107psdir!$psdir$ac_delim
21108libdir!$libdir$ac_delim
21109localedir!$localedir$ac_delim
21110mandir!$mandir$ac_delim
21111DEFS!$DEFS$ac_delim
21112ECHO_C!$ECHO_C$ac_delim
21113ECHO_N!$ECHO_N$ac_delim
21114ECHO_T!$ECHO_T$ac_delim
21115LIBS!$LIBS$ac_delim
21116build_alias!$build_alias$ac_delim
21117host_alias!$host_alias$ac_delim
21118target_alias!$target_alias$ac_delim
21119LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21120subdirs!$subdirs$ac_delim
21121build!$build$ac_delim
21122build_cpu!$build_cpu$ac_delim
21123build_vendor!$build_vendor$ac_delim
21124build_os!$build_os$ac_delim
21125host!$host$ac_delim
21126host_cpu!$host_cpu$ac_delim
21127host_vendor!$host_vendor$ac_delim
21128host_os!$host_os$ac_delim
21129target!$target$ac_delim
21130target_cpu!$target_cpu$ac_delim
21131target_vendor!$target_vendor$ac_delim
21132target_os!$target_os$ac_delim
21133OS!$OS$ac_delim
21134HOST_OS!$HOST_OS$ac_delim
21135TARGET_OS!$TARGET_OS$ac_delim
21136LINKALL!$LINKALL$ac_delim
21137NOLINKALL!$NOLINKALL$ac_delim
21138LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21139LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21140ARCH!$ARCH$ac_delim
21141ENDIAN!$ENDIAN$ac_delim
21142CC!$CC$ac_delim
21143CFLAGS!$CFLAGS$ac_delim
21144LDFLAGS!$LDFLAGS$ac_delim
21145CPPFLAGS!$CPPFLAGS$ac_delim
21146ac_ct_CC!$ac_ct_CC$ac_delim
21147EXEEXT!$EXEEXT$ac_delim
21148OBJEXT!$OBJEXT$ac_delim
21149CPP!$CPP$ac_delim
21150GREP!$GREP$ac_delim
21151EGREP!$EGREP$ac_delim
21152LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21153BUILD_CC!$BUILD_CC$ac_delim
21154BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21155BUILD_CXX!$BUILD_CXX$ac_delim
21156CVSBUILD!$CVSBUILD$ac_delim
21157ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21158ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21159DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21160ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21161EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21162DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21163DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21164JIT!$JIT$ac_delim
21165TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21166ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21167ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21168ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021169ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021170TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21171LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21172LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21173LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21174LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21175ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021176CLANGPATH!$CLANGPATH$ac_delim
21177CLANGXXPATH!$CLANGXXPATH$ac_delim
21178ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021179_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021181 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021182 break
21183 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021184 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21185echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21186 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021187 else
21188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021189 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021190done
21191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021192ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21193if test -n "$ac_eof"; then
21194 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21195 ac_eof=`expr $ac_eof + 1`
21196fi
21197
21198cat >>$CONFIG_STATUS <<_ACEOF
21199cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21200/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021201_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021202sed '
21203s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21204s/^/s,@/; s/!/@,|#_!!_#|/
21205:n
21206t n
21207s/'"$ac_delim"'$/,g/; t
21208s/$/\\/; p
21209N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21210' >>$CONFIG_STATUS <conf$$subs.sed
21211rm -f conf$$subs.sed
21212cat >>$CONFIG_STATUS <<_ACEOF
21213CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021214_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021215
21216
21217ac_delim='%!_!# '
21218for ac_last_try in false false false false false :; do
21219 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021220OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021221EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21222BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21223ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021224ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21225CXX!$CXX$ac_delim
21226CXXFLAGS!$CXXFLAGS$ac_delim
21227ac_ct_CXX!$ac_ct_CXX$ac_delim
21228NM!$NM$ac_delim
21229ifGNUmake!$ifGNUmake$ac_delim
21230LN_S!$LN_S$ac_delim
21231CMP!$CMP$ac_delim
21232CP!$CP$ac_delim
21233DATE!$DATE$ac_delim
21234FIND!$FIND$ac_delim
21235MKDIR!$MKDIR$ac_delim
21236MV!$MV$ac_delim
21237RANLIB!$RANLIB$ac_delim
21238AR!$AR$ac_delim
21239RM!$RM$ac_delim
21240SED!$SED$ac_delim
21241TAR!$TAR$ac_delim
21242BINPWD!$BINPWD$ac_delim
21243GRAPHVIZ!$GRAPHVIZ$ac_delim
21244DOT!$DOT$ac_delim
21245FDP!$FDP$ac_delim
21246NEATO!$NEATO$ac_delim
21247TWOPI!$TWOPI$ac_delim
21248CIRCO!$CIRCO$ac_delim
21249GV!$GV$ac_delim
21250DOTTY!$DOTTY$ac_delim
21251PERL!$PERL$ac_delim
21252HAVE_PERL!$HAVE_PERL$ac_delim
21253INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21254INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21255INSTALL_DATA!$INSTALL_DATA$ac_delim
21256BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021257CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021258DOXYGEN!$DOXYGEN$ac_delim
21259GROFF!$GROFF$ac_delim
21260GZIP!$GZIP$ac_delim
21261POD2HTML!$POD2HTML$ac_delim
21262POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021263PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021264RUNTEST!$RUNTEST$ac_delim
21265TCLSH!$TCLSH$ac_delim
21266ZIP!$ZIP$ac_delim
21267OCAMLC!$OCAMLC$ac_delim
21268OCAMLOPT!$OCAMLOPT$ac_delim
21269OCAMLDEP!$OCAMLDEP$ac_delim
21270OCAMLDOC!$OCAMLDOC$ac_delim
21271GAS!$GAS$ac_delim
Dan Gohman391569c2010-04-16 22:59:06 +000021272HAVE_LINK_RETAIN_SYMBOLS_FILE!$HAVE_LINK_RETAIN_SYMBOLS_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021273INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21274INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21275CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21276CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21277LIBADD_DL!$LIBADD_DL$ac_delim
21278LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21279LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21280LLVMGCC!$LLVMGCC$ac_delim
21281LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021282LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021283NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21284NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21285USE_UDIS86!$USE_UDIS86$ac_delim
21286USE_OPROFILE!$USE_OPROFILE$ac_delim
21287HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21288HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21289MMAP_FILE!$MMAP_FILE$ac_delim
21290LLVMCC1!$LLVMCC1$ac_delim
21291LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21292LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021293LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21294SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021295SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021296LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21297LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21298LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21299LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21300LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21301LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21302LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21303LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21304LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21305LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21306BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21307ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21308OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21309ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21310RPATH!$RPATH$ac_delim
21311RDYNAMIC!$RDYNAMIC$ac_delim
21312LIBOBJS!$LIBOBJS$ac_delim
21313LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021314_ACEOF
21315
mike-m68cb3192010-05-06 23:45:43 +000021316 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021317 break
21318 elif $ac_last_try; then
21319 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21320echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21321 { (exit 1); exit 1; }; }
21322 else
21323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21324 fi
21325done
21326
21327ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21328if test -n "$ac_eof"; then
21329 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21330 ac_eof=`expr $ac_eof + 1`
21331fi
21332
21333cat >>$CONFIG_STATUS <<_ACEOF
21334cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21335/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21336_ACEOF
21337sed '
21338s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21339s/^/s,@/; s/!/@,|#_!!_#|/
21340:n
21341t n
21342s/'"$ac_delim"'$/,g/; t
21343s/$/\\/; p
21344N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21345' >>$CONFIG_STATUS <conf$$subs.sed
21346rm -f conf$$subs.sed
21347cat >>$CONFIG_STATUS <<_ACEOF
21348:end
21349s/|#_!!_#|//g
21350CEOF$ac_eof
21351_ACEOF
21352
21353
Reid Spencera773bd52006-08-04 18:18:08 +000021354# VPATH may cause trouble with some makes, so we remove $(srcdir),
21355# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21356# trailing colons and then remove the whole line if VPATH becomes empty
21357# (actually we leave an empty line to preserve line numbers).
21358if test "x$srcdir" = x.; then
21359 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21360s/:*\$(srcdir):*/:/
21361s/:*\${srcdir}:*/:/
21362s/:*@srcdir@:*/:/
21363s/^\([^=]*=[ ]*\):*/\1/
21364s/:*$//
21365s/^[^=]*=[ ]*$//
21366}'
21367fi
21368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021369cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021370fi # test -n "$CONFIG_FILES"
21371
Reid Spencera773bd52006-08-04 18:18:08 +000021372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021373for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021374do
21375 case $ac_tag in
21376 :[FHLC]) ac_mode=$ac_tag; continue;;
21377 esac
21378 case $ac_mode$ac_tag in
21379 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021380 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21381echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21382 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021383 :[FH]-) ac_tag=-:-;;
21384 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21385 esac
21386 ac_save_IFS=$IFS
21387 IFS=:
21388 set x $ac_tag
21389 IFS=$ac_save_IFS
21390 shift
21391 ac_file=$1
21392 shift
21393
21394 case $ac_mode in
21395 :L) ac_source=$1;;
21396 :[FH])
21397 ac_file_inputs=
21398 for ac_f
21399 do
21400 case $ac_f in
21401 -) ac_f="$tmp/stdin";;
21402 *) # Look for the file first in the build tree, then in the source tree
21403 # (if the path is not absolute). The absolute path cannot be DOS-style,
21404 # because $ac_f cannot contain `:'.
21405 test -f "$ac_f" ||
21406 case $ac_f in
21407 [\\/$]*) false;;
21408 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21409 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021410 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21411echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21412 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021413 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021414 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021415 done
21416
21417 # Let's still pretend it is `configure' which instantiates (i.e., don't
21418 # use $as_me), people would be surprised to read:
21419 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021420 configure_input="Generated from "`IFS=:
21421 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021422 if test x"$ac_file" != x-; then
21423 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021424 { echo "$as_me:$LINENO: creating $ac_file" >&5
21425echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021426 fi
21427
21428 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021429 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021430 esac
21431 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021432 esac
21433
Reid Spencera773bd52006-08-04 18:18:08 +000021434 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021435$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021436 X"$ac_file" : 'X\(//\)[^/]' \| \
21437 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021438 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021439echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21441 s//\1/
21442 q
21443 }
21444 /^X\(\/\/\)[^/].*/{
21445 s//\1/
21446 q
21447 }
21448 /^X\(\/\/\)$/{
21449 s//\1/
21450 q
21451 }
21452 /^X\(\/\).*/{
21453 s//\1/
21454 q
21455 }
21456 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021457 { as_dir="$ac_dir"
21458 case $as_dir in #(
21459 -*) as_dir=./$as_dir;;
21460 esac
21461 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21462 as_dirs=
21463 while :; do
21464 case $as_dir in #(
21465 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21466 *) as_qdir=$as_dir;;
21467 esac
21468 as_dirs="'$as_qdir' $as_dirs"
21469 as_dir=`$as_dirname -- "$as_dir" ||
21470$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21471 X"$as_dir" : 'X\(//\)[^/]' \| \
21472 X"$as_dir" : 'X\(//\)$' \| \
21473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21474echo X"$as_dir" |
21475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21476 s//\1/
21477 q
21478 }
21479 /^X\(\/\/\)[^/].*/{
21480 s//\1/
21481 q
21482 }
21483 /^X\(\/\/\)$/{
21484 s//\1/
21485 q
21486 }
21487 /^X\(\/\).*/{
21488 s//\1/
21489 q
21490 }
21491 s/.*/./; q'`
21492 test -d "$as_dir" && break
21493 done
21494 test -z "$as_dirs" || eval "mkdir $as_dirs"
21495 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21496echo "$as_me: error: cannot create directory $as_dir" >&2;}
21497 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021498 ac_builddir=.
21499
Reid Spencera773bd52006-08-04 18:18:08 +000021500case "$ac_dir" in
21501.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21502*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021503 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021504 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021505 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021506 case $ac_top_builddir_sub in
21507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21509 esac ;;
21510esac
21511ac_abs_top_builddir=$ac_pwd
21512ac_abs_builddir=$ac_pwd$ac_dir_suffix
21513# for backward compatibility:
21514ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021515
21516case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021517 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021518 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021519 ac_top_srcdir=$ac_top_builddir_sub
21520 ac_abs_top_srcdir=$ac_pwd ;;
21521 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021522 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021523 ac_top_srcdir=$srcdir
21524 ac_abs_top_srcdir=$srcdir ;;
21525 *) # Relative name.
21526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21527 ac_top_srcdir=$ac_top_build_prefix$srcdir
21528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021529esac
Reid Spencera773bd52006-08-04 18:18:08 +000021530ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021531
John Criswell7a73b802003-06-30 21:59:07 +000021532
Reid Spencera773bd52006-08-04 18:18:08 +000021533 case $ac_mode in
21534 :F)
21535 #
21536 # CONFIG_FILE
21537 #
John Criswell7a73b802003-06-30 21:59:07 +000021538
21539 case $INSTALL in
21540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021541 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021542 esac
John Criswell7a73b802003-06-30 21:59:07 +000021543_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021545cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021546# If the template does not know about datarootdir, expand it.
21547# FIXME: This hack should be removed a few years after 2.60.
21548ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021549
21550case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021551 p
21552 q
21553}
21554/@datadir@/p
21555/@docdir@/p
21556/@infodir@/p
21557/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021558/@mandir@/p
21559' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021560*datarootdir*) ac_datarootdir_seen=yes;;
21561*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021562 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21563echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021564_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021565cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021566 ac_datarootdir_hack='
21567 s&@datadir@&$datadir&g
21568 s&@docdir@&$docdir&g
21569 s&@infodir@&$infodir&g
21570 s&@localedir@&$localedir&g
21571 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021572 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021573esac
21574_ACEOF
21575
21576# Neutralize VPATH when `$srcdir' = `.'.
21577# Shell code in configure.ac might set extrasub.
21578# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021579cat >>$CONFIG_STATUS <<_ACEOF
21580 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021581$extrasub
21582_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021583cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021584:t
21585/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021586s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021587s&@top_builddir@&$ac_top_builddir_sub&;t t
21588s&@srcdir@&$ac_srcdir&;t t
21589s&@abs_srcdir@&$ac_abs_srcdir&;t t
21590s&@top_srcdir@&$ac_top_srcdir&;t t
21591s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21592s&@builddir@&$ac_builddir&;t t
21593s&@abs_builddir@&$ac_abs_builddir&;t t
21594s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21595s&@INSTALL@&$ac_INSTALL&;t t
21596$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021597" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021598
Reid Spencera773bd52006-08-04 18:18:08 +000021599test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21600 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21601 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021602 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021603which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021604echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021605which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021606
Reid Spencera773bd52006-08-04 18:18:08 +000021607 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021608 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021609 -) cat "$tmp/out"; rm -f "$tmp/out";;
21610 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21611 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021612 ;;
21613 :H)
21614 #
21615 # CONFIG_HEADER
21616 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021617_ACEOF
21618
21619# Transform confdefs.h into a sed script `conftest.defines', that
21620# substitutes the proper values into config.h.in to produce config.h.
21621rm -f conftest.defines conftest.tail
21622# First, append a space to every undef/define line, to ease matching.
21623echo 's/$/ /' >conftest.defines
21624# Then, protect against being on the right side of a sed subst, or in
21625# an unquoted here document, in config.status. If some macros were
21626# called several times there might be several #defines for the same
21627# symbol, which is useless. But do not sort them, since the last
21628# AC_DEFINE must be honored.
21629ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21630# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21631# NAME is the cpp macro being defined, VALUE is the value it is being given.
21632# PARAMS is the parameter list in the macro definition--in most cases, it's
21633# just an empty string.
21634ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21635ac_dB='\\)[ (].*,\\1define\\2'
21636ac_dC=' '
21637ac_dD=' ,'
21638
21639uniq confdefs.h |
21640 sed -n '
21641 t rset
21642 :rset
21643 s/^[ ]*#[ ]*define[ ][ ]*//
21644 t ok
21645 d
21646 :ok
21647 s/[\\&,]/\\&/g
21648 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21649 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21650 ' >>conftest.defines
21651
21652# Remove the space that was appended to ease matching.
21653# Then replace #undef with comments. This is necessary, for
21654# example, in the case of _POSIX_SOURCE, which is predefined and required
21655# on some systems where configure will not decide to define it.
21656# (The regexp can be short, since the line contains either #define or #undef.)
21657echo 's/ $//
21658s,^[ #]*u.*,/* & */,' >>conftest.defines
21659
21660# Break up conftest.defines:
21661ac_max_sed_lines=50
21662
21663# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21664# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21665# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21666# et cetera.
21667ac_in='$ac_file_inputs'
21668ac_out='"$tmp/out1"'
21669ac_nxt='"$tmp/out2"'
21670
21671while :
21672do
21673 # Write a here document:
21674 cat >>$CONFIG_STATUS <<_ACEOF
21675 # First, check the format of the line:
21676 cat >"\$tmp/defines.sed" <<\\CEOF
21677/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21678/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21679b
21680:def
21681_ACEOF
21682 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21683 echo 'CEOF
21684 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21685 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21686 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21687 grep . conftest.tail >/dev/null || break
21688 rm -f conftest.defines
21689 mv conftest.tail conftest.defines
21690done
21691rm -f conftest.defines conftest.tail
21692
21693echo "ac_result=$ac_in" >>$CONFIG_STATUS
21694cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021695 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021696 echo "/* $configure_input */" >"$tmp/config.h"
21697 cat "$ac_result" >>"$tmp/config.h"
21698 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21699 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21700echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021701 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021702 rm -f $ac_file
21703 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021704 fi
21705 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021706 echo "/* $configure_input */"
21707 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021708 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021709 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021710 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021712 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21713echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021714 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021715 esac
John Criswell7a73b802003-06-30 21:59:07 +000021716
Reid Spencera773bd52006-08-04 18:18:08 +000021717
21718 case $ac_file$ac_mode in
21719 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021720 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021721 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021722 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021723 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021724 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021725 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021726 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021727 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021728 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021729 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021730 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021731 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021732 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021733 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021734 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021735 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021736 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021737 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021738 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021739 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021740 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021741 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021742 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021743 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021744 ${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 +000021745
21746 esac
21747done # for ac_tag
21748
John Criswell7a73b802003-06-30 21:59:07 +000021749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021750{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021751_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021752chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021753ac_clean_files=$ac_clean_files_save
21754
21755
21756# configure is writing to config.log, and then calls config.status.
21757# config.status does its own redirection, appending to config.log.
21758# Unfortunately, on DOS this fails, as config.log is still kept open
21759# by configure, so config.status won't be able to write to it; its
21760# output is simply discarded. So we exec the FD to /dev/null,
21761# effectively closing config.log, so it can be properly (re)opened and
21762# appended to by config.status. When coming back to configure, we
21763# need to make the FD available again.
21764if test "$no_create" != yes; then
21765 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021766 ac_config_status_args=
21767 test "$silent" = yes &&
21768 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021769 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021770 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021771 exec 5>>config.log
21772 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21773 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021774 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021775fi
21776
John Criswell12399a12003-09-30 15:55:44 +000021777#
21778# CONFIG_SUBDIRS section.
21779#
21780if test "$no_recursion" != yes; then
21781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021782 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000021783 ac_sub_configure_args=
21784 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000021785 eval "set x $ac_configure_args"
21786 shift
21787 for ac_arg
21788 do
John Criswell12399a12003-09-30 15:55:44 +000021789 if test -n "$ac_prev"; then
21790 ac_prev=
21791 continue
21792 fi
21793 case $ac_arg in
21794 -cache-file | --cache-file | --cache-fil | --cache-fi \
21795 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21796 ac_prev=cache_file ;;
21797 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21798 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21799 | --c=*)
21800 ;;
21801 --config-cache | -C)
21802 ;;
21803 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21804 ac_prev=srcdir ;;
21805 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21806 ;;
21807 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21808 ac_prev=prefix ;;
21809 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21810 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021811 *)
21812 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021813 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021814 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021815 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000021816 esac
21817 done
21818
21819 # Always prepend --prefix to ensure using the same prefix
21820 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000021821 ac_arg="--prefix=$prefix"
21822 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021823 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021824 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021825 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000021826
21827 ac_popdir=`pwd`
21828 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21829
21830 # Do not complain, so a configure script can configure whichever
21831 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000021832 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000021833
Reid Spencera773bd52006-08-04 18:18:08 +000021834 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021835 echo "$as_me:$LINENO: $ac_msg" >&5
21836 echo "$ac_msg" >&6
21837 { as_dir="$ac_dir"
21838 case $as_dir in #(
21839 -*) as_dir=./$as_dir;;
21840 esac
21841 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21842 as_dirs=
21843 while :; do
21844 case $as_dir in #(
21845 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21846 *) as_qdir=$as_dir;;
21847 esac
21848 as_dirs="'$as_qdir' $as_dirs"
21849 as_dir=`$as_dirname -- "$as_dir" ||
21850$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21851 X"$as_dir" : 'X\(//\)[^/]' \| \
21852 X"$as_dir" : 'X\(//\)$' \| \
21853 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21854echo X"$as_dir" |
21855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21856 s//\1/
21857 q
21858 }
21859 /^X\(\/\/\)[^/].*/{
21860 s//\1/
21861 q
21862 }
21863 /^X\(\/\/\)$/{
21864 s//\1/
21865 q
21866 }
21867 /^X\(\/\).*/{
21868 s//\1/
21869 q
21870 }
21871 s/.*/./; q'`
21872 test -d "$as_dir" && break
21873 done
21874 test -z "$as_dirs" || eval "mkdir $as_dirs"
21875 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21876echo "$as_me: error: cannot create directory $as_dir" >&2;}
21877 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000021878 ac_builddir=.
21879
Reid Spencera773bd52006-08-04 18:18:08 +000021880case "$ac_dir" in
21881.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21882*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021884 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021885 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021886 case $ac_top_builddir_sub in
21887 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21888 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21889 esac ;;
21890esac
21891ac_abs_top_builddir=$ac_pwd
21892ac_abs_builddir=$ac_pwd$ac_dir_suffix
21893# for backward compatibility:
21894ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000021895
21896case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021897 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000021898 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021899 ac_top_srcdir=$ac_top_builddir_sub
21900 ac_abs_top_srcdir=$ac_pwd ;;
21901 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000021902 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021903 ac_top_srcdir=$srcdir
21904 ac_abs_top_srcdir=$srcdir ;;
21905 *) # Relative name.
21906 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21907 ac_top_srcdir=$ac_top_build_prefix$srcdir
21908 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000021909esac
Reid Spencera773bd52006-08-04 18:18:08 +000021910ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000021911
21912
Reid Spencera773bd52006-08-04 18:18:08 +000021913 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000021914
21915 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000021916 if test -f "$ac_srcdir/configure.gnu"; then
21917 ac_sub_configure=$ac_srcdir/configure.gnu
21918 elif test -f "$ac_srcdir/configure"; then
21919 ac_sub_configure=$ac_srcdir/configure
21920 elif test -f "$ac_srcdir/configure.in"; then
21921 # This should be Cygnus configure.
21922 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000021923 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021924 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21925echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000021926 ac_sub_configure=
21927 fi
21928
21929 # The recursion is here.
21930 if test -n "$ac_sub_configure"; then
21931 # Make the cache file name correct relative to the subdirectory.
21932 case $cache_file in
21933 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021934 *) # Relative name.
21935 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000021936 esac
21937
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021938 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21939echo "$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 +000021940 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000021941 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21942 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021943 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21944echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21945 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000021946 fi
21947
Reid Spencera773bd52006-08-04 18:18:08 +000021948 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000021949 done
21950fi
21951