blob: f53a7b643de46d589487036b5d8f06ea63b146fd [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00003# Generated by GNU Autoconf 2.60 for llvm 2.8svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
John Criswell5a129712010-03-19 21:04:16 +000012# Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Tanya Lattnerdc29dff2010-03-19 21:22:13 +0000564PACKAGE_VERSION='2.8svn'
565PACKAGE_STRING='llvm 2.8svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
643subdirs
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000692ENABLE_SHARED
Daniel Dunbardd464df2010-05-10 20:11:56 +0000693ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000694TARGETS_TO_BUILD
695LLVM_ENUM_TARGETS
696LLVM_ENUM_ASM_PRINTERS
697LLVM_ENUM_ASM_PARSERS
698LLVM_ENUM_DISASSEMBLERS
699ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000700CLANGPATH
701CLANGXXPATH
702ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703OPTIMIZE_OPTION
704EXTRA_OPTIONS
705BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000706CXX
707CXXFLAGS
708ac_ct_CXX
709NM
710ifGNUmake
711LN_S
712CMP
713CP
714DATE
715FIND
716MKDIR
717MV
718RANLIB
719AR
720RM
721SED
722TAR
723BINPWD
724GRAPHVIZ
725DOT
726FDP
727NEATO
728TWOPI
729CIRCO
730GV
731DOTTY
732PERL
733HAVE_PERL
734INSTALL_PROGRAM
735INSTALL_SCRIPT
736INSTALL_DATA
737BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000738CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739DOXYGEN
740GROFF
741GZIP
742POD2HTML
743POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000744PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000745RUNTEST
746TCLSH
747ZIP
748OCAMLC
749OCAMLOPT
750OCAMLDEP
751OCAMLDOC
752GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000753HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000754INSTALL_LTDL_TRUE
755INSTALL_LTDL_FALSE
756CONVENIENCE_LTDL_TRUE
757CONVENIENCE_LTDL_FALSE
758LIBADD_DL
759LLVMGCCCOMMAND
760LLVMGXXCOMMAND
761LLVMGCC
762LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000763LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000764NO_VARIADIC_MACROS
765NO_MISSING_FIELD_INITIALIZERS
766USE_UDIS86
767USE_OPROFILE
768HAVE_PTHREAD
769HUGE_VAL_SANITY
770MMAP_FILE
771LLVMCC1
772LLVMCC1PLUS
773LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774LLVMGCC_LANGS
775SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000776SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000777LLVM_PREFIX
778LLVM_BINDIR
779LLVM_LIBDIR
780LLVM_DATADIR
781LLVM_DOCSDIR
782LLVM_ETCDIR
783LLVM_INCLUDEDIR
784LLVM_INFODIR
785LLVM_MANDIR
786LLVM_CONFIGTIME
787BINDINGS_TO_BUILD
788ALL_BINDINGS
789OCAML_LIBDIR
790ENABLE_VISIBILITY_INLINES_HIDDEN
791RPATH
792RDYNAMIC
793LIBOBJS
794LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000795ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000796 ac_precious_vars='build_alias
797host_alias
798target_alias
799CC
800CFLAGS
801LDFLAGS
802CPPFLAGS
803CPP
804CXX
805CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000806CCC'
John Criswell0157f502010-03-19 21:31:39 +0000807ac_subdirs_all='projects/llvm-gcc
808projects/test-suite
809projects/llvm-test
810projects/poolalloc
811projects/llvm-poolalloc
812projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000814projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/llvm-java
817projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000818projects/safecode
Reid Spencera773bd52006-08-04 18:18:08 +0000819projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000846# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000855includedir='${prefix}/include'
856oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000866
867ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000868ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000869for ac_option
870do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000873 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000874 ac_prev=
875 continue
876 fi
877
Reid Spencera773bd52006-08-04 18:18:08 +0000878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
John Criswell7a73b802003-06-30 21:59:07 +0000882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
Reid Spencera773bd52006-08-04 18:18:08 +0000885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000910 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000912 datadir=$ac_optarg ;;
913
Reid Spencera773bd52006-08-04 18:18:08 +0000914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
John Criswell7a73b802003-06-30 21:59:07 +0000921 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000923 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000939
940 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000942 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
Reid Spencera773bd52006-08-04 18:18:08 +0000974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
John Criswell7a73b802003-06-30 21:59:07 +0000980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
Reid Spencera773bd52006-08-04 18:18:08 +00001004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
John Criswell7a73b802003-06-30 21:59:07 +00001009 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001010 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
Reid Spencera773bd52006-08-04 18:18:08 +00001078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
John Criswell7a73b802003-06-30 21:59:07 +00001088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1097
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1108
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1113
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1118
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1125
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1130
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1133
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1136
1137 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001139 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001145
1146 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001148 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001184 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 ;;
1194
1195 esac
1196done
1197
1198if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001202fi
1203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001204# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001205for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001209do
Reid Spencera773bd52006-08-04 18:18:08 +00001210 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001211 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001214 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001217done
1218
1219# There might be people who depend on the old broken behavior: `$host'
1220# used to hold the argument of --host etc.
1221# FIXME: To remove some day.
1222build=$build_alias
1223host=$host_alias
1224target=$target_alias
1225
1226# FIXME: To remove some day.
1227if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
Reid Spencera773bd52006-08-04 18:18:08 +00001243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001248test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001251
1252
John Criswell7a73b802003-06-30 21:59:07 +00001253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001256 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 ac_confdir=`$as_dirname -- "$0" ||
1258$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)[^/].*/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\).*/{
1276 s//\1/
1277 q
1278 }
1279 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001280 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001281 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001282 srcdir=..
1283 fi
1284else
1285 ac_srcdir_defaulted=no
1286fi
Reid Spencera773bd52006-08-04 18:18:08 +00001287if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001291fi
Reid Spencera773bd52006-08-04 18:18:08 +00001292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001296 pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
John Criswell7a73b802003-06-30 21:59:07 +00001313
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001321\`configure' configures llvm 2.8svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
John Criswell7a73b802003-06-30 21:59:07 +00001341Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001345 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001374_ACEOF
1375
1376 cat <<\_ACEOF
1377
1378System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386 case $ac_init_help in
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001387 short | recursive ) echo "Configuration of llvm 2.8svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001388 esac
1389 cat <<\_ACEOF
1390
1391Optional Features:
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001394 --enable-optimized Compile with optimizations enabled (default is NO)
1395 --enable-profiling Compile with profiling enabled (default is NO)
1396 --enable-assertions Compile with assertion checks enabled (default is
1397 YES)
David Greenea696d242007-06-28 19:36:08 +00001398 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001399 Compile with expensive debug checks enabled (default
1400 is NO)
1401 --enable-debug-runtime Build runtime libs with debug symbols (default is
1402 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001403 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1404 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001405 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001406 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001407 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001408 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001409 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001410 --enable-shared Build a shared library and link tools against it
1411 (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001412 --enable-timestamps Enable embedding timestamp information in build
1413 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001414 --enable-targets Build specific host targets: all or
1415 target1,target2,... Valid targets are: host, x86,
1416 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher753f3262010-08-30 18:34:48 +00001417 pic16, xcore, msp430, systemz, blackfin, cbe, and
1418 cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001419 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1420 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001421 --enable-bindings Build specific language bindings:
1422 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001423 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001424 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001425
1426Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1430 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001431 --with-llvmgcc Specify location of llvm-gcc driver (default
1432 searches PATH)
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1434 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001435 --with-clang Specify location of clang compiler (default is
1436 --with-built-clang)
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1438 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001439 --with-optimize-option Select the compiler options to use for optimized
1440 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001441 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1443 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001444 --with-c-include-dirs Colon separated list of directories clang will
1445 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001454 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001457 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001460
1461Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001462 CC C compiler command
1463 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001467 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001468 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to <llvmbugs@cs.uiuc.edu>.
1476_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001477ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001483 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001484 ac_builddir=.
1485
Reid Spencera773bd52006-08-04 18:18:08 +00001486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001490 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001501
1502case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001503 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001508 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001515esac
Reid Spencera773bd52006-08-04 18:18:08 +00001516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001517
Reid Spencera773bd52006-08-04 18:18:08 +00001518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001526 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001530 done
1531fi
1532
Reid Spencera773bd52006-08-04 18:18:08 +00001533test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001534if $ac_init_version; then
1535 cat <<\_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001536llvm configure 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001539Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15402002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001543
John Criswell5a129712010-03-19 21:04:16 +00001544Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001545_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001546 exit
John Criswell7a73b802003-06-30 21:59:07 +00001547fi
Reid Spencera773bd52006-08-04 18:18:08 +00001548cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001549This file contains any messages produced by compilers while
1550running configure, to aid debugging if configure makes a mistake.
1551
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001552It was created by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001553generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001554
1555 $ $0 $@
1556
1557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001558exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001559{
1560cat <<_ASUNAME
1561## --------- ##
1562## Platform. ##
1563## --------- ##
1564
1565hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573
1574/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001577/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001578/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581
1582_ASUNAME
1583
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001589 echo "PATH: $as_dir"
1590done
Reid Spencera773bd52006-08-04 18:18:08 +00001591IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001592
1593} >&5
1594
1595cat >&5 <<_ACEOF
1596
1597
1598## ----------- ##
1599## Core tests. ##
1600## ----------- ##
1601
1602_ACEOF
1603
1604
1605# Keep a trace of the command line.
1606# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001607# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001608# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001609# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001610ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001611ac_configure_args0=
1612ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001613ac_must_keep_next=false
1614for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001615do
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 for ac_arg
1617 do
1618 case $ac_arg in
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1622 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001623 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 esac
1626 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001631 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001633 case $ac_arg in
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 esac
1641 ;;
1642 -* ) ac_must_keep_next=true ;;
1643 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ;;
1647 esac
1648 done
John Criswell7a73b802003-06-30 21:59:07 +00001649done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001650$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001652
1653# When interrupted or exit'd, cleanup temporary files, and complete
1654# config.log. We remove comments because anyway the quotes in there
1655# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001656# WARNING: Use '\'' to represent an apostrophe within the trap.
1657# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001658trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1660 {
1661 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001662
John Criswell7a73b802003-06-30 21:59:07 +00001663 cat <<\_ASBOX
1664## ---------------- ##
1665## Cache variables. ##
1666## ---------------- ##
1667_ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001670(
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1673 case $ac_val in #(
1674 *${as_nl}*)
1675 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001681 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001682 esac ;;
1683 esac
1684 done
John Criswell7a73b802003-06-30 21:59:07 +00001685 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001688 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001692 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001694 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001695 esac |
1696 sort
1697)
John Criswell7a73b802003-06-30 21:59:07 +00001698 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001699
1700 cat <<\_ASBOX
1701## ----------------- ##
1702## Output variables. ##
1703## ----------------- ##
1704_ASBOX
1705 echo
1706 for ac_var in $ac_subst_vars
1707 do
Reid Spencera773bd52006-08-04 18:18:08 +00001708 eval ac_val=\$$ac_var
1709 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001711 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001712 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 done | sort
1714 echo
1715
1716 if test -n "$ac_subst_files"; then
1717 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001718## ------------------- ##
1719## File substitutions. ##
1720## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001721_ASBOX
1722 echo
1723 for ac_var in $ac_subst_files
1724 do
Reid Spencera773bd52006-08-04 18:18:08 +00001725 eval ac_val=\$$ac_var
1726 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001728 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001729 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 done | sort
1731 echo
1732 fi
1733
John Criswell7a73b802003-06-30 21:59:07 +00001734 if test -s confdefs.h; then
1735 cat <<\_ASBOX
1736## ----------- ##
1737## confdefs.h. ##
1738## ----------- ##
1739_ASBOX
1740 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001741 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001742 echo
1743 fi
1744 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001747 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001750 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001751' 0
John Criswell7a73b802003-06-30 21:59:07 +00001752for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001754done
1755ac_signal=0
1756
1757# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001758rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001759
1760# Predefined preprocessor variables.
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_NAME "$PACKAGE_NAME"
1764_ACEOF
1765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001766
John Criswell7a73b802003-06-30 21:59:07 +00001767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769_ACEOF
1770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771
John Criswell7a73b802003-06-30 21:59:07 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_VERSION "$PACKAGE_VERSION"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_STRING "$PACKAGE_STRING"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784_ACEOF
1785
1786
1787# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001789if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001791elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797shift
1798for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001799do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001803 sed 's/^/| /' "$ac_site_file" >&5
1804 . "$ac_site_file"
1805 fi
1806done
1807
1808if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001814 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001817 esac
1818 fi
1819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001822 >$cache_file
1823fi
1824
1825# Check that the precious variables saved in the cache have kept the same
1826# value.
1827ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001828for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001833 case $ac_old_set,$ac_new_set in
1834 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 ac_cache_corrupted=: ;;
1838 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001841 ac_cache_corrupted=: ;;
1842 ,);;
1843 *)
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001852 fi;;
1853 esac
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1856 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001858 *) ac_arg=$ac_var=$ac_new_val ;;
1859 esac
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001863 esac
1864 fi
1865done
1866if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
Reid Spencera773bd52006-08-04 18:18:08 +00001897
John Criswell7a73b802003-06-30 21:59:07 +00001898ac_ext=c
1899ac_cpp='$CPP $CPPFLAGS'
1900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
John Criswell5a129712010-03-19 21:04:16 +00001906LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001907
1908
1909
1910
1911
1912
1913
John Criswell7a73b802003-06-30 21:59:07 +00001914ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001915for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001916 if test -f "$ac_dir/install-sh"; then
1917 ac_aux_dir=$ac_dir
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 break
1920 elif test -f "$ac_dir/install.sh"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 break
1924 elif test -f "$ac_dir/shtool"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 break
1928 fi
John Criswell7a73b802003-06-30 21:59:07 +00001929done
1930if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001934fi
Reid Spencera773bd52006-08-04 18:18:08 +00001935
1936# These three variables are undocumented and unsupported,
1937# and are intended to be withdrawn in a future Autoconf release.
1938# They can cause serious problems if a builder's source tree is in a directory
1939# whose full name contains unusual characters.
1940ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943
John Criswell7a73b802003-06-30 21:59:07 +00001944
John Criswell392aaa32003-07-22 19:18:09 +00001945
Reid Spencer2706f8c2004-09-19 23:53:36 +00001946if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001951 fi
John Criswell93e1c722003-09-15 17:04:06 +00001952fi
1953
John Criswell0157f502010-03-19 21:31:39 +00001954
1955
1956if test -d ${srcdir}/projects/llvm-gcc ; then
1957 subdirs="$subdirs projects/llvm-gcc"
1958
1959fi
1960
1961if test -d ${srcdir}/projects/test-suite ; then
1962 subdirs="$subdirs projects/test-suite"
1963
1964fi
1965
1966if test -d ${srcdir}/projects/llvm-test ; then
1967 subdirs="$subdirs projects/llvm-test"
1968
1969fi
1970
1971if test -d ${srcdir}/projects/poolalloc ; then
1972 subdirs="$subdirs projects/poolalloc"
1973
1974fi
1975
1976if test -d ${srcdir}/projects/llvm-poolalloc ; then
1977 subdirs="$subdirs projects/llvm-poolalloc"
1978
1979fi
1980
John Criswell33a911a2003-11-25 20:36:46 +00001981for i in `ls ${srcdir}/projects`
1982do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001983 if test -d ${srcdir}/projects/${i} ; then
1984 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001985 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001986 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001987 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001988 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001989 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001990 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001991 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001992;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001993 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001994 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001995 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001996 ;;
John Criswell7def2932010-02-25 22:57:19 +00001997 safecode) subdirs="$subdirs projects/safecode"
1998 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001999 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002000 ;;
John Criswell52c02862010-03-25 13:59:09 +00002001 llvm-gcc) ;;
2002 test-suite) ;;
2003 llvm-test) ;;
2004 poolalloc) ;;
2005 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002006 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002007 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2008echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002009 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002010 esac
John Criswell33a911a2003-11-25 20:36:46 +00002011 fi
2012done
John Criswell559a6c12003-09-30 16:31:48 +00002013
John Criswell7a73b802003-06-30 21:59:07 +00002014
2015# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002016$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002017 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002021{ echo "$as_me:$LINENO: checking build system type" >&5
2022echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2023if test "${ac_cv_build+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002025else
Reid Spencera773bd52006-08-04 18:18:08 +00002026 ac_build_alias=$build_alias
2027test "x$ac_build_alias" = x &&
2028 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2029test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002030 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002033ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002037
2038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002039{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002041case $ac_cv_build in
2042*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044echo "$as_me: error: invalid value of canonical build" >&2;}
2045 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002046esac
John Criswell7a73b802003-06-30 21:59:07 +00002047build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002048ac_save_IFS=$IFS; IFS='-'
2049set x $ac_cv_build
2050shift
2051build_cpu=$1
2052build_vendor=$2
2053shift; shift
2054# Remember, the first character of IFS is used to create $*,
2055# except with old shells:
2056build_os=$*
2057IFS=$ac_save_IFS
2058case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002059
2060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002061{ echo "$as_me:$LINENO: checking host system type" >&5
2062echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2063if test "${ac_cv_host+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002065else
Reid Spencera773bd52006-08-04 18:18:08 +00002066 if test "x$host_alias" = x; then
2067 ac_cv_host=$ac_cv_build
2068else
2069 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002070 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002073fi
John Criswell7a73b802003-06-30 21:59:07 +00002074
2075fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002078case $ac_cv_host in
2079*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002080*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081echo "$as_me: error: invalid value of canonical host" >&2;}
2082 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002083esac
John Criswell7a73b802003-06-30 21:59:07 +00002084host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002085ac_save_IFS=$IFS; IFS='-'
2086set x $ac_cv_host
2087shift
2088host_cpu=$1
2089host_vendor=$2
2090shift; shift
2091# Remember, the first character of IFS is used to create $*,
2092# except with old shells:
2093host_os=$*
2094IFS=$ac_save_IFS
2095case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002096
2097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002098{ echo "$as_me:$LINENO: checking target system type" >&5
2099echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2100if test "${ac_cv_target+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002102else
Reid Spencera773bd52006-08-04 18:18:08 +00002103 if test "x$target_alias" = x; then
2104 ac_cv_target=$ac_cv_host
2105else
2106 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2108echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002110fi
John Criswell7a73b802003-06-30 21:59:07 +00002111
2112fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002113{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2114echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002115case $ac_cv_target in
2116*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002117*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2118echo "$as_me: error: invalid value of canonical target" >&2;}
2119 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002120esac
John Criswell7a73b802003-06-30 21:59:07 +00002121target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002122ac_save_IFS=$IFS; IFS='-'
2123set x $ac_cv_target
2124shift
2125target_cpu=$1
2126target_vendor=$2
2127shift; shift
2128# Remember, the first character of IFS is used to create $*,
2129# except with old shells:
2130target_os=$*
2131IFS=$ac_save_IFS
2132case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002133
2134
2135# The aliases save the names the user supplied, while $host etc.
2136# will get canonicalized.
2137test -n "$target_alias" &&
2138 test "$program_prefix$program_suffix$program_transform_name" = \
2139 NONENONEs,x,x, &&
2140 program_prefix=${target_alias}-
2141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002142{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2143echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2144if test "${llvm_cv_os_type+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002146else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002147 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002148 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002149 llvm_cv_link_all_option="-Wl,--whole-archive"
2150 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002151 llvm_cv_os_type="AIX"
2152 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002153 *-*-irix*)
2154 llvm_cv_link_all_option="-Wl,--whole-archive"
2155 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2156 llvm_cv_os_type="IRIX"
2157 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002158 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002159 llvm_cv_link_all_option="-Wl,--whole-archive"
2160 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002161 llvm_cv_os_type="Cygwin"
2162 llvm_cv_platform_type="Unix" ;;
2163 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002164 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002165 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002166 llvm_cv_os_type="Darwin"
2167 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002168 *-*-minix*)
2169 llvm_cv_link_all_option="-Wl,-all_load"
2170 llvm_cv_no_link_all_option="-Wl,-noall_load"
2171 llvm_cv_os_type="Minix"
2172 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002173 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002174 llvm_cv_link_all_option="-Wl,--whole-archive"
2175 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002176 llvm_cv_os_type="FreeBSD"
2177 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002178 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002179 llvm_cv_link_all_option="-Wl,--whole-archive"
2180 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002181 llvm_cv_os_type="OpenBSD"
2182 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002183 *-*-netbsd*)
2184 llvm_cv_link_all_option="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186 llvm_cv_os_type="NetBSD"
2187 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002188 *-*-dragonfly*)
2189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191 llvm_cv_os_type="DragonFly"
2192 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002193 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002196 llvm_cv_os_type="HP-UX"
2197 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002198 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002201 llvm_cv_os_type="Interix"
2202 llvm_cv_platform_type="Unix" ;;
2203 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002204 llvm_cv_link_all_option="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002206 llvm_cv_os_type="Linux"
2207 llvm_cv_platform_type="Unix" ;;
2208 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002209 llvm_cv_link_all_option="-Wl,-z,allextract"
2210 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002211 llvm_cv_os_type="SunOS"
2212 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002213 *-*-auroraux*)
2214 llvm_cv_link_all_option="-Wl,-z,allextract"
2215 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2216 llvm_cv_os_type="AuroraUX"
2217 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002218 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002221 llvm_cv_os_type="Win32"
2222 llvm_cv_platform_type="Win32" ;;
2223 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002226 llvm_cv_os_type="MingW"
2227 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002228 *-*-haiku*)
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="Haiku"
2232 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002233 *-unknown-eabi*)
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="Freestanding"
2237 llvm_cv_platform_type="Unix" ;;
2238 *-unknown-elf*)
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="Freestanding"
2242 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002243 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002244 llvm_cv_link_all_option=""
2245 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246 llvm_cv_os_type="Unknown"
2247 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002248esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002249fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002250{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2251echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002253{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2254echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2255if test "${llvm_cv_target_os_type+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002257else
2258 case $target in
2259 *-*-aix*)
2260 llvm_cv_target_os_type="AIX" ;;
2261 *-*-irix*)
2262 llvm_cv_target_os_type="IRIX" ;;
2263 *-*-cygwin*)
2264 llvm_cv_target_os_type="Cygwin" ;;
2265 *-*-darwin*)
2266 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002267 *-*-minix*)
2268 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002269 *-*-freebsd*)
2270 llvm_cv_target_os_type="FreeBSD" ;;
2271 *-*-openbsd*)
2272 llvm_cv_target_os_type="OpenBSD" ;;
2273 *-*-netbsd*)
2274 llvm_cv_target_os_type="NetBSD" ;;
2275 *-*-dragonfly*)
2276 llvm_cv_target_os_type="DragonFly" ;;
2277 *-*-hpux*)
2278 llvm_cv_target_os_type="HP-UX" ;;
2279 *-*-interix*)
2280 llvm_cv_target_os_type="Interix" ;;
2281 *-*-linux*)
2282 llvm_cv_target_os_type="Linux" ;;
2283 *-*-solaris*)
2284 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002285 *-*-auroraux*)
2286 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002287 *-*-win32*)
2288 llvm_cv_target_os_type="Win32" ;;
2289 *-*-mingw*)
2290 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002291 *-*-haiku*)
2292 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002293 *-unknown-eabi*)
2294 llvm_cv_target_os_type="Freestanding" ;;
2295 *)
2296 llvm_cv_target_os_type="Unknown" ;;
2297esac
2298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002299{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2300echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002301
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002303 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2304echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2305 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002306fi
2307
Reid Spencer7b3e8512004-12-24 06:29:05 +00002308OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002309
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002310HOST_OS=$llvm_cv_os_type
2311
2312TARGET_OS=$llvm_cv_target_os_type
2313
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002314
Reid Spencera773bd52006-08-04 18:18:08 +00002315LINKALL=$llvm_cv_link_all_option
2316
2317NOLINKALL=$llvm_cv_no_link_all_option
2318
2319
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320case $llvm_cv_platform_type in
2321 Unix)
2322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002323cat >>confdefs.h <<\_ACEOF
2324#define LLVM_ON_UNIX 1
2325_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002327 LLVM_ON_UNIX=1
2328
2329 LLVM_ON_WIN32=0
2330
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331 ;;
2332 Win32)
2333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002334cat >>confdefs.h <<\_ACEOF
2335#define LLVM_ON_WIN32 1
2336_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002337
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002338 LLVM_ON_UNIX=0
2339
2340 LLVM_ON_WIN32=1
2341
Reid Spencer7b3e8512004-12-24 06:29:05 +00002342 ;;
2343esac
2344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002345{ echo "$as_me:$LINENO: checking target architecture" >&5
2346echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2347if test "${llvm_cv_target_arch+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002349else
2350 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002351 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002352 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002353 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2354 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002355 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002356 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002357 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002358 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002359 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002360 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002361 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002362 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002363 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002364 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002365esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002366fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002367{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2368echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002369
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002370if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002371 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2372echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002373fi
John Criswell76595452003-07-01 22:07:39 +00002374
Nick Lewycky83fc4472009-09-29 05:48:51 +00002375# Determine the LLVM native architecture for the target
2376case "$llvm_cv_target_arch" in
2377 x86) LLVM_NATIVE_ARCH="X86" ;;
2378 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2379 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2380esac
2381
2382ARCH=$llvm_cv_target_arch
2383
2384
2385ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002386ac_cpp='$CPP $CPPFLAGS'
2387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002390if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2392set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395if test "${ac_cv_prog_CC+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397else
2398 if test -n "$CC"; then
2399 ac_cv_prog_CC="$CC" # Let the user override the test.
2400else
2401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402for as_dir in $PATH
2403do
2404 IFS=$as_save_IFS
2405 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002410 break 2
2411 fi
2412done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002413done
Reid Spencera773bd52006-08-04 18:18:08 +00002414IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415
2416fi
2417fi
2418CC=$ac_cv_prog_CC
2419if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002420 { echo "$as_me:$LINENO: result: $CC" >&5
2421echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002423 { echo "$as_me:$LINENO: result: no" >&5
2424echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002425fi
2426
Reid Spencera773bd52006-08-04 18:18:08 +00002427
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428fi
2429if test -z "$ac_cv_prog_CC"; then
2430 ac_ct_CC=$CC
2431 # Extract the first word of "gcc", so it can be a program name with args.
2432set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437else
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2440else
2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450 break 2
2451 fi
2452done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002453done
Reid Spencera773bd52006-08-04 18:18:08 +00002454IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002455
2456fi
2457fi
2458ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002460 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002462else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002463 { echo "$as_me:$LINENO: result: no" >&5
2464echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002465fi
2466
Reid Spencera773bd52006-08-04 18:18:08 +00002467 if test "x$ac_ct_CC" = x; then
2468 CC=""
2469 else
2470 case $cross_compiling:$ac_tool_warned in
2471yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002472{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2473whose name does not start with the host triplet. If you think this
2474configuration is useful to you, please write to autoconf@gnu.org." >&5
2475echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2476whose name does not start with the host triplet. If you think this
2477configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002478ac_tool_warned=yes ;;
2479esac
2480 CC=$ac_ct_CC
2481 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002482else
2483 CC="$ac_cv_prog_CC"
2484fi
2485
2486if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002489set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002494else
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2497else
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002505 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002507 break 2
2508 fi
2509done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002510done
Reid Spencera773bd52006-08-04 18:18:08 +00002511IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002512
2513fi
2514fi
2515CC=$ac_cv_prog_CC
2516if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002517 { echo "$as_me:$LINENO: result: $CC" >&5
2518echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002519else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002520 { echo "$as_me:$LINENO: result: no" >&5
2521echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002522fi
2523
Reid Spencera773bd52006-08-04 18:18:08 +00002524
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002525 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526fi
2527if test -z "$CC"; then
2528 # Extract the first word of "cc", so it can be a program name with args.
2529set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002534else
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2537else
2538 ac_prog_rejected=no
2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2547 ac_prog_rejected=yes
2548 continue
2549 fi
2550 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002552 break 2
2553 fi
2554done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002555done
Reid Spencera773bd52006-08-04 18:18:08 +00002556IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557
2558if test $ac_prog_rejected = yes; then
2559 # We found a bogon in the path, so make sure we never use it.
2560 set dummy $ac_cv_prog_CC
2561 shift
2562 if test $# != 0; then
2563 # We chose a different compiler from the bogus one.
2564 # However, it has the same basename, so the bogon will be chosen
2565 # first if we set CC to just the basename; use the full file name.
2566 shift
2567 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2568 fi
2569fi
2570fi
2571fi
2572CC=$ac_cv_prog_CC
2573if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002574 { echo "$as_me:$LINENO: result: $CC" >&5
2575echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002576else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002577 { echo "$as_me:$LINENO: result: no" >&5
2578echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002579fi
2580
Reid Spencera773bd52006-08-04 18:18:08 +00002581
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002582fi
2583if test -z "$CC"; then
2584 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002585 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002586 do
2587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2588set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591if test "${ac_cv_prog_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002593else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002596else
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002606 break 2
2607 fi
2608done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002609done
Reid Spencera773bd52006-08-04 18:18:08 +00002610IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002611
2612fi
2613fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614CC=$ac_cv_prog_CC
2615if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002616 { echo "$as_me:$LINENO: result: $CC" >&5
2617echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002619 { echo "$as_me:$LINENO: result: no" >&5
2620echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002621fi
2622
Reid Spencera773bd52006-08-04 18:18:08 +00002623
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002625 done
2626fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627if test -z "$CC"; then
2628 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002629 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002630do
2631 # Extract the first word of "$ac_prog", so it can be a program name with args.
2632set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002637else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002638 if test -n "$ac_ct_CC"; then
2639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002648 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002650 break 2
2651 fi
2652done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002653done
Reid Spencera773bd52006-08-04 18:18:08 +00002654IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002655
2656fi
2657fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658ac_ct_CC=$ac_cv_prog_ac_ct_CC
2659if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002660 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2661echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002662else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002663 { echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002665fi
2666
Reid Spencera773bd52006-08-04 18:18:08 +00002667
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002668 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002669done
John Criswell7a73b802003-06-30 21:59:07 +00002670
Reid Spencera773bd52006-08-04 18:18:08 +00002671 if test "x$ac_ct_CC" = x; then
2672 CC=""
2673 else
2674 case $cross_compiling:$ac_tool_warned in
2675yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002676{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2677whose name does not start with the host triplet. If you think this
2678configuration is useful to you, please write to autoconf@gnu.org." >&5
2679echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2680whose name does not start with the host triplet. If you think this
2681configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002682ac_tool_warned=yes ;;
2683esac
2684 CC=$ac_ct_CC
2685 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002686fi
2687
John Criswell7a73b802003-06-30 21:59:07 +00002688fi
2689
2690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002691test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2692See \`config.log' for more details." >&5
2693echo "$as_me: error: no acceptable C compiler found in \$PATH
2694See \`config.log' for more details." >&2;}
2695 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002696
John Criswell7a73b802003-06-30 21:59:07 +00002697# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002698echo "$as_me:$LINENO: checking for C compiler version" >&5
2699ac_compiler=`set X $ac_compile; echo $2`
2700{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002701case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002707 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710{ (ac_try="$ac_compiler -v >&5"
2711case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714esac
2715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compiler -v >&5") 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2720{ (ac_try="$ac_compiler -V >&5"
2721case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724esac
2725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_compiler -V >&5") 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002731cat >conftest.$ac_ext <<_ACEOF
2732/* confdefs.h. */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002736/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002737
John Criswell7a73b802003-06-30 21:59:07 +00002738int
2739main ()
2740{
2741
2742 ;
2743 return 0;
2744}
2745_ACEOF
2746ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002748# Try to create an executable without -o first, disregard a.out.
2749# It will help us diagnose broken compilers, and finding out an intuition
2750# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002751{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2752echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2753ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2754#
2755# List of possible output files, starting from the most likely.
2756# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2757# only as a last resort. b.out is created by i960 compilers.
2758ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2759#
2760# The IRIX 6 linker writes into existing files which may not be
2761# executable, retaining their permissions. Remove them first so a
2762# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002763ac_rmfiles=
2764for ac_file in $ac_files
2765do
2766 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002768 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2769 esac
2770done
2771rm -f $ac_rmfiles
2772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002773if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002774case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002779 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002780 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002783 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2784# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2785# in a Makefile. We should not override ac_cv_exeext if it was cached,
2786# so that the user can short-circuit this test for compilers unknown to
2787# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002788for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002789do
2790 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002791 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002793 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002794 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002795 # We found the default executable, but exeext='' is most
2796 # certainly right.
2797 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002798 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002799 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002800 then :; else
2801 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2802 fi
2803 # We set ac_cv_exeext here because the later test for it is not
2804 # safe: cross compilers may not add the suffix if given an `-o'
2805 # argument, so we may need to know it at that point already.
2806 # Even if this section looks crufty: it has the advantage of
2807 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002808 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002809 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002810 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002811 esac
2812done
Reid Spencera773bd52006-08-04 18:18:08 +00002813test "$ac_cv_exeext" = no && ac_cv_exeext=
2814
John Criswell7a73b802003-06-30 21:59:07 +00002815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002816 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002817sed 's/^/| /' conftest.$ac_ext >&5
2818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002819{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2820See \`config.log' for more details." >&5
2821echo "$as_me: error: C compiler cannot create executables
2822See \`config.log' for more details." >&2;}
2823 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002824fi
John Criswell7a73b802003-06-30 21:59:07 +00002825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002826ac_exeext=$ac_cv_exeext
2827{ echo "$as_me:$LINENO: result: $ac_file" >&5
2828echo "${ECHO_T}$ac_file" >&6; }
2829
2830# Check that the compiler produces executables we can run. If not, either
2831# the compiler is broken, or we cross compile.
2832{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2833echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2834# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2835# If not cross compiling, check that we can run a simple program.
2836if test "$cross_compiling" != yes; then
2837 if { ac_try='./$ac_file'
2838 { (case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841esac
2842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_try") 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 cross_compiling=no
2848 else
2849 if test "$cross_compiling" = maybe; then
2850 cross_compiling=yes
2851 else
2852 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2853If you meant to cross compile, use \`--host'.
2854See \`config.log' for more details." >&5
2855echo "$as_me: error: cannot run C compiled programs.
2856If you meant to cross compile, use \`--host'.
2857See \`config.log' for more details." >&2;}
2858 { (exit 1); exit 1; }; }
2859 fi
2860 fi
2861fi
2862{ echo "$as_me:$LINENO: result: yes" >&5
2863echo "${ECHO_T}yes" >&6; }
2864
2865rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002866ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002867# Check that the compiler produces executables we can run. If not, either
2868# the compiler is broken, or we cross compile.
2869{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2870echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2871{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2872echo "${ECHO_T}$cross_compiling" >&6; }
2873
2874{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2875echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2876if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002877case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002882 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002883 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2887# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2888# work properly (i.e., refer to `conftest.exe'), while it won't with
2889# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002890for ac_file in conftest.exe conftest conftest.*; do
2891 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002892 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002895 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002896 * ) break;;
2897 esac
2898done
2899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2901See \`config.log' for more details." >&5
2902echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2903See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002905fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002906
2907rm -f conftest$ac_cv_exeext
2908{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2909echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002910
2911rm -f conftest.$ac_ext
2912EXEEXT=$ac_cv_exeext
2913ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002914{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2915echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2916if test "${ac_cv_objext+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002918else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002919 cat >conftest.$ac_ext <<_ACEOF
2920/* confdefs.h. */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002924/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002925
John Criswell7a73b802003-06-30 21:59:07 +00002926int
2927main ()
2928{
2929
2930 ;
2931 return 0;
2932}
2933_ACEOF
2934rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002935if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002936case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002941 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002942 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002945 for ac_file in conftest.o conftest.obj conftest.*; do
2946 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002947 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2950 break;;
2951 esac
2952done
2953else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002954 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002955sed 's/^/| /' conftest.$ac_ext >&5
2956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002957{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2958See \`config.log' for more details." >&5
2959echo "$as_me: error: cannot compute suffix of object files: cannot compile
2960See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002962fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002963
John Criswell7a73b802003-06-30 21:59:07 +00002964rm -f conftest.$ac_cv_objext conftest.$ac_ext
2965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002966{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2967echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002968OBJEXT=$ac_cv_objext
2969ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002970{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2971echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2972if test "${ac_cv_c_compiler_gnu+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002974else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002975 cat >conftest.$ac_ext <<_ACEOF
2976/* confdefs.h. */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002980/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002981
John Criswell7a73b802003-06-30 21:59:07 +00002982int
2983main ()
2984{
2985#ifndef __GNUC__
2986 choke me
2987#endif
2988
2989 ;
2990 return 0;
2991}
2992_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002993rm -f conftest.$ac_objext
2994if { (ac_try="$ac_compile"
2995case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998esac
2999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_compile") 2>conftest.er1
3001 ac_status=$?
3002 grep -v '^ *+' conftest.er1 >conftest.err
3003 rm -f conftest.er1
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } &&
3007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3008 { (case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011esac
3012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_try") 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; } &&
3017 { ac_try='test -s conftest.$ac_objext'
3018 { (case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021esac
3022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_try") 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003027 ac_compiler_gnu=yes
3028else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003029 echo "$as_me: failed program was:" >&5
3030sed 's/^/| /' conftest.$ac_ext >&5
3031
3032 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003034
Reid Spencera773bd52006-08-04 18:18:08 +00003035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003036ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003037
3038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003039{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3040echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3041GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003042ac_test_CFLAGS=${CFLAGS+set}
3043ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003044{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3045echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3046if test "${ac_cv_prog_cc_g+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003048else
Reid Spencera773bd52006-08-04 18:18:08 +00003049 ac_save_c_werror_flag=$ac_c_werror_flag
3050 ac_c_werror_flag=yes
3051 ac_cv_prog_cc_g=no
3052 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003053 cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h. */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003058/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003059
John Criswell7a73b802003-06-30 21:59:07 +00003060int
3061main ()
3062{
3063
3064 ;
3065 return 0;
3066}
3067_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003068rm -f conftest.$ac_objext
3069if { (ac_try="$ac_compile"
3070case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073esac
3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3076 ac_status=$?
3077 grep -v '^ *+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096esac
3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_try") 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003102 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003103else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003104 echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 CFLAGS=""
3108 cat >conftest.$ac_ext <<_ACEOF
3109/* confdefs.h. */
3110_ACEOF
3111cat confdefs.h >>conftest.$ac_ext
3112cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003113/* end confdefs.h. */
3114
3115int
3116main ()
3117{
3118
3119 ;
3120 return 0;
3121}
3122_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003123rm -f conftest.$ac_objext
3124if { (ac_try="$ac_compile"
3125case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3157 :
Torok Edwin871384f2010-01-26 08:50:50 +00003158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003159 echo "$as_me: failed program was:" >&5
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
3162 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003163 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003164 cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h. */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003169/* end confdefs.h. */
3170
3171int
3172main ()
3173{
3174
3175 ;
3176 return 0;
3177}
3178_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003179rm -f conftest.$ac_objext
3180if { (ac_try="$ac_compile"
3181case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184esac
3185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
3187 ac_status=$?
3188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3194 { (case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
3198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_try") 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
3208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_try") 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003213 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003214else
3215 echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218
John Criswell7a73b802003-06-30 21:59:07 +00003219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003220
Reid Spencera773bd52006-08-04 18:18:08 +00003221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003223
Reid Spencera773bd52006-08-04 18:18:08 +00003224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003226
Reid Spencera773bd52006-08-04 18:18:08 +00003227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 ac_c_werror_flag=$ac_save_c_werror_flag
3229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003230{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3231echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003232if test "$ac_test_CFLAGS" = set; then
3233 CFLAGS=$ac_save_CFLAGS
3234elif test $ac_cv_prog_cc_g = yes; then
3235 if test "$GCC" = yes; then
3236 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003237 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003238 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003239 fi
3240else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003241 if test "$GCC" = yes; then
3242 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003243 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003244 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003245 fi
3246fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003247{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3248echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3249if test "${ac_cv_prog_cc_c89+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003251else
Reid Spencera773bd52006-08-04 18:18:08 +00003252 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003253ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003254cat >conftest.$ac_ext <<_ACEOF
3255/* confdefs.h. */
3256_ACEOF
3257cat confdefs.h >>conftest.$ac_ext
3258cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259/* end confdefs.h. */
3260#include <stdarg.h>
3261#include <stdio.h>
3262#include <sys/types.h>
3263#include <sys/stat.h>
3264/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3265struct buf { int x; };
3266FILE * (*rcsopen) (struct buf *, struct stat *, int);
3267static char *e (p, i)
3268 char **p;
3269 int i;
3270{
3271 return p[i];
3272}
3273static char *f (char * (*g) (char **, int), char **p, ...)
3274{
3275 char *s;
3276 va_list v;
3277 va_start (v,p);
3278 s = g (p, va_arg (v,int));
3279 va_end (v);
3280 return s;
3281}
3282
3283/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3284 function prototypes and stuff, but not '\xHH' hex character constants.
3285 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003286 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003287 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3288 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003289 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003290int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3291
Reid Spencera773bd52006-08-04 18:18:08 +00003292/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3293 inside strings and character constants. */
3294#define FOO(x) 'x'
3295int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3296
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297int test (int i, double x);
3298struct s1 {int (*f) (int a);};
3299struct s2 {int (*f) (double a);};
3300int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3301int argc;
3302char **argv;
3303int
3304main ()
3305{
3306return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3307 ;
3308 return 0;
3309}
3310_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003311for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3312 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003313do
3314 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003315 rm -f conftest.$ac_objext
3316if { (ac_try="$ac_compile"
3317case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320esac
3321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3323 ac_status=$?
3324 grep -v '^ *+' conftest.er1 >conftest.err
3325 rm -f conftest.er1
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3330 { (case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333esac
3334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_try") 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; } &&
3339 { ac_try='test -s conftest.$ac_objext'
3340 { (case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343esac
3344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_try") 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003349 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003350else
3351 echo "$as_me: failed program was:" >&5
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
3354
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003356
Reid Spencera773bd52006-08-04 18:18:08 +00003357rm -f core conftest.err conftest.$ac_objext
3358 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003359done
Reid Spencera773bd52006-08-04 18:18:08 +00003360rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361CC=$ac_save_CC
3362
3363fi
Reid Spencera773bd52006-08-04 18:18:08 +00003364# AC_CACHE_VAL
3365case "x$ac_cv_prog_cc_c89" in
3366 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003367 { echo "$as_me:$LINENO: result: none needed" >&5
3368echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003369 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003370 { echo "$as_me:$LINENO: result: unsupported" >&5
3371echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003372 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003373 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003374 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3375echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003376esac
3377
John Criswell0c38eaf2003-09-10 15:17:25 +00003378
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379ac_ext=c
3380ac_cpp='$CPP $CPPFLAGS'
3381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384
3385
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386ac_ext=c
3387ac_cpp='$CPP $CPPFLAGS'
3388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003391{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3392echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003393# On Suns, sometimes $CPP names a directory.
3394if test -n "$CPP" && test -d "$CPP"; then
3395 CPP=
3396fi
3397if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003398 if test "${ac_cv_prog_CPP+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400else
3401 # Double quotes because CPP needs to be expanded
3402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3403 do
3404 ac_preproc_ok=false
3405for ac_c_preproc_warn_flag in '' yes
3406do
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410 # <limits.h> exists even on freestanding compilers.
3411 # On the NeXT, cc -E runs the code through the compiler's parser,
3412 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003413 cat >conftest.$ac_ext <<_ACEOF
3414/* confdefs.h. */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003418/* end confdefs.h. */
3419#ifdef __STDC__
3420# include <limits.h>
3421#else
3422# include <assert.h>
3423#endif
3424 Syntax error
3425_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003426if { (ac_try="$ac_cpp conftest.$ac_ext"
3427case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430esac
3431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3442 else
3443 ac_cpp_err=
3444 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003446 ac_cpp_err=yes
3447fi
3448if test -z "$ac_cpp_err"; then
3449 :
3450else
3451 echo "$as_me: failed program was:" >&5
3452sed 's/^/| /' conftest.$ac_ext >&5
3453
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003454 # Broken: fails on valid input.
3455continue
3456fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003457
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003458rm -f conftest.err conftest.$ac_ext
3459
Reid Spencera773bd52006-08-04 18:18:08 +00003460 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003461 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003462 cat >conftest.$ac_ext <<_ACEOF
3463/* confdefs.h. */
3464_ACEOF
3465cat confdefs.h >>conftest.$ac_ext
3466cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467/* end confdefs.h. */
3468#include <ac_nonexistent.h>
3469_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003470if { (ac_try="$ac_cpp conftest.$ac_ext"
3471case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474esac
3475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_c_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3486 else
3487 ac_cpp_err=
3488 fi
3489else
3490 ac_cpp_err=yes
3491fi
3492if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003493 # Broken: success on invalid input.
3494continue
3495else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003496 echo "$as_me: failed program was:" >&5
3497sed 's/^/| /' conftest.$ac_ext >&5
3498
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499 # Passes both tests.
3500ac_preproc_ok=:
3501break
3502fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003503
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003504rm -f conftest.err conftest.$ac_ext
3505
3506done
3507# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3508rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003509if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003510 break
3511fi
3512
3513 done
3514 ac_cv_prog_CPP=$CPP
3515
3516fi
3517 CPP=$ac_cv_prog_CPP
3518else
3519 ac_cv_prog_CPP=$CPP
3520fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003521{ echo "$as_me:$LINENO: result: $CPP" >&5
3522echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003523ac_preproc_ok=false
3524for ac_c_preproc_warn_flag in '' yes
3525do
3526 # Use a header file that comes with gcc, so configuring glibc
3527 # with a fresh cross-compiler works.
3528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3529 # <limits.h> exists even on freestanding compilers.
3530 # On the NeXT, cc -E runs the code through the compiler's parser,
3531 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003532 cat >conftest.$ac_ext <<_ACEOF
3533/* confdefs.h. */
3534_ACEOF
3535cat confdefs.h >>conftest.$ac_ext
3536cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003537/* end confdefs.h. */
3538#ifdef __STDC__
3539# include <limits.h>
3540#else
3541# include <assert.h>
3542#endif
3543 Syntax error
3544_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003545if { (ac_try="$ac_cpp conftest.$ac_ext"
3546case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549esac
3550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } >/dev/null; then
3558 if test -s conftest.err; then
3559 ac_cpp_err=$ac_c_preproc_warn_flag
3560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3561 else
3562 ac_cpp_err=
3563 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003564else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003565 ac_cpp_err=yes
3566fi
3567if test -z "$ac_cpp_err"; then
3568 :
3569else
3570 echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003573 # Broken: fails on valid input.
3574continue
3575fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003576
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003577rm -f conftest.err conftest.$ac_ext
3578
Reid Spencera773bd52006-08-04 18:18:08 +00003579 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003580 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003581 cat >conftest.$ac_ext <<_ACEOF
3582/* confdefs.h. */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586/* end confdefs.h. */
3587#include <ac_nonexistent.h>
3588_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003589if { (ac_try="$ac_cpp conftest.$ac_ext"
3590case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593esac
3594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3596 ac_status=$?
3597 grep -v '^ *+' conftest.er1 >conftest.err
3598 rm -f conftest.er1
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } >/dev/null; then
3602 if test -s conftest.err; then
3603 ac_cpp_err=$ac_c_preproc_warn_flag
3604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3605 else
3606 ac_cpp_err=
3607 fi
3608else
3609 ac_cpp_err=yes
3610fi
3611if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003612 # Broken: success on invalid input.
3613continue
3614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003615 echo "$as_me: failed program was:" >&5
3616sed 's/^/| /' conftest.$ac_ext >&5
3617
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003618 # Passes both tests.
3619ac_preproc_ok=:
3620break
3621fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003622
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003623rm -f conftest.err conftest.$ac_ext
3624
3625done
3626# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3627rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003628if $ac_preproc_ok; then
3629 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003630else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003631 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3632See \`config.log' for more details." >&5
3633echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3634See \`config.log' for more details." >&2;}
3635 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003636fi
3637
John Criswell7a73b802003-06-30 21:59:07 +00003638ac_ext=c
3639ac_cpp='$CPP $CPPFLAGS'
3640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643
John Criswell7a73b802003-06-30 21:59:07 +00003644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003645{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3646echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3647if test "${ac_cv_path_GREP+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003650 # Extract the first word of "grep ggrep" to use in msg output
3651if test -z "$GREP"; then
3652set dummy grep ggrep; ac_prog_name=$2
3653if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655else
Reid Spencera773bd52006-08-04 18:18:08 +00003656 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003657# Loop through the user's path and test for each of PROGNAME-LIST
3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003659for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003660do
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003663 for ac_prog in grep ggrep; do
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3666 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3667 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003668 # Check for GNU $ac_path_GREP
3669case `"$ac_path_GREP" --version 2>&1` in
3670*GNU*)
3671 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3672*)
3673 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003674 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003675 while :
3676 do
3677 cat "conftest.in" "conftest.in" >"conftest.tmp"
3678 mv "conftest.tmp" "conftest.in"
3679 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003680 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003681 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003683 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003684 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3685 # Best one so far, save it but keep looking for a better one
3686 ac_cv_path_GREP="$ac_path_GREP"
3687 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003688 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003689 # 10*(2^10) chars as input seems more than enough
3690 test $ac_count -gt 10 && break
3691 done
3692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3693esac
3694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003695
3696 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003697 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003698done
3699
3700done
Reid Spencera773bd52006-08-04 18:18:08 +00003701IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003702
3703
3704fi
3705
3706GREP="$ac_cv_path_GREP"
3707if test -z "$GREP"; then
3708 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3709echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3710 { (exit 1); exit 1; }; }
3711fi
3712
Reid Spencera773bd52006-08-04 18:18:08 +00003713else
3714 ac_cv_path_GREP=$GREP
3715fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003717
Reid Spencera773bd52006-08-04 18:18:08 +00003718fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003719{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3720echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003721 GREP="$ac_cv_path_GREP"
3722
3723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003724{ echo "$as_me:$LINENO: checking for egrep" >&5
3725echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3726if test "${ac_cv_path_EGREP+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003728else
3729 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3730 then ac_cv_path_EGREP="$GREP -E"
3731 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003732 # Extract the first word of "egrep" to use in msg output
3733if test -z "$EGREP"; then
3734set dummy egrep; ac_prog_name=$2
3735if test "${ac_cv_path_EGREP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737else
Reid Spencera773bd52006-08-04 18:18:08 +00003738 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003739# Loop through the user's path and test for each of PROGNAME-LIST
3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003741for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3742do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003745 for ac_prog in egrep; do
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3748 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3749 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003750 # Check for GNU $ac_path_EGREP
3751case `"$ac_path_EGREP" --version 2>&1` in
3752*GNU*)
3753 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3754*)
3755 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003756 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003757 while :
3758 do
3759 cat "conftest.in" "conftest.in" >"conftest.tmp"
3760 mv "conftest.tmp" "conftest.in"
3761 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003762 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003763 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003765 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003766 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3767 # Best one so far, save it but keep looking for a better one
3768 ac_cv_path_EGREP="$ac_path_EGREP"
3769 ac_path_EGREP_max=$ac_count
3770 fi
3771 # 10*(2^10) chars as input seems more than enough
3772 test $ac_count -gt 10 && break
3773 done
3774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3775esac
3776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003777
3778 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003779 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003780done
3781
3782done
Reid Spencera773bd52006-08-04 18:18:08 +00003783IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003784
3785
3786fi
3787
3788EGREP="$ac_cv_path_EGREP"
3789if test -z "$EGREP"; then
3790 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3791echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3792 { (exit 1); exit 1; }; }
3793fi
3794
Reid Spencera773bd52006-08-04 18:18:08 +00003795else
3796 ac_cv_path_EGREP=$EGREP
3797fi
3798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003799
Reid Spencera773bd52006-08-04 18:18:08 +00003800 fi
3801fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003802{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3803echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003804 EGREP="$ac_cv_path_EGREP"
3805
3806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003807{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3808echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3809if test "${ac_cv_header_stdc+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003811else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003812 cat >conftest.$ac_ext <<_ACEOF
3813/* confdefs.h. */
3814_ACEOF
3815cat confdefs.h >>conftest.$ac_ext
3816cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003817/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003818#include <stdlib.h>
3819#include <stdarg.h>
3820#include <string.h>
3821#include <float.h>
3822
John Criswell0c38eaf2003-09-10 15:17:25 +00003823int
3824main ()
3825{
3826
3827 ;
3828 return 0;
3829}
John Criswell7a73b802003-06-30 21:59:07 +00003830_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003831rm -f conftest.$ac_objext
3832if { (ac_try="$ac_compile"
3833case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3836esac
3837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_compile") 2>conftest.er1
3839 ac_status=$?
3840 grep -v '^ *+' conftest.er1 >conftest.err
3841 rm -f conftest.er1
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3846 { (case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_try") 2>&5
3852 ac_status=$?
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; } &&
3855 { ac_try='test -s conftest.$ac_objext'
3856 { (case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3859esac
3860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3861 (eval "$ac_try") 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003865 ac_cv_header_stdc=yes
3866else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003867 echo "$as_me: failed program was:" >&5
3868sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003871fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003872
Reid Spencera773bd52006-08-04 18:18:08 +00003873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003874
3875if test $ac_cv_header_stdc = yes; then
3876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003877 cat >conftest.$ac_ext <<_ACEOF
3878/* confdefs.h. */
3879_ACEOF
3880cat confdefs.h >>conftest.$ac_ext
3881cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003882/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003883#include <string.h>
3884
3885_ACEOF
3886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003887 $EGREP "memchr" >/dev/null 2>&1; then
3888 :
John Criswell7a73b802003-06-30 21:59:07 +00003889else
3890 ac_cv_header_stdc=no
3891fi
3892rm -f conftest*
3893
3894fi
3895
3896if test $ac_cv_header_stdc = yes; then
3897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003898 cat >conftest.$ac_ext <<_ACEOF
3899/* confdefs.h. */
3900_ACEOF
3901cat confdefs.h >>conftest.$ac_ext
3902cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003904#include <stdlib.h>
3905
3906_ACEOF
3907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003908 $EGREP "free" >/dev/null 2>&1; then
3909 :
John Criswell7a73b802003-06-30 21:59:07 +00003910else
3911 ac_cv_header_stdc=no
3912fi
3913rm -f conftest*
3914
3915fi
3916
3917if test $ac_cv_header_stdc = yes; then
3918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003919 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003920 :
3921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003922 cat >conftest.$ac_ext <<_ACEOF
3923/* confdefs.h. */
3924_ACEOF
3925cat confdefs.h >>conftest.$ac_ext
3926cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003928#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003929#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003930#if ((' ' & 0x0FF) == 0x020)
3931# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3932# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3933#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003934# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003935 (('a' <= (c) && (c) <= 'i') \
3936 || ('j' <= (c) && (c) <= 'r') \
3937 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003938# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3939#endif
3940
3941#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3942int
3943main ()
3944{
3945 int i;
3946 for (i = 0; i < 256; i++)
3947 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003948 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003949 return 2;
3950 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003951}
3952_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003953rm -f conftest$ac_exeext
3954if { (ac_try="$ac_link"
3955case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958esac
3959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_link") 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3964 { (case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967esac
3968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_try") 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 :
John Criswell7a73b802003-06-30 21:59:07 +00003974else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003975 echo "$as_me: program exited with status $ac_status" >&5
3976echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
3978
3979( exit $ac_status )
3980ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003982rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00003983fi
3984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003985
John Criswell7a73b802003-06-30 21:59:07 +00003986fi
3987fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003988{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3989echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003990if test $ac_cv_header_stdc = yes; then
3991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003992cat >>confdefs.h <<\_ACEOF
3993#define STDC_HEADERS 1
3994_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003995
3996fi
3997
Reid Spencera773bd52006-08-04 18:18:08 +00003998# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003999
4000
4001
4002
4003
4004
4005
4006
4007
Reid Spencera773bd52006-08-04 18:18:08 +00004008for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4009 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004010do
4011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4012{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016else
4017 cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h. */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */
4023$ac_includes_default
4024
4025#include <$ac_header>
4026_ACEOF
4027rm -f conftest.$ac_objext
4028if { (ac_try="$ac_compile"
4029case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032esac
4033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_compile") 2>conftest.er1
4035 ac_status=$?
4036 grep -v '^ *+' conftest.er1 >conftest.err
4037 rm -f conftest.er1
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4042 { (case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045esac
4046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_try") 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055esac
4056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4057 (eval "$ac_try") 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 eval "$as_ac_Header=yes"
4062else
4063 echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
4065
4066 eval "$as_ac_Header=no"
4067fi
4068
4069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070fi
4071ac_res=`eval echo '${'$as_ac_Header'}'`
4072 { echo "$as_me:$LINENO: result: $ac_res" >&5
4073echo "${ECHO_T}$ac_res" >&6; }
4074if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004075 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004077_ACEOF
4078
4079fi
4080
4081done
4082
4083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004084{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4085echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4086if test "${ac_cv_c_bigendian+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004089 # See if sys/param.h defines the BYTE_ORDER macro.
4090cat >conftest.$ac_ext <<_ACEOF
4091/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004092_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004093cat confdefs.h >>conftest.$ac_ext
4094cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004095/* end confdefs.h. */
4096#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004097#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004098
4099int
4100main ()
4101{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004102#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4103 bogus endian macros
4104#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004105
4106 ;
4107 return 0;
4108}
4109_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004110rm -f conftest.$ac_objext
4111if { (ac_try="$ac_compile"
4112case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115esac
4116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_compile") 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4125 { (case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128esac
4129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_try") 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; } &&
4134 { ac_try='test -s conftest.$ac_objext'
4135 { (case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138esac
4139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_try") 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004144 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004145cat >conftest.$ac_ext <<_ACEOF
4146/* confdefs.h. */
4147_ACEOF
4148cat confdefs.h >>conftest.$ac_ext
4149cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004150/* end confdefs.h. */
4151#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004152#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004153
4154int
4155main ()
4156{
4157#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004158 not big endian
4159#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004160
4161 ;
4162 return 0;
4163}
4164_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004165rm -f conftest.$ac_objext
4166if { (ac_try="$ac_compile"
4167case "(($ac_try" in
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4170esac
4171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_compile") 2>conftest.er1
4173 ac_status=$?
4174 grep -v '^ *+' conftest.er1 >conftest.err
4175 rm -f conftest.er1
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4180 { (case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183esac
4184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193esac
4194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195 (eval "$ac_try") 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004199 ac_cv_c_bigendian=yes
4200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004201 echo "$as_me: failed program was:" >&5
4202sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004204 ac_cv_c_bigendian=no
4205fi
4206
4207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208else
4209 echo "$as_me: failed program was:" >&5
4210sed 's/^/| /' conftest.$ac_ext >&5
4211
4212 # It does not; compile a test program.
4213if test "$cross_compiling" = yes; then
4214 # try to guess the endianness by grepping values into an object file
4215 ac_cv_c_bigendian=unknown
4216 cat >conftest.$ac_ext <<_ACEOF
4217/* confdefs.h. */
4218_ACEOF
4219cat confdefs.h >>conftest.$ac_ext
4220cat >>conftest.$ac_ext <<_ACEOF
4221/* end confdefs.h. */
4222short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4223short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4224void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4225short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4226short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4227void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004228int
4229main ()
4230{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004231 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004232 ;
4233 return 0;
4234}
4235_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004236rm -f conftest.$ac_objext
4237if { (ac_try="$ac_compile"
4238case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241esac
4242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_compile") 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4251 { (case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254esac
4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_try") 2>&5
4257 ac_status=$?
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; } &&
4260 { ac_try='test -s conftest.$ac_objext'
4261 { (case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264esac
4265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_try") 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004271 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004272fi
4273if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4274 if test "$ac_cv_c_bigendian" = unknown; then
4275 ac_cv_c_bigendian=no
4276 else
4277 # finding both strings is unlikely to happen, but who knows?
4278 ac_cv_c_bigendian=unknown
4279 fi
4280fi
Reid Spencera773bd52006-08-04 18:18:08 +00004281else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004282 echo "$as_me: failed program was:" >&5
4283sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004285
Torok Edwin871384f2010-01-26 08:50:50 +00004286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004287
Reid Spencera773bd52006-08-04 18:18:08 +00004288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004290 cat >conftest.$ac_ext <<_ACEOF
4291/* confdefs.h. */
4292_ACEOF
4293cat confdefs.h >>conftest.$ac_ext
4294cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004295/* end confdefs.h. */
4296$ac_includes_default
4297int
4298main ()
4299{
4300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004301 /* Are we little or big endian? From Harbison&Steele. */
4302 union
4303 {
4304 long int l;
4305 char c[sizeof (long int)];
4306 } u;
4307 u.l = 1;
4308 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004309
4310 ;
4311 return 0;
4312}
4313_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004314rm -f conftest$ac_exeext
4315if { (ac_try="$ac_link"
4316case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319esac
4320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_link") 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4325 { (case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328esac
4329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004334 ac_cv_c_bigendian=no
4335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004336 echo "$as_me: program exited with status $ac_status" >&5
4337echo "$as_me: failed program was:" >&5
4338sed 's/^/| /' conftest.$ac_ext >&5
4339
4340( exit $ac_status )
4341ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004342fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004344fi
4345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004346
Reid Spencera773bd52006-08-04 18:18:08 +00004347fi
4348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350fi
4351{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4352echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4353case $ac_cv_c_bigendian in
4354 yes)
4355 ENDIAN=big
4356 ;;
4357 no)
4358 ENDIAN=little
4359 ;;
4360 *)
4361 { { echo "$as_me:$LINENO: error: unknown endianness
4362presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4363echo "$as_me: error: unknown endianness
4364presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4365 { (exit 1); exit 1; }; } ;;
4366esac
Reid Spencera773bd52006-08-04 18:18:08 +00004367
4368
4369if test "$cross_compiling" = yes; then
4370 LLVM_CROSS_COMPILING=1
4371
4372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004373{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4374echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4375if test "${ac_cv_build_exeext+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004377else
4378 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4379 ac_cv_build_exeext=.exe
4380else
4381 ac_build_prefix=${build_alias}-
4382
4383 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4384set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004389else
4390 if test -n "$BUILD_CC"; then
4391 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4392else
4393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394for as_dir in $PATH
4395do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004400 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004402 break 2
4403 fi
4404done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004405done
Reid Spencera773bd52006-08-04 18:18:08 +00004406IFS=$as_save_IFS
4407
4408fi
4409fi
4410BUILD_CC=$ac_cv_prog_BUILD_CC
4411if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004412 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4413echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004415 { echo "$as_me:$LINENO: result: no" >&5
4416echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004417fi
4418
4419
4420 if test -z "$BUILD_CC"; then
4421 # Extract the first word of "gcc", so it can be a program name with args.
4422set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004427else
4428 if test -n "$BUILD_CC"; then
4429 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4430else
4431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004438 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004440 break 2
4441 fi
4442done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004443done
Reid Spencera773bd52006-08-04 18:18:08 +00004444IFS=$as_save_IFS
4445
4446fi
4447fi
4448BUILD_CC=$ac_cv_prog_BUILD_CC
4449if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004450 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4451echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004452else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004453 { echo "$as_me:$LINENO: result: no" >&5
4454echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004455fi
4456
4457
4458 if test -z "$BUILD_CC"; then
4459 # Extract the first word of "cc", so it can be a program name with args.
4460set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004465else
4466 if test -n "$BUILD_CC"; then
4467 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4468else
4469 ac_prog_rejected=no
4470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471for as_dir in $PATH
4472do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4478 ac_prog_rejected=yes
4479 continue
4480 fi
4481 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004483 break 2
4484 fi
4485done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004486done
Reid Spencera773bd52006-08-04 18:18:08 +00004487IFS=$as_save_IFS
4488
4489if test $ac_prog_rejected = yes; then
4490 # We found a bogon in the path, so make sure we never use it.
4491 set dummy $ac_cv_prog_BUILD_CC
4492 shift
4493 if test $# != 0; then
4494 # We chose a different compiler from the bogus one.
4495 # However, it has the same basename, so the bogon will be chosen
4496 # first if we set BUILD_CC to just the basename; use the full file name.
4497 shift
4498 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4499 fi
4500fi
4501fi
4502fi
4503BUILD_CC=$ac_cv_prog_BUILD_CC
4504if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004505 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4506echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004507else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004508 { echo "$as_me:$LINENO: result: no" >&5
4509echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004510fi
4511
4512
4513 fi
4514 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004515 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4516echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4517 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004518 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4519 rm -f conftest*
4520 echo 'int main () { return 0; }' > conftest.$ac_ext
4521 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004522 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004523 (eval $ac_build_link) 2>&5
4524 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004527 for file in conftest.*; do
4528 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004529 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004530 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4531 esac
4532 done
4533 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004534 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4535echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4536 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004537 fi
4538 rm -f conftest*
4539 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4540fi
4541fi
4542
4543BUILD_EXEEXT=""
4544test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004545{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4546echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004547ac_build_exeext=$BUILD_EXEEXT
4548
Jim Grosbach673612e2008-10-02 22:56:44 +00004549 ac_build_prefix=${build_alias}-
4550 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4551set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004556else
4557 if test -n "$BUILD_CXX"; then
4558 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004567 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004569 break 2
4570 fi
4571done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004572done
Jim Grosbach673612e2008-10-02 22:56:44 +00004573IFS=$as_save_IFS
4574
4575fi
4576fi
4577BUILD_CXX=$ac_cv_prog_BUILD_CXX
4578if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004579 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4580echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004581else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004582 { echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004584fi
4585
4586
4587 if test -z "$BUILD_CXX"; then
4588 # Extract the first word of "g++", so it can be a program name with args.
4589set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004594else
4595 if test -n "$BUILD_CXX"; then
4596 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004605 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004607 break 2
4608 fi
4609done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004610done
Jim Grosbach673612e2008-10-02 22:56:44 +00004611IFS=$as_save_IFS
4612
4613fi
4614fi
4615BUILD_CXX=$ac_cv_prog_BUILD_CXX
4616if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004617 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4618echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004620 { echo "$as_me:$LINENO: result: no" >&5
4621echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004622fi
4623
4624
4625 if test -z "$BUILD_CXX"; then
4626 # Extract the first word of "c++", so it can be a program name with args.
4627set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004632else
4633 if test -n "$BUILD_CXX"; then
4634 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4635else
4636 ac_prog_rejected=no
4637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4645 ac_prog_rejected=yes
4646 continue
4647 fi
4648 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004650 break 2
4651 fi
4652done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004653done
Jim Grosbach673612e2008-10-02 22:56:44 +00004654IFS=$as_save_IFS
4655
4656if test $ac_prog_rejected = yes; then
4657 # We found a bogon in the path, so make sure we never use it.
4658 set dummy $ac_cv_prog_BUILD_CXX
4659 shift
4660 if test $# != 0; then
4661 # We chose a different compiler from the bogus one.
4662 # However, it has the same basename, so the bogon will be chosen
4663 # first if we set BUILD_CXX to just the basename; use the full file name.
4664 shift
4665 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4666 fi
4667fi
4668fi
4669fi
4670BUILD_CXX=$ac_cv_prog_BUILD_CXX
4671if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004672 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4673echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004674else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004675 { echo "$as_me:$LINENO: result: no" >&5
4676echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004677fi
4678
4679
4680 fi
4681 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004682else
4683 LLVM_CROSS_COMPILING=0
4684
4685fi
4686
Dan Gohman56fb5f92010-08-04 16:25:01 +00004687if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004688 cvsbuild="yes"
4689 optimize="no"
4690 CVSBUILD=CVSBUILD=1
4691
4692else
4693 cvsbuild="no"
4694 optimize="yes"
4695fi
4696
4697
4698# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004699if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004700 enableval=$enable_optimized;
4701else
4702 enableval=$optimize
4703fi
4704
4705if test ${enableval} = "no" ; then
4706 ENABLE_OPTIMIZED=
4707
4708else
4709 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4710
4711fi
4712
David Greene2a5a12c2009-04-17 14:50:39 +00004713# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004714if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004715 enableval=$enable_profiling;
4716else
4717 enableval="no"
4718fi
4719
4720if test ${enableval} = "no" ; then
4721 ENABLE_PROFILING=
4722
4723else
4724 ENABLE_PROFILING=ENABLE_PROFILING=1
4725
4726fi
4727
Reid Spencera773bd52006-08-04 18:18:08 +00004728# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004729if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004730 enableval=$enable_assertions;
4731else
4732 enableval="yes"
4733fi
4734
4735if test ${enableval} = "yes" ; then
4736 DISABLE_ASSERTIONS=
4737
4738else
4739 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4740
4741fi
4742
David Greenea696d242007-06-28 19:36:08 +00004743# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004744if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004745 enableval=$enable_expensive_checks;
4746else
4747 enableval="no"
4748fi
4749
4750if test ${enableval} = "yes" ; then
4751 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4752
4753 EXPENSIVE_CHECKS=yes
4754
4755else
4756 ENABLE_EXPENSIVE_CHECKS=
4757
4758 EXPENSIVE_CHECKS=no
4759
4760fi
4761
Reid Spencer8b2e1412006-11-17 03:32:33 +00004762# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004763if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004764 enableval=$enable_debug_runtime;
4765else
4766 enableval=no
4767fi
4768
4769if test ${enableval} = "no" ; then
4770 DEBUG_RUNTIME=
4771
4772else
4773 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4774
4775fi
4776
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004777# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004779 enableval=$enable_debug_symbols;
4780else
4781 enableval=no
4782fi
4783
4784if test ${enableval} = "no" ; then
4785 DEBUG_SYMBOLS=
4786
4787else
4788 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4789
4790fi
4791
Reid Spencera773bd52006-08-04 18:18:08 +00004792# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004793if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004794 enableval=$enable_jit;
4795else
4796 enableval=default
4797fi
4798
4799if test ${enableval} = "no"
4800then
4801 JIT=
4802
4803else
4804 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004805 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004806 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004807 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004808 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004809 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004810 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004811 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004812 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004813 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004814 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004815 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004816 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004817 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004818 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004819 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004820 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004821 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004822 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004823 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004824 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004825 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004826 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004827 Blackfin) TARGET_HAS_JIT=0
4828 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004829 MBlaze) TARGET_HAS_JIT=0
4830 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004831 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004832 ;;
4833 esac
4834fi
4835
4836# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004837if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004838 enableval=$enable_doxygen;
4839else
4840 enableval=default
4841fi
4842
4843case "$enableval" in
4844 yes) ENABLE_DOXYGEN=1
4845 ;;
4846 no) ENABLE_DOXYGEN=0
4847 ;;
4848 default) ENABLE_DOXYGEN=0
4849 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004850 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4851echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4852 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004853esac
4854
4855# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004856if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004857 enableval=$enable_threads;
4858else
Reid Spencer65c5d752006-11-05 17:08:18 +00004859 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004860fi
4861
4862case "$enableval" in
4863 yes) ENABLE_THREADS=1
4864 ;;
4865 no) ENABLE_THREADS=0
4866 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004867 default) ENABLE_THREADS=1
4868 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4870echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4871 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004872esac
4873
Owen Andersona8603702009-05-19 22:18:56 +00004874cat >>confdefs.h <<_ACEOF
4875#define ENABLE_THREADS $ENABLE_THREADS
4876_ACEOF
4877
4878
Reid Spencer89b0d992006-12-16 22:07:52 +00004879# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004880if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004881 enableval=$enable_pic;
4882else
4883 enableval=default
4884fi
4885
4886case "$enableval" in
4887 yes) ENABLE_PIC=1
4888 ;;
4889 no) ENABLE_PIC=0
4890 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004891 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004892 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004893 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4894echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4895 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004896esac
4897
4898cat >>confdefs.h <<_ACEOF
4899#define ENABLE_PIC $ENABLE_PIC
4900_ACEOF
4901
4902
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004903# Check whether --enable-shared was given.
4904if test "${enable_shared+set}" = set; then
4905 enableval=$enable_shared;
4906else
4907 enableval=default
4908fi
4909
4910case "$enableval" in
4911 yes) ENABLE_SHARED=1
4912 ;;
4913 no) ENABLE_SHARED=0
4914 ;;
4915 default) ENABLE_SHARED=0
4916 ;;
4917 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4918echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4919 { (exit 1); exit 1; }; } ;;
4920esac
4921
Daniel Dunbardd464df2010-05-10 20:11:56 +00004922# Check whether --enable-timestamps was given.
4923if test "${enable_timestamps+set}" = set; then
4924 enableval=$enable_timestamps;
4925else
4926 enableval=default
4927fi
4928
4929case "$enableval" in
4930 yes) ENABLE_TIMESTAMPS=1
4931 ;;
4932 no) ENABLE_TIMESTAMPS=0
4933 ;;
4934 default) ENABLE_TIMESTAMPS=1
4935 ;;
4936 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4937echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4938 { (exit 1); exit 1; }; } ;;
4939esac
4940
4941cat >>confdefs.h <<_ACEOF
4942#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4943_ACEOF
4944
4945
Reid Spencera773bd52006-08-04 18:18:08 +00004946TARGETS_TO_BUILD=""
4947# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004948if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004949 enableval=$enable_targets;
4950else
4951 enableval=all
4952fi
4953
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004954if test "$enableval" = host-only ; then
4955 enableval=host
4956fi
Reid Spencera773bd52006-08-04 18:18:08 +00004957case "$enableval" in
Chris Lattner885b6612010-08-28 16:33:36 +00004958 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004959 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4960 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004961 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4962 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4963 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4964 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4965 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4966 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4967 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4968 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4969 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4970 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4971 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4972 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4973 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4974 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004975 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004976 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004977 host) case "$llvm_cv_target_arch" in
4978 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4979 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4980 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4981 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4982 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4983 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4984 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004985 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004986 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4987 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4988 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4989 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004990 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004991 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004992 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4993echo "$as_me: error: Can not set target to build" >&2;}
4994 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004995 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004996 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4997echo "$as_me: error: Unrecognized target $a_target" >&2;}
4998 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004999 esac
5000 done
5001 ;;
5002esac
Reid Spencera773bd52006-08-04 18:18:08 +00005003TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5004
5005
Douglas Gregor0711c302009-06-17 00:43:20 +00005006# Determine whether we are building LLVM support for the native architecture.
5007# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5008for a_target in $TARGETS_TO_BUILD; do
5009 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5010
5011cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005012#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5013_ACEOF
5014
5015 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5016 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5017 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5018
5019cat >>confdefs.h <<_ACEOF
5020#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005021_ACEOF
5022
5023
5024cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005025#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5026_ACEOF
5027
5028
5029cat >>confdefs.h <<_ACEOF
5030#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005031_ACEOF
5032
5033 fi
5034done
5035
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005036# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5037# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005038LLVM_ENUM_TARGETS=""
5039LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005040LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005041LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005042for target_to_build in $TARGETS_TO_BUILD; do
5043 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5044 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5045 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5046 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005047 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5048 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5049 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005050 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5051 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5052 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005053done
5054
5055
5056
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005057
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005058
Reid Spencer65c5d752006-11-05 17:08:18 +00005059# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005060if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005061 enableval=$enable_cbe_printf_a;
5062else
5063 enableval=default
5064fi
5065
5066case "$enableval" in
5067 yes) ENABLE_CBE_PRINTF_A=1
5068 ;;
5069 no) ENABLE_CBE_PRINTF_A=0
5070 ;;
5071 default) ENABLE_CBE_PRINTF_A=1
5072 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005073 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5074echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5075 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005076esac
5077
5078cat >>confdefs.h <<_ACEOF
5079#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5080_ACEOF
5081
5082
Reid Spencera773bd52006-08-04 18:18:08 +00005083
5084# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005085if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005086 withval=$with_llvmgccdir;
5087else
5088 withval=default
5089fi
5090
5091case "$withval" in
5092 default) WITH_LLVMGCCDIR=default ;;
5093 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005094 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5095echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5096 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005097esac
5098
5099
Devang Patel5d28b882007-12-04 22:54:47 +00005100# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005101if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005102 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5103 WITH_LLVMGCCDIR=""
5104fi
5105
5106
5107
5108# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005109if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005110 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5111 WITH_LLVMGCCDIR=""
5112fi
5113
Douglas Gregor01746742009-05-11 18:05:52 +00005114
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005115if test -n "$LLVMGCC"; then
5116 LLVMGCCCOMMAND="$LLVMGCC"
5117fi
5118
5119if test -n "$LLVMGXX"; then
5120 LLVMGXXCOMMAND="$LLVMGXX"
5121fi
Devang Patel5d28b882007-12-04 22:54:47 +00005122
5123if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005124 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5125echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5126 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005127fi
5128
5129if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005130 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5131echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5132 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005133fi
5134
5135
Daniel Dunbar98515672010-02-23 10:00:49 +00005136# Check whether --with-clang was given.
5137if test "${with_clang+set}" = set; then
5138 withval=$with_clang;
5139else
5140 with_clang=default
5141fi
5142
5143
5144
5145# Check whether --with-built-clang was given.
5146if test "${with_built_clang+set}" = set; then
5147 withval=$with_built_clang;
5148else
5149 with_built_clang=check
5150fi
5151
5152
5153{ echo "$as_me:$LINENO: checking clang compiler" >&5
5154echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5155WITH_CLANGPATH=""
5156WITH_BUILT_CLANG=0
5157if test "$with_clang" != "default"; then
5158 WITH_CLANGPATH="$with_clang"
5159 if ! test -x "$WITH_CLANGPATH"; then
5160 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5161echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5162 { (exit 1); exit 1; }; }
5163 fi
5164elif test "$with_built_clang" = "yes"; then
5165 WITH_BUILT_CLANG=1
5166elif test "$with_built_clang" = "no"; then
5167 WITH_BUILT_CLANG=0
5168else
5169 if test "$with_built_clang" != "check"; then
5170 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5171echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5172 { (exit 1); exit 1; }; }
5173 fi
5174
5175 if test -f ${srcdir}/tools/clang/README.txt; then
5176 WITH_BUILT_CLANG=1
5177 fi
5178fi
5179
5180if ! test -z "$WITH_CLANGPATH"; then
5181 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5182echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5183 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5184elif test "$WITH_BUILT_CLANG" = "1"; then
5185 { echo "$as_me:$LINENO: result: built" >&5
5186echo "${ECHO_T}built" >&6; }
5187else
5188 { echo "$as_me:$LINENO: result: none" >&5
5189echo "${ECHO_T}none" >&6; }
5190fi
5191CLANGPATH=$WITH_CLANGPATH
5192
5193CLANGXXPATH=$WITH_CLANGXXPATH
5194
5195ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5196
5197
5198
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005199# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005200if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005201 withval=$with_optimize_option;
5202else
5203 withval=default
5204fi
5205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005206{ echo "$as_me:$LINENO: checking optimization flags" >&5
5207echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005208case "$withval" in
5209 default)
5210 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005211 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005212 MingW) optimize_option=-O2 ;;
5213 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005214 esac ;;
5215 *) optimize_option="$withval" ;;
5216esac
5217OPTIMIZE_OPTION=$optimize_option
5218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005219{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5220echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005221
5222
Reid Spencera773bd52006-08-04 18:18:08 +00005223# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005224if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005225 withval=$with_extra_options;
5226else
5227 withval=default
5228fi
5229
5230case "$withval" in
5231 default) EXTRA_OPTIONS= ;;
5232 *) EXTRA_OPTIONS=$withval ;;
5233esac
5234EXTRA_OPTIONS=$EXTRA_OPTIONS
5235
5236
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005237# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005238if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005239 enableval=$enable_bindings;
5240else
5241 enableval=default
5242fi
5243
5244BINDINGS_TO_BUILD=""
5245case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005246 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005247 all ) BINDINGS_TO_BUILD="ocaml" ;;
5248 none | no) BINDINGS_TO_BUILD="" ;;
5249 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5250 case "$a_binding" in
5251 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005252 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5253echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5254 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005255 esac
5256 done
5257 ;;
5258esac
5259
Reid Spencera773bd52006-08-04 18:18:08 +00005260
Gordon Henriksenf0915682007-10-02 16:42:22 +00005261# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005262if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005263 withval=$with_ocaml_libdir;
5264else
5265 withval=auto
5266fi
5267
5268case "$withval" in
5269 auto) with_ocaml_libdir="$withval" ;;
5270 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005271 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5272echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5273 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005274esac
5275
5276
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005277# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005278if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005279 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005280else
5281 withval=""
5282fi
5283
5284
5285cat >>confdefs.h <<_ACEOF
5286#define C_INCLUDE_DIRS "$withval"
5287_ACEOF
5288
5289
5290
Rafael Espindola420d23c2009-11-16 19:46:55 +00005291# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005292if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005293 withval=$with_cxx_include_root;
5294else
5295 withval=""
5296fi
5297
5298
5299cat >>confdefs.h <<_ACEOF
5300#define CXX_INCLUDE_ROOT "$withval"
5301_ACEOF
5302
5303
5304
5305# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005306if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005307 withval=$with_cxx_include_arch;
5308else
5309 withval=""
5310fi
5311
5312
5313cat >>confdefs.h <<_ACEOF
5314#define CXX_INCLUDE_ARCH "$withval"
5315_ACEOF
5316
5317
5318
5319# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005320if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005321 withval=$with_cxx_include_32bit_dir;
5322else
5323 withval=""
5324fi
5325
5326
5327cat >>confdefs.h <<_ACEOF
5328#define CXX_INCLUDE_32BIT_DIR "$withval"
5329_ACEOF
5330
5331
5332
5333# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005334if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005335 withval=$with_cxx_include_64bit_dir;
5336else
5337 withval=""
5338fi
5339
5340
5341cat >>confdefs.h <<_ACEOF
5342#define CXX_INCLUDE_64BIT_DIR "$withval"
5343_ACEOF
5344
5345
5346
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005347# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005348if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005349 withval=$with_binutils_include;
5350else
5351 withval=default
5352fi
5353
5354case "$withval" in
5355 default) WITH_BINUTILS_INCDIR=default ;;
5356 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005357 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5358echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5359 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005360esac
5361if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5362 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5363
5364 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5365 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005366 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5367echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5368 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005369 fi
5370fi
5371
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005372# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005373if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005374 enableval=$enable_libffi; case "$enableval" in
5375 yes) llvm_cv_enable_libffi="yes" ;;
5376 no) llvm_cv_enable_libffi="no" ;;
5377 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005378echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5379 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005380 esac
5381else
5382 llvm_cv_enable_libffi=no
5383fi
5384
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005385
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
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007980case "$INSTALL" in
7981 [\\/$]* | ?:[\\/]* ) ;;
7982 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7983esac
Reid Spencera773bd52006-08-04 18:18:08 +00007984
7985# Extract the first word of "bzip2", so it can be a program name with args.
7986set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7989if test "${ac_cv_path_BZIP2+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007991else
7992 case $BZIP2 in
7993 [\\/]* | ?:[\\/]*)
7994 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7995 ;;
7996 *)
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998for as_dir in $PATH
7999do
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 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 +00008004 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008006 break 2
8007 fi
8008done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008009done
Reid Spencera773bd52006-08-04 18:18:08 +00008010IFS=$as_save_IFS
8011
Reid Spencera773bd52006-08-04 18:18:08 +00008012 ;;
8013esac
8014fi
8015BZIP2=$ac_cv_path_BZIP2
8016if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008017 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8018echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008020 { echo "$as_me:$LINENO: result: no" >&5
8021echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008022fi
8023
8024
mike-m68cb3192010-05-06 23:45:43 +00008025# Extract the first word of "cat", so it can be a program name with args.
8026set dummy cat; ac_word=$2
8027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8029if test "${ac_cv_path_CAT+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8031else
8032 case $CAT in
8033 [\\/]* | ?:[\\/]*)
8034 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8035 ;;
8036 *)
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038for as_dir in $PATH
8039do
8040 IFS=$as_save_IFS
8041 test -z "$as_dir" && as_dir=.
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8044 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 break 2
8047 fi
8048done
8049done
8050IFS=$as_save_IFS
8051
8052 ;;
8053esac
8054fi
8055CAT=$ac_cv_path_CAT
8056if test -n "$CAT"; then
8057 { echo "$as_me:$LINENO: result: $CAT" >&5
8058echo "${ECHO_T}$CAT" >&6; }
8059else
8060 { echo "$as_me:$LINENO: result: no" >&5
8061echo "${ECHO_T}no" >&6; }
8062fi
8063
8064
Reid Spencera773bd52006-08-04 18:18:08 +00008065# Extract the first word of "doxygen", so it can be a program name with args.
8066set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008067{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8069if test "${ac_cv_path_DOXYGEN+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008071else
8072 case $DOXYGEN in
8073 [\\/]* | ?:[\\/]*)
8074 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8075 ;;
8076 *)
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 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 +00008084 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008086 break 2
8087 fi
8088done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008089done
Reid Spencera773bd52006-08-04 18:18:08 +00008090IFS=$as_save_IFS
8091
Reid Spencera773bd52006-08-04 18:18:08 +00008092 ;;
8093esac
8094fi
8095DOXYGEN=$ac_cv_path_DOXYGEN
8096if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008097 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8098echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008099else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008100 { echo "$as_me:$LINENO: result: no" >&5
8101echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008102fi
8103
8104
Reid Spencera773bd52006-08-04 18:18:08 +00008105# Extract the first word of "groff", so it can be a program name with args.
8106set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008107{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8109if test "${ac_cv_path_GROFF+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008111else
8112 case $GROFF in
8113 [\\/]* | ?:[\\/]*)
8114 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8115 ;;
8116 *)
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118for as_dir in $PATH
8119do
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 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 +00008124 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008126 break 2
8127 fi
8128done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008129done
Reid Spencera773bd52006-08-04 18:18:08 +00008130IFS=$as_save_IFS
8131
Reid Spencera773bd52006-08-04 18:18:08 +00008132 ;;
8133esac
8134fi
8135GROFF=$ac_cv_path_GROFF
8136if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008137 { echo "$as_me:$LINENO: result: $GROFF" >&5
8138echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008140 { echo "$as_me:$LINENO: result: no" >&5
8141echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008142fi
8143
8144
8145# Extract the first word of "gzip", so it can be a program name with args.
8146set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8149if test "${ac_cv_path_GZIP+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008151else
8152 case $GZIP in
8153 [\\/]* | ?:[\\/]*)
8154 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8155 ;;
8156 *)
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158for as_dir in $PATH
8159do
8160 IFS=$as_save_IFS
8161 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 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 +00008164 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008166 break 2
8167 fi
8168done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008169done
Reid Spencera773bd52006-08-04 18:18:08 +00008170IFS=$as_save_IFS
8171
Reid Spencera773bd52006-08-04 18:18:08 +00008172 ;;
8173esac
8174fi
8175GZIP=$ac_cv_path_GZIP
8176if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008177 { echo "$as_me:$LINENO: result: $GZIP" >&5
8178echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008179else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008180 { echo "$as_me:$LINENO: result: no" >&5
8181echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008182fi
8183
8184
8185# Extract the first word of "pod2html", so it can be a program name with args.
8186set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8189if test "${ac_cv_path_POD2HTML+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008191else
8192 case $POD2HTML in
8193 [\\/]* | ?:[\\/]*)
8194 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8195 ;;
8196 *)
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198for as_dir in $PATH
8199do
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 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 +00008204 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008206 break 2
8207 fi
8208done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008209done
Reid Spencera773bd52006-08-04 18:18:08 +00008210IFS=$as_save_IFS
8211
Reid Spencera773bd52006-08-04 18:18:08 +00008212 ;;
8213esac
8214fi
8215POD2HTML=$ac_cv_path_POD2HTML
8216if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008217 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8218echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008219else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008220 { echo "$as_me:$LINENO: result: no" >&5
8221echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008222fi
8223
8224
8225# Extract the first word of "pod2man", so it can be a program name with args.
8226set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8229if test "${ac_cv_path_POD2MAN+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008231else
8232 case $POD2MAN in
8233 [\\/]* | ?:[\\/]*)
8234 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8235 ;;
8236 *)
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238for as_dir in $PATH
8239do
8240 IFS=$as_save_IFS
8241 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 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 +00008244 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008246 break 2
8247 fi
8248done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008249done
Reid Spencera773bd52006-08-04 18:18:08 +00008250IFS=$as_save_IFS
8251
Reid Spencera773bd52006-08-04 18:18:08 +00008252 ;;
8253esac
8254fi
8255POD2MAN=$ac_cv_path_POD2MAN
8256if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008257 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8258echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008259else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008260 { echo "$as_me:$LINENO: result: no" >&5
8261echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008262fi
8263
8264
mike-m68cb3192010-05-06 23:45:43 +00008265# Extract the first word of "pdfroff", so it can be a program name with args.
8266set dummy pdfroff; ac_word=$2
8267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8269if test "${ac_cv_path_PDFROFF+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271else
8272 case $PDFROFF in
8273 [\\/]* | ?:[\\/]*)
8274 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8275 ;;
8276 *)
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278for as_dir in $PATH
8279do
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8284 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 break 2
8287 fi
8288done
8289done
8290IFS=$as_save_IFS
8291
8292 ;;
8293esac
8294fi
8295PDFROFF=$ac_cv_path_PDFROFF
8296if test -n "$PDFROFF"; then
8297 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8298echo "${ECHO_T}$PDFROFF" >&6; }
8299else
8300 { echo "$as_me:$LINENO: result: no" >&5
8301echo "${ECHO_T}no" >&6; }
8302fi
8303
8304
Reid Spencera773bd52006-08-04 18:18:08 +00008305# Extract the first word of "runtest", so it can be a program name with args.
8306set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008307{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8309if test "${ac_cv_path_RUNTEST+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008311else
8312 case $RUNTEST in
8313 [\\/]* | ?:[\\/]*)
8314 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8315 ;;
8316 *)
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH
8319do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 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 +00008324 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008326 break 2
8327 fi
8328done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008329done
Reid Spencera773bd52006-08-04 18:18:08 +00008330IFS=$as_save_IFS
8331
Reid Spencera773bd52006-08-04 18:18:08 +00008332 ;;
8333esac
8334fi
8335RUNTEST=$ac_cv_path_RUNTEST
8336if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008337 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8338echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008339else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008340 { echo "$as_me:$LINENO: result: no" >&5
8341echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008342fi
8343
8344
8345
8346no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008347{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8348echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008349
8350# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008351if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008352 withval=$with_tclinclude; with_tclinclude=${withval}
8353else
8354 with_tclinclude=''
8355fi
8356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008357if test "${ac_cv_path_tclsh+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008359else
8360
8361if test x"${with_tclinclude}" != x ; then
8362 if test -f ${with_tclinclude}/tclsh ; then
8363 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8364 elif test -f ${with_tclinclude}/src/tclsh ; then
8365 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8366 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008367 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8368echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8369 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008370 fi
8371fi
Torok Edwin871384f2010-01-26 08:50:50 +00008372fi
8373
Reid Spencera773bd52006-08-04 18:18:08 +00008374
8375if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008376 { echo "$as_me:$LINENO: result: none" >&5
8377echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008378 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
8379do
8380 # Extract the first word of "$ac_prog", so it can be a program name with args.
8381set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8384if test "${ac_cv_path_TCLSH+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008386else
8387 case $TCLSH in
8388 [\\/]* | ?:[\\/]*)
8389 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8390 ;;
8391 *)
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393for as_dir in $PATH
8394do
8395 IFS=$as_save_IFS
8396 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 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 +00008399 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008401 break 2
8402 fi
8403done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008404done
Reid Spencera773bd52006-08-04 18:18:08 +00008405IFS=$as_save_IFS
8406
8407 ;;
8408esac
8409fi
8410TCLSH=$ac_cv_path_TCLSH
8411if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008412 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8413echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008415 { echo "$as_me:$LINENO: result: no" >&5
8416echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008417fi
8418
8419
8420 test -n "$TCLSH" && break
8421done
8422
8423 if test x"${TCLSH}" = x ; then
8424 ac_cv_path_tclsh='';
8425 else
8426 ac_cv_path_tclsh="${TCLSH}";
8427 fi
8428else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008429 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8430echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008431 TCLSH="${ac_cv_path_tclsh}"
8432
8433fi
8434
Reid Spencera773bd52006-08-04 18:18:08 +00008435# Extract the first word of "zip", so it can be a program name with args.
8436set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8439if test "${ac_cv_path_ZIP+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008441else
8442 case $ZIP in
8443 [\\/]* | ?:[\\/]*)
8444 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8445 ;;
8446 *)
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448for as_dir in $PATH
8449do
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 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 +00008454 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008456 break 2
8457 fi
8458done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008459done
Reid Spencera773bd52006-08-04 18:18:08 +00008460IFS=$as_save_IFS
8461
Reid Spencera773bd52006-08-04 18:18:08 +00008462 ;;
8463esac
8464fi
8465ZIP=$ac_cv_path_ZIP
8466if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008467 { echo "$as_me:$LINENO: result: $ZIP" >&5
8468echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008469else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008470 { echo "$as_me:$LINENO: result: no" >&5
8471echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008472fi
8473
8474
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008475for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008476do
8477 # Extract the first word of "$ac_prog", so it can be a program name with args.
8478set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8481if test "${ac_cv_path_OCAMLC+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008483else
8484 case $OCAMLC in
8485 [\\/]* | ?:[\\/]*)
8486 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8487 ;;
8488 *)
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490for as_dir in $PATH
8491do
8492 IFS=$as_save_IFS
8493 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 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 +00008496 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008498 break 2
8499 fi
8500done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008501done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008502IFS=$as_save_IFS
8503
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008504 ;;
8505esac
8506fi
8507OCAMLC=$ac_cv_path_OCAMLC
8508if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008509 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8510echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008511else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008512 { echo "$as_me:$LINENO: result: no" >&5
8513echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008514fi
8515
8516
Gordon Henriksene7072162008-03-07 18:20:01 +00008517 test -n "$OCAMLC" && break
8518done
8519
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008520for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008521do
8522 # Extract the first word of "$ac_prog", so it can be a program name with args.
8523set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8526if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008528else
8529 case $OCAMLOPT in
8530 [\\/]* | ?:[\\/]*)
8531 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8532 ;;
8533 *)
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535for as_dir in $PATH
8536do
8537 IFS=$as_save_IFS
8538 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008539 for ac_exec_ext in '' $ac_executable_extensions; do
8540 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 +00008541 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008543 break 2
8544 fi
8545done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008546done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008547IFS=$as_save_IFS
8548
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008549 ;;
8550esac
8551fi
8552OCAMLOPT=$ac_cv_path_OCAMLOPT
8553if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008554 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8555echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008556else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008557 { echo "$as_me:$LINENO: result: no" >&5
8558echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008559fi
8560
8561
Gordon Henriksene7072162008-03-07 18:20:01 +00008562 test -n "$OCAMLOPT" && break
8563done
8564
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008565for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008566do
8567 # Extract the first word of "$ac_prog", so it can be a program name with args.
8568set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008569{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8571if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008573else
8574 case $OCAMLDEP in
8575 [\\/]* | ?:[\\/]*)
8576 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8577 ;;
8578 *)
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580for as_dir in $PATH
8581do
8582 IFS=$as_save_IFS
8583 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008584 for ac_exec_ext in '' $ac_executable_extensions; do
8585 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 +00008586 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008588 break 2
8589 fi
8590done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008591done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008592IFS=$as_save_IFS
8593
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008594 ;;
8595esac
8596fi
8597OCAMLDEP=$ac_cv_path_OCAMLDEP
8598if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008599 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8600echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008601else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008602 { echo "$as_me:$LINENO: result: no" >&5
8603echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008604fi
8605
8606
Gordon Henriksene7072162008-03-07 18:20:01 +00008607 test -n "$OCAMLDEP" && break
8608done
8609
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008610for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008611do
8612 # Extract the first word of "$ac_prog", so it can be a program name with args.
8613set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8616if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008618else
8619 case $OCAMLDOC in
8620 [\\/]* | ?:[\\/]*)
8621 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8622 ;;
8623 *)
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625for as_dir in $PATH
8626do
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 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 +00008631 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008633 break 2
8634 fi
8635done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008636done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008637IFS=$as_save_IFS
8638
8639 ;;
8640esac
8641fi
8642OCAMLDOC=$ac_cv_path_OCAMLDOC
8643if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008644 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8645echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008646else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008647 { echo "$as_me:$LINENO: result: no" >&5
8648echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008649fi
8650
8651
8652 test -n "$OCAMLDOC" && break
8653done
8654
Torok Edwincc499a42008-10-22 09:56:27 +00008655for ac_prog in gas as
8656do
8657 # Extract the first word of "$ac_prog", so it can be a program name with args.
8658set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008659{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8661if test "${ac_cv_path_GAS+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008663else
8664 case $GAS in
8665 [\\/]* | ?:[\\/]*)
8666 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8667 ;;
8668 *)
8669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670for as_dir in $PATH
8671do
8672 IFS=$as_save_IFS
8673 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008674 for ac_exec_ext in '' $ac_executable_extensions; do
8675 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 +00008676 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008678 break 2
8679 fi
8680done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008681done
Torok Edwincc499a42008-10-22 09:56:27 +00008682IFS=$as_save_IFS
8683
8684 ;;
8685esac
8686fi
8687GAS=$ac_cv_path_GAS
8688if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008689 { echo "$as_me:$LINENO: result: $GAS" >&5
8690echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008691else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008692 { echo "$as_me:$LINENO: result: no" >&5
8693echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008694fi
8695
8696
8697 test -n "$GAS" && break
8698done
8699
Reid Spencera773bd52006-08-04 18:18:08 +00008700
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008701{ echo "$as_me:$LINENO: checking for linker version" >&5
8702echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8703if test "${llvm_cv_link_version+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8705else
8706
8707 version_string="$(ld -v 2>&1 | head -1)"
8708
8709 # Check for ld64.
8710 if (echo "$version_string" | grep -q "ld64"); then
8711 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8712 else
8713 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8714 fi
8715
8716fi
8717{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8718echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8719
8720cat >>confdefs.h <<_ACEOF
8721#define HOST_LINK_VERSION "$llvm_cv_link_version"
8722_ACEOF
8723
8724
8725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008726{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8727echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8728if test "${llvm_cv_link_use_r+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008730else
8731 ac_ext=c
8732ac_cpp='$CPP $CPPFLAGS'
8733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8735ac_compiler_gnu=$ac_cv_c_compiler_gnu
8736
8737 oldcflags="$CFLAGS"
8738 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008739 cat >conftest.$ac_ext <<_ACEOF
8740/* confdefs.h. */
8741_ACEOF
8742cat confdefs.h >>conftest.$ac_ext
8743cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008744/* end confdefs.h. */
8745
8746int
8747main ()
8748{
Dan Gohman39ed6782010-04-25 00:12:20 +00008749
Reid Spencera773bd52006-08-04 18:18:08 +00008750 ;
8751 return 0;
8752}
8753_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008754rm -f conftest.$ac_objext conftest$ac_exeext
8755if { (ac_try="$ac_link"
8756case "(($ac_try" in
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8759esac
8760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_link") 2>conftest.er1
8762 ac_status=$?
8763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8769 { (case "(($ac_try" in
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8772esac
8773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_try") 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; } &&
8778 { ac_try='test -s conftest$ac_exeext'
8779 { (case "(($ac_try" in
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8782esac
8783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_try") 2>&5
8785 ac_status=$?
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008788 llvm_cv_link_use_r=yes
8789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008790 echo "$as_me: failed program was:" >&5
8791sed 's/^/| /' conftest.$ac_ext >&5
8792
8793 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008794fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008795
Bill Wendlingebcceee2009-04-18 11:20:33 +00008796rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008797 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008798 CFLAGS="$oldcflags"
8799 ac_ext=c
8800ac_cpp='$CPP $CPPFLAGS'
8801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8803ac_compiler_gnu=$ac_cv_c_compiler_gnu
8804
8805
8806fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008807{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8808echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008809if test "$llvm_cv_link_use_r" = yes ; then
8810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008811cat >>confdefs.h <<\_ACEOF
8812#define HAVE_LINK_R 1
8813_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008814
8815 fi
8816
8817
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008818{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8819echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8820if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008822else
8823 ac_ext=c
8824ac_cpp='$CPP $CPPFLAGS'
8825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8827ac_compiler_gnu=$ac_cv_c_compiler_gnu
8828
8829 oldcflags="$CFLAGS"
8830 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008831 cat >conftest.$ac_ext <<_ACEOF
8832/* confdefs.h. */
8833_ACEOF
8834cat confdefs.h >>conftest.$ac_ext
8835cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008836/* end confdefs.h. */
8837
8838int
8839main ()
8840{
Dan Gohman39ed6782010-04-25 00:12:20 +00008841
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008842 ;
8843 return 0;
8844}
8845_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008846rm -f conftest.$ac_objext conftest$ac_exeext
8847if { (ac_try="$ac_link"
8848case "(($ac_try" in
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8851esac
8852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_link") 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } &&
8860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8861 { (case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8864esac
8865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_try") 2>&5
8867 ac_status=$?
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; } &&
8870 { ac_try='test -s conftest$ac_exeext'
8871 { (case "(($ac_try" in
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8874esac
8875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876 (eval "$ac_try") 2>&5
8877 ac_status=$?
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008880 llvm_cv_link_use_export_dynamic=yes
8881else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008882 echo "$as_me: failed program was:" >&5
8883sed 's/^/| /' conftest.$ac_ext >&5
8884
8885 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008886fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008887
Bill Wendlingebcceee2009-04-18 11:20:33 +00008888rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008889 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008890 CFLAGS="$oldcflags"
8891 ac_ext=c
8892ac_cpp='$CPP $CPPFLAGS'
8893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8895ac_compiler_gnu=$ac_cv_c_compiler_gnu
8896
8897
8898fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008899{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8900echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008901if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8902
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008903cat >>confdefs.h <<\_ACEOF
8904#define HAVE_LINK_EXPORT_DYNAMIC 1
8905_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008906
8907 fi
8908
8909
Dan Gohmanda612d62010-06-01 14:56:56 +00008910{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8911echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8912if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008913 echo $ECHO_N "(cached) $ECHO_C" >&6
8914else
8915 ac_ext=c
8916ac_cpp='$CPP $CPPFLAGS'
8917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8919ac_compiler_gnu=$ac_cv_c_compiler_gnu
8920
8921 oldcflags="$CFLAGS"
8922
8923 # The following code is from the autoconf manual,
8924 # "11.13: Limitations of Usual Tools".
8925 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8926 # Use mktemp if possible; otherwise fall back on mkdir,
8927 # with $RANDOM to make collisions less likely.
8928 : ${TMPDIR=/tmp}
8929 {
8930 tmp=`
8931 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8932 ` &&
8933 test -n "$tmp" && test -d "$tmp"
8934 } || {
8935 tmp=$TMPDIR/foo$$-$RANDOM
8936 (umask 077 && mkdir "$tmp")
8937 } || exit $?
8938
Dan Gohmanda612d62010-06-01 14:56:56 +00008939 echo "{" > "$tmp/export.map"
8940 echo " global: main;" >> "$tmp/export.map"
8941 echo " local: *;" >> "$tmp/export.map"
8942 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008943
Dan Gohmanda612d62010-06-01 14:56:56 +00008944 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008945 cat >conftest.$ac_ext <<_ACEOF
8946/* confdefs.h. */
8947_ACEOF
8948cat confdefs.h >>conftest.$ac_ext
8949cat >>conftest.$ac_ext <<_ACEOF
8950/* end confdefs.h. */
8951
8952int
8953main ()
8954{
Dan Gohman39ed6782010-04-25 00:12:20 +00008955
Dan Gohman391569c2010-04-16 22:59:06 +00008956 ;
8957 return 0;
8958}
8959_ACEOF
8960rm -f conftest.$ac_objext conftest$ac_exeext
8961if { (ac_try="$ac_link"
8962case "(($ac_try" in
8963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8965esac
8966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_link") 2>conftest.er1
8968 ac_status=$?
8969 grep -v '^ *+' conftest.er1 >conftest.err
8970 rm -f conftest.er1
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8975 { (case "(($ac_try" in
8976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8977 *) ac_try_echo=$ac_try;;
8978esac
8979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8980 (eval "$ac_try") 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; } &&
8984 { ac_try='test -s conftest$ac_exeext'
8985 { (case "(($ac_try" in
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8988esac
8989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_try") 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008994 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008995else
8996 echo "$as_me: failed program was:" >&5
8997sed 's/^/| /' conftest.$ac_ext >&5
8998
Dan Gohman943005e2010-06-01 16:22:27 +00008999 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009000fi
9001
9002rm -f core conftest.err conftest.$ac_objext \
9003 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009004 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009005 rmdir "$tmp"
9006 CFLAGS="$oldcflags"
9007 ac_ext=c
9008ac_cpp='$CPP $CPPFLAGS'
9009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9011ac_compiler_gnu=$ac_cv_c_compiler_gnu
9012
9013
9014fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009015{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9016echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9017if test "$llvm_cv_link_use_version_script" = yes ; then
9018 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009019
9020 fi
9021
9022
Reid Spencera773bd52006-08-04 18:18:08 +00009023
9024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009025{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9026echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9027if test "${ac_cv_c_const+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009029else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009030 cat >conftest.$ac_ext <<_ACEOF
9031/* confdefs.h. */
9032_ACEOF
9033cat confdefs.h >>conftest.$ac_ext
9034cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009035/* end confdefs.h. */
9036
9037int
9038main ()
9039{
9040/* FIXME: Include the comments suggested by Paul. */
9041#ifndef __cplusplus
9042 /* Ultrix mips cc rejects this. */
9043 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009044 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009045 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009046 char const *const *ccp;
9047 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009048 /* NEC SVR4.0.2 mips cc rejects this. */
9049 struct point {int x, y;};
9050 static struct point const zero = {0,0};
9051 /* AIX XL C 1.02.0.0 rejects this.
9052 It does not let you subtract one const X* pointer from another in
9053 an arm of an if-expression whose if-part is not a constant
9054 expression */
9055 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009056 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009057 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009058 ++ccp;
9059 p = (char**) ccp;
9060 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009061 { /* SCO 3.2v4 cc rejects this. */
9062 char *t;
9063 char const *s = 0 ? (char *) 0 : (char const *) 0;
9064
9065 *t++ = 0;
9066 if (s) return 0;
9067 }
9068 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9069 int x[] = {25, 17};
9070 const int *foo = &x[0];
9071 ++foo;
9072 }
9073 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9074 typedef const int *iptr;
9075 iptr p = 0;
9076 ++p;
9077 }
9078 { /* AIX XL C 1.02.0.0 rejects this saying
9079 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9080 struct s { int j; const int *ap[3]; };
9081 struct s *b; b->j = 5;
9082 }
9083 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9084 const int foo = 10;
9085 if (!foo) return 0;
9086 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009087 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009088#endif
9089
9090 ;
9091 return 0;
9092}
9093_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009094rm -f conftest.$ac_objext
9095if { (ac_try="$ac_compile"
9096case "(($ac_try" in
9097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098 *) ac_try_echo=$ac_try;;
9099esac
9100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101 (eval "$ac_compile") 2>conftest.er1
9102 ac_status=$?
9103 grep -v '^ *+' conftest.er1 >conftest.err
9104 rm -f conftest.er1
9105 cat conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } &&
9108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9109 { (case "(($ac_try" in
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9112esac
9113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_try") 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; } &&
9118 { ac_try='test -s conftest.$ac_objext'
9119 { (case "(($ac_try" in
9120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9121 *) ac_try_echo=$ac_try;;
9122esac
9123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9124 (eval "$ac_try") 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009128 ac_cv_c_const=yes
9129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009130 echo "$as_me: failed program was:" >&5
9131sed 's/^/| /' conftest.$ac_ext >&5
9132
9133 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009135
Reid Spencera773bd52006-08-04 18:18:08 +00009136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009138{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9139echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009140if test $ac_cv_c_const = no; then
9141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009142cat >>confdefs.h <<\_ACEOF
9143#define const
9144_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009145
9146fi
9147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009148
9149
9150
9151
9152
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009153ac_header_dirent=no
9154for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009155 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9156{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9157echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009160else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009161 cat >conftest.$ac_ext <<_ACEOF
9162/* confdefs.h. */
9163_ACEOF
9164cat confdefs.h >>conftest.$ac_ext
9165cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009166/* end confdefs.h. */
9167#include <sys/types.h>
9168#include <$ac_hdr>
9169
9170int
9171main ()
9172{
9173if ((DIR *) 0)
9174return 0;
9175 ;
9176 return 0;
9177}
9178_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009179rm -f conftest.$ac_objext
9180if { (ac_try="$ac_compile"
9181case "(($ac_try" in
9182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9183 *) ac_try_echo=$ac_try;;
9184esac
9185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9186 (eval "$ac_compile") 2>conftest.er1
9187 ac_status=$?
9188 grep -v '^ *+' conftest.er1 >conftest.err
9189 rm -f conftest.er1
9190 cat conftest.err >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9194 { (case "(($ac_try" in
9195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9196 *) ac_try_echo=$ac_try;;
9197esac
9198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9199 (eval "$ac_try") 2>&5
9200 ac_status=$?
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; } &&
9203 { ac_try='test -s conftest.$ac_objext'
9204 { (case "(($ac_try" in
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9207esac
9208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_try") 2>&5
9210 ac_status=$?
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009213 eval "$as_ac_Header=yes"
9214else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009215 echo "$as_me: failed program was:" >&5
9216sed 's/^/| /' conftest.$ac_ext >&5
9217
9218 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009220
Reid Spencera773bd52006-08-04 18:18:08 +00009221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009223ac_res=`eval echo '${'$as_ac_Header'}'`
9224 { echo "$as_me:$LINENO: result: $ac_res" >&5
9225echo "${ECHO_T}$ac_res" >&6; }
9226if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009227 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009228#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009229_ACEOF
9230
9231ac_header_dirent=$ac_hdr; break
9232fi
9233
9234done
9235# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9236if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009237 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9238echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9239if test "${ac_cv_search_opendir+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009241else
9242 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009243cat >conftest.$ac_ext <<_ACEOF
9244/* confdefs.h. */
9245_ACEOF
9246cat confdefs.h >>conftest.$ac_ext
9247cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009248/* end confdefs.h. */
9249
Reid Spencera773bd52006-08-04 18:18:08 +00009250/* Override any GCC internal prototype to avoid an error.
9251 Use char because int might match the return type of a GCC
9252 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009253#ifdef __cplusplus
9254extern "C"
9255#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009256char opendir ();
9257int
9258main ()
9259{
Reid Spencera773bd52006-08-04 18:18:08 +00009260return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009261 ;
9262 return 0;
9263}
9264_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009265for ac_lib in '' dir; do
9266 if test -z "$ac_lib"; then
9267 ac_res="none required"
9268 else
9269 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009271 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009272 rm -f conftest.$ac_objext conftest$ac_exeext
9273if { (ac_try="$ac_link"
9274case "(($ac_try" in
9275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276 *) ac_try_echo=$ac_try;;
9277esac
9278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279 (eval "$ac_link") 2>conftest.er1
9280 ac_status=$?
9281 grep -v '^ *+' conftest.er1 >conftest.err
9282 rm -f conftest.er1
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } &&
9286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9287 { (case "(($ac_try" in
9288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289 *) ac_try_echo=$ac_try;;
9290esac
9291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292 (eval "$ac_try") 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest$ac_exeext'
9297 { (case "(($ac_try" in
9298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9300esac
9301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_try") 2>&5
9303 ac_status=$?
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009306 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009307else
9308 echo "$as_me: failed program was:" >&5
9309sed 's/^/| /' conftest.$ac_ext >&5
9310
9311
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009313
Bill Wendlingebcceee2009-04-18 11:20:33 +00009314rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009315 conftest$ac_exeext
9316 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009317 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009318fi
John Criswell7a73b802003-06-30 21:59:07 +00009319done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009320if test "${ac_cv_search_opendir+set}" = set; then
9321 :
Reid Spencera773bd52006-08-04 18:18:08 +00009322else
9323 ac_cv_search_opendir=no
9324fi
9325rm conftest.$ac_ext
9326LIBS=$ac_func_search_save_LIBS
9327fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009328{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9329echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009330ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009331if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009333
Reid Spencera773bd52006-08-04 18:18:08 +00009334fi
9335
9336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009337 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9338echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9339if test "${ac_cv_search_opendir+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009341else
9342 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009343cat >conftest.$ac_ext <<_ACEOF
9344/* confdefs.h. */
9345_ACEOF
9346cat confdefs.h >>conftest.$ac_ext
9347cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009348/* end confdefs.h. */
9349
9350/* Override any GCC internal prototype to avoid an error.
9351 Use char because int might match the return type of a GCC
9352 builtin and then its argument prototype would still apply. */
9353#ifdef __cplusplus
9354extern "C"
9355#endif
9356char opendir ();
9357int
9358main ()
9359{
9360return opendir ();
9361 ;
9362 return 0;
9363}
9364_ACEOF
9365for ac_lib in '' x; do
9366 if test -z "$ac_lib"; then
9367 ac_res="none required"
9368 else
9369 ac_res=-l$ac_lib
9370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9371 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009372 rm -f conftest.$ac_objext conftest$ac_exeext
9373if { (ac_try="$ac_link"
9374case "(($ac_try" in
9375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376 *) ac_try_echo=$ac_try;;
9377esac
9378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9379 (eval "$ac_link") 2>conftest.er1
9380 ac_status=$?
9381 grep -v '^ *+' conftest.er1 >conftest.err
9382 rm -f conftest.er1
9383 cat conftest.err >&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); } &&
9386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9387 { (case "(($ac_try" in
9388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389 *) ac_try_echo=$ac_try;;
9390esac
9391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_try") 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; } &&
9396 { ac_try='test -s conftest$ac_exeext'
9397 { (case "(($ac_try" in
9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9400esac
9401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_try") 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009406 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009407else
9408 echo "$as_me: failed program was:" >&5
9409sed 's/^/| /' conftest.$ac_ext >&5
9410
9411
Reid Spencera773bd52006-08-04 18:18:08 +00009412fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009413
Bill Wendlingebcceee2009-04-18 11:20:33 +00009414rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009415 conftest$ac_exeext
9416 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009417 break
9418fi
9419done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009420if test "${ac_cv_search_opendir+set}" = set; then
9421 :
Reid Spencera773bd52006-08-04 18:18:08 +00009422else
9423 ac_cv_search_opendir=no
9424fi
9425rm conftest.$ac_ext
9426LIBS=$ac_func_search_save_LIBS
9427fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009428{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9429echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009430ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009431if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9433
9434fi
9435
9436fi
John Criswell7a73b802003-06-30 21:59:07 +00009437
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009438
John Criswell7a73b802003-06-30 21:59:07 +00009439for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009440do
9441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9447fi
9448ac_res=`eval echo '${'$as_ac_Header'}'`
9449 { echo "$as_me:$LINENO: result: $ac_res" >&5
9450echo "${ECHO_T}$ac_res" >&6; }
9451else
9452 # Is the header compilable?
9453{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9454echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9455cat >conftest.$ac_ext <<_ACEOF
9456/* confdefs.h. */
9457_ACEOF
9458cat confdefs.h >>conftest.$ac_ext
9459cat >>conftest.$ac_ext <<_ACEOF
9460/* end confdefs.h. */
9461$ac_includes_default
9462#include <$ac_header>
9463_ACEOF
9464rm -f conftest.$ac_objext
9465if { (ac_try="$ac_compile"
9466case "(($ac_try" in
9467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468 *) ac_try_echo=$ac_try;;
9469esac
9470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9471 (eval "$ac_compile") 2>conftest.er1
9472 ac_status=$?
9473 grep -v '^ *+' conftest.er1 >conftest.err
9474 rm -f conftest.er1
9475 cat conftest.err >&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } &&
9478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9479 { (case "(($ac_try" in
9480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9481 *) ac_try_echo=$ac_try;;
9482esac
9483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484 (eval "$ac_try") 2>&5
9485 ac_status=$?
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; } &&
9488 { ac_try='test -s conftest.$ac_objext'
9489 { (case "(($ac_try" in
9490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9491 *) ac_try_echo=$ac_try;;
9492esac
9493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_try") 2>&5
9495 ac_status=$?
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9498 ac_header_compiler=yes
9499else
9500 echo "$as_me: failed program was:" >&5
9501sed 's/^/| /' conftest.$ac_ext >&5
9502
9503 ac_header_compiler=no
9504fi
9505
9506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9508echo "${ECHO_T}$ac_header_compiler" >&6; }
9509
9510# Is the header present?
9511{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9512echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9513cat >conftest.$ac_ext <<_ACEOF
9514/* confdefs.h. */
9515_ACEOF
9516cat confdefs.h >>conftest.$ac_ext
9517cat >>conftest.$ac_ext <<_ACEOF
9518/* end confdefs.h. */
9519#include <$ac_header>
9520_ACEOF
9521if { (ac_try="$ac_cpp conftest.$ac_ext"
9522case "(($ac_try" in
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9525esac
9526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9528 ac_status=$?
9529 grep -v '^ *+' conftest.er1 >conftest.err
9530 rm -f conftest.er1
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } >/dev/null; then
9534 if test -s conftest.err; then
9535 ac_cpp_err=$ac_c_preproc_warn_flag
9536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9537 else
9538 ac_cpp_err=
9539 fi
9540else
9541 ac_cpp_err=yes
9542fi
9543if test -z "$ac_cpp_err"; then
9544 ac_header_preproc=yes
9545else
9546 echo "$as_me: failed program was:" >&5
9547sed 's/^/| /' conftest.$ac_ext >&5
9548
9549 ac_header_preproc=no
9550fi
9551
9552rm -f conftest.err conftest.$ac_ext
9553{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9554echo "${ECHO_T}$ac_header_preproc" >&6; }
9555
9556# So? What about this header?
9557case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9558 yes:no: )
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9560echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9562echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9563 ac_header_preproc=yes
9564 ;;
9565 no:yes:* )
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9567echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9569echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9571echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9573echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9575echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9577echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9578 ( cat <<\_ASBOX
9579## ----------------------------------- ##
9580## Report this to llvmbugs@cs.uiuc.edu ##
9581## ----------------------------------- ##
9582_ASBOX
9583 ) | sed "s/^/$as_me: WARNING: /" >&2
9584 ;;
9585esac
9586{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9590else
9591 eval "$as_ac_Header=\$ac_header_preproc"
9592fi
9593ac_res=`eval echo '${'$as_ac_Header'}'`
9594 { echo "$as_me:$LINENO: result: $ac_res" >&5
9595echo "${ECHO_T}$ac_res" >&6; }
9596
9597fi
9598if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009599 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009600#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009601_ACEOF
9602
9603fi
9604
9605done
9606
Reid Spencera773bd52006-08-04 18:18:08 +00009607# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009608if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009609 enableval=$enable_ltdl_install;
9610fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009611
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009613
9614
9615if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009616 INSTALL_LTDL_TRUE=
9617 INSTALL_LTDL_FALSE='#'
9618else
9619 INSTALL_LTDL_TRUE='#'
9620 INSTALL_LTDL_FALSE=
9621fi
9622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009623
9624
9625if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009626 CONVENIENCE_LTDL_TRUE=
9627 CONVENIENCE_LTDL_FALSE='#'
9628else
9629 CONVENIENCE_LTDL_TRUE='#'
9630 CONVENIENCE_LTDL_FALSE=
9631fi
9632
9633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009634{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9635echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009636library_names_spec=
9637libname_spec='lib$name'
9638soname_spec=
9639shrext_cmds=".so"
9640postinstall_cmds=
9641postuninstall_cmds=
9642finish_cmds=
9643finish_eval=
9644shlibpath_var=
9645shlibpath_overrides_runpath=unknown
9646version_type=none
9647dynamic_linker="$host_os ld.so"
9648sys_lib_dlsearch_path_spec="/lib /usr/lib"
9649if test "$GCC" = yes; then
9650 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9651 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9652 # if the path contains ";" then we assume it to be the separator
9653 # otherwise default to the standard path separator (i.e. ":") - it is
9654 # assumed that no part of a normal pathname contains ";" but that should
9655 # okay in the real world where ";" in dirpaths is itself problematic.
9656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9657 else
9658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9659 fi
9660else
9661 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9662fi
9663need_lib_prefix=unknown
9664hardcode_into_libs=no
9665
9666# when you set need_version to no, make sure it does not cause -set_version
9667# flags to be left without arguments
9668need_version=unknown
9669
9670case $host_os in
9671aix3*)
9672 version_type=linux
9673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9674 shlibpath_var=LIBPATH
9675
9676 # AIX 3 has no versioning support, so we append a major version to the name.
9677 soname_spec='${libname}${release}${shared_ext}$major'
9678 ;;
9679
9680aix4* | aix5*)
9681 version_type=linux
9682 need_lib_prefix=no
9683 need_version=no
9684 hardcode_into_libs=yes
9685 if test "$host_cpu" = ia64; then
9686 # AIX 5 supports IA64
9687 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9688 shlibpath_var=LD_LIBRARY_PATH
9689 else
9690 # With GCC up to 2.95.x, collect2 would create an import file
9691 # for dependence libraries. The import file would start with
9692 # the line `#! .'. This would cause the generated library to
9693 # depend on `.', always an invalid library. This was fixed in
9694 # development snapshots of GCC prior to 3.0.
9695 case $host_os in
9696 aix4 | aix4.[01] | aix4.[01].*)
9697 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9698 echo ' yes '
9699 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9700 :
9701 else
9702 can_build_shared=no
9703 fi
9704 ;;
9705 esac
9706 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9707 # soname into executable. Probably we can add versioning support to
9708 # collect2, so additional links can be useful in future.
9709 if test "$aix_use_runtimelinking" = yes; then
9710 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9711 # instead of lib<name>.a to let people know that these are not
9712 # typical AIX shared libraries.
9713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714 else
9715 # We preserve .a as extension for shared libraries through AIX4.2
9716 # and later when we are not doing run time linking.
9717 library_names_spec='${libname}${release}.a $libname.a'
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 fi
9720 shlibpath_var=LIBPATH
9721 fi
9722 ;;
9723
9724amigaos*)
9725 library_names_spec='$libname.ixlibrary $libname.a'
9726 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9727 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'
9728 ;;
9729
9730beos*)
9731 library_names_spec='${libname}${shared_ext}'
9732 dynamic_linker="$host_os ld.so"
9733 shlibpath_var=LIBRARY_PATH
9734 ;;
9735
9736bsdi[45]*)
9737 version_type=linux
9738 need_version=no
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9742 shlibpath_var=LD_LIBRARY_PATH
9743 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9744 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9745 # the default ld.so.conf also contains /usr/contrib/lib and
9746 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9747 # libtool to hard-code these into programs
9748 ;;
9749
9750cygwin* | mingw* | pw32*)
9751 version_type=windows
9752 shrext_cmds=".dll"
9753 need_version=no
9754 need_lib_prefix=no
9755
9756 case $GCC,$host_os in
9757 yes,cygwin* | yes,mingw* | yes,pw32*)
9758 library_names_spec='$libname.dll.a'
9759 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9760 postinstall_cmds='base_file=`basename \${file}`~
9761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9762 dldir=$destdir/`dirname \$dlpath`~
9763 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009764 $install_prog $dir/$dlname \$dldir/$dlname~
9765 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009766 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9767 dlpath=$dir/\$dldll~
9768 $rm \$dlpath'
9769 shlibpath_overrides_runpath=yes
9770
9771 case $host_os in
9772 cygwin*)
9773 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9774 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9775 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9776 ;;
9777 mingw*)
9778 # MinGW DLLs use traditional 'lib' prefix
9779 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9780 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9781 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9782 # It is most probably a Windows format PATH printed by
9783 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9784 # path with ; separators, and with drive letters. We can handle the
9785 # drive letters (cygwin fileutils understands them), so leave them,
9786 # especially as we might pass files found there to a mingw objdump,
9787 # which wouldn't understand a cygwinified path. Ahh.
9788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9789 else
9790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9791 fi
9792 ;;
9793 pw32*)
9794 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009795 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 +00009796 ;;
9797 esac
9798 ;;
9799
9800 *)
9801 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9802 ;;
9803 esac
9804 dynamic_linker='Win32 ld.exe'
9805 # FIXME: first we should search . and the directory the executable is in
9806 shlibpath_var=PATH
9807 ;;
9808
9809darwin* | rhapsody*)
9810 dynamic_linker="$host_os dyld"
9811 version_type=darwin
9812 need_lib_prefix=no
9813 need_version=no
9814 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9815 soname_spec='${libname}${release}${major}$shared_ext'
9816 shlibpath_overrides_runpath=yes
9817 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009818 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009819 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9820 if test "$GCC" = yes; then
9821 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"`
9822 else
9823 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9824 fi
9825 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9826 ;;
9827
9828dgux*)
9829 version_type=linux
9830 need_lib_prefix=no
9831 need_version=no
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 shlibpath_var=LD_LIBRARY_PATH
9835 ;;
9836
9837freebsd1*)
9838 dynamic_linker=no
9839 ;;
9840
9841kfreebsd*-gnu)
9842 version_type=linux
9843 need_lib_prefix=no
9844 need_version=no
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9846 soname_spec='${libname}${release}${shared_ext}$major'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath=no
9849 hardcode_into_libs=yes
9850 dynamic_linker='GNU ld.so'
9851 ;;
9852
Reid Spencera773bd52006-08-04 18:18:08 +00009853freebsd* | dragonfly*)
9854 # DragonFly does not have aout. When/if they implement a new
9855 # versioning mechanism, adjust this.
9856 if test -x /usr/bin/objformat; then
9857 objformat=`/usr/bin/objformat`
9858 else
9859 case $host_os in
9860 freebsd[123]*) objformat=aout ;;
9861 *) objformat=elf ;;
9862 esac
9863 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009864 version_type=freebsd-$objformat
9865 case $version_type in
9866 freebsd-elf*)
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9868 need_version=no
9869 need_lib_prefix=no
9870 ;;
9871 freebsd-*)
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9873 need_version=yes
9874 ;;
9875 esac
9876 shlibpath_var=LD_LIBRARY_PATH
9877 case $host_os in
9878 freebsd2*)
9879 shlibpath_overrides_runpath=yes
9880 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009881 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009882 shlibpath_overrides_runpath=yes
9883 hardcode_into_libs=yes
9884 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009885 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9886 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009887 shlibpath_overrides_runpath=no
9888 hardcode_into_libs=yes
9889 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009890 freebsd*) # from 4.6 on
9891 shlibpath_overrides_runpath=yes
9892 hardcode_into_libs=yes
9893 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009894 esac
9895 ;;
9896
9897gnu*)
9898 version_type=linux
9899 need_lib_prefix=no
9900 need_version=no
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 shlibpath_var=LD_LIBRARY_PATH
9904 hardcode_into_libs=yes
9905 ;;
9906
9907hpux9* | hpux10* | hpux11*)
9908 # Give a soname corresponding to the major version so that dld.sl refuses to
9909 # link against other versions.
9910 version_type=sunos
9911 need_lib_prefix=no
9912 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009913 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009914 ia64*)
9915 shrext_cmds='.so'
9916 hardcode_into_libs=yes
9917 dynamic_linker="$host_os dld.so"
9918 shlibpath_var=LD_LIBRARY_PATH
9919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921 soname_spec='${libname}${release}${shared_ext}$major'
9922 if test "X$HPUX_IA64_MODE" = X32; then
9923 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9924 else
9925 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9926 fi
9927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9928 ;;
9929 hppa*64*)
9930 shrext_cmds='.sl'
9931 hardcode_into_libs=yes
9932 dynamic_linker="$host_os dld.sl"
9933 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936 soname_spec='${libname}${release}${shared_ext}$major'
9937 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9939 ;;
9940 *)
9941 shrext_cmds='.sl'
9942 dynamic_linker="$host_os dld.sl"
9943 shlibpath_var=SHLIB_PATH
9944 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946 soname_spec='${libname}${release}${shared_ext}$major'
9947 ;;
9948 esac
9949 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9950 postinstall_cmds='chmod 555 $lib'
9951 ;;
9952
Reid Spencera773bd52006-08-04 18:18:08 +00009953interix3*)
9954 version_type=linux
9955 need_lib_prefix=no
9956 need_version=no
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9958 soname_spec='${libname}${release}${shared_ext}$major'
9959 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9960 shlibpath_var=LD_LIBRARY_PATH
9961 shlibpath_overrides_runpath=no
9962 hardcode_into_libs=yes
9963 ;;
9964
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009965irix5* | irix6* | nonstopux*)
9966 case $host_os in
9967 nonstopux*) version_type=nonstopux ;;
9968 *)
9969 if test "$lt_cv_prog_gnu_ld" = yes; then
9970 version_type=linux
9971 else
9972 version_type=irix
9973 fi ;;
9974 esac
9975 need_lib_prefix=no
9976 need_version=no
9977 soname_spec='${libname}${release}${shared_ext}$major'
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9979 case $host_os in
9980 irix5* | nonstopux*)
9981 libsuff= shlibsuff=
9982 ;;
9983 *)
9984 case $LD in # libtool.m4 will add one of these switches to LD
9985 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9986 libsuff= shlibsuff= libmagic=32-bit;;
9987 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9988 libsuff=32 shlibsuff=N32 libmagic=N32;;
9989 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9990 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9991 *) libsuff= shlibsuff= libmagic=never-match;;
9992 esac
9993 ;;
9994 esac
9995 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9996 shlibpath_overrides_runpath=no
9997 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9998 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9999 hardcode_into_libs=yes
10000 ;;
10001
10002# No shared lib support for Linux oldld, aout, or coff.
10003linux*oldld* | linux*aout* | linux*coff*)
10004 dynamic_linker=no
10005 ;;
10006
10007# This must be Linux ELF.
10008linux*)
10009 version_type=linux
10010 need_lib_prefix=no
10011 need_version=no
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013 soname_spec='${libname}${release}${shared_ext}$major'
10014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10015 shlibpath_var=LD_LIBRARY_PATH
10016 shlibpath_overrides_runpath=no
10017 # This implies no fast_install, which is unacceptable.
10018 # Some rework will be needed to allow for fast_install
10019 # before this can be enabled.
10020 hardcode_into_libs=yes
10021
10022 # Append ld.so.conf contents to the search path
10023 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010024 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 +000010025 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10026 fi
10027
10028 # We used to test for /lib/ld.so.1 and disable shared libraries on
10029 # powerpc, because MkLinux only supported shared libraries with the
10030 # GNU dynamic linker. Since this was broken with cross compilers,
10031 # most powerpc-linux boxes support dynamic linking these days and
10032 # people can always --disable-shared, the test was removed, and we
10033 # assume the GNU/Linux dynamic linker is in use.
10034 dynamic_linker='GNU/Linux ld.so'
10035 ;;
10036
10037knetbsd*-gnu)
10038 version_type=linux
10039 need_lib_prefix=no
10040 need_version=no
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10042 soname_spec='${libname}${release}${shared_ext}$major'
10043 shlibpath_var=LD_LIBRARY_PATH
10044 shlibpath_overrides_runpath=no
10045 hardcode_into_libs=yes
10046 dynamic_linker='GNU ld.so'
10047 ;;
10048
10049netbsd*)
10050 version_type=sunos
10051 need_lib_prefix=no
10052 need_version=no
10053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10056 dynamic_linker='NetBSD (a.out) ld.so'
10057 else
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 dynamic_linker='NetBSD ld.elf_so'
10061 fi
10062 shlibpath_var=LD_LIBRARY_PATH
10063 shlibpath_overrides_runpath=yes
10064 hardcode_into_libs=yes
10065 ;;
10066
10067newsos6)
10068 version_type=linux
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070 shlibpath_var=LD_LIBRARY_PATH
10071 shlibpath_overrides_runpath=yes
10072 ;;
10073
10074nto-qnx*)
10075 version_type=linux
10076 need_lib_prefix=no
10077 need_version=no
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079 soname_spec='${libname}${release}${shared_ext}$major'
10080 shlibpath_var=LD_LIBRARY_PATH
10081 shlibpath_overrides_runpath=yes
10082 ;;
10083
10084openbsd*)
10085 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010086 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010087 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010088 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10089 case $host_os in
10090 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10091 *) need_version=no ;;
10092 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10095 shlibpath_var=LD_LIBRARY_PATH
10096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10097 case $host_os in
10098 openbsd2.[89] | openbsd2.[89].*)
10099 shlibpath_overrides_runpath=no
10100 ;;
10101 *)
10102 shlibpath_overrides_runpath=yes
10103 ;;
10104 esac
10105 else
10106 shlibpath_overrides_runpath=yes
10107 fi
10108 ;;
10109
10110os2*)
10111 libname_spec='$name'
10112 shrext_cmds=".dll"
10113 need_lib_prefix=no
10114 library_names_spec='$libname${shared_ext} $libname.a'
10115 dynamic_linker='OS/2 ld.exe'
10116 shlibpath_var=LIBPATH
10117 ;;
10118
10119osf3* | osf4* | osf5*)
10120 version_type=osf
10121 need_lib_prefix=no
10122 need_version=no
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 shlibpath_var=LD_LIBRARY_PATH
10126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10128 ;;
10129
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010130solaris*)
10131 version_type=linux
10132 need_lib_prefix=no
10133 need_version=no
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 shlibpath_var=LD_LIBRARY_PATH
10137 shlibpath_overrides_runpath=yes
10138 hardcode_into_libs=yes
10139 # ldd complains unless libraries are executable
10140 postinstall_cmds='chmod +x $lib'
10141 ;;
10142
10143sunos4*)
10144 version_type=sunos
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10146 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10147 shlibpath_var=LD_LIBRARY_PATH
10148 shlibpath_overrides_runpath=yes
10149 if test "$with_gnu_ld" = yes; then
10150 need_lib_prefix=no
10151 fi
10152 need_version=yes
10153 ;;
10154
Reid Spencera773bd52006-08-04 18:18:08 +000010155sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010156 version_type=linux
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 soname_spec='${libname}${release}${shared_ext}$major'
10159 shlibpath_var=LD_LIBRARY_PATH
10160 case $host_vendor in
10161 sni)
10162 shlibpath_overrides_runpath=no
10163 need_lib_prefix=no
10164 export_dynamic_flag_spec='${wl}-Blargedynsym'
10165 runpath_var=LD_RUN_PATH
10166 ;;
10167 siemens)
10168 need_lib_prefix=no
10169 ;;
10170 motorola)
10171 need_lib_prefix=no
10172 need_version=no
10173 shlibpath_overrides_runpath=no
10174 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10175 ;;
10176 esac
10177 ;;
10178
10179sysv4*MP*)
10180 if test -d /usr/nec ;then
10181 version_type=linux
10182 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10183 soname_spec='$libname${shared_ext}.$major'
10184 shlibpath_var=LD_LIBRARY_PATH
10185 fi
10186 ;;
10187
Reid Spencera773bd52006-08-04 18:18:08 +000010188sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10189 version_type=freebsd-elf
10190 need_lib_prefix=no
10191 need_version=no
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10193 soname_spec='${libname}${release}${shared_ext}$major'
10194 shlibpath_var=LD_LIBRARY_PATH
10195 hardcode_into_libs=yes
10196 if test "$with_gnu_ld" = yes; then
10197 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10198 shlibpath_overrides_runpath=no
10199 else
10200 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10201 shlibpath_overrides_runpath=yes
10202 case $host_os in
10203 sco3.2v5*)
10204 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10205 ;;
10206 esac
10207 fi
10208 sys_lib_dlsearch_path_spec='/usr/lib'
10209 ;;
10210
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010211uts4*)
10212 version_type=linux
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 shlibpath_var=LD_LIBRARY_PATH
10216 ;;
10217
10218*)
10219 dynamic_linker=no
10220 ;;
10221esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010222{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10223echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010224test "$dynamic_linker" = no && can_build_shared=no
10225
Reid Spencera773bd52006-08-04 18:18:08 +000010226variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10227if test "$GCC" = yes; then
10228 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10229fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010230
Reid Spencera773bd52006-08-04 18:18:08 +000010231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010232{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10233echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10234if test "${libltdl_cv_shlibext+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010236else
10237
10238module=yes
10239eval libltdl_cv_shlibext=$shrext_cmds
10240
10241fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010242{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10243echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010244if test -n "$libltdl_cv_shlibext"; then
10245
10246cat >>confdefs.h <<_ACEOF
10247#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10248_ACEOF
10249
10250fi
10251
10252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010253{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10254echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10255if test "${libltdl_cv_shlibpath_var+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010257else
10258 libltdl_cv_shlibpath_var="$shlibpath_var"
10259fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010260{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10261echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010262if test -n "$libltdl_cv_shlibpath_var"; then
10263
10264cat >>confdefs.h <<_ACEOF
10265#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10266_ACEOF
10267
10268fi
10269
10270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010271{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10272echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10273if test "${libltdl_cv_sys_search_path+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010275else
10276 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10277fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010278{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10279echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010280if test -n "$libltdl_cv_sys_search_path"; then
10281 sys_search_path=
10282 for dir in $libltdl_cv_sys_search_path; do
10283 if test -z "$sys_search_path"; then
10284 sys_search_path="$dir"
10285 else
10286 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10287 fi
10288 done
10289
10290cat >>confdefs.h <<_ACEOF
10291#define LTDL_SYSSEARCHPATH "$sys_search_path"
10292_ACEOF
10293
10294fi
10295
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010296{ echo "$as_me:$LINENO: checking for objdir" >&5
10297echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10298if test "${libltdl_cv_objdir+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010300else
10301 libltdl_cv_objdir="$objdir"
10302 if test -n "$objdir"; then
10303 :
10304 else
10305 rm -f .libs 2>/dev/null
10306 mkdir .libs 2>/dev/null
10307 if test -d .libs; then
10308 libltdl_cv_objdir=.libs
10309 else
10310 # MS-DOS does not allow filenames that begin with a dot.
10311 libltdl_cv_objdir=_libs
10312 fi
10313 rmdir .libs 2>/dev/null
10314 fi
10315
10316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010317{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10318echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010319
10320cat >>confdefs.h <<_ACEOF
10321#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10322_ACEOF
10323
10324
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010325
10326
10327
10328
10329# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010330{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10331echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10332if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010334else
10335
10336# These are sane defaults that work on at least a few old systems.
10337# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10338
10339# Character class describing NM global symbol codes.
10340symcode='[BCDEGRST]'
10341
10342# Regexp to match symbols that can be accessed directly from C.
10343sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10344
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010345# Transform an extracted symbol line into a proper C declaration
10346lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10347
10348# Transform an extracted symbol line into symbol name and symbol address
10349lt_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'"
10350
10351# Define system-specific variables.
10352case $host_os in
10353aix*)
10354 symcode='[BCDT]'
10355 ;;
10356cygwin* | mingw* | pw32*)
10357 symcode='[ABCDGISTW]'
10358 ;;
10359hpux*) # Its linker distinguishes data from code symbols
10360 if test "$host_cpu" = ia64; then
10361 symcode='[ABCDEGRST]'
10362 fi
10363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10364 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'"
10365 ;;
10366linux*)
10367 if test "$host_cpu" = ia64; then
10368 symcode='[ABCDGIRSTW]'
10369 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10370 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'"
10371 fi
10372 ;;
10373irix* | nonstopux*)
10374 symcode='[BCDEGRST]'
10375 ;;
10376osf*)
10377 symcode='[BCDEGQRST]'
10378 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010379solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010380 symcode='[BDRT]'
10381 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010382sco3.2v5*)
10383 symcode='[DT]'
10384 ;;
10385sysv4.2uw2*)
10386 symcode='[DT]'
10387 ;;
10388sysv5* | sco5v6* | unixware* | OpenUNIX*)
10389 symcode='[ABDT]'
10390 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010391sysv4)
10392 symcode='[DFNSTU]'
10393 ;;
10394esac
10395
10396# Handle CRLF in mingw tool chain
10397opt_cr=
10398case $build_os in
10399mingw*)
10400 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10401 ;;
10402esac
10403
10404# If we're using GNU nm, then use its standard symbol codes.
10405case `$NM -V 2>&1` in
10406*GNU* | *'with BFD'*)
10407 symcode='[ABCDGIRSTW]' ;;
10408esac
10409
10410# Try without a prefix undercore, then with it.
10411for ac_symprfx in "" "_"; do
10412
Reid Spencera773bd52006-08-04 18:18:08 +000010413 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10414 symxfrm="\\1 $ac_symprfx\\2 \\2"
10415
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010416 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010417 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 +000010418
10419 # Check to see that the pipe works correctly.
10420 pipe_works=no
10421
10422 rm -f conftest*
10423 cat > conftest.$ac_ext <<EOF
10424#ifdef __cplusplus
10425extern "C" {
10426#endif
10427char nm_test_var;
10428void nm_test_func(){}
10429#ifdef __cplusplus
10430}
10431#endif
10432int main(){nm_test_var='a';nm_test_func();return(0);}
10433EOF
10434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010436 (eval $ac_compile) 2>&5
10437 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010440 # Now try to grab the symbols.
10441 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010442 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 +000010443 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10444 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447 # Try sorting and uniquifying the output.
10448 if sort "$nlist" | uniq > "$nlist"T; then
10449 mv -f "$nlist"T "$nlist"
10450 else
10451 rm -f "$nlist"T
10452 fi
10453
10454 # Make sure that we snagged all the symbols we need.
10455 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10456 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10457 cat <<EOF > conftest.$ac_ext
10458#ifdef __cplusplus
10459extern "C" {
10460#endif
10461
10462EOF
10463 # Now generate the symbol file.
10464 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10465
10466 cat <<EOF >> conftest.$ac_ext
10467#if defined (__STDC__) && __STDC__
10468# define lt_ptr_t void *
10469#else
10470# define lt_ptr_t char *
10471# define const
10472#endif
10473
10474/* The mapping between symbol names and symbols. */
10475const struct {
10476 const char *name;
10477 lt_ptr_t address;
10478}
10479lt_preloaded_symbols[] =
10480{
10481EOF
10482 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10483 cat <<\EOF >> conftest.$ac_ext
10484 {0, (lt_ptr_t) 0}
10485};
10486
10487#ifdef __cplusplus
10488}
10489#endif
10490EOF
10491 # Now try linking the two files.
10492 mv conftest.$ac_objext conftstm.$ac_objext
10493 lt_save_LIBS="$LIBS"
10494 lt_save_CFLAGS="$CFLAGS"
10495 LIBS="conftstm.$ac_objext"
10496 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010498 (eval $ac_link) 2>&5
10499 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010502 pipe_works=yes
10503 fi
10504 LIBS="$lt_save_LIBS"
10505 CFLAGS="$lt_save_CFLAGS"
10506 else
10507 echo "cannot find nm_test_func in $nlist" >&5
10508 fi
10509 else
10510 echo "cannot find nm_test_var in $nlist" >&5
10511 fi
10512 else
10513 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10514 fi
10515 else
10516 echo "$progname: failed program was:" >&5
10517 cat conftest.$ac_ext >&5
10518 fi
10519 rm -f conftest* conftst*
10520
10521 # Do not use the global_symbol_pipe unless it works.
10522 if test "$pipe_works" = yes; then
10523 break
10524 else
10525 lt_cv_sys_global_symbol_pipe=
10526 fi
10527done
10528
10529fi
10530
10531if test -z "$lt_cv_sys_global_symbol_pipe"; then
10532 lt_cv_sys_global_symbol_to_cdecl=
10533fi
10534if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010535 { echo "$as_me:$LINENO: result: failed" >&5
10536echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010537else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010538 { echo "$as_me:$LINENO: result: ok" >&5
10539echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010540fi
10541
10542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010543{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10544echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10545if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010547else
10548 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10549 libltdl_cv_preloaded_symbols=yes
10550 else
10551 libltdl_cv_preloaded_symbols=no
10552 fi
10553
10554fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010555{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10556echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010557if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010559cat >>confdefs.h <<\_ACEOF
10560#define HAVE_PRELOADED_SYMBOLS 1
10561_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562
10563fi
10564
10565LIBADD_DL=
10566
10567ac_ext=c
10568ac_cpp='$CPP $CPPFLAGS'
10569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10571ac_compiler_gnu=$ac_cv_c_compiler_gnu
10572
10573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010574{ echo "$as_me:$LINENO: checking for shl_load" >&5
10575echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10576if test "${ac_cv_func_shl_load+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578else
10579 cat >conftest.$ac_ext <<_ACEOF
10580/* confdefs.h. */
10581_ACEOF
10582cat confdefs.h >>conftest.$ac_ext
10583cat >>conftest.$ac_ext <<_ACEOF
10584/* end confdefs.h. */
10585/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10587#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010589/* System header to define __stub macros and hopefully few prototypes,
10590 which can conflict with char shl_load (); below.
10591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10592 <limits.h> exists even on freestanding compilers. */
10593
10594#ifdef __STDC__
10595# include <limits.h>
10596#else
10597# include <assert.h>
10598#endif
10599
10600#undef shl_load
10601
10602/* Override any GCC internal prototype to avoid an error.
10603 Use char because int might match the return type of a GCC
10604 builtin and then its argument prototype would still apply. */
10605#ifdef __cplusplus
10606extern "C"
10607#endif
10608char shl_load ();
10609/* The GNU C library defines this for functions which it implements
10610 to always fail with ENOSYS. Some functions are actually named
10611 something starting with __ and the normal name is an alias. */
10612#if defined __stub_shl_load || defined __stub___shl_load
10613choke me
10614#endif
10615
10616int
10617main ()
10618{
10619return shl_load ();
10620 ;
10621 return 0;
10622}
10623_ACEOF
10624rm -f conftest.$ac_objext conftest$ac_exeext
10625if { (ac_try="$ac_link"
10626case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629esac
10630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_link") 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10639 { (case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10642esac
10643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_try") 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try='test -s conftest$ac_exeext'
10649 { (case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652esac
10653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_try") 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 ac_cv_func_shl_load=yes
10659else
10660 echo "$as_me: failed program was:" >&5
10661sed 's/^/| /' conftest.$ac_ext >&5
10662
10663 ac_cv_func_shl_load=no
10664fi
10665
10666rm -f core conftest.err conftest.$ac_objext \
10667 conftest$ac_exeext conftest.$ac_ext
10668fi
10669{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10670echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10671if test $ac_cv_func_shl_load = yes; then
10672
10673cat >>confdefs.h <<\_ACEOF
10674#define HAVE_SHL_LOAD 1
10675_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010676
10677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010678 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10679echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10680if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010682else
10683 ac_check_lib_save_LIBS=$LIBS
10684LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010685cat >conftest.$ac_ext <<_ACEOF
10686/* confdefs.h. */
10687_ACEOF
10688cat confdefs.h >>conftest.$ac_ext
10689cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010690/* end confdefs.h. */
10691
Reid Spencera773bd52006-08-04 18:18:08 +000010692/* Override any GCC internal prototype to avoid an error.
10693 Use char because int might match the return type of a GCC
10694 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010695#ifdef __cplusplus
10696extern "C"
10697#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010698char shl_load ();
10699int
10700main ()
10701{
Reid Spencera773bd52006-08-04 18:18:08 +000010702return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010703 ;
10704 return 0;
10705}
10706_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010707rm -f conftest.$ac_objext conftest$ac_exeext
10708if { (ac_try="$ac_link"
10709case "(($ac_try" in
10710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711 *) ac_try_echo=$ac_try;;
10712esac
10713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10714 (eval "$ac_link") 2>conftest.er1
10715 ac_status=$?
10716 grep -v '^ *+' conftest.er1 >conftest.err
10717 rm -f conftest.er1
10718 cat conftest.err >&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); } &&
10721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10722 { (case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10725esac
10726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_try") 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; } &&
10731 { ac_try='test -s conftest$ac_exeext'
10732 { (case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10735esac
10736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_try") 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010741 ac_cv_lib_dld_shl_load=yes
10742else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010743 echo "$as_me: failed program was:" >&5
10744sed 's/^/| /' conftest.$ac_ext >&5
10745
10746 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010747fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010748
Bill Wendlingebcceee2009-04-18 11:20:33 +000010749rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010750 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010751LIBS=$ac_check_lib_save_LIBS
10752fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010753{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10754echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10755if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010757cat >>confdefs.h <<\_ACEOF
10758#define HAVE_SHL_LOAD 1
10759_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760
10761 LIBADD_DL="$LIBADD_DL -ldld"
10762else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010763 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10764echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10765if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010767else
10768 ac_check_lib_save_LIBS=$LIBS
10769LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010770cat >conftest.$ac_ext <<_ACEOF
10771/* confdefs.h. */
10772_ACEOF
10773cat confdefs.h >>conftest.$ac_ext
10774cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010775/* end confdefs.h. */
10776
Reid Spencera773bd52006-08-04 18:18:08 +000010777/* Override any GCC internal prototype to avoid an error.
10778 Use char because int might match the return type of a GCC
10779 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010780#ifdef __cplusplus
10781extern "C"
10782#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010783char dlopen ();
10784int
10785main ()
10786{
Reid Spencera773bd52006-08-04 18:18:08 +000010787return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010788 ;
10789 return 0;
10790}
10791_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010792rm -f conftest.$ac_objext conftest$ac_exeext
10793if { (ac_try="$ac_link"
10794case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797esac
10798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_link") 2>conftest.er1
10800 ac_status=$?
10801 grep -v '^ *+' conftest.er1 >conftest.err
10802 rm -f conftest.er1
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } &&
10806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10807 { (case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810esac
10811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_try") 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; } &&
10816 { ac_try='test -s conftest$ac_exeext'
10817 { (case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10820esac
10821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_try") 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010826 ac_cv_lib_dl_dlopen=yes
10827else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010828 echo "$as_me: failed program was:" >&5
10829sed 's/^/| /' conftest.$ac_ext >&5
10830
10831 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010832fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010833
Bill Wendlingebcceee2009-04-18 11:20:33 +000010834rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010835 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010836LIBS=$ac_check_lib_save_LIBS
10837fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010838{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10839echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10840if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010842cat >>confdefs.h <<\_ACEOF
10843#define HAVE_LIBDL 1
10844_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010845
10846 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10847else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010848 cat >conftest.$ac_ext <<_ACEOF
10849/* confdefs.h. */
10850_ACEOF
10851cat confdefs.h >>conftest.$ac_ext
10852cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010853/* end confdefs.h. */
10854#if HAVE_DLFCN_H
10855# include <dlfcn.h>
10856#endif
10857
10858int
10859main ()
10860{
10861dlopen(0, 0);
10862 ;
10863 return 0;
10864}
10865_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010866rm -f conftest.$ac_objext conftest$ac_exeext
10867if { (ac_try="$ac_link"
10868case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871esac
10872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_link") 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10881 { (case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884esac
10885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_try") 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest$ac_exeext'
10891 { (case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894esac
10895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_try") 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010900
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010901cat >>confdefs.h <<\_ACEOF
10902#define HAVE_LIBDL 1
10903_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010904 libltdl_cv_func_dlopen="yes"
10905else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010906 echo "$as_me: failed program was:" >&5
10907sed 's/^/| /' conftest.$ac_ext >&5
10908
10909 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10910echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10911if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010913else
10914 ac_check_lib_save_LIBS=$LIBS
10915LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010916cat >conftest.$ac_ext <<_ACEOF
10917/* confdefs.h. */
10918_ACEOF
10919cat confdefs.h >>conftest.$ac_ext
10920cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010921/* end confdefs.h. */
10922
Reid Spencera773bd52006-08-04 18:18:08 +000010923/* Override any GCC internal prototype to avoid an error.
10924 Use char because int might match the return type of a GCC
10925 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010926#ifdef __cplusplus
10927extern "C"
10928#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010929char dlopen ();
10930int
10931main ()
10932{
Reid Spencera773bd52006-08-04 18:18:08 +000010933return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010934 ;
10935 return 0;
10936}
10937_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010938rm -f conftest.$ac_objext conftest$ac_exeext
10939if { (ac_try="$ac_link"
10940case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10943esac
10944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945 (eval "$ac_link") 2>conftest.er1
10946 ac_status=$?
10947 grep -v '^ *+' conftest.er1 >conftest.err
10948 rm -f conftest.er1
10949 cat conftest.err >&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } &&
10952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10953 { (case "(($ac_try" in
10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10956esac
10957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_try") 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; } &&
10962 { ac_try='test -s conftest$ac_exeext'
10963 { (case "(($ac_try" in
10964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10966esac
10967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968 (eval "$ac_try") 2>&5
10969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010972 ac_cv_lib_svld_dlopen=yes
10973else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010974 echo "$as_me: failed program was:" >&5
10975sed 's/^/| /' conftest.$ac_ext >&5
10976
10977 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010978fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010979
Bill Wendlingebcceee2009-04-18 11:20:33 +000010980rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010981 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010982LIBS=$ac_check_lib_save_LIBS
10983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010984{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10985echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10986if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010988cat >>confdefs.h <<\_ACEOF
10989#define HAVE_LIBDL 1
10990_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010991
10992 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10993else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010994 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10995echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10996if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010998else
10999 ac_check_lib_save_LIBS=$LIBS
11000LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011001cat >conftest.$ac_ext <<_ACEOF
11002/* confdefs.h. */
11003_ACEOF
11004cat confdefs.h >>conftest.$ac_ext
11005cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011006/* end confdefs.h. */
11007
Reid Spencera773bd52006-08-04 18:18:08 +000011008/* Override any GCC internal prototype to avoid an error.
11009 Use char because int might match the return type of a GCC
11010 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011011#ifdef __cplusplus
11012extern "C"
11013#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011014char dld_link ();
11015int
11016main ()
11017{
Reid Spencera773bd52006-08-04 18:18:08 +000011018return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011019 ;
11020 return 0;
11021}
11022_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011023rm -f conftest.$ac_objext conftest$ac_exeext
11024if { (ac_try="$ac_link"
11025case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028esac
11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_link") 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11038 { (case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041esac
11042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_try") 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try='test -s conftest$ac_exeext'
11048 { (case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11051esac
11052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_try") 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011057 ac_cv_lib_dld_dld_link=yes
11058else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011059 echo "$as_me: failed program was:" >&5
11060sed 's/^/| /' conftest.$ac_ext >&5
11061
11062 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011063fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011064
Bill Wendlingebcceee2009-04-18 11:20:33 +000011065rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011066 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011067LIBS=$ac_check_lib_save_LIBS
11068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011069{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11070echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11071if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011072
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011073cat >>confdefs.h <<\_ACEOF
11074#define HAVE_DLD 1
11075_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076
11077 LIBADD_DL="$LIBADD_DL -ldld"
11078else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011079 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11080echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11081if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083else
11084 cat >conftest.$ac_ext <<_ACEOF
11085/* confdefs.h. */
11086_ACEOF
11087cat confdefs.h >>conftest.$ac_ext
11088cat >>conftest.$ac_ext <<_ACEOF
11089/* end confdefs.h. */
11090/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11092#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011094/* System header to define __stub macros and hopefully few prototypes,
11095 which can conflict with char _dyld_func_lookup (); below.
11096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11097 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011099#ifdef __STDC__
11100# include <limits.h>
11101#else
11102# include <assert.h>
11103#endif
11104
11105#undef _dyld_func_lookup
11106
11107/* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
11110#ifdef __cplusplus
11111extern "C"
11112#endif
11113char _dyld_func_lookup ();
11114/* The GNU C library defines this for functions which it implements
11115 to always fail with ENOSYS. Some functions are actually named
11116 something starting with __ and the normal name is an alias. */
11117#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11118choke me
11119#endif
11120
11121int
11122main ()
11123{
11124return _dyld_func_lookup ();
11125 ;
11126 return 0;
11127}
11128_ACEOF
11129rm -f conftest.$ac_objext conftest$ac_exeext
11130if { (ac_try="$ac_link"
11131case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134esac
11135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_link") 2>conftest.er1
11137 ac_status=$?
11138 grep -v '^ *+' conftest.er1 >conftest.err
11139 rm -f conftest.er1
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } &&
11143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11144 { (case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11147esac
11148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_try") 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; } &&
11153 { ac_try='test -s conftest$ac_exeext'
11154 { (case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11157esac
11158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_try") 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; }; then
11163 ac_cv_func__dyld_func_lookup=yes
11164else
11165 echo "$as_me: failed program was:" >&5
11166sed 's/^/| /' conftest.$ac_ext >&5
11167
11168 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011169fi
Reid Spencera773bd52006-08-04 18:18:08 +000011170
Bill Wendlingebcceee2009-04-18 11:20:33 +000011171rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011172 conftest$ac_exeext conftest.$ac_ext
11173fi
11174{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11175echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11176if test $ac_cv_func__dyld_func_lookup = yes; then
11177
11178cat >>confdefs.h <<\_ACEOF
11179#define HAVE_DYLD 1
11180_ACEOF
11181
11182fi
11183
11184
11185fi
11186
11187
11188fi
11189
11190
11191fi
11192
11193rm -f core conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011195
11196fi
11197
11198
11199fi
11200
11201
11202fi
11203
11204
11205if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11206then
11207 lt_save_LIBS="$LIBS"
11208 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011209
11210for ac_func in dlerror
11211do
11212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11213{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11215if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11217else
11218 cat >conftest.$ac_ext <<_ACEOF
11219/* confdefs.h. */
11220_ACEOF
11221cat confdefs.h >>conftest.$ac_ext
11222cat >>conftest.$ac_ext <<_ACEOF
11223/* end confdefs.h. */
11224/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11226#define $ac_func innocuous_$ac_func
11227
11228/* System header to define __stub macros and hopefully few prototypes,
11229 which can conflict with char $ac_func (); below.
11230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11231 <limits.h> exists even on freestanding compilers. */
11232
11233#ifdef __STDC__
11234# include <limits.h>
11235#else
11236# include <assert.h>
11237#endif
11238
11239#undef $ac_func
11240
11241/* Override any GCC internal prototype to avoid an error.
11242 Use char because int might match the return type of a GCC
11243 builtin and then its argument prototype would still apply. */
11244#ifdef __cplusplus
11245extern "C"
11246#endif
11247char $ac_func ();
11248/* The GNU C library defines this for functions which it implements
11249 to always fail with ENOSYS. Some functions are actually named
11250 something starting with __ and the normal name is an alias. */
11251#if defined __stub_$ac_func || defined __stub___$ac_func
11252choke me
11253#endif
11254
11255int
11256main ()
11257{
11258return $ac_func ();
11259 ;
11260 return 0;
11261}
11262_ACEOF
11263rm -f conftest.$ac_objext conftest$ac_exeext
11264if { (ac_try="$ac_link"
11265case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11268esac
11269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_link") 2>conftest.er1
11271 ac_status=$?
11272 grep -v '^ *+' conftest.er1 >conftest.err
11273 rm -f conftest.er1
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } &&
11277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11278 { (case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11281esac
11282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_try") 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; } &&
11287 { ac_try='test -s conftest$ac_exeext'
11288 { (case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11291esac
11292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_try") 2>&5
11294 ac_status=$?
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; }; then
11297 eval "$as_ac_var=yes"
11298else
11299 echo "$as_me: failed program was:" >&5
11300sed 's/^/| /' conftest.$ac_ext >&5
11301
11302 eval "$as_ac_var=no"
11303fi
11304
11305rm -f core conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext conftest.$ac_ext
11307fi
11308ac_res=`eval echo '${'$as_ac_var'}'`
11309 { echo "$as_me:$LINENO: result: $ac_res" >&5
11310echo "${ECHO_T}$ac_res" >&6; }
11311if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011312 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011314_ACEOF
11315
11316fi
11317done
11318
11319 LIBS="$lt_save_LIBS"
11320fi
11321ac_ext=c
11322ac_cpp='$CPP $CPPFLAGS'
11323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11325ac_compiler_gnu=$ac_cv_c_compiler_gnu
11326
11327
11328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011329{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11330echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11331if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011333else
11334 ac_cv_sys_symbol_underscore=no
11335 cat > conftest.$ac_ext <<EOF
11336void nm_test_func(){}
11337int main(){nm_test_func;return 0;}
11338EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011340 (eval $ac_compile) 2>&5
11341 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011344 # Now try to grab the symbols.
11345 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011346 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 +000011347 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11348 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011351 # See whether the symbols have a leading underscore.
11352 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11353 ac_cv_sys_symbol_underscore=yes
11354 else
11355 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11356 :
11357 else
11358 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11359 fi
11360 fi
11361 else
11362 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11363 fi
11364 else
11365 echo "configure: failed program was:" >&5
11366 cat conftest.c >&5
11367 fi
11368 rm -rf conftest*
11369
11370fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011371{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11372echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011373
11374
11375if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11376 if test x"$libltdl_cv_func_dlopen" = xyes ||
11377 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011378 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11379echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11380if test "${libltdl_cv_need_uscore+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011382else
11383 libltdl_cv_need_uscore=unknown
11384 save_LIBS="$LIBS"
11385 LIBS="$LIBS $LIBADD_DL"
11386 if test "$cross_compiling" = yes; then :
11387 libltdl_cv_need_uscore=cross
11388else
11389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11390 lt_status=$lt_dlunknown
11391 cat > conftest.$ac_ext <<EOF
Eric Christopher753f3262010-08-30 18:34:48 +000011392#line 11392 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011393#include "confdefs.h"
11394
11395#if HAVE_DLFCN_H
11396#include <dlfcn.h>
11397#endif
11398
11399#include <stdio.h>
11400
11401#ifdef RTLD_GLOBAL
11402# define LT_DLGLOBAL RTLD_GLOBAL
11403#else
11404# ifdef DL_GLOBAL
11405# define LT_DLGLOBAL DL_GLOBAL
11406# else
11407# define LT_DLGLOBAL 0
11408# endif
11409#endif
11410
11411/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11412 find out it does not work in some platform. */
11413#ifndef LT_DLLAZY_OR_NOW
11414# ifdef RTLD_LAZY
11415# define LT_DLLAZY_OR_NOW RTLD_LAZY
11416# else
11417# ifdef DL_LAZY
11418# define LT_DLLAZY_OR_NOW DL_LAZY
11419# else
11420# ifdef RTLD_NOW
11421# define LT_DLLAZY_OR_NOW RTLD_NOW
11422# else
11423# ifdef DL_NOW
11424# define LT_DLLAZY_OR_NOW DL_NOW
11425# else
11426# define LT_DLLAZY_OR_NOW 0
11427# endif
11428# endif
11429# endif
11430# endif
11431#endif
11432
11433#ifdef __cplusplus
11434extern "C" void exit (int);
11435#endif
11436
11437void fnord() { int i=42;}
11438int main ()
11439{
11440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11441 int status = $lt_dlunknown;
11442
11443 if (self)
11444 {
11445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11446 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11447 /* dlclose (self); */
11448 }
Reid Spencera773bd52006-08-04 18:18:08 +000011449 else
11450 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011451
11452 exit (status);
11453}
11454EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011456 (eval $ac_link) 2>&5
11457 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011460 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011461 lt_status=$?
11462 case x$lt_status in
11463 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11464 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011465 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011466 esac
11467 else :
11468 # compilation failed
11469
11470 fi
11471fi
11472rm -fr conftest*
11473
11474 LIBS="$save_LIBS"
11475
11476fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011477{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11478echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011479 fi
11480fi
11481
11482if test x"$libltdl_cv_need_uscore" = xyes; then
11483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011484cat >>confdefs.h <<\_ACEOF
11485#define NEED_USCORE 1
11486_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011487
11488fi
11489
11490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011491{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11492echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11493if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011495else
11496 # PORTME does your system automatically load deplibs for dlopen?
11497 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11498 # For now, we just catch OSes we know something about -- in the
11499 # future, we'll try test this programmatically.
11500 libltdl_cv_sys_dlopen_deplibs=unknown
11501 case "$host_os" in
11502 aix3*|aix4.1.*|aix4.2.*)
11503 # Unknown whether this is true for these versions of AIX, but
11504 # we want this `case' here to explicitly catch those versions.
11505 libltdl_cv_sys_dlopen_deplibs=unknown
11506 ;;
11507 aix[45]*)
11508 libltdl_cv_sys_dlopen_deplibs=yes
11509 ;;
11510 darwin*)
11511 # Assuming the user has installed a libdl from somewhere, this is true
11512 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11513 libltdl_cv_sys_dlopen_deplibs=yes
11514 ;;
11515 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11516 # GNU and its variants, using gnu ld.so (Glibc)
11517 libltdl_cv_sys_dlopen_deplibs=yes
11518 ;;
11519 hpux10*|hpux11*)
11520 libltdl_cv_sys_dlopen_deplibs=yes
11521 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011522 interix*)
11523 libltdl_cv_sys_dlopen_deplibs=yes
11524 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011525 irix[12345]*|irix6.[01]*)
11526 # Catch all versions of IRIX before 6.2, and indicate that we don't
11527 # know how it worked for any of those versions.
11528 libltdl_cv_sys_dlopen_deplibs=unknown
11529 ;;
11530 irix*)
11531 # The case above catches anything before 6.2, and it's known that
11532 # at 6.2 and later dlopen does load deplibs.
11533 libltdl_cv_sys_dlopen_deplibs=yes
11534 ;;
11535 netbsd*)
11536 libltdl_cv_sys_dlopen_deplibs=yes
11537 ;;
11538 openbsd*)
11539 libltdl_cv_sys_dlopen_deplibs=yes
11540 ;;
11541 osf[1234]*)
11542 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11543 # it did *not* use an RPATH in a shared library to find objects the
11544 # library depends on, so we explictly say `no'.
11545 libltdl_cv_sys_dlopen_deplibs=no
11546 ;;
11547 osf5.0|osf5.0a|osf5.1)
11548 # dlopen *does* load deplibs and with the right loader patch applied
11549 # it even uses RPATH in a shared library to search for shared objects
11550 # that the library depends on, but there's no easy way to know if that
11551 # patch is installed. Since this is the case, all we can really
11552 # say is unknown -- it depends on the patch being installed. If
11553 # it is, this changes to `yes'. Without it, it would be `no'.
11554 libltdl_cv_sys_dlopen_deplibs=unknown
11555 ;;
11556 osf*)
11557 # the two cases above should catch all versions of osf <= 5.1. Read
11558 # the comments above for what we know about them.
11559 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11560 # is used to find them so we can finally say `yes'.
11561 libltdl_cv_sys_dlopen_deplibs=yes
11562 ;;
11563 solaris*)
11564 libltdl_cv_sys_dlopen_deplibs=yes
11565 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11567 libltdl_cv_sys_dlopen_deplibs=yes
11568 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011569 esac
11570
11571fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011572{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11573echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011574if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011576cat >>confdefs.h <<\_ACEOF
11577#define LTDL_DLOPEN_DEPLIBS 1
11578_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011579
11580fi
11581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011582
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011583for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011584do
11585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591fi
11592ac_res=`eval echo '${'$as_ac_Header'}'`
11593 { echo "$as_me:$LINENO: result: $ac_res" >&5
11594echo "${ECHO_T}$ac_res" >&6; }
11595else
11596 # Is the header compilable?
11597{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11598echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11599cat >conftest.$ac_ext <<_ACEOF
11600/* confdefs.h. */
11601_ACEOF
11602cat confdefs.h >>conftest.$ac_ext
11603cat >>conftest.$ac_ext <<_ACEOF
11604/* end confdefs.h. */
11605$ac_includes_default
11606#include <$ac_header>
11607_ACEOF
11608rm -f conftest.$ac_objext
11609if { (ac_try="$ac_compile"
11610case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11613esac
11614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615 (eval "$ac_compile") 2>conftest.er1
11616 ac_status=$?
11617 grep -v '^ *+' conftest.er1 >conftest.err
11618 rm -f conftest.er1
11619 cat conftest.err >&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } &&
11622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11623 { (case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626esac
11627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_try") 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try='test -s conftest.$ac_objext'
11633 { (case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11636esac
11637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_try") 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 ac_header_compiler=yes
11643else
11644 echo "$as_me: failed program was:" >&5
11645sed 's/^/| /' conftest.$ac_ext >&5
11646
11647 ac_header_compiler=no
11648fi
11649
11650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11651{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11652echo "${ECHO_T}$ac_header_compiler" >&6; }
11653
11654# Is the header present?
11655{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11656echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11657cat >conftest.$ac_ext <<_ACEOF
11658/* confdefs.h. */
11659_ACEOF
11660cat confdefs.h >>conftest.$ac_ext
11661cat >>conftest.$ac_ext <<_ACEOF
11662/* end confdefs.h. */
11663#include <$ac_header>
11664_ACEOF
11665if { (ac_try="$ac_cpp conftest.$ac_ext"
11666case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11669esac
11670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11672 ac_status=$?
11673 grep -v '^ *+' conftest.er1 >conftest.err
11674 rm -f conftest.er1
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } >/dev/null; then
11678 if test -s conftest.err; then
11679 ac_cpp_err=$ac_c_preproc_warn_flag
11680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11681 else
11682 ac_cpp_err=
11683 fi
11684else
11685 ac_cpp_err=yes
11686fi
11687if test -z "$ac_cpp_err"; then
11688 ac_header_preproc=yes
11689else
11690 echo "$as_me: failed program was:" >&5
11691sed 's/^/| /' conftest.$ac_ext >&5
11692
11693 ac_header_preproc=no
11694fi
11695
11696rm -f conftest.err conftest.$ac_ext
11697{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11698echo "${ECHO_T}$ac_header_preproc" >&6; }
11699
11700# So? What about this header?
11701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11702 yes:no: )
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11704echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11706echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11707 ac_header_preproc=yes
11708 ;;
11709 no:yes:* )
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11711echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11713echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11715echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11717echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11719echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11721echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11722 ( cat <<\_ASBOX
11723## ----------------------------------- ##
11724## Report this to llvmbugs@cs.uiuc.edu ##
11725## ----------------------------------- ##
11726_ASBOX
11727 ) | sed "s/^/$as_me: WARNING: /" >&2
11728 ;;
11729esac
11730{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734else
11735 eval "$as_ac_Header=\$ac_header_preproc"
11736fi
11737ac_res=`eval echo '${'$as_ac_Header'}'`
11738 { echo "$as_me:$LINENO: result: $ac_res" >&5
11739echo "${ECHO_T}$ac_res" >&6; }
11740
11741fi
11742if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011743 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011744#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011745_ACEOF
11746
11747fi
11748
11749done
11750
11751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011752{ echo "$as_me:$LINENO: checking for error_t" >&5
11753echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11754if test "${ac_cv_type_error_t+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11756else
11757 cat >conftest.$ac_ext <<_ACEOF
11758/* confdefs.h. */
11759_ACEOF
11760cat confdefs.h >>conftest.$ac_ext
11761cat >>conftest.$ac_ext <<_ACEOF
11762/* end confdefs.h. */
11763#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011764# include <argz.h>
11765#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011766
11767typedef error_t ac__type_new_;
11768int
11769main ()
11770{
11771if ((ac__type_new_ *) 0)
11772 return 0;
11773if (sizeof (ac__type_new_))
11774 return 0;
11775 ;
11776 return 0;
11777}
11778_ACEOF
11779rm -f conftest.$ac_objext
11780if { (ac_try="$ac_compile"
11781case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11784esac
11785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_compile") 2>conftest.er1
11787 ac_status=$?
11788 grep -v '^ *+' conftest.er1 >conftest.err
11789 rm -f conftest.er1
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11794 { (case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11797esac
11798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_try") 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807esac
11808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_try") 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
11813 ac_cv_type_error_t=yes
11814else
11815 echo "$as_me: failed program was:" >&5
11816sed 's/^/| /' conftest.$ac_ext >&5
11817
11818 ac_cv_type_error_t=no
11819fi
11820
11821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822fi
11823{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11824echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11825if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011826
11827cat >>confdefs.h <<_ACEOF
11828#define HAVE_ERROR_T 1
11829_ACEOF
11830
11831
11832else
11833
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011834cat >>confdefs.h <<\_ACEOF
11835#define error_t int
11836_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011837
11838fi
11839
11840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011841
11842
11843
11844
11845
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011846for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011847do
11848as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11849{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11851if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11853else
11854 cat >conftest.$ac_ext <<_ACEOF
11855/* confdefs.h. */
11856_ACEOF
11857cat confdefs.h >>conftest.$ac_ext
11858cat >>conftest.$ac_ext <<_ACEOF
11859/* end confdefs.h. */
11860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11862#define $ac_func innocuous_$ac_func
11863
11864/* System header to define __stub macros and hopefully few prototypes,
11865 which can conflict with char $ac_func (); below.
11866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11867 <limits.h> exists even on freestanding compilers. */
11868
11869#ifdef __STDC__
11870# include <limits.h>
11871#else
11872# include <assert.h>
11873#endif
11874
11875#undef $ac_func
11876
11877/* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11880#ifdef __cplusplus
11881extern "C"
11882#endif
11883char $ac_func ();
11884/* The GNU C library defines this for functions which it implements
11885 to always fail with ENOSYS. Some functions are actually named
11886 something starting with __ and the normal name is an alias. */
11887#if defined __stub_$ac_func || defined __stub___$ac_func
11888choke me
11889#endif
11890
11891int
11892main ()
11893{
11894return $ac_func ();
11895 ;
11896 return 0;
11897}
11898_ACEOF
11899rm -f conftest.$ac_objext conftest$ac_exeext
11900if { (ac_try="$ac_link"
11901case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904esac
11905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_link") 2>conftest.er1
11907 ac_status=$?
11908 grep -v '^ *+' conftest.er1 >conftest.err
11909 rm -f conftest.er1
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11914 { (case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11917esac
11918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_try") 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; } &&
11923 { ac_try='test -s conftest$ac_exeext'
11924 { (case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11927esac
11928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_try") 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 eval "$as_ac_var=yes"
11934else
11935 echo "$as_me: failed program was:" >&5
11936sed 's/^/| /' conftest.$ac_ext >&5
11937
11938 eval "$as_ac_var=no"
11939fi
11940
11941rm -f core conftest.err conftest.$ac_objext \
11942 conftest$ac_exeext conftest.$ac_ext
11943fi
11944ac_res=`eval echo '${'$as_ac_var'}'`
11945 { echo "$as_me:$LINENO: result: $ac_res" >&5
11946echo "${ECHO_T}$ac_res" >&6; }
11947if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011948 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011949#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011950_ACEOF
11951
11952fi
11953done
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011974
11975
11976
11977
11978
11979
11980
11981
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011982for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11983 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011984do
11985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11991fi
11992ac_res=`eval echo '${'$as_ac_Header'}'`
11993 { echo "$as_me:$LINENO: result: $ac_res" >&5
11994echo "${ECHO_T}$ac_res" >&6; }
11995else
11996 # Is the header compilable?
11997{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11998echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11999cat >conftest.$ac_ext <<_ACEOF
12000/* confdefs.h. */
12001_ACEOF
12002cat confdefs.h >>conftest.$ac_ext
12003cat >>conftest.$ac_ext <<_ACEOF
12004/* end confdefs.h. */
12005$ac_includes_default
12006#include <$ac_header>
12007_ACEOF
12008rm -f conftest.$ac_objext
12009if { (ac_try="$ac_compile"
12010case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013esac
12014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_compile") 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12023 { (case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12026esac
12027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_try") 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; } &&
12032 { ac_try='test -s conftest.$ac_objext'
12033 { (case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12036esac
12037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_try") 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 ac_header_compiler=yes
12043else
12044 echo "$as_me: failed program was:" >&5
12045sed 's/^/| /' conftest.$ac_ext >&5
12046
12047 ac_header_compiler=no
12048fi
12049
12050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12051{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12052echo "${ECHO_T}$ac_header_compiler" >&6; }
12053
12054# Is the header present?
12055{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12056echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12057cat >conftest.$ac_ext <<_ACEOF
12058/* confdefs.h. */
12059_ACEOF
12060cat confdefs.h >>conftest.$ac_ext
12061cat >>conftest.$ac_ext <<_ACEOF
12062/* end confdefs.h. */
12063#include <$ac_header>
12064_ACEOF
12065if { (ac_try="$ac_cpp conftest.$ac_ext"
12066case "(($ac_try" in
12067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068 *) ac_try_echo=$ac_try;;
12069esac
12070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12072 ac_status=$?
12073 grep -v '^ *+' conftest.er1 >conftest.err
12074 rm -f conftest.er1
12075 cat conftest.err >&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } >/dev/null; then
12078 if test -s conftest.err; then
12079 ac_cpp_err=$ac_c_preproc_warn_flag
12080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12081 else
12082 ac_cpp_err=
12083 fi
12084else
12085 ac_cpp_err=yes
12086fi
12087if test -z "$ac_cpp_err"; then
12088 ac_header_preproc=yes
12089else
12090 echo "$as_me: failed program was:" >&5
12091sed 's/^/| /' conftest.$ac_ext >&5
12092
12093 ac_header_preproc=no
12094fi
12095
12096rm -f conftest.err conftest.$ac_ext
12097{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12098echo "${ECHO_T}$ac_header_preproc" >&6; }
12099
12100# So? What about this header?
12101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12102 yes:no: )
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12104echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12106echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12107 ac_header_preproc=yes
12108 ;;
12109 no:yes:* )
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12111echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12113echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12115echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12117echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12119echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12121echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12122 ( cat <<\_ASBOX
12123## ----------------------------------- ##
12124## Report this to llvmbugs@cs.uiuc.edu ##
12125## ----------------------------------- ##
12126_ASBOX
12127 ) | sed "s/^/$as_me: WARNING: /" >&2
12128 ;;
12129esac
12130{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12134else
12135 eval "$as_ac_Header=\$ac_header_preproc"
12136fi
12137ac_res=`eval echo '${'$as_ac_Header'}'`
12138 { echo "$as_me:$LINENO: result: $ac_res" >&5
12139echo "${ECHO_T}$ac_res" >&6; }
12140
12141fi
12142if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012143 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012144#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012145_ACEOF
12146
12147fi
12148
12149done
12150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012151
12152
12153
12154
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012155for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012156do
12157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12163fi
12164ac_res=`eval echo '${'$as_ac_Header'}'`
12165 { echo "$as_me:$LINENO: result: $ac_res" >&5
12166echo "${ECHO_T}$ac_res" >&6; }
12167else
12168 # Is the header compilable?
12169{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12171cat >conftest.$ac_ext <<_ACEOF
12172/* confdefs.h. */
12173_ACEOF
12174cat confdefs.h >>conftest.$ac_ext
12175cat >>conftest.$ac_ext <<_ACEOF
12176/* end confdefs.h. */
12177$ac_includes_default
12178#include <$ac_header>
12179_ACEOF
12180rm -f conftest.$ac_objext
12181if { (ac_try="$ac_compile"
12182case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185esac
12186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_compile") 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
12194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12195 { (case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198esac
12199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_try") 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; } &&
12204 { ac_try='test -s conftest.$ac_objext'
12205 { (case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208esac
12209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_try") 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_header_compiler=yes
12215else
12216 echo "$as_me: failed program was:" >&5
12217sed 's/^/| /' conftest.$ac_ext >&5
12218
12219 ac_header_compiler=no
12220fi
12221
12222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12224echo "${ECHO_T}$ac_header_compiler" >&6; }
12225
12226# Is the header present?
12227{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12229cat >conftest.$ac_ext <<_ACEOF
12230/* confdefs.h. */
12231_ACEOF
12232cat confdefs.h >>conftest.$ac_ext
12233cat >>conftest.$ac_ext <<_ACEOF
12234/* end confdefs.h. */
12235#include <$ac_header>
12236_ACEOF
12237if { (ac_try="$ac_cpp conftest.$ac_ext"
12238case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241esac
12242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } >/dev/null; then
12250 if test -s conftest.err; then
12251 ac_cpp_err=$ac_c_preproc_warn_flag
12252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12253 else
12254 ac_cpp_err=
12255 fi
12256else
12257 ac_cpp_err=yes
12258fi
12259if test -z "$ac_cpp_err"; then
12260 ac_header_preproc=yes
12261else
12262 echo "$as_me: failed program was:" >&5
12263sed 's/^/| /' conftest.$ac_ext >&5
12264
12265 ac_header_preproc=no
12266fi
12267
12268rm -f conftest.err conftest.$ac_ext
12269{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12270echo "${ECHO_T}$ac_header_preproc" >&6; }
12271
12272# So? What about this header?
12273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12274 yes:no: )
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12279 ac_header_preproc=yes
12280 ;;
12281 no:yes:* )
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12294 ( cat <<\_ASBOX
12295## ----------------------------------- ##
12296## Report this to llvmbugs@cs.uiuc.edu ##
12297## ----------------------------------- ##
12298_ASBOX
12299 ) | sed "s/^/$as_me: WARNING: /" >&2
12300 ;;
12301esac
12302{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306else
12307 eval "$as_ac_Header=\$ac_header_preproc"
12308fi
12309ac_res=`eval echo '${'$as_ac_Header'}'`
12310 { echo "$as_me:$LINENO: result: $ac_res" >&5
12311echo "${ECHO_T}$ac_res" >&6; }
12312
12313fi
12314if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012315 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012317_ACEOF
12318
12319fi
12320
12321done
12322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012323
12324
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012325for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012326do
12327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12333fi
12334ac_res=`eval echo '${'$as_ac_Header'}'`
12335 { echo "$as_me:$LINENO: result: $ac_res" >&5
12336echo "${ECHO_T}$ac_res" >&6; }
12337else
12338 # Is the header compilable?
12339{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12340echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12341cat >conftest.$ac_ext <<_ACEOF
12342/* confdefs.h. */
12343_ACEOF
12344cat confdefs.h >>conftest.$ac_ext
12345cat >>conftest.$ac_ext <<_ACEOF
12346/* end confdefs.h. */
12347$ac_includes_default
12348#include <$ac_header>
12349_ACEOF
12350rm -f conftest.$ac_objext
12351if { (ac_try="$ac_compile"
12352case "(($ac_try" in
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12355esac
12356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_compile") 2>conftest.er1
12358 ac_status=$?
12359 grep -v '^ *+' conftest.er1 >conftest.err
12360 rm -f conftest.er1
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12365 { (case "(($ac_try" in
12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367 *) ac_try_echo=$ac_try;;
12368esac
12369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_try") 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try='test -s conftest.$ac_objext'
12375 { (case "(($ac_try" in
12376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377 *) ac_try_echo=$ac_try;;
12378esac
12379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380 (eval "$ac_try") 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 ac_header_compiler=yes
12385else
12386 echo "$as_me: failed program was:" >&5
12387sed 's/^/| /' conftest.$ac_ext >&5
12388
12389 ac_header_compiler=no
12390fi
12391
12392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12393{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12394echo "${ECHO_T}$ac_header_compiler" >&6; }
12395
12396# Is the header present?
12397{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12398echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12399cat >conftest.$ac_ext <<_ACEOF
12400/* confdefs.h. */
12401_ACEOF
12402cat confdefs.h >>conftest.$ac_ext
12403cat >>conftest.$ac_ext <<_ACEOF
12404/* end confdefs.h. */
12405#include <$ac_header>
12406_ACEOF
12407if { (ac_try="$ac_cpp conftest.$ac_ext"
12408case "(($ac_try" in
12409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12410 *) ac_try_echo=$ac_try;;
12411esac
12412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12414 ac_status=$?
12415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } >/dev/null; then
12420 if test -s conftest.err; then
12421 ac_cpp_err=$ac_c_preproc_warn_flag
12422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12423 else
12424 ac_cpp_err=
12425 fi
12426else
12427 ac_cpp_err=yes
12428fi
12429if test -z "$ac_cpp_err"; then
12430 ac_header_preproc=yes
12431else
12432 echo "$as_me: failed program was:" >&5
12433sed 's/^/| /' conftest.$ac_ext >&5
12434
12435 ac_header_preproc=no
12436fi
12437
12438rm -f conftest.err conftest.$ac_ext
12439{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12440echo "${ECHO_T}$ac_header_preproc" >&6; }
12441
12442# So? What about this header?
12443case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12444 yes:no: )
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12446echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12448echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12449 ac_header_preproc=yes
12450 ;;
12451 no:yes:* )
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12453echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12455echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12457echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12459echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12461echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12463echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12464 ( cat <<\_ASBOX
12465## ----------------------------------- ##
12466## Report this to llvmbugs@cs.uiuc.edu ##
12467## ----------------------------------- ##
12468_ASBOX
12469 ) | sed "s/^/$as_me: WARNING: /" >&2
12470 ;;
12471esac
12472{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12476else
12477 eval "$as_ac_Header=\$ac_header_preproc"
12478fi
12479ac_res=`eval echo '${'$as_ac_Header'}'`
12480 { echo "$as_me:$LINENO: result: $ac_res" >&5
12481echo "${ECHO_T}$ac_res" >&6; }
12482
12483fi
12484if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012485 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012486#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012487_ACEOF
12488 break
12489fi
12490
12491done
12492
12493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012494
12495
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012496for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012497do
12498as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12499{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12500echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12501if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12503else
12504 cat >conftest.$ac_ext <<_ACEOF
12505/* confdefs.h. */
12506_ACEOF
12507cat confdefs.h >>conftest.$ac_ext
12508cat >>conftest.$ac_ext <<_ACEOF
12509/* end confdefs.h. */
12510/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12512#define $ac_func innocuous_$ac_func
12513
12514/* System header to define __stub macros and hopefully few prototypes,
12515 which can conflict with char $ac_func (); below.
12516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12517 <limits.h> exists even on freestanding compilers. */
12518
12519#ifdef __STDC__
12520# include <limits.h>
12521#else
12522# include <assert.h>
12523#endif
12524
12525#undef $ac_func
12526
12527/* Override any GCC internal prototype to avoid an error.
12528 Use char because int might match the return type of a GCC
12529 builtin and then its argument prototype would still apply. */
12530#ifdef __cplusplus
12531extern "C"
12532#endif
12533char $ac_func ();
12534/* The GNU C library defines this for functions which it implements
12535 to always fail with ENOSYS. Some functions are actually named
12536 something starting with __ and the normal name is an alias. */
12537#if defined __stub_$ac_func || defined __stub___$ac_func
12538choke me
12539#endif
12540
12541int
12542main ()
12543{
12544return $ac_func ();
12545 ;
12546 return 0;
12547}
12548_ACEOF
12549rm -f conftest.$ac_objext conftest$ac_exeext
12550if { (ac_try="$ac_link"
12551case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554esac
12555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12564 { (case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12567esac
12568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_try") 2>&5
12570 ac_status=$?
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } &&
12573 { ac_try='test -s conftest$ac_exeext'
12574 { (case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12577esac
12578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_try") 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 eval "$as_ac_var=yes"
12584else
12585 echo "$as_me: failed program was:" >&5
12586sed 's/^/| /' conftest.$ac_ext >&5
12587
12588 eval "$as_ac_var=no"
12589fi
12590
12591rm -f core conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12593fi
12594ac_res=`eval echo '${'$as_ac_var'}'`
12595 { echo "$as_me:$LINENO: result: $ac_res" >&5
12596echo "${ECHO_T}$ac_res" >&6; }
12597if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012598 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012599#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012600_ACEOF
12601 break
12602fi
12603done
12604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012605
12606
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012607for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012608do
12609as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12610{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12611echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12612if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614else
12615 cat >conftest.$ac_ext <<_ACEOF
12616/* confdefs.h. */
12617_ACEOF
12618cat confdefs.h >>conftest.$ac_ext
12619cat >>conftest.$ac_ext <<_ACEOF
12620/* end confdefs.h. */
12621/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12623#define $ac_func innocuous_$ac_func
12624
12625/* System header to define __stub macros and hopefully few prototypes,
12626 which can conflict with char $ac_func (); below.
12627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12628 <limits.h> exists even on freestanding compilers. */
12629
12630#ifdef __STDC__
12631# include <limits.h>
12632#else
12633# include <assert.h>
12634#endif
12635
12636#undef $ac_func
12637
12638/* Override any GCC internal prototype to avoid an error.
12639 Use char because int might match the return type of a GCC
12640 builtin and then its argument prototype would still apply. */
12641#ifdef __cplusplus
12642extern "C"
12643#endif
12644char $ac_func ();
12645/* The GNU C library defines this for functions which it implements
12646 to always fail with ENOSYS. Some functions are actually named
12647 something starting with __ and the normal name is an alias. */
12648#if defined __stub_$ac_func || defined __stub___$ac_func
12649choke me
12650#endif
12651
12652int
12653main ()
12654{
12655return $ac_func ();
12656 ;
12657 return 0;
12658}
12659_ACEOF
12660rm -f conftest.$ac_objext conftest$ac_exeext
12661if { (ac_try="$ac_link"
12662case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12665esac
12666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_link") 2>conftest.er1
12668 ac_status=$?
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -f conftest.er1
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12675 { (case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678esac
12679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_try") 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; } &&
12684 { ac_try='test -s conftest$ac_exeext'
12685 { (case "(($ac_try" in
12686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12687 *) ac_try_echo=$ac_try;;
12688esac
12689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690 (eval "$ac_try") 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; }; then
12694 eval "$as_ac_var=yes"
12695else
12696 echo "$as_me: failed program was:" >&5
12697sed 's/^/| /' conftest.$ac_ext >&5
12698
12699 eval "$as_ac_var=no"
12700fi
12701
12702rm -f core conftest.err conftest.$ac_objext \
12703 conftest$ac_exeext conftest.$ac_ext
12704fi
12705ac_res=`eval echo '${'$as_ac_var'}'`
12706 { echo "$as_me:$LINENO: result: $ac_res" >&5
12707echo "${ECHO_T}$ac_res" >&6; }
12708if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012709 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012711_ACEOF
12712 break
12713fi
12714done
12715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012716
12717
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012718for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012719do
12720as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12721{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12722echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12723if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12725else
12726 cat >conftest.$ac_ext <<_ACEOF
12727/* confdefs.h. */
12728_ACEOF
12729cat confdefs.h >>conftest.$ac_ext
12730cat >>conftest.$ac_ext <<_ACEOF
12731/* end confdefs.h. */
12732/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12734#define $ac_func innocuous_$ac_func
12735
12736/* System header to define __stub macros and hopefully few prototypes,
12737 which can conflict with char $ac_func (); below.
12738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12739 <limits.h> exists even on freestanding compilers. */
12740
12741#ifdef __STDC__
12742# include <limits.h>
12743#else
12744# include <assert.h>
12745#endif
12746
12747#undef $ac_func
12748
12749/* Override any GCC internal prototype to avoid an error.
12750 Use char because int might match the return type of a GCC
12751 builtin and then its argument prototype would still apply. */
12752#ifdef __cplusplus
12753extern "C"
12754#endif
12755char $ac_func ();
12756/* The GNU C library defines this for functions which it implements
12757 to always fail with ENOSYS. Some functions are actually named
12758 something starting with __ and the normal name is an alias. */
12759#if defined __stub_$ac_func || defined __stub___$ac_func
12760choke me
12761#endif
12762
12763int
12764main ()
12765{
12766return $ac_func ();
12767 ;
12768 return 0;
12769}
12770_ACEOF
12771rm -f conftest.$ac_objext conftest$ac_exeext
12772if { (ac_try="$ac_link"
12773case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12776esac
12777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_link") 2>conftest.er1
12779 ac_status=$?
12780 grep -v '^ *+' conftest.er1 >conftest.err
12781 rm -f conftest.er1
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } &&
12785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12786 { (case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12789esac
12790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_try") 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try='test -s conftest$ac_exeext'
12796 { (case "(($ac_try" in
12797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798 *) ac_try_echo=$ac_try;;
12799esac
12800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_try") 2>&5
12802 ac_status=$?
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; }; then
12805 eval "$as_ac_var=yes"
12806else
12807 echo "$as_me: failed program was:" >&5
12808sed 's/^/| /' conftest.$ac_ext >&5
12809
12810 eval "$as_ac_var=no"
12811fi
12812
12813rm -f core conftest.err conftest.$ac_objext \
12814 conftest$ac_exeext conftest.$ac_ext
12815fi
12816ac_res=`eval echo '${'$as_ac_var'}'`
12817 { echo "$as_me:$LINENO: result: $ac_res" >&5
12818echo "${ECHO_T}$ac_res" >&6; }
12819if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012820 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012821#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012822_ACEOF
12823 break
12824fi
12825done
12826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012827
12828
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012829for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012830do
12831as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12832{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12833echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12834if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12836else
12837 cat >conftest.$ac_ext <<_ACEOF
12838/* confdefs.h. */
12839_ACEOF
12840cat confdefs.h >>conftest.$ac_ext
12841cat >>conftest.$ac_ext <<_ACEOF
12842/* end confdefs.h. */
12843/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12845#define $ac_func innocuous_$ac_func
12846
12847/* System header to define __stub macros and hopefully few prototypes,
12848 which can conflict with char $ac_func (); below.
12849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12850 <limits.h> exists even on freestanding compilers. */
12851
12852#ifdef __STDC__
12853# include <limits.h>
12854#else
12855# include <assert.h>
12856#endif
12857
12858#undef $ac_func
12859
12860/* Override any GCC internal prototype to avoid an error.
12861 Use char because int might match the return type of a GCC
12862 builtin and then its argument prototype would still apply. */
12863#ifdef __cplusplus
12864extern "C"
12865#endif
12866char $ac_func ();
12867/* The GNU C library defines this for functions which it implements
12868 to always fail with ENOSYS. Some functions are actually named
12869 something starting with __ and the normal name is an alias. */
12870#if defined __stub_$ac_func || defined __stub___$ac_func
12871choke me
12872#endif
12873
12874int
12875main ()
12876{
12877return $ac_func ();
12878 ;
12879 return 0;
12880}
12881_ACEOF
12882rm -f conftest.$ac_objext conftest$ac_exeext
12883if { (ac_try="$ac_link"
12884case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887esac
12888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_link") 2>conftest.er1
12890 ac_status=$?
12891 grep -v '^ *+' conftest.er1 >conftest.err
12892 rm -f conftest.er1
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12897 { (case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12900esac
12901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_try") 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest$ac_exeext'
12907 { (case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12910esac
12911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_try") 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 eval "$as_ac_var=yes"
12917else
12918 echo "$as_me: failed program was:" >&5
12919sed 's/^/| /' conftest.$ac_ext >&5
12920
12921 eval "$as_ac_var=no"
12922fi
12923
12924rm -f core conftest.err conftest.$ac_objext \
12925 conftest$ac_exeext conftest.$ac_ext
12926fi
12927ac_res=`eval echo '${'$as_ac_var'}'`
12928 { echo "$as_me:$LINENO: result: $ac_res" >&5
12929echo "${ECHO_T}$ac_res" >&6; }
12930if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012931 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012933_ACEOF
12934
12935fi
12936done
12937
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012938
12939
12940
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012941for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012942do
12943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12944{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12946if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12948else
12949 cat >conftest.$ac_ext <<_ACEOF
12950/* confdefs.h. */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h. */
12955/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12957#define $ac_func innocuous_$ac_func
12958
12959/* System header to define __stub macros and hopefully few prototypes,
12960 which can conflict with char $ac_func (); below.
12961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12962 <limits.h> exists even on freestanding compilers. */
12963
12964#ifdef __STDC__
12965# include <limits.h>
12966#else
12967# include <assert.h>
12968#endif
12969
12970#undef $ac_func
12971
12972/* Override any GCC internal prototype to avoid an error.
12973 Use char because int might match the return type of a GCC
12974 builtin and then its argument prototype would still apply. */
12975#ifdef __cplusplus
12976extern "C"
12977#endif
12978char $ac_func ();
12979/* The GNU C library defines this for functions which it implements
12980 to always fail with ENOSYS. Some functions are actually named
12981 something starting with __ and the normal name is an alias. */
12982#if defined __stub_$ac_func || defined __stub___$ac_func
12983choke me
12984#endif
12985
12986int
12987main ()
12988{
12989return $ac_func ();
12990 ;
12991 return 0;
12992}
12993_ACEOF
12994rm -f conftest.$ac_objext conftest$ac_exeext
12995if { (ac_try="$ac_link"
12996case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
12999esac
13000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_link") 2>conftest.er1
13002 ac_status=$?
13003 grep -v '^ *+' conftest.er1 >conftest.err
13004 rm -f conftest.er1
13005 cat conftest.err >&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } &&
13008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13009 { (case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13012esac
13013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_try") 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; } &&
13018 { ac_try='test -s conftest$ac_exeext'
13019 { (case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022esac
13023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_try") 2>&5
13025 ac_status=$?
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
13028 eval "$as_ac_var=yes"
13029else
13030 echo "$as_me: failed program was:" >&5
13031sed 's/^/| /' conftest.$ac_ext >&5
13032
13033 eval "$as_ac_var=no"
13034fi
13035
13036rm -f core conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13038fi
13039ac_res=`eval echo '${'$as_ac_var'}'`
13040 { echo "$as_me:$LINENO: result: $ac_res" >&5
13041echo "${ECHO_T}$ac_res" >&6; }
13042if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013043 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013045_ACEOF
13046
13047fi
13048done
13049
13050
Douglas Gregor01746742009-05-11 18:05:52 +000013051
Reid Spencer7931a782004-12-27 06:15:02 +000013052if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013053 LLVMGCC="llvm-gcc${EXEEXT}"
13054 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013055 LLVMGCCCOMMAND="$LLVMGCC"
13056 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013057 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13058
13059 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13060
Reid Spencerc84492c2005-06-02 22:34:49 +000013061 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13062set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013063{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13065if test "${ac_cv_path_LLVMGCC+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013067else
13068 case $LLVMGCC in
13069 [\\/]* | ?:[\\/]*)
13070 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13071 ;;
13072 *)
13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074for as_dir in $PATH
13075do
13076 IFS=$as_save_IFS
13077 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013078 for ac_exec_ext in '' $ac_executable_extensions; do
13079 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 +000013080 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013082 break 2
13083 fi
13084done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013085done
Reid Spencera773bd52006-08-04 18:18:08 +000013086IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013087
Reid Spencer59473af2004-12-25 07:31:29 +000013088 ;;
13089esac
13090fi
13091LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013092if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013093 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13094echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013095else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013096 { echo "$as_me:$LINENO: result: no" >&5
13097echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013098fi
13099
Reid Spencera773bd52006-08-04 18:18:08 +000013100
Reid Spencerc84492c2005-06-02 22:34:49 +000013101 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13102set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13105if test "${ac_cv_path_LLVMGXX+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013107else
13108 case $LLVMGXX in
13109 [\\/]* | ?:[\\/]*)
13110 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13111 ;;
13112 *)
13113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114for as_dir in $PATH
13115do
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013118 for ac_exec_ext in '' $ac_executable_extensions; do
13119 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 +000013120 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013122 break 2
13123 fi
13124done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013125done
Reid Spencera773bd52006-08-04 18:18:08 +000013126IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013127
Reid Spencer59473af2004-12-25 07:31:29 +000013128 ;;
13129esac
13130fi
13131LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013132if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013133 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13134echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013135else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013136 { echo "$as_me:$LINENO: result: no" >&5
13137echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013138fi
13139
Reid Spencera773bd52006-08-04 18:18:08 +000013140
Reid Spencer59473af2004-12-25 07:31:29 +000013141else
Devang Patel5d28b882007-12-04 22:54:47 +000013142 if test -z "$LLVMGCC"; then
13143 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013144 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013145 fi
13146 if test -z "$LLVMGXX"; then
13147 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013148 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013149 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013150
Reid Spencer59473af2004-12-25 07:31:29 +000013151 LLVMGCC=$LLVMGCC
13152
13153 LLVMGXX=$LLVMGXX
13154
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013155 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13156
13157 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13158
Reid Spencer59473af2004-12-25 07:31:29 +000013159fi
13160
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013161
Daniel Dunbar98515672010-02-23 10:00:49 +000013162# Check whether --with-llvmcc was given.
13163if test "${with_llvmcc+set}" = set; then
13164 withval=$with_llvmcc;
13165else
13166 with_llvmcc=check
13167fi
13168
13169{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13170echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13171if test "$with_llvmcc" != "check"; then
13172 if (test "$with_llvmcc" != "llvm-gcc" &&
13173 test "$with_llvmcc" != "clang" &&
13174 test "$with_llvmcc" != "none"); then
13175 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13176echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13177 { (exit 1); exit 1; }; }
13178 fi
13179 WITH_LLVMCC="$with_llvmcc"
13180elif test -n "$LLVMGCC"; then
13181 WITH_LLVMCC=llvm-gcc
13182elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13183 WITH_LLVMCC=clang
13184else
13185 WITH_LLVMCC=none
13186fi
13187{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13188echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13189LLVMCC_OPTION=$WITH_LLVMCC
13190
13191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013192{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13193echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013194
Reid Spencer86901802004-12-08 23:07:27 +000013195ICC=no
13196IXX=no
13197case $CC in
13198 icc*|icpc*)
13199 ICC=yes
13200 IXX=yes
13201 ;;
13202 *)
13203 ;;
13204esac
13205
Duraid Madina937c60a2006-02-15 07:57:42 +000013206if test "$GCC" != "yes" && test "$ICC" != "yes"
13207then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013208 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13209echo "$as_me: error: gcc|icc required but not found" >&2;}
13210 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013211fi
13212
13213if test "$GXX" != "yes" && test "$IXX" != "yes"
13214then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013215 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13216echo "$as_me: error: g++|icc required but not found" >&2;}
13217 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013218fi
13219
Reid Spencer86901802004-12-08 23:07:27 +000013220if test "$GCC" = "yes"
13221then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013222 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013223#if !defined(__GNUC__) || __GNUC__ < 3
13224#error Unsupported GCC version
13225#endif
13226
13227_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013228rm -f conftest.$ac_objext
13229if { (ac_try="$ac_compile"
13230case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13233esac
13234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_compile") 2>conftest.er1
13236 ac_status=$?
13237 grep -v '^ *+' conftest.er1 >conftest.err
13238 rm -f conftest.er1
13239 cat conftest.err >&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } &&
13242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13243 { (case "(($ac_try" in
13244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245 *) ac_try_echo=$ac_try;;
13246esac
13247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248 (eval "$ac_try") 2>&5
13249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; } &&
13252 { ac_try='test -s conftest.$ac_objext'
13253 { (case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13256esac
13257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258 (eval "$ac_try") 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013263else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013264 echo "$as_me: failed program was:" >&5
13265sed 's/^/| /' conftest.$ac_ext >&5
13266
13267 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13268echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13269 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013270fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013271
Chris Lattner399c7c72008-02-05 19:43:53 +000013272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013273fi
13274
13275if test -z "$llvm_cv_gnu_make_command"
13276then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013277 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13278echo "$as_me: error: GNU Make required but not found" >&2;}
13279 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013280fi
13281
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013282{ echo "$as_me:$LINENO: result: ok" >&5
13283echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013285{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13286echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013287NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13288
13289NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013291{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13292echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013293
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013295
13296{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13297echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13298if test "${ac_cv_lib_m_sin+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013300else
13301 ac_check_lib_save_LIBS=$LIBS
13302LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013303cat >conftest.$ac_ext <<_ACEOF
13304/* confdefs.h. */
13305_ACEOF
13306cat confdefs.h >>conftest.$ac_ext
13307cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013308/* end confdefs.h. */
13309
Reid Spencera773bd52006-08-04 18:18:08 +000013310/* Override any GCC internal prototype to avoid an error.
13311 Use char because int might match the return type of a GCC
13312 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013313#ifdef __cplusplus
13314extern "C"
13315#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013316char sin ();
13317int
13318main ()
13319{
Reid Spencera773bd52006-08-04 18:18:08 +000013320return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013321 ;
13322 return 0;
13323}
13324_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013325rm -f conftest.$ac_objext conftest$ac_exeext
13326if { (ac_try="$ac_link"
13327case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13330esac
13331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_link") 2>conftest.er1
13333 ac_status=$?
13334 grep -v '^ *+' conftest.er1 >conftest.err
13335 rm -f conftest.er1
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } &&
13339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13340 { (case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13343esac
13344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345 (eval "$ac_try") 2>&5
13346 ac_status=$?
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; } &&
13349 { ac_try='test -s conftest$ac_exeext'
13350 { (case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13353esac
13354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_try") 2>&5
13356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013359 ac_cv_lib_m_sin=yes
13360else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013361 echo "$as_me: failed program was:" >&5
13362sed 's/^/| /' conftest.$ac_ext >&5
13363
13364 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013365fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013366
Bill Wendlingebcceee2009-04-18 11:20:33 +000013367rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013368 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013369LIBS=$ac_check_lib_save_LIBS
13370fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013371{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13372echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13373if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013374 cat >>confdefs.h <<_ACEOF
13375#define HAVE_LIBM 1
13376_ACEOF
13377
13378 LIBS="-lm $LIBS"
13379
13380fi
13381
Jeff Cohen28783c32007-01-12 18:22:38 +000013382if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013383
13384{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13385echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13386if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013388else
13389 ac_check_lib_save_LIBS=$LIBS
13390LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013391cat >conftest.$ac_ext <<_ACEOF
13392/* confdefs.h. */
13393_ACEOF
13394cat confdefs.h >>conftest.$ac_ext
13395cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013396/* end confdefs.h. */
13397
Reid Spencer48fdf912006-06-01 19:03:21 +000013398
Reid Spencer484fc8e2006-06-01 16:55:59 +000013399int
13400main ()
13401{
Reid Spencera773bd52006-08-04 18:18:08 +000013402return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013403 ;
13404 return 0;
13405}
13406_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013407rm -f conftest.$ac_objext conftest$ac_exeext
13408if { (ac_try="$ac_link"
13409case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13412esac
13413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_link") 2>conftest.er1
13415 ac_status=$?
13416 grep -v '^ *+' conftest.er1 >conftest.err
13417 rm -f conftest.er1
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
13421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13422 { (case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13425esac
13426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_try") 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; } &&
13431 { ac_try='test -s conftest$ac_exeext'
13432 { (case "(($ac_try" in
13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13435esac
13436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437 (eval "$ac_try") 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013441 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013442else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013443 echo "$as_me: failed program was:" >&5
13444sed 's/^/| /' conftest.$ac_ext >&5
13445
13446 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013448
Bill Wendlingebcceee2009-04-18 11:20:33 +000013449rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013450 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013451LIBS=$ac_check_lib_save_LIBS
13452fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013453{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13454echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13455if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013456 cat >>confdefs.h <<_ACEOF
13457#define HAVE_LIBIMAGEHLP 1
13458_ACEOF
13459
13460 LIBS="-limagehlp $LIBS"
13461
13462fi
13463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013464
13465{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13466echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13467if test "${ac_cv_lib_psapi_main+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013469else
13470 ac_check_lib_save_LIBS=$LIBS
13471LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013472cat >conftest.$ac_ext <<_ACEOF
13473/* confdefs.h. */
13474_ACEOF
13475cat confdefs.h >>conftest.$ac_ext
13476cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013477/* end confdefs.h. */
13478
Reid Spencer48fdf912006-06-01 19:03:21 +000013479
Reid Spencer484fc8e2006-06-01 16:55:59 +000013480int
13481main ()
13482{
Reid Spencera773bd52006-08-04 18:18:08 +000013483return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013484 ;
13485 return 0;
13486}
13487_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013488rm -f conftest.$ac_objext conftest$ac_exeext
13489if { (ac_try="$ac_link"
13490case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13493esac
13494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_link") 2>conftest.er1
13496 ac_status=$?
13497 grep -v '^ *+' conftest.er1 >conftest.err
13498 rm -f conftest.er1
13499 cat conftest.err >&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); } &&
13502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13503 { (case "(($ac_try" in
13504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13506esac
13507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_try") 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; } &&
13512 { ac_try='test -s conftest$ac_exeext'
13513 { (case "(($ac_try" in
13514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515 *) ac_try_echo=$ac_try;;
13516esac
13517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13518 (eval "$ac_try") 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013522 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013523else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013524 echo "$as_me: failed program was:" >&5
13525sed 's/^/| /' conftest.$ac_ext >&5
13526
13527 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013528fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013529
Bill Wendlingebcceee2009-04-18 11:20:33 +000013530rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013531 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013532LIBS=$ac_check_lib_save_LIBS
13533fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013534{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13535echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13536if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013537 cat >>confdefs.h <<_ACEOF
13538#define HAVE_LIBPSAPI 1
13539_ACEOF
13540
13541 LIBS="-lpsapi $LIBS"
13542
13543fi
13544
13545fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013547{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13548echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13549if test "${ac_cv_search_dlopen+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013551else
13552 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013553cat >conftest.$ac_ext <<_ACEOF
13554/* confdefs.h. */
13555_ACEOF
13556cat confdefs.h >>conftest.$ac_ext
13557cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013558/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013559
Reid Spencera773bd52006-08-04 18:18:08 +000013560/* Override any GCC internal prototype to avoid an error.
13561 Use char because int might match the return type of a GCC
13562 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013563#ifdef __cplusplus
13564extern "C"
13565#endif
John Criswell7a73b802003-06-30 21:59:07 +000013566char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013567int
13568main ()
13569{
Reid Spencera773bd52006-08-04 18:18:08 +000013570return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013571 ;
13572 return 0;
13573}
13574_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013575for ac_lib in '' dl; do
13576 if test -z "$ac_lib"; then
13577 ac_res="none required"
13578 else
13579 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013581 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013582 rm -f conftest.$ac_objext conftest$ac_exeext
13583if { (ac_try="$ac_link"
13584case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13587esac
13588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_link") 2>conftest.er1
13590 ac_status=$?
13591 grep -v '^ *+' conftest.er1 >conftest.err
13592 rm -f conftest.er1
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
13596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13597 { (case "(($ac_try" in
13598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599 *) ac_try_echo=$ac_try;;
13600esac
13601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13602 (eval "$ac_try") 2>&5
13603 ac_status=$?
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; } &&
13606 { ac_try='test -s conftest$ac_exeext'
13607 { (case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13610esac
13611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_try") 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013616 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013617else
13618 echo "$as_me: failed program was:" >&5
13619sed 's/^/| /' conftest.$ac_ext >&5
13620
13621
John Criswell7a73b802003-06-30 21:59:07 +000013622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013623
Bill Wendlingebcceee2009-04-18 11:20:33 +000013624rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013625 conftest$ac_exeext
13626 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013627 break
John Criswell7a73b802003-06-30 21:59:07 +000013628fi
Reid Spencera773bd52006-08-04 18:18:08 +000013629done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013630if test "${ac_cv_search_dlopen+set}" = set; then
13631 :
Reid Spencera773bd52006-08-04 18:18:08 +000013632else
13633 ac_cv_search_dlopen=no
13634fi
13635rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013636LIBS=$ac_func_search_save_LIBS
13637fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013638{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13639echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013640ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013641if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013644cat >>confdefs.h <<\_ACEOF
13645#define HAVE_DLOPEN 1
13646_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013647
13648else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013649 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13650echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013651fi
13652
13653
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013654if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013655 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13656echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13657if test "${ac_cv_search_ffi_call+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013659else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013660 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013661cat >conftest.$ac_ext <<_ACEOF
13662/* confdefs.h. */
13663_ACEOF
13664cat confdefs.h >>conftest.$ac_ext
13665cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013666/* end confdefs.h. */
13667
13668/* Override any GCC internal prototype to avoid an error.
13669 Use char because int might match the return type of a GCC
13670 builtin and then its argument prototype would still apply. */
13671#ifdef __cplusplus
13672extern "C"
13673#endif
13674char ffi_call ();
13675int
13676main ()
13677{
13678return ffi_call ();
13679 ;
13680 return 0;
13681}
13682_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013683for ac_lib in '' ffi; do
13684 if test -z "$ac_lib"; then
13685 ac_res="none required"
13686 else
13687 ac_res=-l$ac_lib
13688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13689 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013690 rm -f conftest.$ac_objext conftest$ac_exeext
13691if { (ac_try="$ac_link"
13692case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695esac
13696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_link") 2>conftest.er1
13698 ac_status=$?
13699 grep -v '^ *+' conftest.er1 >conftest.err
13700 rm -f conftest.er1
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } &&
13704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13705 { (case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13708esac
13709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_try") 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; } &&
13714 { ac_try='test -s conftest$ac_exeext'
13715 { (case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13718esac
13719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_try") 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013724 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013725else
13726 echo "$as_me: failed program was:" >&5
13727sed 's/^/| /' conftest.$ac_ext >&5
13728
13729
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013730fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013731
Bill Wendlingebcceee2009-04-18 11:20:33 +000013732rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013733 conftest$ac_exeext
13734 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013735 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013736fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013737done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013738if test "${ac_cv_search_ffi_call+set}" = set; then
13739 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013740else
13741 ac_cv_search_ffi_call=no
13742fi
13743rm conftest.$ac_ext
13744LIBS=$ac_func_search_save_LIBS
13745fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013746{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13747echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013748ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013749if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013752cat >>confdefs.h <<\_ACEOF
13753#define HAVE_FFI_CALL 1
13754_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013755
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013756else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013757 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13758echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13759 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013760fi
13761
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013762fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013764{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13765echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13766if test "${ac_cv_search_mallinfo+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013768else
13769 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013770cat >conftest.$ac_ext <<_ACEOF
13771/* confdefs.h. */
13772_ACEOF
13773cat confdefs.h >>conftest.$ac_ext
13774cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013775/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013776
Reid Spencera773bd52006-08-04 18:18:08 +000013777/* Override any GCC internal prototype to avoid an error.
13778 Use char because int might match the return type of a GCC
13779 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013780#ifdef __cplusplus
13781extern "C"
13782#endif
John Criswell7a73b802003-06-30 21:59:07 +000013783char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013784int
13785main ()
13786{
Reid Spencera773bd52006-08-04 18:18:08 +000013787return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013788 ;
13789 return 0;
13790}
13791_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013792for ac_lib in '' malloc; do
13793 if test -z "$ac_lib"; then
13794 ac_res="none required"
13795 else
13796 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013798 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013799 rm -f conftest.$ac_objext conftest$ac_exeext
13800if { (ac_try="$ac_link"
13801case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13804esac
13805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_link") 2>conftest.er1
13807 ac_status=$?
13808 grep -v '^ *+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
13813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13814 { (case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13817esac
13818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_try") 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; } &&
13823 { ac_try='test -s conftest$ac_exeext'
13824 { (case "(($ac_try" in
13825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826 *) ac_try_echo=$ac_try;;
13827esac
13828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829 (eval "$ac_try") 2>&5
13830 ac_status=$?
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013833 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013834else
13835 echo "$as_me: failed program was:" >&5
13836sed 's/^/| /' conftest.$ac_ext >&5
13837
13838
John Criswell7a73b802003-06-30 21:59:07 +000013839fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013840
Bill Wendlingebcceee2009-04-18 11:20:33 +000013841rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013842 conftest$ac_exeext
13843 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013844 break
John Criswell7a73b802003-06-30 21:59:07 +000013845fi
Reid Spencera773bd52006-08-04 18:18:08 +000013846done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013847if test "${ac_cv_search_mallinfo+set}" = set; then
13848 :
Reid Spencera773bd52006-08-04 18:18:08 +000013849else
13850 ac_cv_search_mallinfo=no
13851fi
13852rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013853LIBS=$ac_func_search_save_LIBS
13854fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013855{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13856echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013857ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013858if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013861cat >>confdefs.h <<\_ACEOF
13862#define HAVE_MALLINFO 1
13863_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013864
13865fi
13866
13867
Reid Spencer0a262ba2005-08-24 10:07:20 +000013868if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013869
13870{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13871echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13872if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013874else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013875 ac_check_lib_save_LIBS=$LIBS
13876LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013877cat >conftest.$ac_ext <<_ACEOF
13878/* confdefs.h. */
13879_ACEOF
13880cat confdefs.h >>conftest.$ac_ext
13881cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013882/* end confdefs.h. */
13883
Reid Spencera773bd52006-08-04 18:18:08 +000013884/* Override any GCC internal prototype to avoid an error.
13885 Use char because int might match the return type of a GCC
13886 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013887#ifdef __cplusplus
13888extern "C"
13889#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013890char pthread_mutex_init ();
13891int
13892main ()
13893{
Reid Spencera773bd52006-08-04 18:18:08 +000013894return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013895 ;
13896 return 0;
13897}
13898_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013899rm -f conftest.$ac_objext conftest$ac_exeext
13900if { (ac_try="$ac_link"
13901case "(($ac_try" in
13902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13903 *) ac_try_echo=$ac_try;;
13904esac
13905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13906 (eval "$ac_link") 2>conftest.er1
13907 ac_status=$?
13908 grep -v '^ *+' conftest.er1 >conftest.err
13909 rm -f conftest.er1
13910 cat conftest.err >&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } &&
13913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13914 { (case "(($ac_try" in
13915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13916 *) ac_try_echo=$ac_try;;
13917esac
13918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13919 (eval "$ac_try") 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; } &&
13923 { ac_try='test -s conftest$ac_exeext'
13924 { (case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13927esac
13928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_try") 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013933 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013934else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013935 echo "$as_me: failed program was:" >&5
13936sed 's/^/| /' conftest.$ac_ext >&5
13937
13938 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013939fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013940
Bill Wendlingebcceee2009-04-18 11:20:33 +000013941rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013942 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013943LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013944fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013945{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13946echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13947if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013948 cat >>confdefs.h <<_ACEOF
13949#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013950_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013951
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013952 LIBS="-lpthread $LIBS"
13953
Reid Spencer22177fe2005-07-12 15:24:20 +000013954fi
13955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013956 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13957echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13958if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013960else
13961 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013962cat >conftest.$ac_ext <<_ACEOF
13963/* confdefs.h. */
13964_ACEOF
13965cat confdefs.h >>conftest.$ac_ext
13966cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013967/* end confdefs.h. */
13968
Reid Spencera773bd52006-08-04 18:18:08 +000013969/* Override any GCC internal prototype to avoid an error.
13970 Use char because int might match the return type of a GCC
13971 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013972#ifdef __cplusplus
13973extern "C"
13974#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013975char pthread_mutex_lock ();
13976int
13977main ()
13978{
Reid Spencera773bd52006-08-04 18:18:08 +000013979return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013980 ;
13981 return 0;
13982}
13983_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013984for ac_lib in '' pthread; do
13985 if test -z "$ac_lib"; then
13986 ac_res="none required"
13987 else
13988 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013990 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013991 rm -f conftest.$ac_objext conftest$ac_exeext
13992if { (ac_try="$ac_link"
13993case "(($ac_try" in
13994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13995 *) ac_try_echo=$ac_try;;
13996esac
13997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13998 (eval "$ac_link") 2>conftest.er1
13999 ac_status=$?
14000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } &&
14005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14006 { (case "(($ac_try" in
14007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14008 *) ac_try_echo=$ac_try;;
14009esac
14010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14011 (eval "$ac_try") 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; } &&
14015 { ac_try='test -s conftest$ac_exeext'
14016 { (case "(($ac_try" in
14017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14019esac
14020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021 (eval "$ac_try") 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014025 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014026else
14027 echo "$as_me: failed program was:" >&5
14028sed 's/^/| /' conftest.$ac_ext >&5
14029
14030
Brian Gaeke5f268f72003-12-05 19:29:01 +000014031fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014032
Bill Wendlingebcceee2009-04-18 11:20:33 +000014033rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014034 conftest$ac_exeext
14035 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014036 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014037fi
Reid Spencera773bd52006-08-04 18:18:08 +000014038done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014039if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14040 :
Reid Spencera773bd52006-08-04 18:18:08 +000014041else
14042 ac_cv_search_pthread_mutex_lock=no
14043fi
14044rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014045LIBS=$ac_func_search_save_LIBS
14046fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014047{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14048echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014049ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014050if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014052
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014053cat >>confdefs.h <<\_ACEOF
14054#define HAVE_PTHREAD_MUTEX_LOCK 1
14055_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014056
14057fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014059 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14060echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14061if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014063else
14064 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014065cat >conftest.$ac_ext <<_ACEOF
14066/* confdefs.h. */
14067_ACEOF
14068cat confdefs.h >>conftest.$ac_ext
14069cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014070/* end confdefs.h. */
14071
14072/* Override any GCC internal prototype to avoid an error.
14073 Use char because int might match the return type of a GCC
14074 builtin and then its argument prototype would still apply. */
14075#ifdef __cplusplus
14076extern "C"
14077#endif
14078char pthread_rwlock_init ();
14079int
14080main ()
14081{
14082return pthread_rwlock_init ();
14083 ;
14084 return 0;
14085}
14086_ACEOF
14087for ac_lib in '' pthread; do
14088 if test -z "$ac_lib"; then
14089 ac_res="none required"
14090 else
14091 ac_res=-l$ac_lib
14092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14093 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014094 rm -f conftest.$ac_objext conftest$ac_exeext
14095if { (ac_try="$ac_link"
14096case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099esac
14100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_link") 2>conftest.er1
14102 ac_status=$?
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
14108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14109 { (case "(($ac_try" in
14110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111 *) ac_try_echo=$ac_try;;
14112esac
14113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114 (eval "$ac_try") 2>&5
14115 ac_status=$?
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; } &&
14118 { ac_try='test -s conftest$ac_exeext'
14119 { (case "(($ac_try" in
14120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121 *) ac_try_echo=$ac_try;;
14122esac
14123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124 (eval "$ac_try") 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014128 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014129else
14130 echo "$as_me: failed program was:" >&5
14131sed 's/^/| /' conftest.$ac_ext >&5
14132
14133
Owen Andersonde8aed22009-06-16 18:20:20 +000014134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014135
Owen Andersonde8aed22009-06-16 18:20:20 +000014136rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014137 conftest$ac_exeext
14138 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014139 break
14140fi
14141done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014142if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14143 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014144else
14145 ac_cv_search_pthread_rwlock_init=no
14146fi
14147rm conftest.$ac_ext
14148LIBS=$ac_func_search_save_LIBS
14149fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014150{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14151echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014152ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014153if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14155
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014156cat >>confdefs.h <<\_ACEOF
14157#define HAVE_PTHREAD_RWLOCK_INIT 1
14158_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014159
14160fi
14161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014162 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14163echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14164if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014166else
14167 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014168cat >conftest.$ac_ext <<_ACEOF
14169/* confdefs.h. */
14170_ACEOF
14171cat confdefs.h >>conftest.$ac_ext
14172cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014173/* end confdefs.h. */
14174
14175/* Override any GCC internal prototype to avoid an error.
14176 Use char because int might match the return type of a GCC
14177 builtin and then its argument prototype would still apply. */
14178#ifdef __cplusplus
14179extern "C"
14180#endif
14181char pthread_getspecific ();
14182int
14183main ()
14184{
14185return pthread_getspecific ();
14186 ;
14187 return 0;
14188}
14189_ACEOF
14190for ac_lib in '' pthread; do
14191 if test -z "$ac_lib"; then
14192 ac_res="none required"
14193 else
14194 ac_res=-l$ac_lib
14195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14196 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014197 rm -f conftest.$ac_objext conftest$ac_exeext
14198if { (ac_try="$ac_link"
14199case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14202esac
14203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_link") 2>conftest.er1
14205 ac_status=$?
14206 grep -v '^ *+' conftest.er1 >conftest.err
14207 rm -f conftest.er1
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } &&
14211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14212 { (case "(($ac_try" in
14213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214 *) ac_try_echo=$ac_try;;
14215esac
14216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217 (eval "$ac_try") 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest$ac_exeext'
14222 { (case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14225esac
14226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_try") 2>&5
14228 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014231 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014232else
14233 echo "$as_me: failed program was:" >&5
14234sed 's/^/| /' conftest.$ac_ext >&5
14235
14236
Owen Anderson27fcfe12009-06-25 23:10:26 +000014237fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014238
Owen Anderson27fcfe12009-06-25 23:10:26 +000014239rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014240 conftest$ac_exeext
14241 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014242 break
14243fi
14244done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014245if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14246 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014247else
14248 ac_cv_search_pthread_getspecific=no
14249fi
14250rm conftest.$ac_ext
14251LIBS=$ac_func_search_save_LIBS
14252fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014253{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14254echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014255ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014256if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014259cat >>confdefs.h <<\_ACEOF
14260#define HAVE_PTHREAD_GETSPECIFIC 1
14261_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014262
14263fi
14264
Reid Spencer0a262ba2005-08-24 10:07:20 +000014265fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014266
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014267
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014268# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014269if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014270 withval=$with_udis86;
14271 USE_UDIS86=1
14272
14273 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014274 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014275 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14276 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014277
14278{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14279echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14280if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014282else
14283 ac_check_lib_save_LIBS=$LIBS
14284LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014285cat >conftest.$ac_ext <<_ACEOF
14286/* confdefs.h. */
14287_ACEOF
14288cat confdefs.h >>conftest.$ac_ext
14289cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014290/* end confdefs.h. */
14291
14292/* Override any GCC internal prototype to avoid an error.
14293 Use char because int might match the return type of a GCC
14294 builtin and then its argument prototype would still apply. */
14295#ifdef __cplusplus
14296extern "C"
14297#endif
14298char ud_init ();
14299int
14300main ()
14301{
14302return ud_init ();
14303 ;
14304 return 0;
14305}
14306_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014307rm -f conftest.$ac_objext conftest$ac_exeext
14308if { (ac_try="$ac_link"
14309case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14312esac
14313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_link") 2>conftest.er1
14315 ac_status=$?
14316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14322 { (case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14325esac
14326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_try") 2>&5
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; } &&
14331 { ac_try='test -s conftest$ac_exeext'
14332 { (case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14335esac
14336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_try") 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014341 ac_cv_lib_udis86_ud_init=yes
14342else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014343 echo "$as_me: failed program was:" >&5
14344sed 's/^/| /' conftest.$ac_ext >&5
14345
14346 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014347fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014348
Bill Wendlingebcceee2009-04-18 11:20:33 +000014349rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014350 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014351LIBS=$ac_check_lib_save_LIBS
14352fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014353{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14354echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14355if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014356 cat >>confdefs.h <<_ACEOF
14357#define HAVE_LIBUDIS86 1
14358_ACEOF
14359
14360 LIBS="-ludis86 $LIBS"
14361
14362else
14363
14364 echo "Error! You need to have libudis86 around."
14365 exit -1
14366
14367fi
14368
14369
14370else
14371 USE_UDIS86=0
14372
14373fi
14374
14375
14376cat >>confdefs.h <<_ACEOF
14377#define USE_UDIS86 $USE_UDIS86
14378_ACEOF
14379
14380
14381
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014382# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014383if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014384 withval=$with_oprofile;
14385 USE_OPROFILE=1
14386
14387 case "$withval" in
14388 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014389 no) llvm_cv_oppath=
14390 USE_OPROFILE=0
14391 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014392 *) llvm_cv_oppath="${withval}/lib/oprofile"
14393 CPPFLAGS="-I${withval}/include";;
14394 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014395 if test -n "$llvm_cv_oppath" ; then
14396 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014397 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14398echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14399if test "${ac_cv_search_bfd_init+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014401else
14402 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014403cat >conftest.$ac_ext <<_ACEOF
14404/* confdefs.h. */
14405_ACEOF
14406cat confdefs.h >>conftest.$ac_ext
14407cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014408/* end confdefs.h. */
14409
14410/* Override any GCC internal prototype to avoid an error.
14411 Use char because int might match the return type of a GCC
14412 builtin and then its argument prototype would still apply. */
14413#ifdef __cplusplus
14414extern "C"
14415#endif
14416char bfd_init ();
14417int
14418main ()
14419{
14420return bfd_init ();
14421 ;
14422 return 0;
14423}
14424_ACEOF
14425for ac_lib in '' bfd; do
14426 if test -z "$ac_lib"; then
14427 ac_res="none required"
14428 else
14429 ac_res=-l$ac_lib
14430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14431 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014432 rm -f conftest.$ac_objext conftest$ac_exeext
14433if { (ac_try="$ac_link"
14434case "(($ac_try" in
14435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436 *) ac_try_echo=$ac_try;;
14437esac
14438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_link") 2>conftest.er1
14440 ac_status=$?
14441 grep -v '^ *+' conftest.er1 >conftest.err
14442 rm -f conftest.er1
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } &&
14446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14447 { (case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14450esac
14451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452 (eval "$ac_try") 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; } &&
14456 { ac_try='test -s conftest$ac_exeext'
14457 { (case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14460esac
14461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_try") 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014466 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014467else
14468 echo "$as_me: failed program was:" >&5
14469sed 's/^/| /' conftest.$ac_ext >&5
14470
14471
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014472fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014473
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014474rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014475 conftest$ac_exeext
14476 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014477 break
14478fi
14479done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014480if test "${ac_cv_search_bfd_init+set}" = set; then
14481 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014482else
14483 ac_cv_search_bfd_init=no
14484fi
14485rm conftest.$ac_ext
14486LIBS=$ac_func_search_save_LIBS
14487fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014488{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14489echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014490ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014491if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014492 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14493
14494fi
14495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014496 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14497echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14498if test "${ac_cv_search_op_open_agent+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014500else
14501 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014502cat >conftest.$ac_ext <<_ACEOF
14503/* confdefs.h. */
14504_ACEOF
14505cat confdefs.h >>conftest.$ac_ext
14506cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014507/* end confdefs.h. */
14508
14509/* Override any GCC internal prototype to avoid an error.
14510 Use char because int might match the return type of a GCC
14511 builtin and then its argument prototype would still apply. */
14512#ifdef __cplusplus
14513extern "C"
14514#endif
14515char op_open_agent ();
14516int
14517main ()
14518{
14519return op_open_agent ();
14520 ;
14521 return 0;
14522}
14523_ACEOF
14524for ac_lib in '' opagent; do
14525 if test -z "$ac_lib"; then
14526 ac_res="none required"
14527 else
14528 ac_res=-l$ac_lib
14529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14530 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014531 rm -f conftest.$ac_objext conftest$ac_exeext
14532if { (ac_try="$ac_link"
14533case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14536esac
14537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_link") 2>conftest.er1
14539 ac_status=$?
14540 grep -v '^ *+' conftest.er1 >conftest.err
14541 rm -f conftest.er1
14542 cat conftest.err >&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); } &&
14545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14546 { (case "(($ac_try" in
14547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548 *) ac_try_echo=$ac_try;;
14549esac
14550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551 (eval "$ac_try") 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; } &&
14555 { ac_try='test -s conftest$ac_exeext'
14556 { (case "(($ac_try" in
14557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558 *) ac_try_echo=$ac_try;;
14559esac
14560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561 (eval "$ac_try") 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014565 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014566else
14567 echo "$as_me: failed program was:" >&5
14568sed 's/^/| /' conftest.$ac_ext >&5
14569
14570
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014571fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014572
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014573rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014574 conftest$ac_exeext
14575 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014576 break
14577fi
14578done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014579if test "${ac_cv_search_op_open_agent+set}" = set; then
14580 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014581else
14582 ac_cv_search_op_open_agent=no
14583fi
14584rm conftest.$ac_ext
14585LIBS=$ac_func_search_save_LIBS
14586fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014587{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14588echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014589ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014590if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14592
14593else
14594
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014595 echo "Error! You need to have libopagent around."
14596 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014597
14598fi
14599
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014600 if test "${ac_cv_header_opagent_h+set}" = set; then
14601 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14602echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14603if test "${ac_cv_header_opagent_h+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14605fi
14606{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14607echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14608else
14609 # Is the header compilable?
14610{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14611echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14612cat >conftest.$ac_ext <<_ACEOF
14613/* confdefs.h. */
14614_ACEOF
14615cat confdefs.h >>conftest.$ac_ext
14616cat >>conftest.$ac_ext <<_ACEOF
14617/* end confdefs.h. */
14618$ac_includes_default
14619#include <opagent.h>
14620_ACEOF
14621rm -f conftest.$ac_objext
14622if { (ac_try="$ac_compile"
14623case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14626esac
14627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_compile") 2>conftest.er1
14629 ac_status=$?
14630 grep -v '^ *+' conftest.er1 >conftest.err
14631 rm -f conftest.er1
14632 cat conftest.err >&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } &&
14635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14636 { (case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14639esac
14640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_try") 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14649esac
14650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_try") 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14655 ac_header_compiler=yes
14656else
14657 echo "$as_me: failed program was:" >&5
14658sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014660 ac_header_compiler=no
14661fi
14662
14663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14664{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14665echo "${ECHO_T}$ac_header_compiler" >&6; }
14666
14667# Is the header present?
14668{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14669echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14670cat >conftest.$ac_ext <<_ACEOF
14671/* confdefs.h. */
14672_ACEOF
14673cat confdefs.h >>conftest.$ac_ext
14674cat >>conftest.$ac_ext <<_ACEOF
14675/* end confdefs.h. */
14676#include <opagent.h>
14677_ACEOF
14678if { (ac_try="$ac_cpp conftest.$ac_ext"
14679case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14682esac
14683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } >/dev/null; then
14691 if test -s conftest.err; then
14692 ac_cpp_err=$ac_c_preproc_warn_flag
14693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14694 else
14695 ac_cpp_err=
14696 fi
14697else
14698 ac_cpp_err=yes
14699fi
14700if test -z "$ac_cpp_err"; then
14701 ac_header_preproc=yes
14702else
14703 echo "$as_me: failed program was:" >&5
14704sed 's/^/| /' conftest.$ac_ext >&5
14705
14706 ac_header_preproc=no
14707fi
14708
14709rm -f conftest.err conftest.$ac_ext
14710{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14711echo "${ECHO_T}$ac_header_preproc" >&6; }
14712
14713# So? What about this header?
14714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14715 yes:no: )
14716 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14717echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14719echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14720 ac_header_preproc=yes
14721 ;;
14722 no:yes:* )
14723 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14724echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14726echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14728echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14730echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14732echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14734echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14735 ( cat <<\_ASBOX
14736## ----------------------------------- ##
14737## Report this to llvmbugs@cs.uiuc.edu ##
14738## ----------------------------------- ##
14739_ASBOX
14740 ) | sed "s/^/$as_me: WARNING: /" >&2
14741 ;;
14742esac
14743{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14744echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14745if test "${ac_cv_header_opagent_h+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14747else
14748 ac_cv_header_opagent_h=$ac_header_preproc
14749fi
14750{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14751echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14752
14753fi
14754if test $ac_cv_header_opagent_h = yes; then
14755 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014756else
14757
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014758 echo "Error! You need to have opagent.h around."
14759 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014760
14761fi
14762
14763
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014764 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014765
14766else
14767
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014768 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014769
14770
14771fi
14772
14773
14774cat >>confdefs.h <<_ACEOF
14775#define USE_OPROFILE $USE_OPROFILE
14776_ACEOF
14777
14778
14779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014780
14781
14782
14783
14784
Reid Spencer59473af2004-12-25 07:31:29 +000014785ac_header_dirent=no
14786for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014787 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14788{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14789echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014792else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014793 cat >conftest.$ac_ext <<_ACEOF
14794/* confdefs.h. */
14795_ACEOF
14796cat confdefs.h >>conftest.$ac_ext
14797cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014798/* end confdefs.h. */
14799#include <sys/types.h>
14800#include <$ac_hdr>
14801
14802int
14803main ()
14804{
14805if ((DIR *) 0)
14806return 0;
14807 ;
14808 return 0;
14809}
14810_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014811rm -f conftest.$ac_objext
14812if { (ac_try="$ac_compile"
14813case "(($ac_try" in
14814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815 *) ac_try_echo=$ac_try;;
14816esac
14817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818 (eval "$ac_compile") 2>conftest.er1
14819 ac_status=$?
14820 grep -v '^ *+' conftest.er1 >conftest.err
14821 rm -f conftest.er1
14822 cat conftest.err >&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } &&
14825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14826 { (case "(($ac_try" in
14827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14828 *) ac_try_echo=$ac_try;;
14829esac
14830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14831 (eval "$ac_try") 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; } &&
14835 { ac_try='test -s conftest.$ac_objext'
14836 { (case "(($ac_try" in
14837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838 *) ac_try_echo=$ac_try;;
14839esac
14840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14841 (eval "$ac_try") 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014845 eval "$as_ac_Header=yes"
14846else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014847 echo "$as_me: failed program was:" >&5
14848sed 's/^/| /' conftest.$ac_ext >&5
14849
14850 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014851fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014852
Reid Spencera773bd52006-08-04 18:18:08 +000014853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014854fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014855ac_res=`eval echo '${'$as_ac_Header'}'`
14856 { echo "$as_me:$LINENO: result: $ac_res" >&5
14857echo "${ECHO_T}$ac_res" >&6; }
14858if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014859 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014860#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014861_ACEOF
14862
14863ac_header_dirent=$ac_hdr; break
14864fi
14865
14866done
14867# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14868if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014869 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14870echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14871if test "${ac_cv_search_opendir+set}" = set; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014873else
14874 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014875cat >conftest.$ac_ext <<_ACEOF
14876/* confdefs.h. */
14877_ACEOF
14878cat confdefs.h >>conftest.$ac_ext
14879cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014880/* end confdefs.h. */
14881
Reid Spencera773bd52006-08-04 18:18:08 +000014882/* Override any GCC internal prototype to avoid an error.
14883 Use char because int might match the return type of a GCC
14884 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014885#ifdef __cplusplus
14886extern "C"
14887#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014888char opendir ();
14889int
14890main ()
14891{
Reid Spencera773bd52006-08-04 18:18:08 +000014892return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014893 ;
14894 return 0;
14895}
14896_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014897for ac_lib in '' dir; do
14898 if test -z "$ac_lib"; then
14899 ac_res="none required"
14900 else
14901 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014903 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014904 rm -f conftest.$ac_objext conftest$ac_exeext
14905if { (ac_try="$ac_link"
14906case "(($ac_try" in
14907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14908 *) ac_try_echo=$ac_try;;
14909esac
14910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14911 (eval "$ac_link") 2>conftest.er1
14912 ac_status=$?
14913 grep -v '^ *+' conftest.er1 >conftest.err
14914 rm -f conftest.er1
14915 cat conftest.err >&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); } &&
14918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14919 { (case "(($ac_try" in
14920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921 *) ac_try_echo=$ac_try;;
14922esac
14923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924 (eval "$ac_try") 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; } &&
14928 { ac_try='test -s conftest$ac_exeext'
14929 { (case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14932esac
14933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934 (eval "$ac_try") 2>&5
14935 ac_status=$?
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014938 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014939else
14940 echo "$as_me: failed program was:" >&5
14941sed 's/^/| /' conftest.$ac_ext >&5
14942
14943
Reid Spencer59473af2004-12-25 07:31:29 +000014944fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014945
Bill Wendlingebcceee2009-04-18 11:20:33 +000014946rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014947 conftest$ac_exeext
14948 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014949 break
Reid Spencer59473af2004-12-25 07:31:29 +000014950fi
Reid Spencera773bd52006-08-04 18:18:08 +000014951done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014952if test "${ac_cv_search_opendir+set}" = set; then
14953 :
Reid Spencera773bd52006-08-04 18:18:08 +000014954else
14955 ac_cv_search_opendir=no
14956fi
14957rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014958LIBS=$ac_func_search_save_LIBS
14959fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014960{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14961echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014962ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014963if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014964 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014965
14966fi
14967
14968else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014969 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14970echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14971if test "${ac_cv_search_opendir+set}" = set; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014973else
14974 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014975cat >conftest.$ac_ext <<_ACEOF
14976/* confdefs.h. */
14977_ACEOF
14978cat confdefs.h >>conftest.$ac_ext
14979cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014980/* end confdefs.h. */
14981
Reid Spencera773bd52006-08-04 18:18:08 +000014982/* Override any GCC internal prototype to avoid an error.
14983 Use char because int might match the return type of a GCC
14984 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014985#ifdef __cplusplus
14986extern "C"
14987#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014988char opendir ();
14989int
14990main ()
14991{
Reid Spencera773bd52006-08-04 18:18:08 +000014992return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014993 ;
14994 return 0;
14995}
14996_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014997for ac_lib in '' x; do
14998 if test -z "$ac_lib"; then
14999 ac_res="none required"
15000 else
15001 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015003 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015004 rm -f conftest.$ac_objext conftest$ac_exeext
15005if { (ac_try="$ac_link"
15006case "(($ac_try" in
15007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008 *) ac_try_echo=$ac_try;;
15009esac
15010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011 (eval "$ac_link") 2>conftest.er1
15012 ac_status=$?
15013 grep -v '^ *+' conftest.er1 >conftest.err
15014 rm -f conftest.er1
15015 cat conftest.err >&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); } &&
15018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15019 { (case "(($ac_try" in
15020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021 *) ac_try_echo=$ac_try;;
15022esac
15023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15024 (eval "$ac_try") 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; } &&
15028 { ac_try='test -s conftest$ac_exeext'
15029 { (case "(($ac_try" in
15030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15031 *) ac_try_echo=$ac_try;;
15032esac
15033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15034 (eval "$ac_try") 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015038 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015039else
15040 echo "$as_me: failed program was:" >&5
15041sed 's/^/| /' conftest.$ac_ext >&5
15042
15043
Reid Spencer59473af2004-12-25 07:31:29 +000015044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015045
Bill Wendlingebcceee2009-04-18 11:20:33 +000015046rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015047 conftest$ac_exeext
15048 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015049 break
Reid Spencer59473af2004-12-25 07:31:29 +000015050fi
Reid Spencera773bd52006-08-04 18:18:08 +000015051done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015052if test "${ac_cv_search_opendir+set}" = set; then
15053 :
Reid Spencera773bd52006-08-04 18:18:08 +000015054else
15055 ac_cv_search_opendir=no
15056fi
15057rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015058LIBS=$ac_func_search_save_LIBS
15059fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015060{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15061echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015062ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015063if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015065
15066fi
15067
15068fi
15069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015070{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15071echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15072if test "${ac_cv_header_mmap_anon+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015074else
15075 ac_ext=c
15076ac_cpp='$CPP $CPPFLAGS'
15077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15079ac_compiler_gnu=$ac_cv_c_compiler_gnu
15080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015081 cat >conftest.$ac_ext <<_ACEOF
15082/* confdefs.h. */
15083_ACEOF
15084cat confdefs.h >>conftest.$ac_ext
15085cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015086/* end confdefs.h. */
15087#include <sys/mman.h>
15088#include <unistd.h>
15089#include <fcntl.h>
15090int
15091main ()
15092{
15093mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15094 ;
15095 return 0;
15096}
15097_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015098rm -f conftest.$ac_objext
15099if { (ac_try="$ac_compile"
15100case "(($ac_try" in
15101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15103esac
15104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_compile") 2>conftest.er1
15106 ac_status=$?
15107 grep -v '^ *+' conftest.er1 >conftest.err
15108 rm -f conftest.er1
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } &&
15112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15113 { (case "(($ac_try" in
15114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115 *) ac_try_echo=$ac_try;;
15116esac
15117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118 (eval "$ac_try") 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; } &&
15122 { ac_try='test -s conftest.$ac_objext'
15123 { (case "(($ac_try" in
15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15126esac
15127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128 (eval "$ac_try") 2>&5
15129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015132 ac_cv_header_mmap_anon=yes
15133else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015134 echo "$as_me: failed program was:" >&5
15135sed 's/^/| /' conftest.$ac_ext >&5
15136
15137 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015138fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015139
Reid Spencera773bd52006-08-04 18:18:08 +000015140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015141 ac_ext=c
15142ac_cpp='$CPP $CPPFLAGS'
15143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15145ac_compiler_gnu=$ac_cv_c_compiler_gnu
15146
15147
15148fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015149{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15150echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015151if test "$ac_cv_header_mmap_anon" = yes; then
15152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015153cat >>confdefs.h <<\_ACEOF
15154#define HAVE_MMAP_ANONYMOUS 1
15155_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015156
15157fi
15158
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015159{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15160echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15161if test "${ac_cv_header_stat_broken+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015163else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015164 cat >conftest.$ac_ext <<_ACEOF
15165/* confdefs.h. */
15166_ACEOF
15167cat confdefs.h >>conftest.$ac_ext
15168cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015169/* end confdefs.h. */
15170#include <sys/types.h>
15171#include <sys/stat.h>
15172
Reid Spencera773bd52006-08-04 18:18:08 +000015173#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015174# if S_ISBLK (S_IFDIR)
15175You lose.
15176# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015177#endif
15178
Reid Spencera773bd52006-08-04 18:18:08 +000015179#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015180# if S_ISBLK (S_IFCHR)
15181You lose.
15182# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015183#endif
15184
Reid Spencera773bd52006-08-04 18:18:08 +000015185#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015186# if S_ISLNK (S_IFREG)
15187You lose.
15188# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015189#endif
15190
Reid Spencera773bd52006-08-04 18:18:08 +000015191#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015192# if S_ISSOCK (S_IFREG)
15193You lose.
15194# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015195#endif
15196
15197_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015198if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15199 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015200 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015201else
15202 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015203fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015204rm -f conftest*
15205
Reid Spencer59473af2004-12-25 07:31:29 +000015206fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015207{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15208echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015209if test $ac_cv_header_stat_broken = yes; then
15210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015211cat >>confdefs.h <<\_ACEOF
15212#define STAT_MACROS_BROKEN 1
15213_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015214
15215fi
15216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015217{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15218echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15219if test "${ac_cv_header_stdc+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015221else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015222 cat >conftest.$ac_ext <<_ACEOF
15223/* confdefs.h. */
15224_ACEOF
15225cat confdefs.h >>conftest.$ac_ext
15226cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015227/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015228#include <stdlib.h>
15229#include <stdarg.h>
15230#include <string.h>
15231#include <float.h>
15232
John Criswell0c38eaf2003-09-10 15:17:25 +000015233int
15234main ()
15235{
15236
15237 ;
15238 return 0;
15239}
John Criswell7a73b802003-06-30 21:59:07 +000015240_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015241rm -f conftest.$ac_objext
15242if { (ac_try="$ac_compile"
15243case "(($ac_try" in
15244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245 *) ac_try_echo=$ac_try;;
15246esac
15247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248 (eval "$ac_compile") 2>conftest.er1
15249 ac_status=$?
15250 grep -v '^ *+' conftest.er1 >conftest.err
15251 rm -f conftest.er1
15252 cat conftest.err >&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } &&
15255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15256 { (case "(($ac_try" in
15257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258 *) ac_try_echo=$ac_try;;
15259esac
15260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261 (eval "$ac_try") 2>&5
15262 ac_status=$?
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; } &&
15265 { ac_try='test -s conftest.$ac_objext'
15266 { (case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15269esac
15270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_try") 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015275 ac_cv_header_stdc=yes
15276else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015277 echo "$as_me: failed program was:" >&5
15278sed 's/^/| /' conftest.$ac_ext >&5
15279
15280 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015281fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015282
Reid Spencera773bd52006-08-04 18:18:08 +000015283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015284
15285if test $ac_cv_header_stdc = yes; then
15286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015287 cat >conftest.$ac_ext <<_ACEOF
15288/* confdefs.h. */
15289_ACEOF
15290cat confdefs.h >>conftest.$ac_ext
15291cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015292/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015293#include <string.h>
15294
15295_ACEOF
15296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015297 $EGREP "memchr" >/dev/null 2>&1; then
15298 :
John Criswell7a73b802003-06-30 21:59:07 +000015299else
15300 ac_cv_header_stdc=no
15301fi
15302rm -f conftest*
15303
15304fi
15305
15306if test $ac_cv_header_stdc = yes; then
15307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015308 cat >conftest.$ac_ext <<_ACEOF
15309/* confdefs.h. */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015313/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015314#include <stdlib.h>
15315
15316_ACEOF
15317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015318 $EGREP "free" >/dev/null 2>&1; then
15319 :
John Criswell7a73b802003-06-30 21:59:07 +000015320else
15321 ac_cv_header_stdc=no
15322fi
15323rm -f conftest*
15324
15325fi
15326
15327if test $ac_cv_header_stdc = yes; then
15328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015329 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015330 :
15331else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015332 cat >conftest.$ac_ext <<_ACEOF
15333/* confdefs.h. */
15334_ACEOF
15335cat confdefs.h >>conftest.$ac_ext
15336cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015337/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015338#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015339#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015340#if ((' ' & 0x0FF) == 0x020)
15341# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15342# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15343#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015344# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015345 (('a' <= (c) && (c) <= 'i') \
15346 || ('j' <= (c) && (c) <= 'r') \
15347 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015348# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15349#endif
15350
15351#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15352int
15353main ()
15354{
15355 int i;
15356 for (i = 0; i < 256; i++)
15357 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015358 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015359 return 2;
15360 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015361}
15362_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015363rm -f conftest$ac_exeext
15364if { (ac_try="$ac_link"
15365case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15368esac
15369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_link") 2>&5
15371 ac_status=$?
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15374 { (case "(($ac_try" in
15375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376 *) ac_try_echo=$ac_try;;
15377esac
15378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379 (eval "$ac_try") 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15383 :
John Criswell7a73b802003-06-30 21:59:07 +000015384else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015385 echo "$as_me: program exited with status $ac_status" >&5
15386echo "$as_me: failed program was:" >&5
15387sed 's/^/| /' conftest.$ac_ext >&5
15388
15389( exit $ac_status )
15390ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015392rm -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 +000015393fi
15394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015395
John Criswell7a73b802003-06-30 21:59:07 +000015396fi
15397fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015398{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15399echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015400if test $ac_cv_header_stdc = yes; then
15401
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015402cat >>confdefs.h <<\_ACEOF
15403#define STDC_HEADERS 1
15404_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015405
15406fi
15407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015408{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15409echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15410if test "${ac_cv_header_sys_wait_h+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015412else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015413 cat >conftest.$ac_ext <<_ACEOF
15414/* confdefs.h. */
15415_ACEOF
15416cat confdefs.h >>conftest.$ac_ext
15417cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015418/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015419#include <sys/types.h>
15420#include <sys/wait.h>
15421#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015422# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015423#endif
15424#ifndef WIFEXITED
15425# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15426#endif
15427
John Criswell7a73b802003-06-30 21:59:07 +000015428int
15429main ()
15430{
15431 int s;
15432 wait (&s);
15433 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15434 ;
15435 return 0;
15436}
15437_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015438rm -f conftest.$ac_objext
15439if { (ac_try="$ac_compile"
15440case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15443esac
15444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_compile") 2>conftest.er1
15446 ac_status=$?
15447 grep -v '^ *+' conftest.er1 >conftest.err
15448 rm -f conftest.er1
15449 cat conftest.err >&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } &&
15452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15453 { (case "(($ac_try" in
15454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15455 *) ac_try_echo=$ac_try;;
15456esac
15457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15458 (eval "$ac_try") 2>&5
15459 ac_status=$?
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; } &&
15462 { ac_try='test -s conftest.$ac_objext'
15463 { (case "(($ac_try" in
15464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465 *) ac_try_echo=$ac_try;;
15466esac
15467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468 (eval "$ac_try") 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015472 ac_cv_header_sys_wait_h=yes
15473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015474 echo "$as_me: failed program was:" >&5
15475sed 's/^/| /' conftest.$ac_ext >&5
15476
15477 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015478fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015479
Reid Spencera773bd52006-08-04 18:18:08 +000015480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015481fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015482{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15483echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015484if test $ac_cv_header_sys_wait_h = yes; then
15485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015486cat >>confdefs.h <<\_ACEOF
15487#define HAVE_SYS_WAIT_H 1
15488_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015489
15490fi
15491
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015492{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15493echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15494if test "${ac_cv_header_time+set}" = set; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015497 cat >conftest.$ac_ext <<_ACEOF
15498/* confdefs.h. */
15499_ACEOF
15500cat confdefs.h >>conftest.$ac_ext
15501cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015502/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015503#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015504#include <sys/time.h>
15505#include <time.h>
15506
15507int
15508main ()
15509{
15510if ((struct tm *) 0)
15511return 0;
15512 ;
15513 return 0;
15514}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015515_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015516rm -f conftest.$ac_objext
15517if { (ac_try="$ac_compile"
15518case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15521esac
15522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_compile") 2>conftest.er1
15524 ac_status=$?
15525 grep -v '^ *+' conftest.er1 >conftest.err
15526 rm -f conftest.er1
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } &&
15530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15531 { (case "(($ac_try" in
15532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533 *) ac_try_echo=$ac_try;;
15534esac
15535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536 (eval "$ac_try") 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; } &&
15540 { ac_try='test -s conftest.$ac_objext'
15541 { (case "(($ac_try" in
15542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543 *) ac_try_echo=$ac_try;;
15544esac
15545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_try") 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015550 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015552 echo "$as_me: failed program was:" >&5
15553sed 's/^/| /' conftest.$ac_ext >&5
15554
15555 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015556fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015557
Reid Spencera773bd52006-08-04 18:18:08 +000015558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015560{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15561echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015562if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015564cat >>confdefs.h <<\_ACEOF
15565#define TIME_WITH_SYS_TIME 1
15566_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015567
15568fi
15569
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015571
15572
15573
15574
15575
15576
Reid Spencer59473af2004-12-25 07:31:29 +000015577for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015578do
15579as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15585fi
15586ac_res=`eval echo '${'$as_ac_Header'}'`
15587 { echo "$as_me:$LINENO: result: $ac_res" >&5
15588echo "${ECHO_T}$ac_res" >&6; }
15589else
15590 # Is the header compilable?
15591{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15592echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15593cat >conftest.$ac_ext <<_ACEOF
15594/* confdefs.h. */
15595_ACEOF
15596cat confdefs.h >>conftest.$ac_ext
15597cat >>conftest.$ac_ext <<_ACEOF
15598/* end confdefs.h. */
15599$ac_includes_default
15600#include <$ac_header>
15601_ACEOF
15602rm -f conftest.$ac_objext
15603if { (ac_try="$ac_compile"
15604case "(($ac_try" in
15605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606 *) ac_try_echo=$ac_try;;
15607esac
15608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609 (eval "$ac_compile") 2>conftest.er1
15610 ac_status=$?
15611 grep -v '^ *+' conftest.er1 >conftest.err
15612 rm -f conftest.er1
15613 cat conftest.err >&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } &&
15616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15617 { (case "(($ac_try" in
15618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619 *) ac_try_echo=$ac_try;;
15620esac
15621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15622 (eval "$ac_try") 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; } &&
15626 { ac_try='test -s conftest.$ac_objext'
15627 { (case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15630esac
15631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_try") 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; }; then
15636 ac_header_compiler=yes
15637else
15638 echo "$as_me: failed program was:" >&5
15639sed 's/^/| /' conftest.$ac_ext >&5
15640
15641 ac_header_compiler=no
15642fi
15643
15644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15645{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15646echo "${ECHO_T}$ac_header_compiler" >&6; }
15647
15648# Is the header present?
15649{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15651cat >conftest.$ac_ext <<_ACEOF
15652/* confdefs.h. */
15653_ACEOF
15654cat confdefs.h >>conftest.$ac_ext
15655cat >>conftest.$ac_ext <<_ACEOF
15656/* end confdefs.h. */
15657#include <$ac_header>
15658_ACEOF
15659if { (ac_try="$ac_cpp conftest.$ac_ext"
15660case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15663esac
15664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15666 ac_status=$?
15667 grep -v '^ *+' conftest.er1 >conftest.err
15668 rm -f conftest.er1
15669 cat conftest.err >&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } >/dev/null; then
15672 if test -s conftest.err; then
15673 ac_cpp_err=$ac_c_preproc_warn_flag
15674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15675 else
15676 ac_cpp_err=
15677 fi
15678else
15679 ac_cpp_err=yes
15680fi
15681if test -z "$ac_cpp_err"; then
15682 ac_header_preproc=yes
15683else
15684 echo "$as_me: failed program was:" >&5
15685sed 's/^/| /' conftest.$ac_ext >&5
15686
15687 ac_header_preproc=no
15688fi
15689
15690rm -f conftest.err conftest.$ac_ext
15691{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15692echo "${ECHO_T}$ac_header_preproc" >&6; }
15693
15694# So? What about this header?
15695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15696 yes:no: )
15697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15698echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15700echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15701 ac_header_preproc=yes
15702 ;;
15703 no:yes:* )
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15705echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15707echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15709echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15711echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15713echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15715echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15716 ( cat <<\_ASBOX
15717## ----------------------------------- ##
15718## Report this to llvmbugs@cs.uiuc.edu ##
15719## ----------------------------------- ##
15720_ASBOX
15721 ) | sed "s/^/$as_me: WARNING: /" >&2
15722 ;;
15723esac
15724{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15728else
15729 eval "$as_ac_Header=\$ac_header_preproc"
15730fi
15731ac_res=`eval echo '${'$as_ac_Header'}'`
15732 { echo "$as_me:$LINENO: result: $ac_res" >&5
15733echo "${ECHO_T}$ac_res" >&6; }
15734
15735fi
15736if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015737 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015738#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015739_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015740
15741fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015742
Reid Spencer59473af2004-12-25 07:31:29 +000015743done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015745
15746
15747
15748
15749
15750
Douglas Gregor071d73d2009-05-18 17:21:34 +000015751for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015752do
15753as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15754if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15758 echo $ECHO_N "(cached) $ECHO_C" >&6
15759fi
15760ac_res=`eval echo '${'$as_ac_Header'}'`
15761 { echo "$as_me:$LINENO: result: $ac_res" >&5
15762echo "${ECHO_T}$ac_res" >&6; }
15763else
15764 # Is the header compilable?
15765{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15766echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15767cat >conftest.$ac_ext <<_ACEOF
15768/* confdefs.h. */
15769_ACEOF
15770cat confdefs.h >>conftest.$ac_ext
15771cat >>conftest.$ac_ext <<_ACEOF
15772/* end confdefs.h. */
15773$ac_includes_default
15774#include <$ac_header>
15775_ACEOF
15776rm -f conftest.$ac_objext
15777if { (ac_try="$ac_compile"
15778case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15781esac
15782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_compile") 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } &&
15790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15791 { (case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15794esac
15795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_try") 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; } &&
15800 { ac_try='test -s conftest.$ac_objext'
15801 { (case "(($ac_try" in
15802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803 *) ac_try_echo=$ac_try;;
15804esac
15805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15806 (eval "$ac_try") 2>&5
15807 ac_status=$?
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; }; then
15810 ac_header_compiler=yes
15811else
15812 echo "$as_me: failed program was:" >&5
15813sed 's/^/| /' conftest.$ac_ext >&5
15814
15815 ac_header_compiler=no
15816fi
15817
15818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15819{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15820echo "${ECHO_T}$ac_header_compiler" >&6; }
15821
15822# Is the header present?
15823{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15824echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15825cat >conftest.$ac_ext <<_ACEOF
15826/* confdefs.h. */
15827_ACEOF
15828cat confdefs.h >>conftest.$ac_ext
15829cat >>conftest.$ac_ext <<_ACEOF
15830/* end confdefs.h. */
15831#include <$ac_header>
15832_ACEOF
15833if { (ac_try="$ac_cpp conftest.$ac_ext"
15834case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15837esac
15838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15840 ac_status=$?
15841 grep -v '^ *+' conftest.er1 >conftest.err
15842 rm -f conftest.er1
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } >/dev/null; then
15846 if test -s conftest.err; then
15847 ac_cpp_err=$ac_c_preproc_warn_flag
15848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15849 else
15850 ac_cpp_err=
15851 fi
15852else
15853 ac_cpp_err=yes
15854fi
15855if test -z "$ac_cpp_err"; then
15856 ac_header_preproc=yes
15857else
15858 echo "$as_me: failed program was:" >&5
15859sed 's/^/| /' conftest.$ac_ext >&5
15860
15861 ac_header_preproc=no
15862fi
15863
15864rm -f conftest.err conftest.$ac_ext
15865{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15866echo "${ECHO_T}$ac_header_preproc" >&6; }
15867
15868# So? What about this header?
15869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15870 yes:no: )
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15872echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15874echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15875 ac_header_preproc=yes
15876 ;;
15877 no:yes:* )
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15881echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15883echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15885echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15889echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15890 ( cat <<\_ASBOX
15891## ----------------------------------- ##
15892## Report this to llvmbugs@cs.uiuc.edu ##
15893## ----------------------------------- ##
15894_ASBOX
15895 ) | sed "s/^/$as_me: WARNING: /" >&2
15896 ;;
15897esac
15898{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15900if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15902else
15903 eval "$as_ac_Header=\$ac_header_preproc"
15904fi
15905ac_res=`eval echo '${'$as_ac_Header'}'`
15906 { echo "$as_me:$LINENO: result: $ac_res" >&5
15907echo "${ECHO_T}$ac_res" >&6; }
15908
15909fi
15910if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015911 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015912#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015913_ACEOF
15914
15915fi
15916
15917done
15918
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015919
15920
Douglas Gregor071d73d2009-05-18 17:21:34 +000015921for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015922do
15923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15929fi
15930ac_res=`eval echo '${'$as_ac_Header'}'`
15931 { echo "$as_me:$LINENO: result: $ac_res" >&5
15932echo "${ECHO_T}$ac_res" >&6; }
15933else
15934 # Is the header compilable?
15935{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15936echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15937cat >conftest.$ac_ext <<_ACEOF
15938/* confdefs.h. */
15939_ACEOF
15940cat confdefs.h >>conftest.$ac_ext
15941cat >>conftest.$ac_ext <<_ACEOF
15942/* end confdefs.h. */
15943$ac_includes_default
15944#include <$ac_header>
15945_ACEOF
15946rm -f conftest.$ac_objext
15947if { (ac_try="$ac_compile"
15948case "(($ac_try" in
15949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950 *) ac_try_echo=$ac_try;;
15951esac
15952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953 (eval "$ac_compile") 2>conftest.er1
15954 ac_status=$?
15955 grep -v '^ *+' conftest.er1 >conftest.err
15956 rm -f conftest.er1
15957 cat conftest.err >&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } &&
15960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15961 { (case "(($ac_try" in
15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15964esac
15965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_try") 2>&5
15967 ac_status=$?
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; } &&
15970 { ac_try='test -s conftest.$ac_objext'
15971 { (case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15974esac
15975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976 (eval "$ac_try") 2>&5
15977 ac_status=$?
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }; then
15980 ac_header_compiler=yes
15981else
15982 echo "$as_me: failed program was:" >&5
15983sed 's/^/| /' conftest.$ac_ext >&5
15984
15985 ac_header_compiler=no
15986fi
15987
15988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15990echo "${ECHO_T}$ac_header_compiler" >&6; }
15991
15992# Is the header present?
15993{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15995cat >conftest.$ac_ext <<_ACEOF
15996/* confdefs.h. */
15997_ACEOF
15998cat confdefs.h >>conftest.$ac_ext
15999cat >>conftest.$ac_ext <<_ACEOF
16000/* end confdefs.h. */
16001#include <$ac_header>
16002_ACEOF
16003if { (ac_try="$ac_cpp conftest.$ac_ext"
16004case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16007esac
16008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16010 ac_status=$?
16011 grep -v '^ *+' conftest.er1 >conftest.err
16012 rm -f conftest.er1
16013 cat conftest.err >&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } >/dev/null; then
16016 if test -s conftest.err; then
16017 ac_cpp_err=$ac_c_preproc_warn_flag
16018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16019 else
16020 ac_cpp_err=
16021 fi
16022else
16023 ac_cpp_err=yes
16024fi
16025if test -z "$ac_cpp_err"; then
16026 ac_header_preproc=yes
16027else
16028 echo "$as_me: failed program was:" >&5
16029sed 's/^/| /' conftest.$ac_ext >&5
16030
16031 ac_header_preproc=no
16032fi
16033
16034rm -f conftest.err conftest.$ac_ext
16035{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16036echo "${ECHO_T}$ac_header_preproc" >&6; }
16037
16038# So? What about this header?
16039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16040 yes:no: )
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16042echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16044echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16045 ac_header_preproc=yes
16046 ;;
16047 no:yes:* )
16048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16049echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16051echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16053echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16055echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16057echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16059echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16060 ( cat <<\_ASBOX
16061## ----------------------------------- ##
16062## Report this to llvmbugs@cs.uiuc.edu ##
16063## ----------------------------------- ##
16064_ASBOX
16065 ) | sed "s/^/$as_me: WARNING: /" >&2
16066 ;;
16067esac
16068{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16072else
16073 eval "$as_ac_Header=\$ac_header_preproc"
16074fi
16075ac_res=`eval echo '${'$as_ac_Header'}'`
16076 { echo "$as_me:$LINENO: result: $ac_res" >&5
16077echo "${ECHO_T}$ac_res" >&6; }
16078
16079fi
16080if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016081 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016083_ACEOF
16084
16085fi
16086
16087done
Reid Spencer59473af2004-12-25 07:31:29 +000016088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016089
16090
16091
16092
Reid Spencerbe3e4192007-08-17 05:45:26 +000016093for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016094do
16095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16101fi
16102ac_res=`eval echo '${'$as_ac_Header'}'`
16103 { echo "$as_me:$LINENO: result: $ac_res" >&5
16104echo "${ECHO_T}$ac_res" >&6; }
16105else
16106 # Is the header compilable?
16107{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16108echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16109cat >conftest.$ac_ext <<_ACEOF
16110/* confdefs.h. */
16111_ACEOF
16112cat confdefs.h >>conftest.$ac_ext
16113cat >>conftest.$ac_ext <<_ACEOF
16114/* end confdefs.h. */
16115$ac_includes_default
16116#include <$ac_header>
16117_ACEOF
16118rm -f conftest.$ac_objext
16119if { (ac_try="$ac_compile"
16120case "(($ac_try" in
16121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122 *) ac_try_echo=$ac_try;;
16123esac
16124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16125 (eval "$ac_compile") 2>conftest.er1
16126 ac_status=$?
16127 grep -v '^ *+' conftest.er1 >conftest.err
16128 rm -f conftest.er1
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
16132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16133 { (case "(($ac_try" in
16134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135 *) ac_try_echo=$ac_try;;
16136esac
16137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138 (eval "$ac_try") 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; } &&
16142 { ac_try='test -s conftest.$ac_objext'
16143 { (case "(($ac_try" in
16144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16146esac
16147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148 (eval "$ac_try") 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16152 ac_header_compiler=yes
16153else
16154 echo "$as_me: failed program was:" >&5
16155sed 's/^/| /' conftest.$ac_ext >&5
16156
16157 ac_header_compiler=no
16158fi
16159
16160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16162echo "${ECHO_T}$ac_header_compiler" >&6; }
16163
16164# Is the header present?
16165{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16166echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16167cat >conftest.$ac_ext <<_ACEOF
16168/* confdefs.h. */
16169_ACEOF
16170cat confdefs.h >>conftest.$ac_ext
16171cat >>conftest.$ac_ext <<_ACEOF
16172/* end confdefs.h. */
16173#include <$ac_header>
16174_ACEOF
16175if { (ac_try="$ac_cpp conftest.$ac_ext"
16176case "(($ac_try" in
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16179esac
16180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16182 ac_status=$?
16183 grep -v '^ *+' conftest.er1 >conftest.err
16184 rm -f conftest.er1
16185 cat conftest.err >&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } >/dev/null; then
16188 if test -s conftest.err; then
16189 ac_cpp_err=$ac_c_preproc_warn_flag
16190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16191 else
16192 ac_cpp_err=
16193 fi
16194else
16195 ac_cpp_err=yes
16196fi
16197if test -z "$ac_cpp_err"; then
16198 ac_header_preproc=yes
16199else
16200 echo "$as_me: failed program was:" >&5
16201sed 's/^/| /' conftest.$ac_ext >&5
16202
16203 ac_header_preproc=no
16204fi
16205
16206rm -f conftest.err conftest.$ac_ext
16207{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16208echo "${ECHO_T}$ac_header_preproc" >&6; }
16209
16210# So? What about this header?
16211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16212 yes:no: )
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16217 ac_header_preproc=yes
16218 ;;
16219 no:yes:* )
16220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16232 ( cat <<\_ASBOX
16233## ----------------------------------- ##
16234## Report this to llvmbugs@cs.uiuc.edu ##
16235## ----------------------------------- ##
16236_ASBOX
16237 ) | sed "s/^/$as_me: WARNING: /" >&2
16238 ;;
16239esac
16240{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16243 echo $ECHO_N "(cached) $ECHO_C" >&6
16244else
16245 eval "$as_ac_Header=\$ac_header_preproc"
16246fi
16247ac_res=`eval echo '${'$as_ac_Header'}'`
16248 { echo "$as_me:$LINENO: result: $ac_res" >&5
16249echo "${ECHO_T}$ac_res" >&6; }
16250
16251fi
16252if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016253 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016255_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016256
16257fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016258
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016259done
16260
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016261
16262
16263
16264
Douglas Gregor01746742009-05-11 18:05:52 +000016265for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016266do
16267as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16273fi
16274ac_res=`eval echo '${'$as_ac_Header'}'`
16275 { echo "$as_me:$LINENO: result: $ac_res" >&5
16276echo "${ECHO_T}$ac_res" >&6; }
16277else
16278 # Is the header compilable?
16279{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16280echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16281cat >conftest.$ac_ext <<_ACEOF
16282/* confdefs.h. */
16283_ACEOF
16284cat confdefs.h >>conftest.$ac_ext
16285cat >>conftest.$ac_ext <<_ACEOF
16286/* end confdefs.h. */
16287$ac_includes_default
16288#include <$ac_header>
16289_ACEOF
16290rm -f conftest.$ac_objext
16291if { (ac_try="$ac_compile"
16292case "(($ac_try" in
16293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16294 *) ac_try_echo=$ac_try;;
16295esac
16296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16297 (eval "$ac_compile") 2>conftest.er1
16298 ac_status=$?
16299 grep -v '^ *+' conftest.er1 >conftest.err
16300 rm -f conftest.er1
16301 cat conftest.err >&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } &&
16304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16305 { (case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308esac
16309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_try") 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } &&
16314 { ac_try='test -s conftest.$ac_objext'
16315 { (case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16318esac
16319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_try") 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; }; then
16324 ac_header_compiler=yes
16325else
16326 echo "$as_me: failed program was:" >&5
16327sed 's/^/| /' conftest.$ac_ext >&5
16328
16329 ac_header_compiler=no
16330fi
16331
16332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16334echo "${ECHO_T}$ac_header_compiler" >&6; }
16335
16336# Is the header present?
16337{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16339cat >conftest.$ac_ext <<_ACEOF
16340/* confdefs.h. */
16341_ACEOF
16342cat confdefs.h >>conftest.$ac_ext
16343cat >>conftest.$ac_ext <<_ACEOF
16344/* end confdefs.h. */
16345#include <$ac_header>
16346_ACEOF
16347if { (ac_try="$ac_cpp conftest.$ac_ext"
16348case "(($ac_try" in
16349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350 *) ac_try_echo=$ac_try;;
16351esac
16352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16354 ac_status=$?
16355 grep -v '^ *+' conftest.er1 >conftest.err
16356 rm -f conftest.er1
16357 cat conftest.err >&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); } >/dev/null; then
16360 if test -s conftest.err; then
16361 ac_cpp_err=$ac_c_preproc_warn_flag
16362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16363 else
16364 ac_cpp_err=
16365 fi
16366else
16367 ac_cpp_err=yes
16368fi
16369if test -z "$ac_cpp_err"; then
16370 ac_header_preproc=yes
16371else
16372 echo "$as_me: failed program was:" >&5
16373sed 's/^/| /' conftest.$ac_ext >&5
16374
16375 ac_header_preproc=no
16376fi
16377
16378rm -f conftest.err conftest.$ac_ext
16379{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16380echo "${ECHO_T}$ac_header_preproc" >&6; }
16381
16382# So? What about this header?
16383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16384 yes:no: )
16385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16389 ac_header_preproc=yes
16390 ;;
16391 no:yes:* )
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16395echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16399echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16404 ( cat <<\_ASBOX
16405## ----------------------------------- ##
16406## Report this to llvmbugs@cs.uiuc.edu ##
16407## ----------------------------------- ##
16408_ASBOX
16409 ) | sed "s/^/$as_me: WARNING: /" >&2
16410 ;;
16411esac
16412{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16414if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16416else
16417 eval "$as_ac_Header=\$ac_header_preproc"
16418fi
16419ac_res=`eval echo '${'$as_ac_Header'}'`
16420 { echo "$as_me:$LINENO: result: $ac_res" >&5
16421echo "${ECHO_T}$ac_res" >&6; }
16422
16423fi
16424if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016425 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016426#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016427_ACEOF
16428
16429fi
16430
16431done
16432
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016433
16434for ac_header in valgrind/valgrind.h
16435do
16436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16441 echo $ECHO_N "(cached) $ECHO_C" >&6
16442fi
16443ac_res=`eval echo '${'$as_ac_Header'}'`
16444 { echo "$as_me:$LINENO: result: $ac_res" >&5
16445echo "${ECHO_T}$ac_res" >&6; }
16446else
16447 # Is the header compilable?
16448{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16449echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16450cat >conftest.$ac_ext <<_ACEOF
16451/* confdefs.h. */
16452_ACEOF
16453cat confdefs.h >>conftest.$ac_ext
16454cat >>conftest.$ac_ext <<_ACEOF
16455/* end confdefs.h. */
16456$ac_includes_default
16457#include <$ac_header>
16458_ACEOF
16459rm -f conftest.$ac_objext
16460if { (ac_try="$ac_compile"
16461case "(($ac_try" in
16462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463 *) ac_try_echo=$ac_try;;
16464esac
16465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466 (eval "$ac_compile") 2>conftest.er1
16467 ac_status=$?
16468 grep -v '^ *+' conftest.er1 >conftest.err
16469 rm -f conftest.er1
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } &&
16473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16474 { (case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16477esac
16478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_try") 2>&5
16480 ac_status=$?
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); }; } &&
16483 { ac_try='test -s conftest.$ac_objext'
16484 { (case "(($ac_try" in
16485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486 *) ac_try_echo=$ac_try;;
16487esac
16488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489 (eval "$ac_try") 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_header_compiler=yes
16494else
16495 echo "$as_me: failed program was:" >&5
16496sed 's/^/| /' conftest.$ac_ext >&5
16497
16498 ac_header_compiler=no
16499fi
16500
16501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16503echo "${ECHO_T}$ac_header_compiler" >&6; }
16504
16505# Is the header present?
16506{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16508cat >conftest.$ac_ext <<_ACEOF
16509/* confdefs.h. */
16510_ACEOF
16511cat confdefs.h >>conftest.$ac_ext
16512cat >>conftest.$ac_ext <<_ACEOF
16513/* end confdefs.h. */
16514#include <$ac_header>
16515_ACEOF
16516if { (ac_try="$ac_cpp conftest.$ac_ext"
16517case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520esac
16521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16523 ac_status=$?
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } >/dev/null; then
16529 if test -s conftest.err; then
16530 ac_cpp_err=$ac_c_preproc_warn_flag
16531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16532 else
16533 ac_cpp_err=
16534 fi
16535else
16536 ac_cpp_err=yes
16537fi
16538if test -z "$ac_cpp_err"; then
16539 ac_header_preproc=yes
16540else
16541 echo "$as_me: failed program was:" >&5
16542sed 's/^/| /' conftest.$ac_ext >&5
16543
16544 ac_header_preproc=no
16545fi
16546
16547rm -f conftest.err conftest.$ac_ext
16548{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16549echo "${ECHO_T}$ac_header_preproc" >&6; }
16550
16551# So? What about this header?
16552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16553 yes:no: )
16554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16555echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16557echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16558 ac_header_preproc=yes
16559 ;;
16560 no:yes:* )
16561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16564echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16566echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16568echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16570echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16572echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16573 ( cat <<\_ASBOX
16574## ----------------------------------- ##
16575## Report this to llvmbugs@cs.uiuc.edu ##
16576## ----------------------------------- ##
16577_ASBOX
16578 ) | sed "s/^/$as_me: WARNING: /" >&2
16579 ;;
16580esac
16581{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16585else
16586 eval "$as_ac_Header=\$ac_header_preproc"
16587fi
16588ac_res=`eval echo '${'$as_ac_Header'}'`
16589 { echo "$as_me:$LINENO: result: $ac_res" >&5
16590echo "${ECHO_T}$ac_res" >&6; }
16591
16592fi
16593if test `eval echo '${'$as_ac_Header'}'` = yes; then
16594 cat >>confdefs.h <<_ACEOF
16595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16596_ACEOF
16597
16598fi
16599
16600done
16601
Reid Spencer0a262ba2005-08-24 10:07:20 +000016602if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016603
16604for ac_header in pthread.h
16605do
16606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16607if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16610if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16611 echo $ECHO_N "(cached) $ECHO_C" >&6
16612fi
16613ac_res=`eval echo '${'$as_ac_Header'}'`
16614 { echo "$as_me:$LINENO: result: $ac_res" >&5
16615echo "${ECHO_T}$ac_res" >&6; }
16616else
16617 # Is the header compilable?
16618{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16619echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16620cat >conftest.$ac_ext <<_ACEOF
16621/* confdefs.h. */
16622_ACEOF
16623cat confdefs.h >>conftest.$ac_ext
16624cat >>conftest.$ac_ext <<_ACEOF
16625/* end confdefs.h. */
16626$ac_includes_default
16627#include <$ac_header>
16628_ACEOF
16629rm -f conftest.$ac_objext
16630if { (ac_try="$ac_compile"
16631case "(($ac_try" in
16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16634esac
16635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636 (eval "$ac_compile") 2>conftest.er1
16637 ac_status=$?
16638 grep -v '^ *+' conftest.er1 >conftest.err
16639 rm -f conftest.er1
16640 cat conftest.err >&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } &&
16643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16644 { (case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647esac
16648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_try") 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } &&
16653 { ac_try='test -s conftest.$ac_objext'
16654 { (case "(($ac_try" in
16655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656 *) ac_try_echo=$ac_try;;
16657esac
16658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16659 (eval "$ac_try") 2>&5
16660 ac_status=$?
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; }; then
16663 ac_header_compiler=yes
16664else
16665 echo "$as_me: failed program was:" >&5
16666sed 's/^/| /' conftest.$ac_ext >&5
16667
16668 ac_header_compiler=no
16669fi
16670
16671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16672{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16673echo "${ECHO_T}$ac_header_compiler" >&6; }
16674
16675# Is the header present?
16676{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16677echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16678cat >conftest.$ac_ext <<_ACEOF
16679/* confdefs.h. */
16680_ACEOF
16681cat confdefs.h >>conftest.$ac_ext
16682cat >>conftest.$ac_ext <<_ACEOF
16683/* end confdefs.h. */
16684#include <$ac_header>
16685_ACEOF
16686if { (ac_try="$ac_cpp conftest.$ac_ext"
16687case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16690esac
16691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16693 ac_status=$?
16694 grep -v '^ *+' conftest.er1 >conftest.err
16695 rm -f conftest.er1
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } >/dev/null; then
16699 if test -s conftest.err; then
16700 ac_cpp_err=$ac_c_preproc_warn_flag
16701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16702 else
16703 ac_cpp_err=
16704 fi
16705else
16706 ac_cpp_err=yes
16707fi
16708if test -z "$ac_cpp_err"; then
16709 ac_header_preproc=yes
16710else
16711 echo "$as_me: failed program was:" >&5
16712sed 's/^/| /' conftest.$ac_ext >&5
16713
16714 ac_header_preproc=no
16715fi
16716
16717rm -f conftest.err conftest.$ac_ext
16718{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16719echo "${ECHO_T}$ac_header_preproc" >&6; }
16720
16721# So? What about this header?
16722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16723 yes:no: )
16724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16725echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16727echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16728 ac_header_preproc=yes
16729 ;;
16730 no:yes:* )
16731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16732echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16734echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16736echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16738echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16740echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16742echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16743 ( cat <<\_ASBOX
16744## ----------------------------------- ##
16745## Report this to llvmbugs@cs.uiuc.edu ##
16746## ----------------------------------- ##
16747_ASBOX
16748 ) | sed "s/^/$as_me: WARNING: /" >&2
16749 ;;
16750esac
16751{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16753if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755else
16756 eval "$as_ac_Header=\$ac_header_preproc"
16757fi
16758ac_res=`eval echo '${'$as_ac_Header'}'`
16759 { echo "$as_me:$LINENO: result: $ac_res" >&5
16760echo "${ECHO_T}$ac_res" >&6; }
16761
16762fi
16763if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016764 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016765#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016766_ACEOF
16767 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016768
16769else
16770 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016771
16772fi
16773
Reid Spencerbe3e4192007-08-17 05:45:26 +000016774done
Reid Spencer1000b732006-12-01 00:37:14 +000016775
16776else
16777 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016778
16779fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016780
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016781if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016782
16783
16784for ac_header in ffi.h ffi/ffi.h
16785do
16786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16791 echo $ECHO_N "(cached) $ECHO_C" >&6
16792fi
16793ac_res=`eval echo '${'$as_ac_Header'}'`
16794 { echo "$as_me:$LINENO: result: $ac_res" >&5
16795echo "${ECHO_T}$ac_res" >&6; }
16796else
16797 # Is the header compilable?
16798{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16800cat >conftest.$ac_ext <<_ACEOF
16801/* confdefs.h. */
16802_ACEOF
16803cat confdefs.h >>conftest.$ac_ext
16804cat >>conftest.$ac_ext <<_ACEOF
16805/* end confdefs.h. */
16806$ac_includes_default
16807#include <$ac_header>
16808_ACEOF
16809rm -f conftest.$ac_objext
16810if { (ac_try="$ac_compile"
16811case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16814esac
16815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_compile") 2>conftest.er1
16817 ac_status=$?
16818 grep -v '^ *+' conftest.er1 >conftest.err
16819 rm -f conftest.er1
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16824 { (case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16827esac
16828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_try") 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest.$ac_objext'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16837esac
16838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 ac_header_compiler=yes
16844else
16845 echo "$as_me: failed program was:" >&5
16846sed 's/^/| /' conftest.$ac_ext >&5
16847
16848 ac_header_compiler=no
16849fi
16850
16851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16852{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16853echo "${ECHO_T}$ac_header_compiler" >&6; }
16854
16855# Is the header present?
16856{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16857echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16858cat >conftest.$ac_ext <<_ACEOF
16859/* confdefs.h. */
16860_ACEOF
16861cat confdefs.h >>conftest.$ac_ext
16862cat >>conftest.$ac_ext <<_ACEOF
16863/* end confdefs.h. */
16864#include <$ac_header>
16865_ACEOF
16866if { (ac_try="$ac_cpp conftest.$ac_ext"
16867case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16870esac
16871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16873 ac_status=$?
16874 grep -v '^ *+' conftest.er1 >conftest.err
16875 rm -f conftest.er1
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } >/dev/null; then
16879 if test -s conftest.err; then
16880 ac_cpp_err=$ac_c_preproc_warn_flag
16881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16882 else
16883 ac_cpp_err=
16884 fi
16885else
16886 ac_cpp_err=yes
16887fi
16888if test -z "$ac_cpp_err"; then
16889 ac_header_preproc=yes
16890else
16891 echo "$as_me: failed program was:" >&5
16892sed 's/^/| /' conftest.$ac_ext >&5
16893
16894 ac_header_preproc=no
16895fi
16896
16897rm -f conftest.err conftest.$ac_ext
16898{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16899echo "${ECHO_T}$ac_header_preproc" >&6; }
16900
16901# So? What about this header?
16902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16903 yes:no: )
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16908 ac_header_preproc=yes
16909 ;;
16910 no:yes:* )
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16918echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16923 ( cat <<\_ASBOX
16924## ----------------------------------- ##
16925## Report this to llvmbugs@cs.uiuc.edu ##
16926## ----------------------------------- ##
16927_ASBOX
16928 ) | sed "s/^/$as_me: WARNING: /" >&2
16929 ;;
16930esac
16931{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935else
16936 eval "$as_ac_Header=\$ac_header_preproc"
16937fi
16938ac_res=`eval echo '${'$as_ac_Header'}'`
16939 { echo "$as_me:$LINENO: result: $ac_res" >&5
16940echo "${ECHO_T}$ac_res" >&6; }
16941
16942fi
16943if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016944 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016946_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016947
16948fi
16949
16950done
16951
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016952fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016953
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016954
Eric Christopher654dee42010-06-22 21:01:04 +000016955for ac_header in CrashReporterClient.h
16956do
16957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16963fi
16964ac_res=`eval echo '${'$as_ac_Header'}'`
16965 { echo "$as_me:$LINENO: result: $ac_res" >&5
16966echo "${ECHO_T}$ac_res" >&6; }
16967else
16968 # Is the header compilable?
16969{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16971cat >conftest.$ac_ext <<_ACEOF
16972/* confdefs.h. */
16973_ACEOF
16974cat confdefs.h >>conftest.$ac_ext
16975cat >>conftest.$ac_ext <<_ACEOF
16976/* end confdefs.h. */
16977$ac_includes_default
16978#include <$ac_header>
16979_ACEOF
16980rm -f conftest.$ac_objext
16981if { (ac_try="$ac_compile"
16982case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985esac
16986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_compile") 2>conftest.er1
16988 ac_status=$?
16989 grep -v '^ *+' conftest.er1 >conftest.err
16990 rm -f conftest.er1
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16995 { (case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16998esac
16999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_try") 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest.$ac_objext'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17008esac
17009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17011 ac_status=$?
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17014 ac_header_compiler=yes
17015else
17016 echo "$as_me: failed program was:" >&5
17017sed 's/^/| /' conftest.$ac_ext >&5
17018
17019 ac_header_compiler=no
17020fi
17021
17022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17023{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17024echo "${ECHO_T}$ac_header_compiler" >&6; }
17025
17026# Is the header present?
17027{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17028echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17029cat >conftest.$ac_ext <<_ACEOF
17030/* confdefs.h. */
17031_ACEOF
17032cat confdefs.h >>conftest.$ac_ext
17033cat >>conftest.$ac_ext <<_ACEOF
17034/* end confdefs.h. */
17035#include <$ac_header>
17036_ACEOF
17037if { (ac_try="$ac_cpp conftest.$ac_ext"
17038case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17041esac
17042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17044 ac_status=$?
17045 grep -v '^ *+' conftest.er1 >conftest.err
17046 rm -f conftest.er1
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } >/dev/null; then
17050 if test -s conftest.err; then
17051 ac_cpp_err=$ac_c_preproc_warn_flag
17052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17053 else
17054 ac_cpp_err=
17055 fi
17056else
17057 ac_cpp_err=yes
17058fi
17059if test -z "$ac_cpp_err"; then
17060 ac_header_preproc=yes
17061else
17062 echo "$as_me: failed program was:" >&5
17063sed 's/^/| /' conftest.$ac_ext >&5
17064
17065 ac_header_preproc=no
17066fi
17067
17068rm -f conftest.err conftest.$ac_ext
17069{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17070echo "${ECHO_T}$ac_header_preproc" >&6; }
17071
17072# So? What about this header?
17073case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17074 yes:no: )
17075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17076echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17078echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17079 ac_header_preproc=yes
17080 ;;
17081 no:yes:* )
17082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17083echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17085echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17087echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17089echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17091echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17093echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17094 ( cat <<\_ASBOX
17095## ----------------------------------- ##
17096## Report this to llvmbugs@cs.uiuc.edu ##
17097## ----------------------------------- ##
17098_ASBOX
17099 ) | sed "s/^/$as_me: WARNING: /" >&2
17100 ;;
17101esac
17102{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17104if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17106else
17107 eval "$as_ac_Header=\$ac_header_preproc"
17108fi
17109ac_res=`eval echo '${'$as_ac_Header'}'`
17110 { echo "$as_me:$LINENO: result: $ac_res" >&5
17111echo "${ECHO_T}$ac_res" >&6; }
17112
17113fi
17114if test `eval echo '${'$as_ac_Header'}'` = yes; then
17115 cat >>confdefs.h <<_ACEOF
17116#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17117_ACEOF
17118
17119fi
17120
17121done
17122
17123
17124
Reid Spencer8085cff2005-01-16 02:58:39 +000017125
Torok Edwin871384f2010-01-26 08:50:50 +000017126
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017127 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17128echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17129if test "${ac_cv_huge_val_sanity+set}" = set; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017131else
17132
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017133 ac_ext=cpp
17134ac_cpp='$CXXCPP $CPPFLAGS'
17135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017138
Eric Christopherc7718502010-03-02 05:06:54 +000017139 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017140 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017141 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017142 ac_cv_huge_val_sanity=yes
17143else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017144 cat >conftest.$ac_ext <<_ACEOF
17145/* confdefs.h. */
17146_ACEOF
17147cat confdefs.h >>conftest.$ac_ext
17148cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017149/* end confdefs.h. */
17150#include <math.h>
17151int
17152main ()
17153{
17154double x = HUGE_VAL; return x != x;
17155 ;
17156 return 0;
17157}
17158_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017159rm -f conftest$ac_exeext
17160if { (ac_try="$ac_link"
17161case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164esac
17165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_link") 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17170 { (case "(($ac_try" in
17171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17172 *) ac_try_echo=$ac_try;;
17173esac
17174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17175 (eval "$ac_try") 2>&5
17176 ac_status=$?
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017179 ac_cv_huge_val_sanity=yes
17180else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017181 echo "$as_me: program exited with status $ac_status" >&5
17182echo "$as_me: failed program was:" >&5
17183sed 's/^/| /' conftest.$ac_ext >&5
17184
17185( exit $ac_status )
17186ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017187fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017188rm -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 +000017189fi
17190
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017191
Eric Christopherc7718502010-03-02 05:06:54 +000017192 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017193 ac_ext=c
17194ac_cpp='$CPP $CPPFLAGS'
17195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17197ac_compiler_gnu=$ac_cv_c_compiler_gnu
17198
17199
17200fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017201{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17202echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017203 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17204
17205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017206{ echo "$as_me:$LINENO: checking for pid_t" >&5
17207echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17208if test "${ac_cv_type_pid_t+set}" = set; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17210else
17211 cat >conftest.$ac_ext <<_ACEOF
17212/* confdefs.h. */
17213_ACEOF
17214cat confdefs.h >>conftest.$ac_ext
17215cat >>conftest.$ac_ext <<_ACEOF
17216/* end confdefs.h. */
17217$ac_includes_default
17218typedef pid_t ac__type_new_;
17219int
17220main ()
17221{
17222if ((ac__type_new_ *) 0)
17223 return 0;
17224if (sizeof (ac__type_new_))
17225 return 0;
17226 ;
17227 return 0;
17228}
17229_ACEOF
17230rm -f conftest.$ac_objext
17231if { (ac_try="$ac_compile"
17232case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17235esac
17236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_compile") 2>conftest.er1
17238 ac_status=$?
17239 grep -v '^ *+' conftest.er1 >conftest.err
17240 rm -f conftest.er1
17241 cat conftest.err >&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } &&
17244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17245 { (case "(($ac_try" in
17246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247 *) ac_try_echo=$ac_try;;
17248esac
17249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17250 (eval "$ac_try") 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; } &&
17254 { ac_try='test -s conftest.$ac_objext'
17255 { (case "(($ac_try" in
17256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17257 *) ac_try_echo=$ac_try;;
17258esac
17259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17260 (eval "$ac_try") 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 ac_cv_type_pid_t=yes
17265else
17266 echo "$as_me: failed program was:" >&5
17267sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017268
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017269 ac_cv_type_pid_t=no
17270fi
17271
17272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17273fi
17274{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17275echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17276if test $ac_cv_type_pid_t = yes; then
17277 :
John Criswell7a73b802003-06-30 21:59:07 +000017278else
17279
17280cat >>confdefs.h <<_ACEOF
17281#define pid_t int
17282_ACEOF
17283
17284fi
17285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017286{ echo "$as_me:$LINENO: checking for size_t" >&5
17287echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17288if test "${ac_cv_type_size_t+set}" = set; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17290else
17291 cat >conftest.$ac_ext <<_ACEOF
17292/* confdefs.h. */
17293_ACEOF
17294cat confdefs.h >>conftest.$ac_ext
17295cat >>conftest.$ac_ext <<_ACEOF
17296/* end confdefs.h. */
17297$ac_includes_default
17298typedef size_t ac__type_new_;
17299int
17300main ()
17301{
17302if ((ac__type_new_ *) 0)
17303 return 0;
17304if (sizeof (ac__type_new_))
17305 return 0;
17306 ;
17307 return 0;
17308}
17309_ACEOF
17310rm -f conftest.$ac_objext
17311if { (ac_try="$ac_compile"
17312case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17315esac
17316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_compile") 2>conftest.er1
17318 ac_status=$?
17319 grep -v '^ *+' conftest.er1 >conftest.err
17320 rm -f conftest.er1
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17325 { (case "(($ac_try" in
17326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327 *) ac_try_echo=$ac_try;;
17328esac
17329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330 (eval "$ac_try") 2>&5
17331 ac_status=$?
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; } &&
17334 { ac_try='test -s conftest.$ac_objext'
17335 { (case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17338esac
17339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_try") 2>&5
17341 ac_status=$?
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 ac_cv_type_size_t=yes
17345else
17346 echo "$as_me: failed program was:" >&5
17347sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017349 ac_cv_type_size_t=no
17350fi
17351
17352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17353fi
17354{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17355echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17356if test $ac_cv_type_size_t = yes; then
17357 :
John Criswell7a73b802003-06-30 21:59:07 +000017358else
17359
17360cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017361#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017362_ACEOF
17363
17364fi
17365
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017366
17367cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017368#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017369_ACEOF
17370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017371{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17372echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17373if test "${ac_cv_struct_tm+set}" = set; then
17374 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017375else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017376 cat >conftest.$ac_ext <<_ACEOF
17377/* confdefs.h. */
17378_ACEOF
17379cat confdefs.h >>conftest.$ac_ext
17380cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017381/* end confdefs.h. */
17382#include <sys/types.h>
17383#include <time.h>
17384
17385int
17386main ()
17387{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017388struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017389 ;
17390 return 0;
17391}
17392_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017393rm -f conftest.$ac_objext
17394if { (ac_try="$ac_compile"
17395case "(($ac_try" in
17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17398esac
17399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_compile") 2>conftest.er1
17401 ac_status=$?
17402 grep -v '^ *+' conftest.er1 >conftest.err
17403 rm -f conftest.er1
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } &&
17407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17408 { (case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17411esac
17412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_try") 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; } &&
17417 { ac_try='test -s conftest.$ac_objext'
17418 { (case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17421esac
17422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_try") 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017427 ac_cv_struct_tm=time.h
17428else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017429 echo "$as_me: failed program was:" >&5
17430sed 's/^/| /' conftest.$ac_ext >&5
17431
17432 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017433fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017434
Reid Spencera773bd52006-08-04 18:18:08 +000017435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017436fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017437{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17438echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017439if test $ac_cv_struct_tm = sys/time.h; then
17440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017441cat >>confdefs.h <<\_ACEOF
17442#define TM_IN_SYS_TIME 1
17443_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017444
17445fi
17446
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017447{ echo "$as_me:$LINENO: checking for int64_t" >&5
17448echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17449if test "${ac_cv_type_int64_t+set}" = set; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17451else
17452 cat >conftest.$ac_ext <<_ACEOF
17453/* confdefs.h. */
17454_ACEOF
17455cat confdefs.h >>conftest.$ac_ext
17456cat >>conftest.$ac_ext <<_ACEOF
17457/* end confdefs.h. */
17458$ac_includes_default
17459typedef int64_t ac__type_new_;
17460int
17461main ()
17462{
17463if ((ac__type_new_ *) 0)
17464 return 0;
17465if (sizeof (ac__type_new_))
17466 return 0;
17467 ;
17468 return 0;
17469}
17470_ACEOF
17471rm -f conftest.$ac_objext
17472if { (ac_try="$ac_compile"
17473case "(($ac_try" in
17474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475 *) ac_try_echo=$ac_try;;
17476esac
17477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478 (eval "$ac_compile") 2>conftest.er1
17479 ac_status=$?
17480 grep -v '^ *+' conftest.er1 >conftest.err
17481 rm -f conftest.er1
17482 cat conftest.err >&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
17485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17486 { (case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17489esac
17490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_try") 2>&5
17492 ac_status=$?
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; } &&
17495 { ac_try='test -s conftest.$ac_objext'
17496 { (case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17499esac
17500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_try") 2>&5
17502 ac_status=$?
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; }; then
17505 ac_cv_type_int64_t=yes
17506else
17507 echo "$as_me: failed program was:" >&5
17508sed 's/^/| /' conftest.$ac_ext >&5
17509
17510 ac_cv_type_int64_t=no
17511fi
17512
17513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17514fi
17515{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17516echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17517if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017518
17519cat >>confdefs.h <<_ACEOF
17520#define HAVE_INT64_T 1
17521_ACEOF
17522
17523
17524else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017525 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17526echo "$as_me: error: Type int64_t required but not found" >&2;}
17527 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017528fi
17529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017530{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17531echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17532if test "${ac_cv_type_uint64_t+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17534else
17535 cat >conftest.$ac_ext <<_ACEOF
17536/* confdefs.h. */
17537_ACEOF
17538cat confdefs.h >>conftest.$ac_ext
17539cat >>conftest.$ac_ext <<_ACEOF
17540/* end confdefs.h. */
17541$ac_includes_default
17542typedef uint64_t ac__type_new_;
17543int
17544main ()
17545{
17546if ((ac__type_new_ *) 0)
17547 return 0;
17548if (sizeof (ac__type_new_))
17549 return 0;
17550 ;
17551 return 0;
17552}
17553_ACEOF
17554rm -f conftest.$ac_objext
17555if { (ac_try="$ac_compile"
17556case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17559esac
17560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_compile") 2>conftest.er1
17562 ac_status=$?
17563 grep -v '^ *+' conftest.er1 >conftest.err
17564 rm -f conftest.er1
17565 cat conftest.err >&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
17568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17569 { (case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17572esac
17573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_try") 2>&5
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; } &&
17578 { ac_try='test -s conftest.$ac_objext'
17579 { (case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17582esac
17583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_try") 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 ac_cv_type_uint64_t=yes
17589else
17590 echo "$as_me: failed program was:" >&5
17591sed 's/^/| /' conftest.$ac_ext >&5
17592
17593 ac_cv_type_uint64_t=no
17594fi
17595
17596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17597fi
17598{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17599echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17600if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017601
17602cat >>confdefs.h <<_ACEOF
17603#define HAVE_UINT64_T 1
17604_ACEOF
17605
17606
17607else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017608 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17609echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17610if test "${ac_cv_type_u_int64_t+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17612else
17613 cat >conftest.$ac_ext <<_ACEOF
17614/* confdefs.h. */
17615_ACEOF
17616cat confdefs.h >>conftest.$ac_ext
17617cat >>conftest.$ac_ext <<_ACEOF
17618/* end confdefs.h. */
17619$ac_includes_default
17620typedef u_int64_t ac__type_new_;
17621int
17622main ()
17623{
17624if ((ac__type_new_ *) 0)
17625 return 0;
17626if (sizeof (ac__type_new_))
17627 return 0;
17628 ;
17629 return 0;
17630}
17631_ACEOF
17632rm -f conftest.$ac_objext
17633if { (ac_try="$ac_compile"
17634case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17637esac
17638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639 (eval "$ac_compile") 2>conftest.er1
17640 ac_status=$?
17641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17647 { (case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17650esac
17651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_try") 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try='test -s conftest.$ac_objext'
17657 { (case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17660esac
17661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_try") 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17666 ac_cv_type_u_int64_t=yes
17667else
17668 echo "$as_me: failed program was:" >&5
17669sed 's/^/| /' conftest.$ac_ext >&5
17670
17671 ac_cv_type_u_int64_t=no
17672fi
17673
17674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17675fi
17676{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17677echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17678if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017679
17680cat >>confdefs.h <<_ACEOF
17681#define HAVE_U_INT64_T 1
17682_ACEOF
17683
17684
Misha Brukmanceca9042004-09-02 23:02:30 +000017685else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017686 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17687echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17688 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017689fi
17690
John Criswell679ff312004-09-02 18:44:44 +000017691fi
17692
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017693
17694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017695
17696
17697
17698
17699
17700
17701
Reid Spencerdf3be822006-01-23 08:15:53 +000017702for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017703do
17704as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17705{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17706echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17707if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17709else
17710 cat >conftest.$ac_ext <<_ACEOF
17711/* confdefs.h. */
17712_ACEOF
17713cat confdefs.h >>conftest.$ac_ext
17714cat >>conftest.$ac_ext <<_ACEOF
17715/* end confdefs.h. */
17716/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17718#define $ac_func innocuous_$ac_func
17719
17720/* System header to define __stub macros and hopefully few prototypes,
17721 which can conflict with char $ac_func (); below.
17722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17723 <limits.h> exists even on freestanding compilers. */
17724
17725#ifdef __STDC__
17726# include <limits.h>
17727#else
17728# include <assert.h>
17729#endif
17730
17731#undef $ac_func
17732
17733/* Override any GCC internal prototype to avoid an error.
17734 Use char because int might match the return type of a GCC
17735 builtin and then its argument prototype would still apply. */
17736#ifdef __cplusplus
17737extern "C"
17738#endif
17739char $ac_func ();
17740/* The GNU C library defines this for functions which it implements
17741 to always fail with ENOSYS. Some functions are actually named
17742 something starting with __ and the normal name is an alias. */
17743#if defined __stub_$ac_func || defined __stub___$ac_func
17744choke me
17745#endif
17746
17747int
17748main ()
17749{
17750return $ac_func ();
17751 ;
17752 return 0;
17753}
17754_ACEOF
17755rm -f conftest.$ac_objext conftest$ac_exeext
17756if { (ac_try="$ac_link"
17757case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17760esac
17761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_link") 2>conftest.er1
17763 ac_status=$?
17764 grep -v '^ *+' conftest.er1 >conftest.err
17765 rm -f conftest.er1
17766 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } &&
17769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17770 { (case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17773esac
17774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_try") 2>&5
17776 ac_status=$?
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; } &&
17779 { ac_try='test -s conftest$ac_exeext'
17780 { (case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17783esac
17784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_try") 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 eval "$as_ac_var=yes"
17790else
17791 echo "$as_me: failed program was:" >&5
17792sed 's/^/| /' conftest.$ac_ext >&5
17793
17794 eval "$as_ac_var=no"
17795fi
17796
17797rm -f core conftest.err conftest.$ac_objext \
17798 conftest$ac_exeext conftest.$ac_ext
17799fi
17800ac_res=`eval echo '${'$as_ac_var'}'`
17801 { echo "$as_me:$LINENO: result: $ac_res" >&5
17802echo "${ECHO_T}$ac_res" >&6; }
17803if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017804 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017805#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017806_ACEOF
17807
17808fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017809done
John Criswell7a73b802003-06-30 21:59:07 +000017810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017811
17812
17813
17814
Reid Spencer96cf5872007-07-13 10:05:30 +000017815for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017816do
17817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17818{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17820if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17821 echo $ECHO_N "(cached) $ECHO_C" >&6
17822else
17823 cat >conftest.$ac_ext <<_ACEOF
17824/* confdefs.h. */
17825_ACEOF
17826cat confdefs.h >>conftest.$ac_ext
17827cat >>conftest.$ac_ext <<_ACEOF
17828/* end confdefs.h. */
17829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17831#define $ac_func innocuous_$ac_func
17832
17833/* System header to define __stub macros and hopefully few prototypes,
17834 which can conflict with char $ac_func (); below.
17835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17836 <limits.h> exists even on freestanding compilers. */
17837
17838#ifdef __STDC__
17839# include <limits.h>
17840#else
17841# include <assert.h>
17842#endif
17843
17844#undef $ac_func
17845
17846/* Override any GCC internal prototype to avoid an error.
17847 Use char because int might match the return type of a GCC
17848 builtin and then its argument prototype would still apply. */
17849#ifdef __cplusplus
17850extern "C"
17851#endif
17852char $ac_func ();
17853/* The GNU C library defines this for functions which it implements
17854 to always fail with ENOSYS. Some functions are actually named
17855 something starting with __ and the normal name is an alias. */
17856#if defined __stub_$ac_func || defined __stub___$ac_func
17857choke me
17858#endif
17859
17860int
17861main ()
17862{
17863return $ac_func ();
17864 ;
17865 return 0;
17866}
17867_ACEOF
17868rm -f conftest.$ac_objext conftest$ac_exeext
17869if { (ac_try="$ac_link"
17870case "(($ac_try" in
17871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872 *) ac_try_echo=$ac_try;;
17873esac
17874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875 (eval "$ac_link") 2>conftest.er1
17876 ac_status=$?
17877 grep -v '^ *+' conftest.er1 >conftest.err
17878 rm -f conftest.er1
17879 cat conftest.err >&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } &&
17882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17883 { (case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17886esac
17887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_try") 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest$ac_exeext'
17893 { (case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17896esac
17897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_try") 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 eval "$as_ac_var=yes"
17903else
17904 echo "$as_me: failed program was:" >&5
17905sed 's/^/| /' conftest.$ac_ext >&5
17906
17907 eval "$as_ac_var=no"
17908fi
17909
17910rm -f core conftest.err conftest.$ac_objext \
17911 conftest$ac_exeext conftest.$ac_ext
17912fi
17913ac_res=`eval echo '${'$as_ac_var'}'`
17914 { echo "$as_me:$LINENO: result: $ac_res" >&5
17915echo "${ECHO_T}$ac_res" >&6; }
17916if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017917 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017918#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017919_ACEOF
17920
17921fi
17922done
17923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017924
17925
17926
17927
17928
Reid Spencerb90645c2007-02-16 19:17:20 +000017929for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017930do
17931as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17932{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17933echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17934if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17936else
17937 cat >conftest.$ac_ext <<_ACEOF
17938/* confdefs.h. */
17939_ACEOF
17940cat confdefs.h >>conftest.$ac_ext
17941cat >>conftest.$ac_ext <<_ACEOF
17942/* end confdefs.h. */
17943/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17945#define $ac_func innocuous_$ac_func
17946
17947/* System header to define __stub macros and hopefully few prototypes,
17948 which can conflict with char $ac_func (); below.
17949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17950 <limits.h> exists even on freestanding compilers. */
17951
17952#ifdef __STDC__
17953# include <limits.h>
17954#else
17955# include <assert.h>
17956#endif
17957
17958#undef $ac_func
17959
17960/* Override any GCC internal prototype to avoid an error.
17961 Use char because int might match the return type of a GCC
17962 builtin and then its argument prototype would still apply. */
17963#ifdef __cplusplus
17964extern "C"
17965#endif
17966char $ac_func ();
17967/* The GNU C library defines this for functions which it implements
17968 to always fail with ENOSYS. Some functions are actually named
17969 something starting with __ and the normal name is an alias. */
17970#if defined __stub_$ac_func || defined __stub___$ac_func
17971choke me
17972#endif
17973
17974int
17975main ()
17976{
17977return $ac_func ();
17978 ;
17979 return 0;
17980}
17981_ACEOF
17982rm -f conftest.$ac_objext conftest$ac_exeext
17983if { (ac_try="$ac_link"
17984case "(($ac_try" in
17985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986 *) ac_try_echo=$ac_try;;
17987esac
17988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989 (eval "$ac_link") 2>conftest.er1
17990 ac_status=$?
17991 grep -v '^ *+' conftest.er1 >conftest.err
17992 rm -f conftest.er1
17993 cat conftest.err >&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } &&
17996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17997 { (case "(($ac_try" in
17998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999 *) ac_try_echo=$ac_try;;
18000esac
18001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_try") 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; } &&
18006 { ac_try='test -s conftest$ac_exeext'
18007 { (case "(($ac_try" in
18008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18009 *) ac_try_echo=$ac_try;;
18010esac
18011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18012 (eval "$ac_try") 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; }; then
18016 eval "$as_ac_var=yes"
18017else
18018 echo "$as_me: failed program was:" >&5
18019sed 's/^/| /' conftest.$ac_ext >&5
18020
18021 eval "$as_ac_var=no"
18022fi
18023
18024rm -f core conftest.err conftest.$ac_objext \
18025 conftest$ac_exeext conftest.$ac_ext
18026fi
18027ac_res=`eval echo '${'$as_ac_var'}'`
18028 { echo "$as_me:$LINENO: result: $ac_res" >&5
18029echo "${ECHO_T}$ac_res" >&6; }
18030if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018031 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018033_ACEOF
18034
18035fi
18036done
18037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018038
18039
18040
Reid Spencerb90645c2007-02-16 19:17:20 +000018041for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018042do
18043as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18044{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18045echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18046if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18048else
18049 cat >conftest.$ac_ext <<_ACEOF
18050/* confdefs.h. */
18051_ACEOF
18052cat confdefs.h >>conftest.$ac_ext
18053cat >>conftest.$ac_ext <<_ACEOF
18054/* end confdefs.h. */
18055/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18057#define $ac_func innocuous_$ac_func
18058
18059/* System header to define __stub macros and hopefully few prototypes,
18060 which can conflict with char $ac_func (); below.
18061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18062 <limits.h> exists even on freestanding compilers. */
18063
18064#ifdef __STDC__
18065# include <limits.h>
18066#else
18067# include <assert.h>
18068#endif
18069
18070#undef $ac_func
18071
18072/* Override any GCC internal prototype to avoid an error.
18073 Use char because int might match the return type of a GCC
18074 builtin and then its argument prototype would still apply. */
18075#ifdef __cplusplus
18076extern "C"
18077#endif
18078char $ac_func ();
18079/* The GNU C library defines this for functions which it implements
18080 to always fail with ENOSYS. Some functions are actually named
18081 something starting with __ and the normal name is an alias. */
18082#if defined __stub_$ac_func || defined __stub___$ac_func
18083choke me
18084#endif
18085
18086int
18087main ()
18088{
18089return $ac_func ();
18090 ;
18091 return 0;
18092}
18093_ACEOF
18094rm -f conftest.$ac_objext conftest$ac_exeext
18095if { (ac_try="$ac_link"
18096case "(($ac_try" in
18097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098 *) ac_try_echo=$ac_try;;
18099esac
18100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101 (eval "$ac_link") 2>conftest.er1
18102 ac_status=$?
18103 grep -v '^ *+' conftest.er1 >conftest.err
18104 rm -f conftest.er1
18105 cat conftest.err >&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } &&
18108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18109 { (case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18112esac
18113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_try") 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; } &&
18118 { ac_try='test -s conftest$ac_exeext'
18119 { (case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18122esac
18123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 eval "$as_ac_var=yes"
18129else
18130 echo "$as_me: failed program was:" >&5
18131sed 's/^/| /' conftest.$ac_ext >&5
18132
18133 eval "$as_ac_var=no"
18134fi
18135
18136rm -f core conftest.err conftest.$ac_objext \
18137 conftest$ac_exeext conftest.$ac_ext
18138fi
18139ac_res=`eval echo '${'$as_ac_var'}'`
18140 { echo "$as_me:$LINENO: result: $ac_res" >&5
18141echo "${ECHO_T}$ac_res" >&6; }
18142if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018143 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018144#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018145_ACEOF
18146
18147fi
18148done
18149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018150
18151
18152
18153
18154
Eric Christophere4291822010-04-16 05:14:21 +000018155
18156for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018157do
18158as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18159{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18160echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18161if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18162 echo $ECHO_N "(cached) $ECHO_C" >&6
18163else
18164 cat >conftest.$ac_ext <<_ACEOF
18165/* confdefs.h. */
18166_ACEOF
18167cat confdefs.h >>conftest.$ac_ext
18168cat >>conftest.$ac_ext <<_ACEOF
18169/* end confdefs.h. */
18170/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18172#define $ac_func innocuous_$ac_func
18173
18174/* System header to define __stub macros and hopefully few prototypes,
18175 which can conflict with char $ac_func (); below.
18176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18177 <limits.h> exists even on freestanding compilers. */
18178
18179#ifdef __STDC__
18180# include <limits.h>
18181#else
18182# include <assert.h>
18183#endif
18184
18185#undef $ac_func
18186
18187/* Override any GCC internal prototype to avoid an error.
18188 Use char because int might match the return type of a GCC
18189 builtin and then its argument prototype would still apply. */
18190#ifdef __cplusplus
18191extern "C"
18192#endif
18193char $ac_func ();
18194/* The GNU C library defines this for functions which it implements
18195 to always fail with ENOSYS. Some functions are actually named
18196 something starting with __ and the normal name is an alias. */
18197#if defined __stub_$ac_func || defined __stub___$ac_func
18198choke me
18199#endif
18200
18201int
18202main ()
18203{
18204return $ac_func ();
18205 ;
18206 return 0;
18207}
18208_ACEOF
18209rm -f conftest.$ac_objext conftest$ac_exeext
18210if { (ac_try="$ac_link"
18211case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18214esac
18215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_link") 2>conftest.er1
18217 ac_status=$?
18218 grep -v '^ *+' conftest.er1 >conftest.err
18219 rm -f conftest.er1
18220 cat conftest.err >&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } &&
18223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18224 { (case "(($ac_try" in
18225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226 *) ac_try_echo=$ac_try;;
18227esac
18228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18229 (eval "$ac_try") 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; } &&
18233 { ac_try='test -s conftest$ac_exeext'
18234 { (case "(($ac_try" in
18235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18236 *) ac_try_echo=$ac_try;;
18237esac
18238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18239 (eval "$ac_try") 2>&5
18240 ac_status=$?
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; }; then
18243 eval "$as_ac_var=yes"
18244else
18245 echo "$as_me: failed program was:" >&5
18246sed 's/^/| /' conftest.$ac_ext >&5
18247
18248 eval "$as_ac_var=no"
18249fi
18250
18251rm -f core conftest.err conftest.$ac_objext \
18252 conftest$ac_exeext conftest.$ac_ext
18253fi
18254ac_res=`eval echo '${'$as_ac_var'}'`
18255 { echo "$as_me:$LINENO: result: $ac_res" >&5
18256echo "${ECHO_T}$ac_res" >&6; }
18257if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018258 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018259#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018260_ACEOF
18261
18262fi
18263done
Reid Spencerdf3be822006-01-23 08:15:53 +000018264
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018265
18266
18267
18268
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018269for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018270do
18271as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18272{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18273echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18274if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18276else
18277 cat >conftest.$ac_ext <<_ACEOF
18278/* confdefs.h. */
18279_ACEOF
18280cat confdefs.h >>conftest.$ac_ext
18281cat >>conftest.$ac_ext <<_ACEOF
18282/* end confdefs.h. */
18283/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18285#define $ac_func innocuous_$ac_func
18286
18287/* System header to define __stub macros and hopefully few prototypes,
18288 which can conflict with char $ac_func (); below.
18289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18290 <limits.h> exists even on freestanding compilers. */
18291
18292#ifdef __STDC__
18293# include <limits.h>
18294#else
18295# include <assert.h>
18296#endif
18297
18298#undef $ac_func
18299
18300/* Override any GCC internal prototype to avoid an error.
18301 Use char because int might match the return type of a GCC
18302 builtin and then its argument prototype would still apply. */
18303#ifdef __cplusplus
18304extern "C"
18305#endif
18306char $ac_func ();
18307/* The GNU C library defines this for functions which it implements
18308 to always fail with ENOSYS. Some functions are actually named
18309 something starting with __ and the normal name is an alias. */
18310#if defined __stub_$ac_func || defined __stub___$ac_func
18311choke me
18312#endif
18313
18314int
18315main ()
18316{
18317return $ac_func ();
18318 ;
18319 return 0;
18320}
18321_ACEOF
18322rm -f conftest.$ac_objext conftest$ac_exeext
18323if { (ac_try="$ac_link"
18324case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18327esac
18328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_link") 2>conftest.er1
18330 ac_status=$?
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18337 { (case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18340esac
18341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_try") 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; } &&
18346 { ac_try='test -s conftest$ac_exeext'
18347 { (case "(($ac_try" in
18348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18349 *) ac_try_echo=$ac_try;;
18350esac
18351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18352 (eval "$ac_try") 2>&5
18353 ac_status=$?
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; }; then
18356 eval "$as_ac_var=yes"
18357else
18358 echo "$as_me: failed program was:" >&5
18359sed 's/^/| /' conftest.$ac_ext >&5
18360
18361 eval "$as_ac_var=no"
18362fi
18363
18364rm -f core conftest.err conftest.$ac_objext \
18365 conftest$ac_exeext conftest.$ac_ext
18366fi
18367ac_res=`eval echo '${'$as_ac_var'}'`
18368 { echo "$as_me:$LINENO: result: $ac_res" >&5
18369echo "${ECHO_T}$ac_res" >&6; }
18370if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018371 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018372#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018373_ACEOF
18374
18375fi
18376done
18377
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018378
18379
18380
18381
Chris Lattner511f11d2005-11-14 07:25:50 +000018382for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018383do
18384as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18385{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18387if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18389else
18390 cat >conftest.$ac_ext <<_ACEOF
18391/* confdefs.h. */
18392_ACEOF
18393cat confdefs.h >>conftest.$ac_ext
18394cat >>conftest.$ac_ext <<_ACEOF
18395/* end confdefs.h. */
18396/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18398#define $ac_func innocuous_$ac_func
18399
18400/* System header to define __stub macros and hopefully few prototypes,
18401 which can conflict with char $ac_func (); below.
18402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18403 <limits.h> exists even on freestanding compilers. */
18404
18405#ifdef __STDC__
18406# include <limits.h>
18407#else
18408# include <assert.h>
18409#endif
18410
18411#undef $ac_func
18412
18413/* Override any GCC internal prototype to avoid an error.
18414 Use char because int might match the return type of a GCC
18415 builtin and then its argument prototype would still apply. */
18416#ifdef __cplusplus
18417extern "C"
18418#endif
18419char $ac_func ();
18420/* The GNU C library defines this for functions which it implements
18421 to always fail with ENOSYS. Some functions are actually named
18422 something starting with __ and the normal name is an alias. */
18423#if defined __stub_$ac_func || defined __stub___$ac_func
18424choke me
18425#endif
18426
18427int
18428main ()
18429{
18430return $ac_func ();
18431 ;
18432 return 0;
18433}
18434_ACEOF
18435rm -f conftest.$ac_objext conftest$ac_exeext
18436if { (ac_try="$ac_link"
18437case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18440esac
18441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442 (eval "$ac_link") 2>conftest.er1
18443 ac_status=$?
18444 grep -v '^ *+' conftest.er1 >conftest.err
18445 rm -f conftest.er1
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } &&
18449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18450 { (case "(($ac_try" in
18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452 *) ac_try_echo=$ac_try;;
18453esac
18454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455 (eval "$ac_try") 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; } &&
18459 { ac_try='test -s conftest$ac_exeext'
18460 { (case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18463esac
18464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_try") 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 eval "$as_ac_var=yes"
18470else
18471 echo "$as_me: failed program was:" >&5
18472sed 's/^/| /' conftest.$ac_ext >&5
18473
18474 eval "$as_ac_var=no"
18475fi
18476
18477rm -f core conftest.err conftest.$ac_objext \
18478 conftest$ac_exeext conftest.$ac_ext
18479fi
18480ac_res=`eval echo '${'$as_ac_var'}'`
18481 { echo "$as_me:$LINENO: result: $ac_res" >&5
18482echo "${ECHO_T}$ac_res" >&6; }
18483if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018484 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018486_ACEOF
18487
18488fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018489done
John Criswell7a73b802003-06-30 21:59:07 +000018490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018491
18492
18493
18494
Reid Spencerafa22e22006-12-10 23:29:19 +000018495for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018496do
18497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18498{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18500if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18502else
18503 cat >conftest.$ac_ext <<_ACEOF
18504/* confdefs.h. */
18505_ACEOF
18506cat confdefs.h >>conftest.$ac_ext
18507cat >>conftest.$ac_ext <<_ACEOF
18508/* end confdefs.h. */
18509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18511#define $ac_func innocuous_$ac_func
18512
18513/* System header to define __stub macros and hopefully few prototypes,
18514 which can conflict with char $ac_func (); below.
18515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18516 <limits.h> exists even on freestanding compilers. */
18517
18518#ifdef __STDC__
18519# include <limits.h>
18520#else
18521# include <assert.h>
18522#endif
18523
18524#undef $ac_func
18525
18526/* Override any GCC internal prototype to avoid an error.
18527 Use char because int might match the return type of a GCC
18528 builtin and then its argument prototype would still apply. */
18529#ifdef __cplusplus
18530extern "C"
18531#endif
18532char $ac_func ();
18533/* The GNU C library defines this for functions which it implements
18534 to always fail with ENOSYS. Some functions are actually named
18535 something starting with __ and the normal name is an alias. */
18536#if defined __stub_$ac_func || defined __stub___$ac_func
18537choke me
18538#endif
18539
18540int
18541main ()
18542{
18543return $ac_func ();
18544 ;
18545 return 0;
18546}
18547_ACEOF
18548rm -f conftest.$ac_objext conftest$ac_exeext
18549if { (ac_try="$ac_link"
18550case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18553esac
18554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_link") 2>conftest.er1
18556 ac_status=$?
18557 grep -v '^ *+' conftest.er1 >conftest.err
18558 rm -f conftest.er1
18559 cat conftest.err >&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } &&
18562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18563 { (case "(($ac_try" in
18564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565 *) ac_try_echo=$ac_try;;
18566esac
18567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568 (eval "$ac_try") 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest$ac_exeext'
18573 { (case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18576esac
18577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_try") 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18582 eval "$as_ac_var=yes"
18583else
18584 echo "$as_me: failed program was:" >&5
18585sed 's/^/| /' conftest.$ac_ext >&5
18586
18587 eval "$as_ac_var=no"
18588fi
18589
18590rm -f core conftest.err conftest.$ac_objext \
18591 conftest$ac_exeext conftest.$ac_ext
18592fi
18593ac_res=`eval echo '${'$as_ac_var'}'`
18594 { echo "$as_me:$LINENO: result: $ac_res" >&5
18595echo "${ECHO_T}$ac_res" >&6; }
18596if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018597 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018598#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018599_ACEOF
18600
18601fi
18602done
18603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018604{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18605echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18606if test "${llvm_cv_c_printf_a+set}" = set; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018608else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018609 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018610ac_cpp='$CPP $CPPFLAGS'
18611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18613ac_compiler_gnu=$ac_cv_c_compiler_gnu
18614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018615 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018616 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018617else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018618 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018620 /* confdefs.h. */
18621_ACEOF
18622cat confdefs.h >>conftest.$ac_ext
18623cat >>conftest.$ac_ext <<_ACEOF
18624/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018625
John Criswella0137d32003-10-13 16:22:01 +000018626#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018627#include <stdlib.h>
18628
John Criswella0137d32003-10-13 16:22:01 +000018629int
18630main ()
18631{
18632
Reid Spencer2706f8c2004-09-19 23:53:36 +000018633volatile double A, B;
18634char Buffer[100];
18635A = 1;
18636A /= 10.0;
18637sprintf(Buffer, "%a", A);
18638B = atof(Buffer);
18639if (A != B)
18640 return (1);
18641if (A != 0x1.999999999999ap-4)
18642 return (1);
18643return (0);
John Criswella0137d32003-10-13 16:22:01 +000018644 ;
18645 return 0;
18646}
18647_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018648rm -f conftest$ac_exeext
18649if { (ac_try="$ac_link"
18650case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18653esac
18654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_link") 2>&5
18656 ac_status=$?
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18659 { (case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18662esac
18663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664 (eval "$ac_try") 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018668 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018670 echo "$as_me: program exited with status $ac_status" >&5
18671echo "$as_me: failed program was:" >&5
18672sed 's/^/| /' conftest.$ac_ext >&5
18673
18674( exit $ac_status )
18675llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018676fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018677rm -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 +000018678fi
Reid Spencera773bd52006-08-04 18:18:08 +000018679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018680
Reid Spencer2706f8c2004-09-19 23:53:36 +000018681 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018682ac_cpp='$CPP $CPPFLAGS'
18683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18685ac_compiler_gnu=$ac_cv_c_compiler_gnu
18686
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018687fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018688{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18689echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018690 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018692cat >>confdefs.h <<\_ACEOF
18693#define HAVE_PRINTF_A 1
18694_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018695
Reid Spencer2706f8c2004-09-19 23:53:36 +000018696 fi
John Criswella0137d32003-10-13 16:22:01 +000018697
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018699{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18700echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18701if test "${ac_cv_func_rand48+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018703else
Reid Spencera773bd52006-08-04 18:18:08 +000018704 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018705ac_cpp='$CXXCPP $CPPFLAGS'
18706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018710 cat >conftest.$ac_ext <<_ACEOF
18711/* confdefs.h. */
18712_ACEOF
18713cat confdefs.h >>conftest.$ac_ext
18714cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018715/* end confdefs.h. */
18716#include <stdlib.h>
18717int
18718main ()
18719{
18720srand48(0);lrand48();drand48();
18721 ;
18722 return 0;
18723}
18724_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018725rm -f conftest.$ac_objext
18726if { (ac_try="$ac_compile"
18727case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18730esac
18731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_compile") 2>conftest.er1
18733 ac_status=$?
18734 grep -v '^ *+' conftest.er1 >conftest.err
18735 rm -f conftest.er1
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } &&
18739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18740 { (case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18743esac
18744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_try") 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } &&
18749 { ac_try='test -s conftest.$ac_objext'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18753esac
18754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018759 ac_cv_func_rand48=yes
18760else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018761 echo "$as_me: failed program was:" >&5
18762sed 's/^/| /' conftest.$ac_ext >&5
18763
18764 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018765fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018766
Reid Spencera773bd52006-08-04 18:18:08 +000018767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018768 ac_ext=c
18769ac_cpp='$CPP $CPPFLAGS'
18770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18772ac_compiler_gnu=$ac_cv_c_compiler_gnu
18773
18774fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018775{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18776echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018777
18778if test "$ac_cv_func_rand48" = "yes" ; then
18779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018780cat >>confdefs.h <<\_ACEOF
18781#define HAVE_RAND48 1
18782_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018783
18784fi
John Criswell0021c312004-02-13 21:57:29 +000018785
18786
Torok Edwin871384f2010-01-26 08:50:50 +000018787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018788{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18789echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18790if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018792else
Reid Spencera773bd52006-08-04 18:18:08 +000018793 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018794ac_cpp='$CXXCPP $CPPFLAGS'
18795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018799 cat >conftest.$ac_ext <<_ACEOF
18800/* confdefs.h. */
18801_ACEOF
18802cat confdefs.h >>conftest.$ac_ext
18803cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018804/* end confdefs.h. */
18805#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018806int
18807main ()
18808{
18809float f; isnan(f);
18810 ;
18811 return 0;
18812}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018813_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018814rm -f conftest.$ac_objext
18815if { (ac_try="$ac_compile"
18816case "(($ac_try" in
18817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818 *) ac_try_echo=$ac_try;;
18819esac
18820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18821 (eval "$ac_compile") 2>conftest.er1
18822 ac_status=$?
18823 grep -v '^ *+' conftest.er1 >conftest.err
18824 rm -f conftest.er1
18825 cat conftest.err >&5
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); } &&
18828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18829 { (case "(($ac_try" in
18830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18831 *) ac_try_echo=$ac_try;;
18832esac
18833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18834 (eval "$ac_try") 2>&5
18835 ac_status=$?
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; } &&
18838 { ac_try='test -s conftest.$ac_objext'
18839 { (case "(($ac_try" in
18840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18841 *) ac_try_echo=$ac_try;;
18842esac
18843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18844 (eval "$ac_try") 2>&5
18845 ac_status=$?
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018848 ac_cv_func_isnan_in_math_h=yes
18849else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018850 echo "$as_me: failed program was:" >&5
18851sed 's/^/| /' conftest.$ac_ext >&5
18852
18853 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018854fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018855
Reid Spencera773bd52006-08-04 18:18:08 +000018856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018857 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018858ac_cpp='$CPP $CPPFLAGS'
18859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18861ac_compiler_gnu=$ac_cv_c_compiler_gnu
18862
18863fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018864{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18865echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018866
18867
18868if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018870cat >>confdefs.h <<\_ACEOF
18871#define HAVE_ISNAN_IN_MATH_H 1
18872_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018873
Reid Spencerabec8f92004-10-27 23:03:44 +000018874fi
18875
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018876{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18877echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18878if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18879 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018880else
Reid Spencera773bd52006-08-04 18:18:08 +000018881 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018882ac_cpp='$CXXCPP $CPPFLAGS'
18883ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18884ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18885ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18886
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018887 cat >conftest.$ac_ext <<_ACEOF
18888/* confdefs.h. */
18889_ACEOF
18890cat confdefs.h >>conftest.$ac_ext
18891cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018892/* end confdefs.h. */
18893#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018894int
18895main ()
18896{
18897float f; isnan(f);
18898 ;
18899 return 0;
18900}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018901_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018902rm -f conftest.$ac_objext
18903if { (ac_try="$ac_compile"
18904case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18907esac
18908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_compile") 2>conftest.er1
18910 ac_status=$?
18911 grep -v '^ *+' conftest.er1 >conftest.err
18912 rm -f conftest.er1
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } &&
18916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18917 { (case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18920esac
18921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_try") 2>&5
18923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; } &&
18926 { ac_try='test -s conftest.$ac_objext'
18927 { (case "(($ac_try" in
18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929 *) ac_try_echo=$ac_try;;
18930esac
18931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932 (eval "$ac_try") 2>&5
18933 ac_status=$?
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018936 ac_cv_func_isnan_in_cmath=yes
18937else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018938 echo "$as_me: failed program was:" >&5
18939sed 's/^/| /' conftest.$ac_ext >&5
18940
18941 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018942fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018943
Reid Spencera773bd52006-08-04 18:18:08 +000018944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018945 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018946ac_cpp='$CPP $CPPFLAGS'
18947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18949ac_compiler_gnu=$ac_cv_c_compiler_gnu
18950
18951fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018952{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18953echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018954
18955if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018957cat >>confdefs.h <<\_ACEOF
18958#define HAVE_ISNAN_IN_CMATH 1
18959_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018960
Reid Spencerabec8f92004-10-27 23:03:44 +000018961fi
18962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018963{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18964echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18965if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018967else
Reid Spencera773bd52006-08-04 18:18:08 +000018968 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018969ac_cpp='$CXXCPP $CPPFLAGS'
18970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18973
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018974 cat >conftest.$ac_ext <<_ACEOF
18975/* confdefs.h. */
18976_ACEOF
18977cat confdefs.h >>conftest.$ac_ext
18978cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018979/* end confdefs.h. */
18980#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018981int
18982main ()
18983{
18984float f; std::isnan(f);
18985 ;
18986 return 0;
18987}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018988_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018989rm -f conftest.$ac_objext
18990if { (ac_try="$ac_compile"
18991case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18994esac
18995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_compile") 2>conftest.er1
18997 ac_status=$?
18998 grep -v '^ *+' conftest.er1 >conftest.err
18999 rm -f conftest.er1
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } &&
19003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19004 { (case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19007esac
19008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_try") 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; } &&
19013 { ac_try='test -s conftest.$ac_objext'
19014 { (case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19017esac
19018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019 (eval "$ac_try") 2>&5
19020 ac_status=$?
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019023 ac_cv_func_std_isnan_in_cmath=yes
19024else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019025 echo "$as_me: failed program was:" >&5
19026sed 's/^/| /' conftest.$ac_ext >&5
19027
19028 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019029fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019030
Reid Spencera773bd52006-08-04 18:18:08 +000019031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019032 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019033ac_cpp='$CPP $CPPFLAGS'
19034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19036ac_compiler_gnu=$ac_cv_c_compiler_gnu
19037
19038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019039{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19040echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019041
19042if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019044cat >>confdefs.h <<\_ACEOF
19045#define HAVE_STD_ISNAN_IN_CMATH 1
19046_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019047
Reid Spencerabec8f92004-10-27 23:03:44 +000019048fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019049
19050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019051{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19052echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19053if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19054 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019055else
Reid Spencera773bd52006-08-04 18:18:08 +000019056 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019057ac_cpp='$CXXCPP $CPPFLAGS'
19058ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19059ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19060ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019062 cat >conftest.$ac_ext <<_ACEOF
19063/* confdefs.h. */
19064_ACEOF
19065cat confdefs.h >>conftest.$ac_ext
19066cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019067/* end confdefs.h. */
19068#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019069int
19070main ()
19071{
19072float f; isinf(f);
19073 ;
19074 return 0;
19075}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019076_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019077rm -f conftest.$ac_objext
19078if { (ac_try="$ac_compile"
19079case "(($ac_try" in
19080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19082esac
19083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084 (eval "$ac_compile") 2>conftest.er1
19085 ac_status=$?
19086 grep -v '^ *+' conftest.er1 >conftest.err
19087 rm -f conftest.er1
19088 cat conftest.err >&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } &&
19091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19092 { (case "(($ac_try" in
19093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094 *) ac_try_echo=$ac_try;;
19095esac
19096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097 (eval "$ac_try") 2>&5
19098 ac_status=$?
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; } &&
19101 { ac_try='test -s conftest.$ac_objext'
19102 { (case "(($ac_try" in
19103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19104 *) ac_try_echo=$ac_try;;
19105esac
19106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19107 (eval "$ac_try") 2>&5
19108 ac_status=$?
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019111 ac_cv_func_isinf_in_math_h=yes
19112else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019113 echo "$as_me: failed program was:" >&5
19114sed 's/^/| /' conftest.$ac_ext >&5
19115
19116 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019117fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019118
Reid Spencera773bd52006-08-04 18:18:08 +000019119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019120 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019121ac_cpp='$CPP $CPPFLAGS'
19122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19124ac_compiler_gnu=$ac_cv_c_compiler_gnu
19125
19126fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019127{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19128echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019129
19130if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019131
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019132cat >>confdefs.h <<\_ACEOF
19133#define HAVE_ISINF_IN_MATH_H 1
19134_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019135
Reid Spencerabec8f92004-10-27 23:03:44 +000019136fi
19137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019138{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19139echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19140if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019142else
Reid Spencera773bd52006-08-04 18:18:08 +000019143 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019144ac_cpp='$CXXCPP $CPPFLAGS'
19145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19148
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019149 cat >conftest.$ac_ext <<_ACEOF
19150/* confdefs.h. */
19151_ACEOF
19152cat confdefs.h >>conftest.$ac_ext
19153cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019154/* end confdefs.h. */
19155#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019156int
19157main ()
19158{
19159float f; isinf(f);
19160 ;
19161 return 0;
19162}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019163_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019164rm -f conftest.$ac_objext
19165if { (ac_try="$ac_compile"
19166case "(($ac_try" in
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19169esac
19170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19171 (eval "$ac_compile") 2>conftest.er1
19172 ac_status=$?
19173 grep -v '^ *+' conftest.er1 >conftest.err
19174 rm -f conftest.er1
19175 cat conftest.err >&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); } &&
19178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19179 { (case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19182esac
19183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_try") 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; } &&
19188 { ac_try='test -s conftest.$ac_objext'
19189 { (case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19192esac
19193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_try") 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019198 ac_cv_func_isinf_in_cmath=yes
19199else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019200 echo "$as_me: failed program was:" >&5
19201sed 's/^/| /' conftest.$ac_ext >&5
19202
19203 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019204fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019205
Reid Spencera773bd52006-08-04 18:18:08 +000019206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019207 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019208ac_cpp='$CPP $CPPFLAGS'
19209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19211ac_compiler_gnu=$ac_cv_c_compiler_gnu
19212
19213fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019214{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19215echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019216
19217if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019219cat >>confdefs.h <<\_ACEOF
19220#define HAVE_ISINF_IN_CMATH 1
19221_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019222
Reid Spencerabec8f92004-10-27 23:03:44 +000019223fi
19224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019225{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19226echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19227if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019229else
Reid Spencera773bd52006-08-04 18:18:08 +000019230 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019231ac_cpp='$CXXCPP $CPPFLAGS'
19232ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19233ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19234ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19235
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019236 cat >conftest.$ac_ext <<_ACEOF
19237/* confdefs.h. */
19238_ACEOF
19239cat confdefs.h >>conftest.$ac_ext
19240cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019241/* end confdefs.h. */
19242#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019243int
19244main ()
19245{
19246float f; std::isinf(f)}
19247 ;
19248 return 0;
19249}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019250_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019251rm -f conftest.$ac_objext
19252if { (ac_try="$ac_compile"
19253case "(($ac_try" in
19254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19255 *) ac_try_echo=$ac_try;;
19256esac
19257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19258 (eval "$ac_compile") 2>conftest.er1
19259 ac_status=$?
19260 grep -v '^ *+' conftest.er1 >conftest.err
19261 rm -f conftest.er1
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } &&
19265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19266 { (case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19269esac
19270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_try") 2>&5
19272 ac_status=$?
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; } &&
19275 { ac_try='test -s conftest.$ac_objext'
19276 { (case "(($ac_try" in
19277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19279esac
19280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281 (eval "$ac_try") 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019285 ac_cv_func_std_isinf_in_cmath=yes
19286else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019287 echo "$as_me: failed program was:" >&5
19288sed 's/^/| /' conftest.$ac_ext >&5
19289
19290 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019291fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019292
Reid Spencera773bd52006-08-04 18:18:08 +000019293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019294 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019295ac_cpp='$CPP $CPPFLAGS'
19296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298ac_compiler_gnu=$ac_cv_c_compiler_gnu
19299
19300fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019301{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19302echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019303
19304if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019306cat >>confdefs.h <<\_ACEOF
19307#define HAVE_STD_ISINF_IN_CMATH 1
19308_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019309
Reid Spencerabec8f92004-10-27 23:03:44 +000019310fi
19311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019312{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19313echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19314if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019316else
Reid Spencera773bd52006-08-04 18:18:08 +000019317 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019318ac_cpp='$CXXCPP $CPPFLAGS'
19319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019323 cat >conftest.$ac_ext <<_ACEOF
19324/* confdefs.h. */
19325_ACEOF
19326cat confdefs.h >>conftest.$ac_ext
19327cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019328/* end confdefs.h. */
19329#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019330int
19331main ()
19332{
19333float f; finite(f);
19334 ;
19335 return 0;
19336}
Brian Gaeked59a6472004-07-21 03:33:58 +000019337_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019338rm -f conftest.$ac_objext
19339if { (ac_try="$ac_compile"
19340case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19343esac
19344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_compile") 2>conftest.er1
19346 ac_status=$?
19347 grep -v '^ *+' conftest.er1 >conftest.err
19348 rm -f conftest.er1
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
19352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19353 { (case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19356esac
19357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_try") 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try='test -s conftest.$ac_objext'
19363 { (case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19366esac
19367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_try") 2>&5
19369 ac_status=$?
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019372 ac_cv_func_finite_in_ieeefp_h=yes
19373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019374 echo "$as_me: failed program was:" >&5
19375sed 's/^/| /' conftest.$ac_ext >&5
19376
19377 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019379
Reid Spencera773bd52006-08-04 18:18:08 +000019380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019381 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019382ac_cpp='$CPP $CPPFLAGS'
19383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19385ac_compiler_gnu=$ac_cv_c_compiler_gnu
19386
19387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019388{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19389echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019390
Brian Gaeke6802b552004-10-28 05:06:45 +000019391if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019392
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019393cat >>confdefs.h <<\_ACEOF
19394#define HAVE_FINITE_IN_IEEEFP_H 1
19395_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019396
Reid Spencerabec8f92004-10-27 23:03:44 +000019397fi
19398
19399
19400
Reid Spencer30fe5262007-01-20 07:48:49 +000019401if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019402
19403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019404for ac_header in stdlib.h unistd.h
19405do
19406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19407if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19412fi
19413ac_res=`eval echo '${'$as_ac_Header'}'`
19414 { echo "$as_me:$LINENO: result: $ac_res" >&5
19415echo "${ECHO_T}$ac_res" >&6; }
19416else
19417 # Is the header compilable?
19418{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19419echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19420cat >conftest.$ac_ext <<_ACEOF
19421/* confdefs.h. */
19422_ACEOF
19423cat confdefs.h >>conftest.$ac_ext
19424cat >>conftest.$ac_ext <<_ACEOF
19425/* end confdefs.h. */
19426$ac_includes_default
19427#include <$ac_header>
19428_ACEOF
19429rm -f conftest.$ac_objext
19430if { (ac_try="$ac_compile"
19431case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19434esac
19435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_compile") 2>conftest.er1
19437 ac_status=$?
19438 grep -v '^ *+' conftest.er1 >conftest.err
19439 rm -f conftest.er1
19440 cat conftest.err >&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } &&
19443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19444 { (case "(($ac_try" in
19445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446 *) ac_try_echo=$ac_try;;
19447esac
19448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19449 (eval "$ac_try") 2>&5
19450 ac_status=$?
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; } &&
19453 { ac_try='test -s conftest.$ac_objext'
19454 { (case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19457esac
19458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_try") 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
19463 ac_header_compiler=yes
19464else
19465 echo "$as_me: failed program was:" >&5
19466sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019468 ac_header_compiler=no
19469fi
19470
19471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19472{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19473echo "${ECHO_T}$ac_header_compiler" >&6; }
19474
19475# Is the header present?
19476{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19477echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19478cat >conftest.$ac_ext <<_ACEOF
19479/* confdefs.h. */
19480_ACEOF
19481cat confdefs.h >>conftest.$ac_ext
19482cat >>conftest.$ac_ext <<_ACEOF
19483/* end confdefs.h. */
19484#include <$ac_header>
19485_ACEOF
19486if { (ac_try="$ac_cpp conftest.$ac_ext"
19487case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19490esac
19491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19493 ac_status=$?
19494 grep -v '^ *+' conftest.er1 >conftest.err
19495 rm -f conftest.er1
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } >/dev/null; then
19499 if test -s conftest.err; then
19500 ac_cpp_err=$ac_c_preproc_warn_flag
19501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19502 else
19503 ac_cpp_err=
19504 fi
19505else
19506 ac_cpp_err=yes
19507fi
19508if test -z "$ac_cpp_err"; then
19509 ac_header_preproc=yes
19510else
19511 echo "$as_me: failed program was:" >&5
19512sed 's/^/| /' conftest.$ac_ext >&5
19513
19514 ac_header_preproc=no
19515fi
19516
19517rm -f conftest.err conftest.$ac_ext
19518{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19519echo "${ECHO_T}$ac_header_preproc" >&6; }
19520
19521# So? What about this header?
19522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19523 yes:no: )
19524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19528 ac_header_preproc=yes
19529 ;;
19530 no:yes:* )
19531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19543 ( cat <<\_ASBOX
19544## ----------------------------------- ##
19545## Report this to llvmbugs@cs.uiuc.edu ##
19546## ----------------------------------- ##
19547_ASBOX
19548 ) | sed "s/^/$as_me: WARNING: /" >&2
19549 ;;
19550esac
19551{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19555else
19556 eval "$as_ac_Header=\$ac_header_preproc"
19557fi
19558ac_res=`eval echo '${'$as_ac_Header'}'`
19559 { echo "$as_me:$LINENO: result: $ac_res" >&5
19560echo "${ECHO_T}$ac_res" >&6; }
19561
19562fi
19563if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019564 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019566_ACEOF
19567
19568fi
19569
19570done
19571
19572
19573for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019574do
19575as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19576{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19577echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19578if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19580else
19581 cat >conftest.$ac_ext <<_ACEOF
19582/* confdefs.h. */
19583_ACEOF
19584cat confdefs.h >>conftest.$ac_ext
19585cat >>conftest.$ac_ext <<_ACEOF
19586/* end confdefs.h. */
19587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19589#define $ac_func innocuous_$ac_func
19590
19591/* System header to define __stub macros and hopefully few prototypes,
19592 which can conflict with char $ac_func (); below.
19593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19594 <limits.h> exists even on freestanding compilers. */
19595
19596#ifdef __STDC__
19597# include <limits.h>
19598#else
19599# include <assert.h>
19600#endif
19601
19602#undef $ac_func
19603
19604/* Override any GCC internal prototype to avoid an error.
19605 Use char because int might match the return type of a GCC
19606 builtin and then its argument prototype would still apply. */
19607#ifdef __cplusplus
19608extern "C"
19609#endif
19610char $ac_func ();
19611/* The GNU C library defines this for functions which it implements
19612 to always fail with ENOSYS. Some functions are actually named
19613 something starting with __ and the normal name is an alias. */
19614#if defined __stub_$ac_func || defined __stub___$ac_func
19615choke me
19616#endif
19617
19618int
19619main ()
19620{
19621return $ac_func ();
19622 ;
19623 return 0;
19624}
19625_ACEOF
19626rm -f conftest.$ac_objext conftest$ac_exeext
19627if { (ac_try="$ac_link"
19628case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19631esac
19632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_link") 2>conftest.er1
19634 ac_status=$?
19635 grep -v '^ *+' conftest.er1 >conftest.err
19636 rm -f conftest.er1
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } &&
19640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19644esac
19645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; } &&
19650 { ac_try='test -s conftest$ac_exeext'
19651 { (case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19654esac
19655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_try") 2>&5
19657 ac_status=$?
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19660 eval "$as_ac_var=yes"
19661else
19662 echo "$as_me: failed program was:" >&5
19663sed 's/^/| /' conftest.$ac_ext >&5
19664
19665 eval "$as_ac_var=no"
19666fi
19667
19668rm -f core conftest.err conftest.$ac_objext \
19669 conftest$ac_exeext conftest.$ac_ext
19670fi
19671ac_res=`eval echo '${'$as_ac_var'}'`
19672 { echo "$as_me:$LINENO: result: $ac_res" >&5
19673echo "${ECHO_T}$ac_res" >&6; }
19674if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019675 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019677_ACEOF
19678
19679fi
19680done
19681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019682{ echo "$as_me:$LINENO: checking for working mmap" >&5
19683echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19684if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019686else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019687 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019688 ac_cv_func_mmap_fixed_mapped=no
19689else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019690 cat >conftest.$ac_ext <<_ACEOF
19691/* confdefs.h. */
19692_ACEOF
19693cat confdefs.h >>conftest.$ac_ext
19694cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019695/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019696$ac_includes_default
19697/* malloc might have been renamed as rpl_malloc. */
19698#undef malloc
19699
19700/* Thanks to Mike Haertel and Jim Avera for this test.
19701 Here is a matrix of mmap possibilities:
19702 mmap private not fixed
19703 mmap private fixed at somewhere currently unmapped
19704 mmap private fixed at somewhere already mapped
19705 mmap shared not fixed
19706 mmap shared fixed at somewhere currently unmapped
19707 mmap shared fixed at somewhere already mapped
19708 For private mappings, we should verify that changes cannot be read()
19709 back from the file, nor mmap's back from the file at a different
19710 address. (There have been systems where private was not correctly
19711 implemented like the infamous i386 svr4.0, and systems where the
19712 VM page cache was not coherent with the file system buffer cache
19713 like early versions of FreeBSD and possibly contemporary NetBSD.)
19714 For shared mappings, we should conversely verify that changes get
19715 propagated back to all the places they're supposed to be.
19716
19717 Grep wants private fixed already mapped.
19718 The main things grep needs to know about mmap are:
19719 * does it exist and is it safe to write into the mmap'd area
19720 * how to use it (BSD variants) */
19721
19722#include <fcntl.h>
19723#include <sys/mman.h>
19724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019725#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019726char *malloc ();
19727#endif
19728
19729/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019730#if !HAVE_GETPAGESIZE
19731/* Assume that all systems that can run configure have sys/param.h. */
19732# if !HAVE_SYS_PARAM_H
19733# define HAVE_SYS_PARAM_H 1
19734# endif
19735
John Criswell7a73b802003-06-30 21:59:07 +000019736# ifdef _SC_PAGESIZE
19737# define getpagesize() sysconf(_SC_PAGESIZE)
19738# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019739# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019740# include <sys/param.h>
19741# ifdef EXEC_PAGESIZE
19742# define getpagesize() EXEC_PAGESIZE
19743# else /* no EXEC_PAGESIZE */
19744# ifdef NBPG
19745# define getpagesize() NBPG * CLSIZE
19746# ifndef CLSIZE
19747# define CLSIZE 1
19748# endif /* no CLSIZE */
19749# else /* no NBPG */
19750# ifdef NBPC
19751# define getpagesize() NBPC
19752# else /* no NBPC */
19753# ifdef PAGESIZE
19754# define getpagesize() PAGESIZE
19755# endif /* PAGESIZE */
19756# endif /* no NBPC */
19757# endif /* no NBPG */
19758# endif /* no EXEC_PAGESIZE */
19759# else /* no HAVE_SYS_PARAM_H */
19760# define getpagesize() 8192 /* punt totally */
19761# endif /* no HAVE_SYS_PARAM_H */
19762# endif /* no _SC_PAGESIZE */
19763
19764#endif /* no HAVE_GETPAGESIZE */
19765
19766int
19767main ()
19768{
19769 char *data, *data2, *data3;
19770 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019771 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019772
19773 pagesize = getpagesize ();
19774
19775 /* First, make a file with some known garbage in it. */
19776 data = (char *) malloc (pagesize);
19777 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019778 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019779 for (i = 0; i < pagesize; ++i)
19780 *(data + i) = rand ();
19781 umask (0);
19782 fd = creat ("conftest.mmap", 0600);
19783 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019784 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019785 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019786 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019787 close (fd);
19788
19789 /* Next, try to mmap the file at a fixed address which already has
19790 something else allocated at it. If we can, also make sure that
19791 we see the same garbage. */
19792 fd = open ("conftest.mmap", O_RDWR);
19793 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019794 return 1;
19795 data2 = (char *) malloc (2 * pagesize);
19796 if (!data2)
19797 return 1;
19798 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019799 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019800 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019801 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019802 for (i = 0; i < pagesize; ++i)
19803 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019804 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019805
19806 /* Finally, make sure that changes to the mapped area do not
19807 percolate back to the file as seen by read(). (This is a bug on
19808 some variants of i386 svr4.0.) */
19809 for (i = 0; i < pagesize; ++i)
19810 *(data2 + i) = *(data2 + i) + 1;
19811 data3 = (char *) malloc (pagesize);
19812 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019813 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019814 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019815 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019816 for (i = 0; i < pagesize; ++i)
19817 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019818 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019819 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019820 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019821}
19822_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019823rm -f conftest$ac_exeext
19824if { (ac_try="$ac_link"
19825case "(($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_link") 2>&5
19831 ac_status=$?
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19834 { (case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19837esac
19838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_try") 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019843 ac_cv_func_mmap_fixed_mapped=yes
19844else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019845 echo "$as_me: program exited with status $ac_status" >&5
19846echo "$as_me: failed program was:" >&5
19847sed 's/^/| /' conftest.$ac_ext >&5
19848
19849( exit $ac_status )
19850ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019851fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019852rm -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 +000019853fi
Reid Spencera773bd52006-08-04 18:18:08 +000019854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019855
John Criswell7a73b802003-06-30 21:59:07 +000019856fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019857{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19858echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019859if test $ac_cv_func_mmap_fixed_mapped = yes; then
19860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019861cat >>confdefs.h <<\_ACEOF
19862#define HAVE_MMAP 1
19863_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019864
19865fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019866rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019867
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019868 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19869echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19870if test "${ac_cv_func_mmap_file+set}" = set; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019872else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019873 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019874ac_cpp='$CPP $CPPFLAGS'
19875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19877ac_compiler_gnu=$ac_cv_c_compiler_gnu
19878
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019879 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019880 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019881else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019882 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019883
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019884 /* confdefs.h. */
19885_ACEOF
19886cat confdefs.h >>conftest.$ac_ext
19887cat >>conftest.$ac_ext <<_ACEOF
19888/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019889
John Criswell7a73b802003-06-30 21:59:07 +000019890#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019891#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019892#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019893
19894int
19895main ()
19896{
John Criswell7a73b802003-06-30 21:59:07 +000019897
19898 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019899 fd = creat ("foo",0777);
19900 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19901 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019902 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019903 ;
19904 return 0;
19905}
John Criswell7a73b802003-06-30 21:59:07 +000019906_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019907rm -f conftest$ac_exeext
19908if { (ac_try="$ac_link"
19909case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19912esac
19913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_link") 2>&5
19915 ac_status=$?
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19918 { (case "(($ac_try" in
19919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920 *) ac_try_echo=$ac_try;;
19921esac
19922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923 (eval "$ac_try") 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019927 ac_cv_func_mmap_file=yes
19928else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019929 echo "$as_me: program exited with status $ac_status" >&5
19930echo "$as_me: failed program was:" >&5
19931sed 's/^/| /' conftest.$ac_ext >&5
19932
19933( exit $ac_status )
19934ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019935fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019936rm -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 +000019937fi
Reid Spencera773bd52006-08-04 18:18:08 +000019938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019939
John Criswell7a73b802003-06-30 21:59:07 +000019940 ac_ext=c
19941ac_cpp='$CPP $CPPFLAGS'
19942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19944ac_compiler_gnu=$ac_cv_c_compiler_gnu
19945
19946
19947fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019948{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19949echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019950if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019952cat >>confdefs.h <<\_ACEOF
19953#define HAVE_MMAP_FILE
19954_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019955
19956 MMAP_FILE=yes
19957
19958fi
19959
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019960 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19961echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19962if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019964else
Reid Spencer582a23c2004-12-29 07:07:57 +000019965 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019966 ac_cv_need_dev_zero_for_mmap=yes
19967 else
19968 ac_cv_need_dev_zero_for_mmap=no
19969 fi
19970
19971fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019972{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19973echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019974if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019976cat >>confdefs.h <<\_ACEOF
19977#define NEED_DEV_ZERO_FOR_MMAP 1
19978_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019979
19980fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019981
Reid Spencer30fe5262007-01-20 07:48:49 +000019982 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19983 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019984 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19985echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019986 fi
19987 if test "$ac_cv_func_mmap_file" = "no"
19988 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019989 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19990echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019991 fi
John Criswellb13092b2003-07-22 21:00:24 +000019992fi
John Criswell7a73b802003-06-30 21:59:07 +000019993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019994{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19995echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000019996ac_ext=cpp
19997ac_cpp='$CXXCPP $CPPFLAGS'
19998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020002cat >conftest.$ac_ext <<_ACEOF
20003/* confdefs.h. */
20004_ACEOF
20005cat confdefs.h >>conftest.$ac_ext
20006cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020007/* end confdefs.h. */
20008int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020009 volatile unsigned long val = 1;
20010 __sync_synchronize();
20011 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020012 __sync_add_and_fetch(&val, 1);
20013 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020014 return 0;
20015 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020016
20017_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020018rm -f conftest.$ac_objext conftest$ac_exeext
20019if { (ac_try="$ac_link"
20020case "(($ac_try" in
20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022 *) ac_try_echo=$ac_try;;
20023esac
20024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025 (eval "$ac_link") 2>conftest.er1
20026 ac_status=$?
20027 grep -v '^ *+' conftest.er1 >conftest.err
20028 rm -f conftest.er1
20029 cat conftest.err >&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } &&
20032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20033 { (case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20036esac
20037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_try") 2>&5
20039 ac_status=$?
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; } &&
20042 { ac_try='test -s conftest$ac_exeext'
20043 { (case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20046esac
20047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_try") 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020052 ac_ext=c
20053ac_cpp='$CPP $CPPFLAGS'
20054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20056ac_compiler_gnu=$ac_cv_c_compiler_gnu
20057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020058 { echo "$as_me:$LINENO: result: yes" >&5
20059echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020061cat >>confdefs.h <<\_ACEOF
20062#define LLVM_MULTITHREADED 1
20063_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020064
Owen Andersond4b272b2009-05-18 23:58:51 +000020065else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020066 echo "$as_me: failed program was:" >&5
20067sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020069 { echo "$as_me:$LINENO: result: no" >&5
20070echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020072cat >>confdefs.h <<\_ACEOF
20073#define LLVM_MULTITHREADED 0
20074_ACEOF
20075
20076 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20077echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020078fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020079
Owen Andersond4b272b2009-05-18 23:58:51 +000020080rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020081 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020082
John Criswell7a73b802003-06-30 21:59:07 +000020083
Nick Lewycky4372e692009-09-29 06:18:23 +000020084if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020085 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20086echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20087if test "${llvm_cv_linux_mixed+set}" = set; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020089else
20090 ac_ext=c
20091ac_cpp='$CPP $CPPFLAGS'
20092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20094ac_compiler_gnu=$ac_cv_c_compiler_gnu
20095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020096 cat >conftest.$ac_ext <<_ACEOF
20097/* confdefs.h. */
20098_ACEOF
20099cat confdefs.h >>conftest.$ac_ext
20100cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020101/* end confdefs.h. */
20102#ifndef __x86_64__
20103 error: Not x86-64 even if uname says so!
20104 #endif
20105
20106int
20107main ()
20108{
20109
20110 ;
20111 return 0;
20112}
20113_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020114rm -f conftest.$ac_objext
20115if { (ac_try="$ac_compile"
20116case "(($ac_try" in
20117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118 *) ac_try_echo=$ac_try;;
20119esac
20120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121 (eval "$ac_compile") 2>conftest.er1
20122 ac_status=$?
20123 grep -v '^ *+' conftest.er1 >conftest.err
20124 rm -f conftest.er1
20125 cat conftest.err >&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } &&
20128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20129 { (case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20132esac
20133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_try") 2>&5
20135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; } &&
20138 { ac_try='test -s conftest.$ac_objext'
20139 { (case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20142esac
20143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_try") 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020148 llvm_cv_linux_mixed=no
20149else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020150 echo "$as_me: failed program was:" >&5
20151sed 's/^/| /' conftest.$ac_ext >&5
20152
20153 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020154fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020155
Nick Lewycky4372e692009-09-29 06:18:23 +000020156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157 ac_ext=c
20158ac_cpp='$CPP $CPPFLAGS'
20159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20161ac_compiler_gnu=$ac_cv_c_compiler_gnu
20162
20163
20164fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020165{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20166echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020167
20168 if test "$llvm_cv_linux_mixed" = "yes"; then
20169 llvm_cv_target_arch="x86"
20170 ARCH="x86"
20171 fi
20172fi
20173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020174
Reid Spencer9372f152007-07-30 20:13:24 +000020175for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020176do
20177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20178{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20180if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20182else
20183 cat >conftest.$ac_ext <<_ACEOF
20184/* confdefs.h. */
20185_ACEOF
20186cat confdefs.h >>conftest.$ac_ext
20187cat >>conftest.$ac_ext <<_ACEOF
20188/* end confdefs.h. */
20189/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20191#define $ac_func innocuous_$ac_func
20192
20193/* System header to define __stub macros and hopefully few prototypes,
20194 which can conflict with char $ac_func (); below.
20195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20196 <limits.h> exists even on freestanding compilers. */
20197
20198#ifdef __STDC__
20199# include <limits.h>
20200#else
20201# include <assert.h>
20202#endif
20203
20204#undef $ac_func
20205
20206/* Override any GCC internal prototype to avoid an error.
20207 Use char because int might match the return type of a GCC
20208 builtin and then its argument prototype would still apply. */
20209#ifdef __cplusplus
20210extern "C"
20211#endif
20212char $ac_func ();
20213/* The GNU C library defines this for functions which it implements
20214 to always fail with ENOSYS. Some functions are actually named
20215 something starting with __ and the normal name is an alias. */
20216#if defined __stub_$ac_func || defined __stub___$ac_func
20217choke me
20218#endif
20219
20220int
20221main ()
20222{
20223return $ac_func ();
20224 ;
20225 return 0;
20226}
20227_ACEOF
20228rm -f conftest.$ac_objext conftest$ac_exeext
20229if { (ac_try="$ac_link"
20230case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20233esac
20234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_link") 2>conftest.er1
20236 ac_status=$?
20237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
20242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20243 { (case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20246esac
20247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_try") 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; } &&
20252 { ac_try='test -s conftest$ac_exeext'
20253 { (case "(($ac_try" in
20254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255 *) ac_try_echo=$ac_try;;
20256esac
20257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20258 (eval "$ac_try") 2>&5
20259 ac_status=$?
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 eval "$as_ac_var=yes"
20263else
20264 echo "$as_me: failed program was:" >&5
20265sed 's/^/| /' conftest.$ac_ext >&5
20266
20267 eval "$as_ac_var=no"
20268fi
20269
20270rm -f core conftest.err conftest.$ac_objext \
20271 conftest$ac_exeext conftest.$ac_ext
20272fi
20273ac_res=`eval echo '${'$as_ac_var'}'`
20274 { echo "$as_me:$LINENO: result: $ac_res" >&5
20275echo "${ECHO_T}$ac_res" >&6; }
20276if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020277 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020278#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020279_ACEOF
20280
20281fi
20282done
20283
20284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020285{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20286echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20287if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020289else
20290 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000020291if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020292 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000020293 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20294 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020295 if test $? -eq 0 ; then
20296 llvm_cv_llvmgcc_sanity="yes"
20297 fi
20298 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020299fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020300fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020301{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20302echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020303
20304if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020305 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20306echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020307 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020308 LLVMCC1=$llvmcc1path
20309
Reid Spencer502935f2004-12-22 05:56:56 +000020310 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020311 LLVMCC1PLUS=$llvmcc1pluspath
20312
Reid Spencer502935f2004-12-22 05:56:56 +000020313 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20314 LLVMGCCDIR=$llvmgccdir
20315
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020316 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020317 LLVMGCC_LANGS=$llvmgcclangs
20318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020319 { echo "$as_me:$LINENO: result: ok" >&5
20320echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020321fi
20322
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020323SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020324
20325
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020326SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20327
20328
Reid Spencere9de0912004-08-20 09:03:57 +000020329# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020330# information into substitutions that will end up in Makefile.config.in
20331# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020332if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020333 prefix="/usr/local"
20334fi
Reid Spencere9de0912004-08-20 09:03:57 +000020335eval LLVM_PREFIX="${prefix}";
20336eval LLVM_BINDIR="${prefix}/bin";
20337eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020338eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020339eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020340eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020341eval LLVM_INCLUDEDIR="${prefix}/include";
20342eval LLVM_INFODIR="${prefix}/info";
20343eval LLVM_MANDIR="${prefix}/man";
20344LLVM_CONFIGTIME=`date`
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020356# Place the various directores into the config.h file as #defines so that we
20357# can know about the installation paths within LLVM.
20358
Reid Spencere9de0912004-08-20 09:03:57 +000020359cat >>confdefs.h <<_ACEOF
20360#define LLVM_PREFIX "$LLVM_PREFIX"
20361_ACEOF
20362
20363
20364cat >>confdefs.h <<_ACEOF
20365#define LLVM_BINDIR "$LLVM_BINDIR"
20366_ACEOF
20367
20368
20369cat >>confdefs.h <<_ACEOF
20370#define LLVM_LIBDIR "$LLVM_LIBDIR"
20371_ACEOF
20372
20373
20374cat >>confdefs.h <<_ACEOF
20375#define LLVM_DATADIR "$LLVM_DATADIR"
20376_ACEOF
20377
20378
20379cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020380#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020381_ACEOF
20382
20383
20384cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020385#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020386_ACEOF
20387
20388
20389cat >>confdefs.h <<_ACEOF
20390#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20391_ACEOF
20392
20393
20394cat >>confdefs.h <<_ACEOF
20395#define LLVM_INFODIR "$LLVM_INFODIR"
20396_ACEOF
20397
20398
20399cat >>confdefs.h <<_ACEOF
20400#define LLVM_MANDIR "$LLVM_MANDIR"
20401_ACEOF
20402
20403
20404cat >>confdefs.h <<_ACEOF
20405#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20406_ACEOF
20407
20408
Eric Christopher790e11c2007-12-01 00:34:39 +000020409cat >>confdefs.h <<_ACEOF
20410#define LLVM_HOSTTRIPLE "$host"
20411_ACEOF
20412
20413
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020414# Determine which bindings to build.
20415if test "$BINDINGS_TO_BUILD" = auto ; then
20416 BINDINGS_TO_BUILD=""
20417 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20418 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20419 fi
20420fi
20421BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20422
20423
20424# This isn't really configurey, but it avoids having to repeat the list in
20425# other files.
20426ALL_BINDINGS=ocaml
20427
20428
Gordon Henriksenf0915682007-10-02 16:42:22 +000020429# Do any work necessary to ensure that bindings have what they need.
20430binding_prereqs_failed=0
20431for a_binding in $BINDINGS_TO_BUILD ; do
20432 case "$a_binding" in
20433 ocaml)
20434 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020435 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20436echo "$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 +000020437 binding_prereqs_failed=1
20438 fi
20439 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020440 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20441echo "$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 +000020442 binding_prereqs_failed=1
20443 fi
20444 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020445 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20446echo "$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 +000020447 fi
20448 if test "x$with_ocaml_libdir" != xauto ; then
20449 OCAML_LIBDIR=$with_ocaml_libdir
20450
20451 else
20452 ocaml_stdlib="`"$OCAMLC" -where`"
20453 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20454 then
20455 # ocaml stdlib is beneath our prefix; use stdlib
20456 OCAML_LIBDIR=$ocaml_stdlib
20457
20458 else
20459 # ocaml stdlib is outside our prefix; use libdir/ocaml
20460 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20461
20462 fi
20463 fi
20464 ;;
20465 esac
20466done
20467if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020468 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20469echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20470 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020471fi
20472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020473{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20474echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20475if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020477else
20478 ac_ext=cpp
20479ac_cpp='$CXXCPP $CPPFLAGS'
20480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20483
20484 oldcxxflags="$CXXFLAGS"
20485 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020486 cat >conftest.$ac_ext <<_ACEOF
20487/* confdefs.h. */
20488_ACEOF
20489cat confdefs.h >>conftest.$ac_ext
20490cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020491/* end confdefs.h. */
20492
20493int
20494main ()
20495{
20496
20497 ;
20498 return 0;
20499}
20500_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020501rm -f conftest.$ac_objext
20502if { (ac_try="$ac_compile"
20503case "(($ac_try" in
20504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20505 *) ac_try_echo=$ac_try;;
20506esac
20507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20508 (eval "$ac_compile") 2>conftest.er1
20509 ac_status=$?
20510 grep -v '^ *+' conftest.er1 >conftest.err
20511 rm -f conftest.er1
20512 cat conftest.err >&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); } &&
20515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20516 { (case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20519esac
20520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_try") 2>&5
20522 ac_status=$?
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; } &&
20525 { ac_try='test -s conftest.$ac_objext'
20526 { (case "(($ac_try" in
20527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20529esac
20530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531 (eval "$ac_try") 2>&5
20532 ac_status=$?
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020535 llvm_cv_cxx_visibility_inlines_hidden=yes
20536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020537 echo "$as_me: failed program was:" >&5
20538sed 's/^/| /' conftest.$ac_ext >&5
20539
20540 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020541fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020542
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544 CXXFLAGS="$oldcxxflags"
20545 ac_ext=c
20546ac_cpp='$CPP $CPPFLAGS'
20547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20549ac_compiler_gnu=$ac_cv_c_compiler_gnu
20550
20551
20552fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020553{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20554echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020555if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20556 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20557
20558else
20559 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20560
20561fi
20562
Gordon Henriksenf0915682007-10-02 16:42:22 +000020563
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020564if test "$llvm_cv_link_use_r" = "yes" ; then
20565 RPATH="-Wl,-R"
20566else
20567 RPATH="-Wl,-rpath"
20568fi
20569
20570
20571if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20572 RDYNAMIC="-Wl,-export-dynamic"
20573else
20574 RDYNAMIC=""
20575fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020576
20577
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020578
Eric Christophera1cba682010-08-08 02:44:25 +000020579ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020580
Eric Christopher21d3eeb2010-08-08 09:20:39 +000020581
20582
20583
20584
20585
Douglas Gregor1555a232009-06-16 20:12:29 +000020586ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20587
20588ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20589
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020590ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20591
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020592ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20593
Chandler Carruth8b67f772009-10-26 01:35:46 +000020594ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020595
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020596
Reid Spencera773bd52006-08-04 18:18:08 +000020597ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020598
20599
Reid Spencerea949cf2006-08-16 00:45:38 +000020600ac_config_files="$ac_config_files llvm.spec"
20601
20602
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000020603ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020604
20605
Reid Spencera773bd52006-08-04 18:18:08 +000020606ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020607
20608
Reid Spencera773bd52006-08-04 18:18:08 +000020609ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020610
Reid Spencera773bd52006-08-04 18:18:08 +000020611ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020612
20613
Reid Spencera773bd52006-08-04 18:18:08 +000020614ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020615
20616
Reid Spencera773bd52006-08-04 18:18:08 +000020617ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020618
20619
Reid Spencera773bd52006-08-04 18:18:08 +000020620ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020621
20622
Reid Spencer8b2e1412006-11-17 03:32:33 +000020623ac_config_commands="$ac_config_commands runtime/Makefile"
20624
20625
Reid Spencera773bd52006-08-04 18:18:08 +000020626ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020627
20628
Reid Spencera773bd52006-08-04 18:18:08 +000020629ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020630
20631
Bill Wendlingf24eb392009-01-04 23:12:30 +000020632ac_config_commands="$ac_config_commands unittests/Makefile"
20633
20634
Reid Spencera773bd52006-08-04 18:18:08 +000020635ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020636
20637
Reid Spencera773bd52006-08-04 18:18:08 +000020638ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020639
20640
Reid Spencera773bd52006-08-04 18:18:08 +000020641ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020642
20643
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020644ac_config_commands="$ac_config_commands bindings/Makefile"
20645
20646
20647ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20648
20649
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020650
John Criswell7a73b802003-06-30 21:59:07 +000020651cat >confcache <<\_ACEOF
20652# This file is a shell script that caches the results of configure
20653# tests run on this system so they can be shared between configure
20654# scripts and configure runs, see configure's option --config-cache.
20655# It is not useful on other systems. If it contains results you don't
20656# want to keep, you may remove or edit it.
20657#
20658# config.status only pays attention to the cache file if you give it
20659# the --recheck option to rerun configure.
20660#
John Criswell0c38eaf2003-09-10 15:17:25 +000020661# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020662# loading this file, other *unset* `ac_cv_foo' will be assigned the
20663# following values.
20664
20665_ACEOF
20666
20667# The following way of writing the cache mishandles newlines in values,
20668# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020669# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020670# Ultrix sh set writes to stderr and can't be redirected directly,
20671# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020672(
20673 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20674 eval ac_val=\$$ac_var
20675 case $ac_val in #(
20676 *${as_nl}*)
20677 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020678 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20679echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020680 esac
20681 case $ac_var in #(
20682 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020683 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020684 esac ;;
20685 esac
20686 done
20687
John Criswell7a73b802003-06-30 21:59:07 +000020688 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020689 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20690 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020691 # `set' does not quote correctly, so add quotes (double-quote
20692 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020693 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020694 "s/'/'\\\\''/g;
20695 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020696 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020697 *)
20698 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020700 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020701 esac |
20702 sort
20703) |
John Criswell7a73b802003-06-30 21:59:07 +000020704 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020705 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020706 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020707 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020708 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20709 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020710 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20711 :end' >>confcache
20712if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20713 if test -w "$cache_file"; then
20714 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020715 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20716echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020717 cat confcache >$cache_file
20718 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020719 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20720echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020721 fi
20722fi
20723rm -f confcache
20724
20725test "x$prefix" = xNONE && prefix=$ac_default_prefix
20726# Let make expand exec_prefix.
20727test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20728
John Criswell7a73b802003-06-30 21:59:07 +000020729DEFS=-DHAVE_CONFIG_H
20730
John Criswell0c38eaf2003-09-10 15:17:25 +000020731ac_libobjs=
20732ac_ltlibobjs=
20733for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20734 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020735 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020736 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020737 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20738 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020739 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20740 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020741done
20742LIBOBJS=$ac_libobjs
20743
20744LTLIBOBJS=$ac_ltlibobjs
20745
20746
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020747if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020748 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20749Usually this means the macro was only invoked conditionally." >&5
20750echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20751Usually this means the macro was only invoked conditionally." >&2;}
20752 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020753fi
20754if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020755 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20756Usually this means the macro was only invoked conditionally." >&5
20757echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20758Usually this means the macro was only invoked conditionally." >&2;}
20759 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020760fi
John Criswell7a73b802003-06-30 21:59:07 +000020761
20762: ${CONFIG_STATUS=./config.status}
20763ac_clean_files_save=$ac_clean_files
20764ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020765{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20766echo "$as_me: creating $CONFIG_STATUS" >&6;}
20767cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020768#! $SHELL
20769# Generated by $as_me.
20770# Run this file to recreate the current configuration.
20771# Compiler output produced by configure, useful for debugging
20772# configure, is in config.log if it exists.
20773
20774debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020775ac_cs_recheck=false
20776ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020777SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020778_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020780cat >>$CONFIG_STATUS <<\_ACEOF
20781## --------------------- ##
20782## M4sh Initialization. ##
20783## --------------------- ##
20784
20785# Be Bourne compatible
20786if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020787 emulate sh
20788 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020789 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020790 # is contrary to our usage. Disable this feature.
20791 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020792 setopt NO_GLOB_SUBST
20793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020794 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020795fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020796BIN_SH=xpg4; export BIN_SH # for Tru64
20797DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020798
John Criswell7a73b802003-06-30 21:59:07 +000020799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020800# PATH needs CR
20801# Avoid depending upon Character Ranges.
20802as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20803as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20804as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20805as_cr_digits='0123456789'
20806as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020807
20808# The user is always right.
20809if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020810 echo "#! /bin/sh" >conf$$.sh
20811 echo "exit 0" >>conf$$.sh
20812 chmod +x conf$$.sh
20813 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20814 PATH_SEPARATOR=';'
20815 else
20816 PATH_SEPARATOR=:
20817 fi
20818 rm -f conf$$.sh
20819fi
20820
20821# Support unset when possible.
20822if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20823 as_unset=unset
20824else
20825 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020826fi
John Criswell7a73b802003-06-30 21:59:07 +000020827
Reid Spencera773bd52006-08-04 18:18:08 +000020828
20829# IFS
20830# We need space, tab and new line, in precisely that order. Quoting is
20831# there to prevent editors from complaining about space-tab.
20832# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20833# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020834as_nl='
20835'
Reid Spencera773bd52006-08-04 18:18:08 +000020836IFS=" "" $as_nl"
20837
20838# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020839case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020840 *[\\/]* ) as_myself=$0 ;;
20841 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020842for as_dir in $PATH
20843do
20844 IFS=$as_save_IFS
20845 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020846 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20847done
Reid Spencera773bd52006-08-04 18:18:08 +000020848IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020849
Reid Spencera773bd52006-08-04 18:18:08 +000020850 ;;
20851esac
20852# We did not find ourselves, most probably we were run as `sh COMMAND'
20853# in which case we are not to be found in the path.
20854if test "x$as_myself" = x; then
20855 as_myself=$0
20856fi
20857if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020858 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20859 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020860fi
20861
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020862# Work around bugs in pre-3.0 UWIN ksh.
20863for as_var in ENV MAIL MAILPATH
20864do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020865done
20866PS1='$ '
20867PS2='> '
20868PS4='+ '
20869
20870# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020871for as_var in \
20872 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20873 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20874 LC_TELEPHONE LC_TIME
20875do
20876 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20877 eval $as_var=C; export $as_var
20878 else
20879 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020880 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020881done
Torok Edwin871384f2010-01-26 08:50:50 +000020882
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020883# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020884if expr a : '\(a\)' >/dev/null 2>&1 &&
20885 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20886 as_expr=expr
20887else
20888 as_expr=false
20889fi
20890
20891if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20892 as_basename=basename
20893else
20894 as_basename=false
20895fi
20896
20897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020898# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020899as_me=`$as_basename -- "$0" ||
20900$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20901 X"$0" : 'X\(//\)$' \| \
20902 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020903echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020904 sed '/^.*\/\([^/][^/]*\)\/*$/{
20905 s//\1/
20906 q
20907 }
20908 /^X\/\(\/\/\)$/{
20909 s//\1/
20910 q
20911 }
20912 /^X\/\(\/\).*/{
20913 s//\1/
20914 q
20915 }
20916 s/.*/./; q'`
20917
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020918# CDPATH.
20919$as_unset CDPATH
20920
20921
20922
20923 as_lineno_1=$LINENO
20924 as_lineno_2=$LINENO
20925 test "x$as_lineno_1" != "x$as_lineno_2" &&
20926 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20927
20928 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20929 # uniformly replaced by the line number. The first 'sed' inserts a
20930 # line-number line after each line using $LINENO; the second 'sed'
20931 # does the real work. The second script uses 'N' to pair each
20932 # line-number line with the line containing $LINENO, and appends
20933 # trailing '-' during substitution so that $LINENO is not a special
20934 # case at line end.
20935 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20936 # scripts with optimization help from Paolo Bonzini. Blame Lee
20937 # E. McMahon (1931-1989) for sed's syntax. :-)
20938 sed -n '
20939 p
20940 /[$]LINENO/=
20941 ' <$as_myself |
20942 sed '
20943 s/[$]LINENO.*/&-/
20944 t lineno
20945 b
20946 :lineno
20947 N
20948 :loop
20949 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20950 t loop
20951 s/-\n.*//
20952 ' >$as_me.lineno &&
20953 chmod +x "$as_me.lineno" ||
20954 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20955 { (exit 1); exit 1; }; }
20956
20957 # Don't try to exec as it changes $[0], causing all sort of problems
20958 # (the dirname of $[0] is not the place where we might find the
20959 # original and so on. Autoconf is especially sensitive to this).
20960 . "./$as_me.lineno"
20961 # Exit status is that of the last command.
20962 exit
20963}
20964
20965
20966if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20967 as_dirname=dirname
20968else
20969 as_dirname=false
20970fi
Reid Spencera773bd52006-08-04 18:18:08 +000020971
20972ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020973case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020974-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020975 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020976 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020977 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020978 esac;;
20979*)
20980 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020981esac
20982
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020983if expr a : '\(a\)' >/dev/null 2>&1 &&
20984 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20985 as_expr=expr
20986else
20987 as_expr=false
20988fi
20989
John Criswell7a73b802003-06-30 21:59:07 +000020990rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020991if test -d conf$$.dir; then
20992 rm -f conf$$.dir/conf$$.file
20993else
20994 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020995 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000020996fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020997echo >conf$$.file
20998if ln -s conf$$.file conf$$ 2>/dev/null; then
20999 as_ln_s='ln -s'
21000 # ... but there are two gotchas:
21001 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21002 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21003 # In both cases, we have to default to `cp -p'.
21004 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021005 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021006elif ln conf$$.file conf$$ 2>/dev/null; then
21007 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021008else
21009 as_ln_s='cp -p'
21010fi
Reid Spencera773bd52006-08-04 18:18:08 +000021011rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21012rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021013
John Criswell0c38eaf2003-09-10 15:17:25 +000021014if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021015 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021016else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021017 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021018 as_mkdir_p=false
21019fi
21020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021021# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21022# systems may use methods other than mode bits to determine executability.
21023cat >conf$$.file <<_ASEOF
21024#! /bin/sh
21025exit 0
21026_ASEOF
21027chmod +x conf$$.file
21028if test -x conf$$.file >/dev/null 2>&1; then
21029 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021030else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021031 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021033rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021034
21035# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021036as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021037
21038# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021039as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021040
21041
John Criswell7a73b802003-06-30 21:59:07 +000021042exec 6>&1
21043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021044# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021045# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021046# values after options handling.
21047ac_log="
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000021048This file was extended by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021049generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021050
21051 CONFIG_FILES = $CONFIG_FILES
21052 CONFIG_HEADERS = $CONFIG_HEADERS
21053 CONFIG_LINKS = $CONFIG_LINKS
21054 CONFIG_COMMANDS = $CONFIG_COMMANDS
21055 $ $0 $@
21056
Reid Spencera773bd52006-08-04 18:18:08 +000021057on `(hostname || uname -n) 2>/dev/null | sed 1q`
21058"
21059
John Criswell7a73b802003-06-30 21:59:07 +000021060_ACEOF
21061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021062cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021063# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021064config_files="$ac_config_files"
21065config_headers="$ac_config_headers"
21066config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021067
Reid Spencera773bd52006-08-04 18:18:08 +000021068_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021070cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021071ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021072\`$as_me' instantiates files from templates according to the
21073current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021075Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021076
21077 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021078 -V, --version print version number, then exit
21079 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021080 -d, --debug don't remove temporary files
21081 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021082 --file=FILE[:TEMPLATE]
21083 instantiate the configuration file FILE
21084 --header=FILE[:TEMPLATE]
21085 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021086
21087Configuration files:
21088$config_files
21089
21090Configuration headers:
21091$config_headers
21092
John Criswellc764fbc2003-09-06 15:17:13 +000021093Configuration commands:
21094$config_commands
21095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021096Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021097
Reid Spencera773bd52006-08-04 18:18:08 +000021098_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021099cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021100ac_cs_version="\\
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000021101llvm config.status 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021102configured by $0, generated by GNU Autoconf 2.60,
21103 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021104
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021105Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021106This config.status script is free software; the Free Software Foundation
21107gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021108
21109ac_pwd='$ac_pwd'
21110srcdir='$srcdir'
21111INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021112_ACEOF
21113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021114cat >>$CONFIG_STATUS <<\_ACEOF
21115# If no file are specified by the user, then we need to provide default
21116# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021117ac_need_defaults=:
21118while test $# != 0
21119do
21120 case $1 in
21121 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021122 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21123 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021124 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021125 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021126 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021127 ac_option=$1
21128 ac_optarg=$2
21129 ac_shift=shift
21130 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021131 esac
21132
John Criswell0c38eaf2003-09-10 15:17:25 +000021133 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021134 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21136 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021137 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021138 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021139 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021140 debug=: ;;
21141 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021142 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021143 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021144 ac_need_defaults=false;;
21145 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021146 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021147 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021148 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021149 --he | --h)
21150 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021151 { echo "$as_me: error: ambiguous option: $1
21152Try \`$0 --help' for more information." >&2
21153 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021154 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021155 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21157 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21158 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021159
21160 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021161 -*) { echo "$as_me: error: unrecognized option: $1
21162Try \`$0 --help' for more information." >&2
21163 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021165 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021166 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021167
21168 esac
21169 shift
21170done
21171
John Criswell0c38eaf2003-09-10 15:17:25 +000021172ac_configure_extra_args=
21173
21174if $ac_cs_silent; then
21175 exec 6>/dev/null
21176 ac_configure_extra_args="$ac_configure_extra_args --silent"
21177fi
21178
21179_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021180cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021181if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021182 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21183 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021184 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021185 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021186fi
21187
John Criswell7a73b802003-06-30 21:59:07 +000021188_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021189cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021190exec 5>>config.log
21191{
21192 echo
21193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21194## Running $as_me. ##
21195_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021196 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021197} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021198
Reid Spencera773bd52006-08-04 18:18:08 +000021199_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021200cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021201#
Reid Spencera773bd52006-08-04 18:18:08 +000021202# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021203#
Reid Spencerc0682832005-02-24 19:05:19 +000021204llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021205
21206_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021208cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021209
21210# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021211for ac_config_target in $ac_config_targets
21212do
Reid Spencera773bd52006-08-04 18:18:08 +000021213 case $ac_config_target in
21214 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021215 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021216 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21217 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021218 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021219 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000021220 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021221 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021222 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021223 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021224 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21225 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21226 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21227 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21228 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21229 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021230 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021231 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21232 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021233 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021234 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21235 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21236 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021237 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21238 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021239
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021240 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21241echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21242 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021243 esac
21244done
21245
Reid Spencera773bd52006-08-04 18:18:08 +000021246
John Criswell7a73b802003-06-30 21:59:07 +000021247# If the user did not use the arguments to specify the items to instantiate,
21248# then the envvar interface is used. Set only those that are not.
21249# We use the long form for the default assignment because of an extremely
21250# bizarre bug on SunOS 4.1.3.
21251if $ac_need_defaults; then
21252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21253 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021254 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021255fi
21256
John Criswell0c38eaf2003-09-10 15:17:25 +000021257# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021258# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021259# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021260# Hook for its removal unless debugging.
21261# Note that there is a small window in which the directory will not be cleaned:
21262# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021263$debug ||
21264{
Reid Spencera773bd52006-08-04 18:18:08 +000021265 tmp=
21266 trap 'exit_status=$?
21267 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21268' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021269 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021270}
John Criswell7a73b802003-06-30 21:59:07 +000021271# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021272
John Criswell7a73b802003-06-30 21:59:07 +000021273{
Reid Spencera773bd52006-08-04 18:18:08 +000021274 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021275 test -n "$tmp" && test -d "$tmp"
21276} ||
21277{
Reid Spencera773bd52006-08-04 18:18:08 +000021278 tmp=./conf$$-$RANDOM
21279 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021280} ||
21281{
21282 echo "$me: cannot create a temporary directory in ." >&2
21283 { (exit 1); exit 1; }
21284}
John Criswell7a73b802003-06-30 21:59:07 +000021285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021286#
21287# Set up the sed scripts for CONFIG_FILES section.
21288#
21289
21290# No need to generate the scripts if there are no CONFIG_FILES.
21291# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021292if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021293
21294_ACEOF
21295
Reid Spencera773bd52006-08-04 18:18:08 +000021296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021297
Reid Spencera773bd52006-08-04 18:18:08 +000021298ac_delim='%!_!# '
21299for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021300 cat >conf$$subs.sed <<_ACEOF
21301SHELL!$SHELL$ac_delim
21302PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21303PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21304PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21305PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21306PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21307PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21308exec_prefix!$exec_prefix$ac_delim
21309prefix!$prefix$ac_delim
21310program_transform_name!$program_transform_name$ac_delim
21311bindir!$bindir$ac_delim
21312sbindir!$sbindir$ac_delim
21313libexecdir!$libexecdir$ac_delim
21314datarootdir!$datarootdir$ac_delim
21315datadir!$datadir$ac_delim
21316sysconfdir!$sysconfdir$ac_delim
21317sharedstatedir!$sharedstatedir$ac_delim
21318localstatedir!$localstatedir$ac_delim
21319includedir!$includedir$ac_delim
21320oldincludedir!$oldincludedir$ac_delim
21321docdir!$docdir$ac_delim
21322infodir!$infodir$ac_delim
21323htmldir!$htmldir$ac_delim
21324dvidir!$dvidir$ac_delim
21325pdfdir!$pdfdir$ac_delim
21326psdir!$psdir$ac_delim
21327libdir!$libdir$ac_delim
21328localedir!$localedir$ac_delim
21329mandir!$mandir$ac_delim
21330DEFS!$DEFS$ac_delim
21331ECHO_C!$ECHO_C$ac_delim
21332ECHO_N!$ECHO_N$ac_delim
21333ECHO_T!$ECHO_T$ac_delim
21334LIBS!$LIBS$ac_delim
21335build_alias!$build_alias$ac_delim
21336host_alias!$host_alias$ac_delim
21337target_alias!$target_alias$ac_delim
21338LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21339subdirs!$subdirs$ac_delim
21340build!$build$ac_delim
21341build_cpu!$build_cpu$ac_delim
21342build_vendor!$build_vendor$ac_delim
21343build_os!$build_os$ac_delim
21344host!$host$ac_delim
21345host_cpu!$host_cpu$ac_delim
21346host_vendor!$host_vendor$ac_delim
21347host_os!$host_os$ac_delim
21348target!$target$ac_delim
21349target_cpu!$target_cpu$ac_delim
21350target_vendor!$target_vendor$ac_delim
21351target_os!$target_os$ac_delim
21352OS!$OS$ac_delim
21353HOST_OS!$HOST_OS$ac_delim
21354TARGET_OS!$TARGET_OS$ac_delim
21355LINKALL!$LINKALL$ac_delim
21356NOLINKALL!$NOLINKALL$ac_delim
21357LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21358LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21359ARCH!$ARCH$ac_delim
21360ENDIAN!$ENDIAN$ac_delim
21361CC!$CC$ac_delim
21362CFLAGS!$CFLAGS$ac_delim
21363LDFLAGS!$LDFLAGS$ac_delim
21364CPPFLAGS!$CPPFLAGS$ac_delim
21365ac_ct_CC!$ac_ct_CC$ac_delim
21366EXEEXT!$EXEEXT$ac_delim
21367OBJEXT!$OBJEXT$ac_delim
21368CPP!$CPP$ac_delim
21369GREP!$GREP$ac_delim
21370EGREP!$EGREP$ac_delim
21371LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21372BUILD_CC!$BUILD_CC$ac_delim
21373BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21374BUILD_CXX!$BUILD_CXX$ac_delim
21375CVSBUILD!$CVSBUILD$ac_delim
21376ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21377ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21378DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21379ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21380EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21381DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21382DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21383JIT!$JIT$ac_delim
21384TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21385ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21386ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21387ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021388ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021389ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021390TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21391LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21392LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21393LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21394LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21395ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021396CLANGPATH!$CLANGPATH$ac_delim
21397CLANGXXPATH!$CLANGXXPATH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021398_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021400 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021401 break
21402 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021403 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21404echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21405 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021406 else
21407 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021408 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021409done
21410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021411ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21412if test -n "$ac_eof"; then
21413 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21414 ac_eof=`expr $ac_eof + 1`
21415fi
21416
21417cat >>$CONFIG_STATUS <<_ACEOF
21418cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21419/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021420_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021421sed '
21422s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21423s/^/s,@/; s/!/@,|#_!!_#|/
21424:n
21425t n
21426s/'"$ac_delim"'$/,g/; t
21427s/$/\\/; p
21428N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21429' >>$CONFIG_STATUS <conf$$subs.sed
21430rm -f conf$$subs.sed
21431cat >>$CONFIG_STATUS <<_ACEOF
21432CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021433_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021434
21435
21436ac_delim='%!_!# '
21437for ac_last_try in false false false false false :; do
21438 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbardd464df2010-05-10 20:11:56 +000021439ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021440OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021441EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21442BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021443CXX!$CXX$ac_delim
21444CXXFLAGS!$CXXFLAGS$ac_delim
21445ac_ct_CXX!$ac_ct_CXX$ac_delim
21446NM!$NM$ac_delim
21447ifGNUmake!$ifGNUmake$ac_delim
21448LN_S!$LN_S$ac_delim
21449CMP!$CMP$ac_delim
21450CP!$CP$ac_delim
21451DATE!$DATE$ac_delim
21452FIND!$FIND$ac_delim
21453MKDIR!$MKDIR$ac_delim
21454MV!$MV$ac_delim
21455RANLIB!$RANLIB$ac_delim
21456AR!$AR$ac_delim
21457RM!$RM$ac_delim
21458SED!$SED$ac_delim
21459TAR!$TAR$ac_delim
21460BINPWD!$BINPWD$ac_delim
21461GRAPHVIZ!$GRAPHVIZ$ac_delim
21462DOT!$DOT$ac_delim
21463FDP!$FDP$ac_delim
21464NEATO!$NEATO$ac_delim
21465TWOPI!$TWOPI$ac_delim
21466CIRCO!$CIRCO$ac_delim
21467GV!$GV$ac_delim
21468DOTTY!$DOTTY$ac_delim
21469PERL!$PERL$ac_delim
21470HAVE_PERL!$HAVE_PERL$ac_delim
21471INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21472INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21473INSTALL_DATA!$INSTALL_DATA$ac_delim
21474BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021475CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021476DOXYGEN!$DOXYGEN$ac_delim
21477GROFF!$GROFF$ac_delim
21478GZIP!$GZIP$ac_delim
21479POD2HTML!$POD2HTML$ac_delim
21480POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021481PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021482RUNTEST!$RUNTEST$ac_delim
21483TCLSH!$TCLSH$ac_delim
21484ZIP!$ZIP$ac_delim
21485OCAMLC!$OCAMLC$ac_delim
21486OCAMLOPT!$OCAMLOPT$ac_delim
21487OCAMLDEP!$OCAMLDEP$ac_delim
21488OCAMLDOC!$OCAMLDOC$ac_delim
21489GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021490HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021491INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21492INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21493CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21494CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21495LIBADD_DL!$LIBADD_DL$ac_delim
21496LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21497LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21498LLVMGCC!$LLVMGCC$ac_delim
21499LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021500LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021501NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21502NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21503USE_UDIS86!$USE_UDIS86$ac_delim
21504USE_OPROFILE!$USE_OPROFILE$ac_delim
21505HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21506HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21507MMAP_FILE!$MMAP_FILE$ac_delim
21508LLVMCC1!$LLVMCC1$ac_delim
21509LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21510LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021511LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21512SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021513SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021514LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21515LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21516LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21517LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21518LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21519LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21520LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21521LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21522LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21523LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21524BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21525ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21526OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21527ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21528RPATH!$RPATH$ac_delim
21529RDYNAMIC!$RDYNAMIC$ac_delim
21530LIBOBJS!$LIBOBJS$ac_delim
21531LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021532_ACEOF
21533
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021534 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021535 break
21536 elif $ac_last_try; then
21537 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21538echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21539 { (exit 1); exit 1; }; }
21540 else
21541 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21542 fi
21543done
21544
21545ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21546if test -n "$ac_eof"; then
21547 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21548 ac_eof=`expr $ac_eof + 1`
21549fi
21550
21551cat >>$CONFIG_STATUS <<_ACEOF
21552cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21553/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21554_ACEOF
21555sed '
21556s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21557s/^/s,@/; s/!/@,|#_!!_#|/
21558:n
21559t n
21560s/'"$ac_delim"'$/,g/; t
21561s/$/\\/; p
21562N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21563' >>$CONFIG_STATUS <conf$$subs.sed
21564rm -f conf$$subs.sed
21565cat >>$CONFIG_STATUS <<_ACEOF
21566:end
21567s/|#_!!_#|//g
21568CEOF$ac_eof
21569_ACEOF
21570
21571
Reid Spencera773bd52006-08-04 18:18:08 +000021572# VPATH may cause trouble with some makes, so we remove $(srcdir),
21573# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21574# trailing colons and then remove the whole line if VPATH becomes empty
21575# (actually we leave an empty line to preserve line numbers).
21576if test "x$srcdir" = x.; then
21577 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21578s/:*\$(srcdir):*/:/
21579s/:*\${srcdir}:*/:/
21580s/:*@srcdir@:*/:/
21581s/^\([^=]*=[ ]*\):*/\1/
21582s/:*$//
21583s/^[^=]*=[ ]*$//
21584}'
21585fi
21586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021587cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021588fi # test -n "$CONFIG_FILES"
21589
Reid Spencera773bd52006-08-04 18:18:08 +000021590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021591for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021592do
21593 case $ac_tag in
21594 :[FHLC]) ac_mode=$ac_tag; continue;;
21595 esac
21596 case $ac_mode$ac_tag in
21597 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021598 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21599echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21600 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021601 :[FH]-) ac_tag=-:-;;
21602 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21603 esac
21604 ac_save_IFS=$IFS
21605 IFS=:
21606 set x $ac_tag
21607 IFS=$ac_save_IFS
21608 shift
21609 ac_file=$1
21610 shift
21611
21612 case $ac_mode in
21613 :L) ac_source=$1;;
21614 :[FH])
21615 ac_file_inputs=
21616 for ac_f
21617 do
21618 case $ac_f in
21619 -) ac_f="$tmp/stdin";;
21620 *) # Look for the file first in the build tree, then in the source tree
21621 # (if the path is not absolute). The absolute path cannot be DOS-style,
21622 # because $ac_f cannot contain `:'.
21623 test -f "$ac_f" ||
21624 case $ac_f in
21625 [\\/$]*) false;;
21626 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21627 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021628 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21629echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21630 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021631 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021632 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021633 done
21634
21635 # Let's still pretend it is `configure' which instantiates (i.e., don't
21636 # use $as_me), people would be surprised to read:
21637 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021638 configure_input="Generated from "`IFS=:
21639 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021640 if test x"$ac_file" != x-; then
21641 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021642 { echo "$as_me:$LINENO: creating $ac_file" >&5
21643echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021644 fi
21645
21646 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021647 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021648 esac
21649 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021650 esac
21651
Reid Spencera773bd52006-08-04 18:18:08 +000021652 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021653$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021654 X"$ac_file" : 'X\(//\)[^/]' \| \
21655 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021656 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021657echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21659 s//\1/
21660 q
21661 }
21662 /^X\(\/\/\)[^/].*/{
21663 s//\1/
21664 q
21665 }
21666 /^X\(\/\/\)$/{
21667 s//\1/
21668 q
21669 }
21670 /^X\(\/\).*/{
21671 s//\1/
21672 q
21673 }
21674 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021675 { as_dir="$ac_dir"
21676 case $as_dir in #(
21677 -*) as_dir=./$as_dir;;
21678 esac
21679 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21680 as_dirs=
21681 while :; do
21682 case $as_dir in #(
21683 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21684 *) as_qdir=$as_dir;;
21685 esac
21686 as_dirs="'$as_qdir' $as_dirs"
21687 as_dir=`$as_dirname -- "$as_dir" ||
21688$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21689 X"$as_dir" : 'X\(//\)[^/]' \| \
21690 X"$as_dir" : 'X\(//\)$' \| \
21691 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21692echo X"$as_dir" |
21693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21694 s//\1/
21695 q
21696 }
21697 /^X\(\/\/\)[^/].*/{
21698 s//\1/
21699 q
21700 }
21701 /^X\(\/\/\)$/{
21702 s//\1/
21703 q
21704 }
21705 /^X\(\/\).*/{
21706 s//\1/
21707 q
21708 }
21709 s/.*/./; q'`
21710 test -d "$as_dir" && break
21711 done
21712 test -z "$as_dirs" || eval "mkdir $as_dirs"
21713 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21714echo "$as_me: error: cannot create directory $as_dir" >&2;}
21715 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021716 ac_builddir=.
21717
Reid Spencera773bd52006-08-04 18:18:08 +000021718case "$ac_dir" in
21719.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21720*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021721 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021722 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021723 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021724 case $ac_top_builddir_sub in
21725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21727 esac ;;
21728esac
21729ac_abs_top_builddir=$ac_pwd
21730ac_abs_builddir=$ac_pwd$ac_dir_suffix
21731# for backward compatibility:
21732ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021733
21734case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021735 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021736 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021737 ac_top_srcdir=$ac_top_builddir_sub
21738 ac_abs_top_srcdir=$ac_pwd ;;
21739 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021740 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021741 ac_top_srcdir=$srcdir
21742 ac_abs_top_srcdir=$srcdir ;;
21743 *) # Relative name.
21744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21745 ac_top_srcdir=$ac_top_build_prefix$srcdir
21746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021747esac
Reid Spencera773bd52006-08-04 18:18:08 +000021748ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021749
John Criswell7a73b802003-06-30 21:59:07 +000021750
Reid Spencera773bd52006-08-04 18:18:08 +000021751 case $ac_mode in
21752 :F)
21753 #
21754 # CONFIG_FILE
21755 #
John Criswell7a73b802003-06-30 21:59:07 +000021756
21757 case $INSTALL in
21758 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021759 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021760 esac
John Criswell7a73b802003-06-30 21:59:07 +000021761_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021763cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021764# If the template does not know about datarootdir, expand it.
21765# FIXME: This hack should be removed a few years after 2.60.
21766ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021767
21768case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021769 p
21770 q
21771}
21772/@datadir@/p
21773/@docdir@/p
21774/@infodir@/p
21775/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021776/@mandir@/p
21777' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021778*datarootdir*) ac_datarootdir_seen=yes;;
21779*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021780 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21781echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021782_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021783cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021784 ac_datarootdir_hack='
21785 s&@datadir@&$datadir&g
21786 s&@docdir@&$docdir&g
21787 s&@infodir@&$infodir&g
21788 s&@localedir@&$localedir&g
21789 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021790 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021791esac
21792_ACEOF
21793
21794# Neutralize VPATH when `$srcdir' = `.'.
21795# Shell code in configure.ac might set extrasub.
21796# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021797cat >>$CONFIG_STATUS <<_ACEOF
21798 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021799$extrasub
21800_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021801cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021802:t
21803/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021804s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021805s&@top_builddir@&$ac_top_builddir_sub&;t t
21806s&@srcdir@&$ac_srcdir&;t t
21807s&@abs_srcdir@&$ac_abs_srcdir&;t t
21808s&@top_srcdir@&$ac_top_srcdir&;t t
21809s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21810s&@builddir@&$ac_builddir&;t t
21811s&@abs_builddir@&$ac_abs_builddir&;t t
21812s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21813s&@INSTALL@&$ac_INSTALL&;t t
21814$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021815" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021816
Reid Spencera773bd52006-08-04 18:18:08 +000021817test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21818 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21819 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021820 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021821which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021822echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021823which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021824
Reid Spencera773bd52006-08-04 18:18:08 +000021825 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021826 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021827 -) cat "$tmp/out"; rm -f "$tmp/out";;
21828 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21829 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021830 ;;
21831 :H)
21832 #
21833 # CONFIG_HEADER
21834 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021835_ACEOF
21836
21837# Transform confdefs.h into a sed script `conftest.defines', that
21838# substitutes the proper values into config.h.in to produce config.h.
21839rm -f conftest.defines conftest.tail
21840# First, append a space to every undef/define line, to ease matching.
21841echo 's/$/ /' >conftest.defines
21842# Then, protect against being on the right side of a sed subst, or in
21843# an unquoted here document, in config.status. If some macros were
21844# called several times there might be several #defines for the same
21845# symbol, which is useless. But do not sort them, since the last
21846# AC_DEFINE must be honored.
21847ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21848# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21849# NAME is the cpp macro being defined, VALUE is the value it is being given.
21850# PARAMS is the parameter list in the macro definition--in most cases, it's
21851# just an empty string.
21852ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21853ac_dB='\\)[ (].*,\\1define\\2'
21854ac_dC=' '
21855ac_dD=' ,'
21856
21857uniq confdefs.h |
21858 sed -n '
21859 t rset
21860 :rset
21861 s/^[ ]*#[ ]*define[ ][ ]*//
21862 t ok
21863 d
21864 :ok
21865 s/[\\&,]/\\&/g
21866 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21867 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21868 ' >>conftest.defines
21869
21870# Remove the space that was appended to ease matching.
21871# Then replace #undef with comments. This is necessary, for
21872# example, in the case of _POSIX_SOURCE, which is predefined and required
21873# on some systems where configure will not decide to define it.
21874# (The regexp can be short, since the line contains either #define or #undef.)
21875echo 's/ $//
21876s,^[ #]*u.*,/* & */,' >>conftest.defines
21877
21878# Break up conftest.defines:
21879ac_max_sed_lines=50
21880
21881# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21882# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21883# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21884# et cetera.
21885ac_in='$ac_file_inputs'
21886ac_out='"$tmp/out1"'
21887ac_nxt='"$tmp/out2"'
21888
21889while :
21890do
21891 # Write a here document:
21892 cat >>$CONFIG_STATUS <<_ACEOF
21893 # First, check the format of the line:
21894 cat >"\$tmp/defines.sed" <<\\CEOF
21895/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21896/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21897b
21898:def
21899_ACEOF
21900 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21901 echo 'CEOF
21902 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21903 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21904 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21905 grep . conftest.tail >/dev/null || break
21906 rm -f conftest.defines
21907 mv conftest.tail conftest.defines
21908done
21909rm -f conftest.defines conftest.tail
21910
21911echo "ac_result=$ac_in" >>$CONFIG_STATUS
21912cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021913 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021914 echo "/* $configure_input */" >"$tmp/config.h"
21915 cat "$ac_result" >>"$tmp/config.h"
21916 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21917 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21918echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021919 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021920 rm -f $ac_file
21921 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021922 fi
21923 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021924 echo "/* $configure_input */"
21925 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021926 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021927 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021928 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021930 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21931echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021932 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021933 esac
John Criswell7a73b802003-06-30 21:59:07 +000021934
Reid Spencera773bd52006-08-04 18:18:08 +000021935
21936 case $ac_file$ac_mode in
21937 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021938 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021939 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021940 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021941 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021942 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021943 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021944 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021945 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021946 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021947 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021948 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021949 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021950 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021951 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021952 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021953 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021954 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021955 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021956 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021957 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021958 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021959 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021960 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021961 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021962 ${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 +000021963
21964 esac
21965done # for ac_tag
21966
John Criswell7a73b802003-06-30 21:59:07 +000021967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021968{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021969_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021970chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021971ac_clean_files=$ac_clean_files_save
21972
21973
21974# configure is writing to config.log, and then calls config.status.
21975# config.status does its own redirection, appending to config.log.
21976# Unfortunately, on DOS this fails, as config.log is still kept open
21977# by configure, so config.status won't be able to write to it; its
21978# output is simply discarded. So we exec the FD to /dev/null,
21979# effectively closing config.log, so it can be properly (re)opened and
21980# appended to by config.status. When coming back to configure, we
21981# need to make the FD available again.
21982if test "$no_create" != yes; then
21983 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021984 ac_config_status_args=
21985 test "$silent" = yes &&
21986 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021987 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021988 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021989 exec 5>>config.log
21990 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21991 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021992 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021993fi
21994
John Criswell12399a12003-09-30 15:55:44 +000021995#
21996# CONFIG_SUBDIRS section.
21997#
21998if test "$no_recursion" != yes; then
21999
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022000 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022001 ac_sub_configure_args=
22002 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022003 eval "set x $ac_configure_args"
22004 shift
22005 for ac_arg
22006 do
John Criswell12399a12003-09-30 15:55:44 +000022007 if test -n "$ac_prev"; then
22008 ac_prev=
22009 continue
22010 fi
22011 case $ac_arg in
22012 -cache-file | --cache-file | --cache-fil | --cache-fi \
22013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22014 ac_prev=cache_file ;;
22015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22017 | --c=*)
22018 ;;
22019 --config-cache | -C)
22020 ;;
22021 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22022 ac_prev=srcdir ;;
22023 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22024 ;;
22025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22026 ac_prev=prefix ;;
22027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22028 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022029 *)
22030 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022031 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022032 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022033 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022034 esac
22035 done
22036
22037 # Always prepend --prefix to ensure using the same prefix
22038 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022039 ac_arg="--prefix=$prefix"
22040 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022041 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022042 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022043 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022044
22045 ac_popdir=`pwd`
22046 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22047
22048 # Do not complain, so a configure script can configure whichever
22049 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022050 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022051
Reid Spencera773bd52006-08-04 18:18:08 +000022052 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022053 echo "$as_me:$LINENO: $ac_msg" >&5
22054 echo "$ac_msg" >&6
22055 { as_dir="$ac_dir"
22056 case $as_dir in #(
22057 -*) as_dir=./$as_dir;;
22058 esac
22059 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22060 as_dirs=
22061 while :; do
22062 case $as_dir in #(
22063 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22064 *) as_qdir=$as_dir;;
22065 esac
22066 as_dirs="'$as_qdir' $as_dirs"
22067 as_dir=`$as_dirname -- "$as_dir" ||
22068$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22069 X"$as_dir" : 'X\(//\)[^/]' \| \
22070 X"$as_dir" : 'X\(//\)$' \| \
22071 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22072echo X"$as_dir" |
22073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22074 s//\1/
22075 q
22076 }
22077 /^X\(\/\/\)[^/].*/{
22078 s//\1/
22079 q
22080 }
22081 /^X\(\/\/\)$/{
22082 s//\1/
22083 q
22084 }
22085 /^X\(\/\).*/{
22086 s//\1/
22087 q
22088 }
22089 s/.*/./; q'`
22090 test -d "$as_dir" && break
22091 done
22092 test -z "$as_dirs" || eval "mkdir $as_dirs"
22093 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22094echo "$as_me: error: cannot create directory $as_dir" >&2;}
22095 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022096 ac_builddir=.
22097
Reid Spencera773bd52006-08-04 18:18:08 +000022098case "$ac_dir" in
22099.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22100*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022102 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022103 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022104 case $ac_top_builddir_sub in
22105 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22106 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22107 esac ;;
22108esac
22109ac_abs_top_builddir=$ac_pwd
22110ac_abs_builddir=$ac_pwd$ac_dir_suffix
22111# for backward compatibility:
22112ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022113
22114case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022115 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022116 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022117 ac_top_srcdir=$ac_top_builddir_sub
22118 ac_abs_top_srcdir=$ac_pwd ;;
22119 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022120 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022121 ac_top_srcdir=$srcdir
22122 ac_abs_top_srcdir=$srcdir ;;
22123 *) # Relative name.
22124 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22125 ac_top_srcdir=$ac_top_build_prefix$srcdir
22126 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022127esac
Reid Spencera773bd52006-08-04 18:18:08 +000022128ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022129
22130
Reid Spencera773bd52006-08-04 18:18:08 +000022131 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022132
22133 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022134 if test -f "$ac_srcdir/configure.gnu"; then
22135 ac_sub_configure=$ac_srcdir/configure.gnu
22136 elif test -f "$ac_srcdir/configure"; then
22137 ac_sub_configure=$ac_srcdir/configure
22138 elif test -f "$ac_srcdir/configure.in"; then
22139 # This should be Cygnus configure.
22140 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022141 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022142 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22143echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022144 ac_sub_configure=
22145 fi
22146
22147 # The recursion is here.
22148 if test -n "$ac_sub_configure"; then
22149 # Make the cache file name correct relative to the subdirectory.
22150 case $cache_file in
22151 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022152 *) # Relative name.
22153 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022154 esac
22155
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022156 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22157echo "$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 +000022158 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022159 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22160 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022161 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22162echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22163 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022164 fi
22165
Reid Spencera773bd52006-08-04 18:18:08 +000022166 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022167 done
22168fi
22169