blob: d65e2ff316ce5b5d1b418231f8efaf591cb773b4 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Eric Christopherb26697c2010-09-06 18:47:10 +00003# Generated by GNU Autoconf 2.60 for llvm 2.9svn.
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-'
Eric Christopherb26697c2010-09-06 18:47:10 +0000564PACKAGE_VERSION='2.9svn'
565PACKAGE_STRING='llvm 2.9svn'
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
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000644ENABLE_POLLY
645LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000646build
647build_cpu
648build_vendor
649build_os
650host
651host_cpu
652host_vendor
653host_os
654target
655target_cpu
656target_vendor
657target_os
658OS
659HOST_OS
660TARGET_OS
661LINKALL
662NOLINKALL
663LLVM_ON_UNIX
664LLVM_ON_WIN32
665ARCH
666ENDIAN
667CC
668CFLAGS
669LDFLAGS
670CPPFLAGS
671ac_ct_CC
672EXEEXT
673OBJEXT
674CPP
675GREP
676EGREP
677LLVM_CROSS_COMPILING
678BUILD_CC
679BUILD_EXEEXT
680BUILD_CXX
681CVSBUILD
682ENABLE_OPTIMIZED
683ENABLE_PROFILING
684DISABLE_ASSERTIONS
685ENABLE_EXPENSIVE_CHECKS
686EXPENSIVE_CHECKS
687DEBUG_RUNTIME
688DEBUG_SYMBOLS
689JIT
690TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000691ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000692ENABLE_DOXYGEN
693ENABLE_THREADS
694ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000695ENABLE_SHARED
Daniel Dunbardd464df2010-05-10 20:11:56 +0000696ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000697TARGETS_TO_BUILD
698LLVM_ENUM_TARGETS
699LLVM_ENUM_ASM_PRINTERS
700LLVM_ENUM_ASM_PARSERS
701LLVM_ENUM_DISASSEMBLERS
702ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000703CLANGPATH
704CLANGXXPATH
705ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000706OPTIMIZE_OPTION
707EXTRA_OPTIONS
708BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000709CXX
710CXXFLAGS
711ac_ct_CXX
712NM
713ifGNUmake
714LN_S
715CMP
716CP
717DATE
718FIND
719MKDIR
720MV
721RANLIB
722AR
723RM
724SED
725TAR
726BINPWD
727GRAPHVIZ
728DOT
729FDP
730NEATO
731TWOPI
732CIRCO
733GV
734DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000735XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000736PERL
737HAVE_PERL
738INSTALL_PROGRAM
739INSTALL_SCRIPT
740INSTALL_DATA
741BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000742CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000743DOXYGEN
744GROFF
745GZIP
746POD2HTML
747POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000748PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749RUNTEST
750TCLSH
751ZIP
752OCAMLC
753OCAMLOPT
754OCAMLDEP
755OCAMLDOC
756GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000757HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000758INSTALL_LTDL_TRUE
759INSTALL_LTDL_FALSE
760CONVENIENCE_LTDL_TRUE
761CONVENIENCE_LTDL_FALSE
762LIBADD_DL
763LLVMGCCCOMMAND
764LLVMGXXCOMMAND
765LLVMGCC
766LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000767LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000768NO_VARIADIC_MACROS
769NO_MISSING_FIELD_INITIALIZERS
770USE_UDIS86
771USE_OPROFILE
772HAVE_PTHREAD
773HUGE_VAL_SANITY
774MMAP_FILE
Tobias Grossera84b5672010-11-10 16:31:34 +0000775LLVMCC_EMITIR_FLAG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000776LLVMCC1
777LLVMCC1PLUS
778LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000779LLVMGCC_LANGS
Tobias Grossera84b5672010-11-10 16:31:34 +0000780LLVMGCC_DRAGONEGG
781LLVMGCC_DISABLEOPT_FLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000782SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000783SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000784LLVM_PREFIX
785LLVM_BINDIR
786LLVM_LIBDIR
787LLVM_DATADIR
788LLVM_DOCSDIR
789LLVM_ETCDIR
790LLVM_INCLUDEDIR
791LLVM_INFODIR
792LLVM_MANDIR
793LLVM_CONFIGTIME
794BINDINGS_TO_BUILD
795ALL_BINDINGS
796OCAML_LIBDIR
797ENABLE_VISIBILITY_INLINES_HIDDEN
798RPATH
799RDYNAMIC
800LIBOBJS
801LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000802ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000803 ac_precious_vars='build_alias
804host_alias
805target_alias
806CC
807CFLAGS
808LDFLAGS
809CPPFLAGS
810CPP
811CXX
812CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000813CCC'
John Criswell0157f502010-03-19 21:31:39 +0000814ac_subdirs_all='projects/llvm-gcc
815projects/test-suite
816projects/llvm-test
817projects/poolalloc
818projects/llvm-poolalloc
819projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000820projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000821projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000822projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000823projects/llvm-java
824projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000825projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000826projects/llvm-kernel
827tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000828
829# Initialize some variables set by options.
830ac_init_help=
831ac_init_version=false
832# The variables have the same names as the options, with
833# dashes changed to underlines.
834cache_file=/dev/null
835exec_prefix=NONE
836no_create=
837no_recursion=
838prefix=NONE
839program_prefix=NONE
840program_suffix=NONE
841program_transform_name=s,x,x,
842silent=
843site=
844srcdir=
845verbose=
846x_includes=NONE
847x_libraries=NONE
848
849# Installation directory options.
850# These are left unexpanded so users can "make install exec_prefix=/foo"
851# and all the variables that are supposed to be based on exec_prefix
852# by default will actually change.
853# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000854# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000855bindir='${exec_prefix}/bin'
856sbindir='${exec_prefix}/sbin'
857libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000858datarootdir='${prefix}/share'
859datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000860sysconfdir='${prefix}/etc'
861sharedstatedir='${prefix}/com'
862localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000863includedir='${prefix}/include'
864oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000865docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866infodir='${datarootdir}/info'
867htmldir='${docdir}'
868dvidir='${docdir}'
869pdfdir='${docdir}'
870psdir='${docdir}'
871libdir='${exec_prefix}/lib'
872localedir='${datarootdir}/locale'
873mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000874
875ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000876ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000877for ac_option
878do
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000881 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000882 ac_prev=
883 continue
884 fi
885
Reid Spencera773bd52006-08-04 18:18:08 +0000886 case $ac_option in
887 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 *) ac_optarg=yes ;;
889 esac
John Criswell7a73b802003-06-30 21:59:07 +0000890
891 # Accept the important Cygnus configure options, so we can diagnose typos.
892
Reid Spencera773bd52006-08-04 18:18:08 +0000893 case $ac_dashdash$ac_option in
894 --)
895 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000896
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 ac_prev=bindir ;;
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 bindir=$ac_optarg ;;
901
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
906
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
913
914 --config-cache | -C)
915 cache_file=config.cache ;;
916
Reid Spencera773bd52006-08-04 18:18:08 +0000917 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000918 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000920 datadir=$ac_optarg ;;
921
Reid Spencera773bd52006-08-04 18:18:08 +0000922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
928
John Criswell7a73b802003-06-30 21:59:07 +0000929 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000930 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000931 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000932 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
933 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
934 { (exit 1); exit 1; }; }
935 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
936 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000937
938 -docdir | --docdir | --docdi | --doc | --do)
939 ac_prev=docdir ;;
940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 docdir=$ac_optarg ;;
942
943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 ac_prev=dvidir ;;
945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000947
948 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000949 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000950 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000951 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
952 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953 { (exit 1); exit 1; }; }
954 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
955 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000956
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
965
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
968 with_gas=yes ;;
969
970 -help | --help | --hel | --he | -h)
971 ac_init_help=long ;;
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
976
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
981
Reid Spencera773bd52006-08-04 18:18:08 +0000982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 ac_prev=htmldir ;;
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 | --ht=*)
986 htmldir=$ac_optarg ;;
987
John Criswell7a73b802003-06-30 21:59:07 +0000988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
994
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 ac_prev=infodir ;;
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
999
1000 -libdir | --libdir | --libdi | --libd)
1001 ac_prev=libdir ;;
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1004
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1011
Reid Spencera773bd52006-08-04 18:18:08 +00001012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1016
John Criswell7a73b802003-06-30 21:59:07 +00001017 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001018 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001022 localstatedir=$ac_optarg ;;
1023
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 ac_prev=mandir ;;
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1028
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1031 with_fp=no ;;
1032
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1035 no_create=yes ;;
1036
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 no_recursion=yes ;;
1040
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1049
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 ac_prev=prefix ;;
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1054
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1061
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1068
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 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1085
Reid Spencera773bd52006-08-04 18:18:08 +00001086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 ac_prev=pdfdir ;;
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1090
1091 -psdir | --psdir | --psdi | --psd | --ps)
1092 ac_prev=psdir ;;
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 psdir=$ac_optarg ;;
1095
John Criswell7a73b802003-06-30 21:59:07 +00001096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 silent=yes ;;
1099
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 ac_prev=sbindir ;;
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 | --sbi=* | --sb=*)
1104 sbindir=$ac_optarg ;;
1105
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1109 | --sha | --sh)
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 | --sha=* | --sh=*)
1115 sharedstatedir=$ac_optarg ;;
1116
1117 -site | --site | --sit)
1118 ac_prev=site ;;
1119 -site=* | --site=* | --sit=*)
1120 site=$ac_optarg ;;
1121
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 ac_prev=srcdir ;;
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1126
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1133
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1138
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 verbose=yes ;;
1141
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1144
1145 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001147 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package| sed 's/-/_/g'`
1152 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001155 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001156 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001157 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1158 { echo "$as_me: error: invalid package name: $ac_package" >&2
1159 { (exit 1); exit 1; }; }
1160 ac_package=`echo $ac_package | sed 's/-/_/g'`
1161 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001162
1163 --x)
1164 # Obsolete; use --with-x.
1165 with_x=yes ;;
1166
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1173
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001181 -*) { echo "$as_me: error: unrecognized option: $ac_option
1182Try \`$0 --help' for more information." >&2
1183 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001184 ;;
1185
1186 *=*)
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1190 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1191 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001192 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001193 export $ac_envvar ;;
1194
1195 *)
1196 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001197 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001199 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001200 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1201 ;;
1202
1203 esac
1204done
1205
1206if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001208 { echo "$as_me: error: missing argument to $ac_option" >&2
1209 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001210fi
1211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001212# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001213for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001217do
Reid Spencera773bd52006-08-04 18:18:08 +00001218 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001219 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001222 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001223 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001225done
1226
1227# There might be people who depend on the old broken behavior: `$host'
1228# used to hold the argument of --host etc.
1229# FIXME: To remove some day.
1230build=$build_alias
1231host=$host_alias
1232target=$target_alias
1233
1234# FIXME: To remove some day.
1235if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001238 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1242 fi
1243fi
1244
1245ac_tool_prefix=
1246test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248test "$silent" = yes && exec 6>/dev/null
1249
1250
Reid Spencera773bd52006-08-04 18:18:08 +00001251ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252ac_ls_di=`ls -di .` &&
1253ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001254 { echo "$as_me: error: Working directory cannot be determined" >&2
1255 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 { echo "$as_me: error: pwd does not report name of working directory" >&2
1258 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001259
1260
John Criswell7a73b802003-06-30 21:59:07 +00001261# Find the source files, if location was not specified.
1262if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001264 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001265 ac_confdir=`$as_dirname -- "$0" ||
1266$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$0" : 'X\(//\)[^/]' \| \
1268 X"$0" : 'X\(//\)$' \| \
1269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1270echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001288 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001289 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001290 srcdir=..
1291 fi
1292else
1293 ac_srcdir_defaulted=no
1294fi
Reid Spencera773bd52006-08-04 18:18:08 +00001295if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001297 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001299fi
Reid Spencera773bd52006-08-04 18:18:08 +00001300ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001302 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1303 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001304 pwd)`
1305# When building in place, set srcdir=.
1306if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1308fi
1309# Remove unnecessary trailing slashes from srcdir.
1310# Double slashes in file names in object file debugging info
1311# mess up M-x gdb in Emacs.
1312case $srcdir in
1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314esac
1315for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320done
John Criswell7a73b802003-06-30 21:59:07 +00001321
1322#
1323# Report the --help message.
1324#
1325if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001329\`configure' configures llvm 2.9svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001330
1331Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334VAR=VALUE. See below for descriptions of some of the useful variables.
1335
1336Defaults for the options are specified in brackets.
1337
1338Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348
John Criswell7a73b802003-06-30 21:59:07 +00001349Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001351 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001353 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001354
1355By default, \`make install' will install all the files in
1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358for instance \`--prefix=\$HOME'.
1359
1360For better control, use the options below.
1361
1362Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001382_ACEOF
1383
1384 cat <<\_ACEOF
1385
1386System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 --target=TARGET configure for building compilers for TARGET [HOST]
1390_ACEOF
1391fi
1392
1393if test -n "$ac_init_help"; then
1394 case $ac_init_help in
Eric Christopherb26697c2010-09-06 18:47:10 +00001395 short | recursive ) echo "Configuration of llvm 2.9svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001396 esac
1397 cat <<\_ACEOF
1398
1399Optional Features:
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001402 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001403 --enable-optimized Compile with optimizations enabled (default is NO)
1404 --enable-profiling Compile with profiling enabled (default is NO)
1405 --enable-assertions Compile with assertion checks enabled (default is
1406 YES)
David Greenea696d242007-06-28 19:36:08 +00001407 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001408 Compile with expensive debug checks enabled (default
1409 is NO)
1410 --enable-debug-runtime Build runtime libs with debug symbols (default is
1411 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001412 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1413 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001414 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001415 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001416 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001417 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001418 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001419 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001420 --enable-shared Build a shared library and link tools against it
1421 (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001422 --enable-timestamps Enable embedding timestamp information in build
1423 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001424 --enable-targets Build specific host targets: all or
1425 target1,target2,... Valid targets are: host, x86,
1426 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001427 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1428 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001429 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1430 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001431 --enable-bindings Build specific language bindings:
1432 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001433 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001434 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001435
1436Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001439 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1440 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001441 --with-llvmgcc Specify location of llvm-gcc driver (default
1442 searches PATH)
1443 --with-llvmgxx Specify location of llvm-g++ driver (default
1444 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001445 --with-clang Specify location of clang compiler (default is
1446 --with-built-clang)
1447 --with-built-clang Use the compiled Clang as the LLVM compiler
1448 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001449 --with-optimize-option Select the compiler options to use for optimized
1450 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001451 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001452 --with-ocaml-libdir Specify install location for ocaml bindings (default
1453 is stdlib)
Chandler Carruth6b241162010-10-19 08:21:25 +00001454 --with-clang-resource-dir
1455 Relative directory from the Clang binary for
1456 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001457 --with-c-include-dirs Colon separated list of directories clang will
1458 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001459 --with-cxx-include-root Directory with the libstdc++ headers.
1460 --with-cxx-include-arch Architecture of the libstdc++ headers.
1461 --with-cxx-include-32bit-dir
1462 32 bit multilib dir.
1463 --with-cxx-include-64bit-dir
1464 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001465 --with-binutils-include Specify path to binutils/include/ containing
1466 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001467 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001468 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1469 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001470 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001471 --with-oprofile=<prefix>
1472 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001473
1474Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001475 CC C compiler command
1476 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001479 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001480 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001481 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001482 CXX C++ compiler command
1483 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001484
1485Use these variables to override the choices made by `configure' or to help
1486it to find libraries and programs with nonstandard names/locations.
1487
1488Report bugs to <llvmbugs@cs.uiuc.edu>.
1489_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001490ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001491fi
1492
1493if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001496 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001497 ac_builddir=.
1498
Reid Spencera773bd52006-08-04 18:18:08 +00001499case "$ac_dir" in
1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001503 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001504 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509esac
1510ac_abs_top_builddir=$ac_pwd
1511ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512# for backward compatibility:
1513ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001514
1515case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001516 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001517 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001521 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001528esac
Reid Spencera773bd52006-08-04 18:18:08 +00001529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001530
Reid Spencera773bd52006-08-04 18:18:08 +00001531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001539 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001540 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001541 fi || ac_status=$?
1542 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001543 done
1544fi
1545
Reid Spencera773bd52006-08-04 18:18:08 +00001546test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001547if $ac_init_version; then
1548 cat <<\_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001549llvm configure 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001550generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001552Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15532002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001554This configure script is free software; the Free Software Foundation
1555gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001556
John Criswell5a129712010-03-19 21:04:16 +00001557Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001558_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001559 exit
John Criswell7a73b802003-06-30 21:59:07 +00001560fi
Reid Spencera773bd52006-08-04 18:18:08 +00001561cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001562This file contains any messages produced by compilers while
1563running configure, to aid debugging if configure makes a mistake.
1564
Eric Christopherb26697c2010-09-06 18:47:10 +00001565It was created by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001566generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001567
1568 $ $0 $@
1569
1570_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001571exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001572{
1573cat <<_ASUNAME
1574## --------- ##
1575## Platform. ##
1576## --------- ##
1577
1578hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1579uname -m = `(uname -m) 2>/dev/null || echo unknown`
1580uname -r = `(uname -r) 2>/dev/null || echo unknown`
1581uname -s = `(uname -s) 2>/dev/null || echo unknown`
1582uname -v = `(uname -v) 2>/dev/null || echo unknown`
1583
1584/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1585/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1586
1587/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1588/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1589/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001590/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001591/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1592/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1593/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1594
1595_ASUNAME
1596
1597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598for as_dir in $PATH
1599do
1600 IFS=$as_save_IFS
1601 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001602 echo "PATH: $as_dir"
1603done
Reid Spencera773bd52006-08-04 18:18:08 +00001604IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001605
1606} >&5
1607
1608cat >&5 <<_ACEOF
1609
1610
1611## ----------- ##
1612## Core tests. ##
1613## ----------- ##
1614
1615_ACEOF
1616
1617
1618# Keep a trace of the command line.
1619# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001620# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001621# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001622# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001623ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001624ac_configure_args0=
1625ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001626ac_must_keep_next=false
1627for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001628do
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 for ac_arg
1630 do
1631 case $ac_arg in
1632 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1634 | -silent | --silent | --silen | --sile | --sil)
1635 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001636 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001637 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 esac
1639 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001640 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001642 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001644 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001646 case $ac_arg in
1647 *=* | --config-cache | -C | -disable-* | --disable-* \
1648 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1649 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1650 | -with-* | --with-* | -without-* | --without-* | --x)
1651 case "$ac_configure_args0 " in
1652 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1653 esac
1654 ;;
1655 -* ) ac_must_keep_next=true ;;
1656 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001657 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001658 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001659 ;;
1660 esac
1661 done
John Criswell7a73b802003-06-30 21:59:07 +00001662done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001663$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1664$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 +00001665
1666# When interrupted or exit'd, cleanup temporary files, and complete
1667# config.log. We remove comments because anyway the quotes in there
1668# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001669# WARNING: Use '\'' to represent an apostrophe within the trap.
1670# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001671trap 'exit_status=$?
1672 # Save into config.log some information that might help in debugging.
1673 {
1674 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001675
John Criswell7a73b802003-06-30 21:59:07 +00001676 cat <<\_ASBOX
1677## ---------------- ##
1678## Cache variables. ##
1679## ---------------- ##
1680_ASBOX
1681 echo
1682 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001683(
1684 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1685 eval ac_val=\$$ac_var
1686 case $ac_val in #(
1687 *${as_nl}*)
1688 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001689 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1690echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001691 esac
1692 case $ac_var in #(
1693 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001694 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001695 esac ;;
1696 esac
1697 done
John Criswell7a73b802003-06-30 21:59:07 +00001698 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001699 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1700 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001701 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001702 "s/'\''/'\''\\\\'\'''\''/g;
1703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1704 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001705 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001707 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001708 esac |
1709 sort
1710)
John Criswell7a73b802003-06-30 21:59:07 +00001711 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001712
1713 cat <<\_ASBOX
1714## ----------------- ##
1715## Output variables. ##
1716## ----------------- ##
1717_ASBOX
1718 echo
1719 for ac_var in $ac_subst_vars
1720 do
Reid Spencera773bd52006-08-04 18:18:08 +00001721 eval ac_val=\$$ac_var
1722 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001723 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001724 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001725 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001726 done | sort
1727 echo
1728
1729 if test -n "$ac_subst_files"; then
1730 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001731## ------------------- ##
1732## File substitutions. ##
1733## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001734_ASBOX
1735 echo
1736 for ac_var in $ac_subst_files
1737 do
Reid Spencera773bd52006-08-04 18:18:08 +00001738 eval ac_val=\$$ac_var
1739 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001741 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001742 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001743 done | sort
1744 echo
1745 fi
1746
John Criswell7a73b802003-06-30 21:59:07 +00001747 if test -s confdefs.h; then
1748 cat <<\_ASBOX
1749## ----------- ##
1750## confdefs.h. ##
1751## ----------- ##
1752_ASBOX
1753 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001754 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001755 echo
1756 fi
1757 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001758 echo "$as_me: caught signal $ac_signal"
1759 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001760 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001761 rm -f core *.core core.conftest.* &&
1762 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001763 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001764' 0
John Criswell7a73b802003-06-30 21:59:07 +00001765for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001766 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001767done
1768ac_signal=0
1769
1770# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001771rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001772
1773# Predefined preprocessor variables.
1774
1775cat >>confdefs.h <<_ACEOF
1776#define PACKAGE_NAME "$PACKAGE_NAME"
1777_ACEOF
1778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001779
John Criswell7a73b802003-06-30 21:59:07 +00001780cat >>confdefs.h <<_ACEOF
1781#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1782_ACEOF
1783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001784
John Criswell7a73b802003-06-30 21:59:07 +00001785cat >>confdefs.h <<_ACEOF
1786#define PACKAGE_VERSION "$PACKAGE_VERSION"
1787_ACEOF
1788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789
John Criswell7a73b802003-06-30 21:59:07 +00001790cat >>confdefs.h <<_ACEOF
1791#define PACKAGE_STRING "$PACKAGE_STRING"
1792_ACEOF
1793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794
John Criswell7a73b802003-06-30 21:59:07 +00001795cat >>confdefs.h <<_ACEOF
1796#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1797_ACEOF
1798
1799
1800# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001802if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001804elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001806else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001807 set x "$ac_default_prefix/share/config.site" \
1808 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001809fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810shift
1811for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001812do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001813 if test -r "$ac_site_file"; then
1814 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1815echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001816 sed 's/^/| /' "$ac_site_file" >&5
1817 . "$ac_site_file"
1818 fi
1819done
1820
1821if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001822 # Some versions of bash will fail to source /dev/null (special
1823 # files actually), so we avoid doing that.
1824 if test -f "$cache_file"; then
1825 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1826echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001827 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001828 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1829 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001830 esac
1831 fi
1832else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001833 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1834echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001835 >$cache_file
1836fi
1837
1838# Check that the precious variables saved in the cache have kept the same
1839# value.
1840ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001841for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001842 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1843 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001844 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1845 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001846 case $ac_old_set,$ac_new_set in
1847 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001848 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1849echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001850 ac_cache_corrupted=: ;;
1851 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001852 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1853echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001854 ac_cache_corrupted=: ;;
1855 ,);;
1856 *)
1857 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001858 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1859echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1860 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1861echo "$as_me: former value: $ac_old_val" >&2;}
1862 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1863echo "$as_me: current value: $ac_new_val" >&2;}
1864 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001865 fi;;
1866 esac
1867 # Pass precious variables to config.status.
1868 if test "$ac_new_set" = set; then
1869 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001870 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001871 *) ac_arg=$ac_var=$ac_new_val ;;
1872 esac
1873 case " $ac_configure_args " in
1874 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001875 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001876 esac
1877 fi
1878done
1879if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001880 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1881echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1882 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1883echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1884 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
Reid Spencera773bd52006-08-04 18:18:08 +00001910
John Criswell7a73b802003-06-30 21:59:07 +00001911ac_ext=c
1912ac_cpp='$CPP $CPPFLAGS'
1913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915ac_compiler_gnu=$ac_cv_c_compiler_gnu
1916
1917
1918
John Criswell5a129712010-03-19 21:04:16 +00001919LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001920
1921
1922
1923
1924
1925
1926
John Criswell7a73b802003-06-30 21:59:07 +00001927ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001928for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001929 if test -f "$ac_dir/install-sh"; then
1930 ac_aux_dir=$ac_dir
1931 ac_install_sh="$ac_aux_dir/install-sh -c"
1932 break
1933 elif test -f "$ac_dir/install.sh"; then
1934 ac_aux_dir=$ac_dir
1935 ac_install_sh="$ac_aux_dir/install.sh -c"
1936 break
1937 elif test -f "$ac_dir/shtool"; then
1938 ac_aux_dir=$ac_dir
1939 ac_install_sh="$ac_aux_dir/shtool install -c"
1940 break
1941 fi
John Criswell7a73b802003-06-30 21:59:07 +00001942done
1943if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001944 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1945echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1946 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001947fi
Reid Spencera773bd52006-08-04 18:18:08 +00001948
1949# These three variables are undocumented and unsupported,
1950# and are intended to be withdrawn in a future Autoconf release.
1951# They can cause serious problems if a builder's source tree is in a directory
1952# whose full name contains unusual characters.
1953ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1954ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1955ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1956
John Criswell7a73b802003-06-30 21:59:07 +00001957
John Criswell392aaa32003-07-22 19:18:09 +00001958
Reid Spencer2706f8c2004-09-19 23:53:36 +00001959if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001960 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001961 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1962echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1963 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001964 fi
John Criswell93e1c722003-09-15 17:04:06 +00001965fi
1966
John Criswell0157f502010-03-19 21:31:39 +00001967
1968
1969if test -d ${srcdir}/projects/llvm-gcc ; then
1970 subdirs="$subdirs projects/llvm-gcc"
1971
1972fi
1973
1974if test -d ${srcdir}/projects/test-suite ; then
1975 subdirs="$subdirs projects/test-suite"
1976
1977fi
1978
1979if test -d ${srcdir}/projects/llvm-test ; then
1980 subdirs="$subdirs projects/llvm-test"
1981
1982fi
1983
1984if test -d ${srcdir}/projects/poolalloc ; then
1985 subdirs="$subdirs projects/poolalloc"
1986
1987fi
1988
1989if test -d ${srcdir}/projects/llvm-poolalloc ; then
1990 subdirs="$subdirs projects/llvm-poolalloc"
1991
1992fi
1993
John Criswell33a911a2003-11-25 20:36:46 +00001994for i in `ls ${srcdir}/projects`
1995do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001996 if test -d ${srcdir}/projects/${i} ; then
1997 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001998 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001999 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002000 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002001 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002002 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002003 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002004 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002005;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002006 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002007 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002008 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002009 ;;
John Criswell7def2932010-02-25 22:57:19 +00002010 safecode) subdirs="$subdirs projects/safecode"
2011 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002012 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002013 ;;
John Criswell52c02862010-03-25 13:59:09 +00002014 llvm-gcc) ;;
2015 test-suite) ;;
2016 llvm-test) ;;
2017 poolalloc) ;;
2018 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002019 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002020 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2021echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002022 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002023 esac
John Criswell33a911a2003-11-25 20:36:46 +00002024 fi
2025done
John Criswell559a6c12003-09-30 16:31:48 +00002026
Tobias Grosserbaaadb22010-10-30 00:54:26 +00002027# Check whether --enable-polly was given.
2028if test "${enable_polly+set}" = set; then
2029 enableval=$enable_polly;
2030else
2031 enableval=default
2032fi
2033
2034case "$enableval" in
2035 yes) ENABLE_POLLY=1
2036 ;;
2037 no) ENABLE_POLLY=0
2038 ;;
2039 default) ENABLE_POLLY=1
2040 ;;
2041 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2042echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2043 { (exit 1); exit 1; }; } ;;
2044esac
2045
2046
2047if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2048 LLVM_HAS_POLLY=1
2049
2050 subdirs="$subdirs tools/polly"
2051
2052fi
2053
John Criswell7a73b802003-06-30 21:59:07 +00002054
2055# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002056$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002057 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2058echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2059 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002061{ echo "$as_me:$LINENO: checking build system type" >&5
2062echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2063if test "${ac_cv_build+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 ac_build_alias=$build_alias
2067test "x$ac_build_alias" = x &&
2068 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2069test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002070 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2071echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2072 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002073ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002074 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2075echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2076 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002077
2078fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002079{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2080echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002081case $ac_cv_build in
2082*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002083*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2084echo "$as_me: error: invalid value of canonical build" >&2;}
2085 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002086esac
John Criswell7a73b802003-06-30 21:59:07 +00002087build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002088ac_save_IFS=$IFS; IFS='-'
2089set x $ac_cv_build
2090shift
2091build_cpu=$1
2092build_vendor=$2
2093shift; shift
2094# Remember, the first character of IFS is used to create $*,
2095# except with old shells:
2096build_os=$*
2097IFS=$ac_save_IFS
2098case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002099
2100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002101{ echo "$as_me:$LINENO: checking host system type" >&5
2102echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2103if test "${ac_cv_host+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002105else
Reid Spencera773bd52006-08-04 18:18:08 +00002106 if test "x$host_alias" = x; then
2107 ac_cv_host=$ac_cv_build
2108else
2109 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002110 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2111echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2112 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002113fi
John Criswell7a73b802003-06-30 21:59:07 +00002114
2115fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002116{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2117echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002118case $ac_cv_host in
2119*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002120*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2121echo "$as_me: error: invalid value of canonical host" >&2;}
2122 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002123esac
John Criswell7a73b802003-06-30 21:59:07 +00002124host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002125ac_save_IFS=$IFS; IFS='-'
2126set x $ac_cv_host
2127shift
2128host_cpu=$1
2129host_vendor=$2
2130shift; shift
2131# Remember, the first character of IFS is used to create $*,
2132# except with old shells:
2133host_os=$*
2134IFS=$ac_save_IFS
2135case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002136
2137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002138{ echo "$as_me:$LINENO: checking target system type" >&5
2139echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2140if test "${ac_cv_target+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002142else
Reid Spencera773bd52006-08-04 18:18:08 +00002143 if test "x$target_alias" = x; then
2144 ac_cv_target=$ac_cv_host
2145else
2146 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002147 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2148echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2149 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002150fi
John Criswell7a73b802003-06-30 21:59:07 +00002151
2152fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002153{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2154echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002155case $ac_cv_target in
2156*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002157*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2158echo "$as_me: error: invalid value of canonical target" >&2;}
2159 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002160esac
John Criswell7a73b802003-06-30 21:59:07 +00002161target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002162ac_save_IFS=$IFS; IFS='-'
2163set x $ac_cv_target
2164shift
2165target_cpu=$1
2166target_vendor=$2
2167shift; shift
2168# Remember, the first character of IFS is used to create $*,
2169# except with old shells:
2170target_os=$*
2171IFS=$ac_save_IFS
2172case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002173
2174
2175# The aliases save the names the user supplied, while $host etc.
2176# will get canonicalized.
2177test -n "$target_alias" &&
2178 test "$program_prefix$program_suffix$program_transform_name" = \
2179 NONENONEs,x,x, &&
2180 program_prefix=${target_alias}-
2181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002182{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2183echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2184if test "${llvm_cv_os_type+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002186else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002187 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002188 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002191 llvm_cv_os_type="AIX"
2192 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002193 *-*-irix*)
2194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196 llvm_cv_os_type="IRIX"
2197 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002198 *-*-cygwin*)
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="Cygwin"
2202 llvm_cv_platform_type="Unix" ;;
2203 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002204 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002205 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002206 llvm_cv_os_type="Darwin"
2207 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002208 *-*-minix*)
2209 llvm_cv_link_all_option="-Wl,-all_load"
2210 llvm_cv_no_link_all_option="-Wl,-noall_load"
2211 llvm_cv_os_type="Minix"
2212 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002213 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002214 llvm_cv_link_all_option="-Wl,--whole-archive"
2215 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002216 llvm_cv_os_type="FreeBSD"
2217 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002218 *-*-openbsd*)
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 Spencer1014ab42006-04-19 23:47:16 +00002221 llvm_cv_os_type="OpenBSD"
2222 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002223 *-*-netbsd*)
2224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2226 llvm_cv_os_type="NetBSD"
2227 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002228 *-*-dragonfly*)
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="DragonFly"
2232 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002233 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002236 llvm_cv_os_type="HP-UX"
2237 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002238 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002241 llvm_cv_os_type="Interix"
2242 llvm_cv_platform_type="Unix" ;;
2243 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002244 llvm_cv_link_all_option="-Wl,--whole-archive"
2245 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246 llvm_cv_os_type="Linux"
2247 llvm_cv_platform_type="Unix" ;;
2248 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002249 llvm_cv_link_all_option="-Wl,-z,allextract"
2250 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002251 llvm_cv_os_type="SunOS"
2252 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002253 *-*-auroraux*)
2254 llvm_cv_link_all_option="-Wl,-z,allextract"
2255 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2256 llvm_cv_os_type="AuroraUX"
2257 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002258 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002261 llvm_cv_os_type="Win32"
2262 llvm_cv_platform_type="Win32" ;;
2263 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002266 llvm_cv_os_type="MingW"
2267 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002268 *-*-haiku*)
2269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271 llvm_cv_os_type="Haiku"
2272 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002273 *-unknown-eabi*)
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="Freestanding"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-unknown-elf*)
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="Freestanding"
2282 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002283 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002284 llvm_cv_link_all_option=""
2285 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002286 llvm_cv_os_type="Unknown"
2287 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002288esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002289fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002290{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2291echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002293{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2294echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2295if test "${llvm_cv_target_os_type+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002297else
2298 case $target in
2299 *-*-aix*)
2300 llvm_cv_target_os_type="AIX" ;;
2301 *-*-irix*)
2302 llvm_cv_target_os_type="IRIX" ;;
2303 *-*-cygwin*)
2304 llvm_cv_target_os_type="Cygwin" ;;
2305 *-*-darwin*)
2306 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002307 *-*-minix*)
2308 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002309 *-*-freebsd*)
2310 llvm_cv_target_os_type="FreeBSD" ;;
2311 *-*-openbsd*)
2312 llvm_cv_target_os_type="OpenBSD" ;;
2313 *-*-netbsd*)
2314 llvm_cv_target_os_type="NetBSD" ;;
2315 *-*-dragonfly*)
2316 llvm_cv_target_os_type="DragonFly" ;;
2317 *-*-hpux*)
2318 llvm_cv_target_os_type="HP-UX" ;;
2319 *-*-interix*)
2320 llvm_cv_target_os_type="Interix" ;;
2321 *-*-linux*)
2322 llvm_cv_target_os_type="Linux" ;;
2323 *-*-solaris*)
2324 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002325 *-*-auroraux*)
2326 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002327 *-*-win32*)
2328 llvm_cv_target_os_type="Win32" ;;
2329 *-*-mingw*)
2330 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002331 *-*-haiku*)
2332 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002333 *-unknown-eabi*)
2334 llvm_cv_target_os_type="Freestanding" ;;
2335 *)
2336 llvm_cv_target_os_type="Unknown" ;;
2337esac
2338fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002339{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2340echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002341
Reid Spencer7b3e8512004-12-24 06:29:05 +00002342if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002343 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2344echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2345 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002346fi
2347
Reid Spencer7b3e8512004-12-24 06:29:05 +00002348OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002349
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002350HOST_OS=$llvm_cv_os_type
2351
2352TARGET_OS=$llvm_cv_target_os_type
2353
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002354
Reid Spencera773bd52006-08-04 18:18:08 +00002355LINKALL=$llvm_cv_link_all_option
2356
2357NOLINKALL=$llvm_cv_no_link_all_option
2358
2359
Reid Spencer7b3e8512004-12-24 06:29:05 +00002360case $llvm_cv_platform_type in
2361 Unix)
2362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002363cat >>confdefs.h <<\_ACEOF
2364#define LLVM_ON_UNIX 1
2365_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002366
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002367 LLVM_ON_UNIX=1
2368
2369 LLVM_ON_WIN32=0
2370
Reid Spencer7b3e8512004-12-24 06:29:05 +00002371 ;;
2372 Win32)
2373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002374cat >>confdefs.h <<\_ACEOF
2375#define LLVM_ON_WIN32 1
2376_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002377
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002378 LLVM_ON_UNIX=0
2379
2380 LLVM_ON_WIN32=1
2381
Reid Spencer7b3e8512004-12-24 06:29:05 +00002382 ;;
2383esac
2384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002385{ echo "$as_me:$LINENO: checking target architecture" >&5
2386echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2387if test "${llvm_cv_target_arch+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002389else
2390 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002391 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002392 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002393 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2394 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002395 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002396 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002397 mips-*) llvm_cv_target_arch="Mips" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002398 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002399 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002400 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002401 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002402 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002403 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002404 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002405esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002406fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002407{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2408echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002409
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002410if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002411 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2412echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002413fi
John Criswell76595452003-07-01 22:07:39 +00002414
Nick Lewycky83fc4472009-09-29 05:48:51 +00002415# Determine the LLVM native architecture for the target
2416case "$llvm_cv_target_arch" in
2417 x86) LLVM_NATIVE_ARCH="X86" ;;
2418 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2419 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2420esac
2421
2422ARCH=$llvm_cv_target_arch
2423
2424
2425ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426ac_cpp='$CPP $CPPFLAGS'
2427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002430if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2432set dummy ${ac_tool_prefix}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_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437else
2438 if test -n "$CC"; then
2439 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}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
2458CC=$ac_cv_prog_CC
2459if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002460 { echo "$as_me:$LINENO: result: $CC" >&5
2461echo "${ECHO_T}$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
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468fi
2469if test -z "$ac_cv_prog_CC"; then
2470 ac_ct_CC=$CC
2471 # Extract the first word of "gcc", so it can be a program name with args.
2472set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2475if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477else
2478 if test -n "$ac_ct_CC"; then
2479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2480else
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 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 +00002488 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002490 break 2
2491 fi
2492done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002493done
Reid Spencera773bd52006-08-04 18:18:08 +00002494IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495
2496fi
2497fi
2498ac_ct_CC=$ac_cv_prog_ac_ct_CC
2499if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002500 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2501echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002502else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002503 { echo "$as_me:$LINENO: result: no" >&5
2504echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002505fi
2506
Reid Spencera773bd52006-08-04 18:18:08 +00002507 if test "x$ac_ct_CC" = x; then
2508 CC=""
2509 else
2510 case $cross_compiling:$ac_tool_warned in
2511yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002512{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2513whose name does not start with the host triplet. If you think this
2514configuration is useful to you, please write to autoconf@gnu.org." >&5
2515echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2516whose name does not start with the host triplet. If you think this
2517configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002518ac_tool_warned=yes ;;
2519esac
2520 CC=$ac_ct_CC
2521 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002522else
2523 CC="$ac_cv_prog_CC"
2524fi
2525
2526if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002527 if test -n "$ac_tool_prefix"; then
2528 # 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 +00002529set dummy ${ac_tool_prefix}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
2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH
2540do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 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 +00002545 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547 break 2
2548 fi
2549done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002550done
Reid Spencera773bd52006-08-04 18:18:08 +00002551IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002552
2553fi
2554fi
2555CC=$ac_cv_prog_CC
2556if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002557 { echo "$as_me:$LINENO: result: $CC" >&5
2558echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002559else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002560 { echo "$as_me:$LINENO: result: no" >&5
2561echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002562fi
2563
Reid Spencera773bd52006-08-04 18:18:08 +00002564
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002565 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002566fi
2567if test -z "$CC"; then
2568 # Extract the first word of "cc", so it can be a program name with args.
2569set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2572if test "${ac_cv_prog_CC+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002574else
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2577else
2578 ac_prog_rejected=no
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 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 +00002586 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2587 ac_prog_rejected=yes
2588 continue
2589 fi
2590 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002592 break 2
2593 fi
2594done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002595done
Reid Spencera773bd52006-08-04 18:18:08 +00002596IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597
2598if test $ac_prog_rejected = yes; then
2599 # We found a bogon in the path, so make sure we never use it.
2600 set dummy $ac_cv_prog_CC
2601 shift
2602 if test $# != 0; then
2603 # We chose a different compiler from the bogus one.
2604 # However, it has the same basename, so the bogon will be chosen
2605 # first if we set CC to just the basename; use the full file name.
2606 shift
2607 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2608 fi
2609fi
2610fi
2611fi
2612CC=$ac_cv_prog_CC
2613if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002614 { echo "$as_me:$LINENO: result: $CC" >&5
2615echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002617 { echo "$as_me:$LINENO: result: no" >&5
2618echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002619fi
2620
Reid Spencera773bd52006-08-04 18:18:08 +00002621
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622fi
2623if test -z "$CC"; then
2624 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002625 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002626 do
2627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2628set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631if test "${ac_cv_prog_CC+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002633else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634 if test -n "$CC"; then
2635 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002636else
2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638for as_dir in $PATH
2639do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 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 +00002644 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002646 break 2
2647 fi
2648done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002649done
Reid Spencera773bd52006-08-04 18:18:08 +00002650IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002651
2652fi
2653fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002654CC=$ac_cv_prog_CC
2655if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002656 { echo "$as_me:$LINENO: result: $CC" >&5
2657echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002658else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002659 { echo "$as_me:$LINENO: result: no" >&5
2660echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002661fi
2662
Reid Spencera773bd52006-08-04 18:18:08 +00002663
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002664 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002665 done
2666fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002667if test -z "$CC"; then
2668 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002669 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002670do
2671 # Extract the first word of "$ac_prog", so it can be a program name with args.
2672set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002677else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002678 if test -n "$ac_ct_CC"; then
2679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 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 +00002688 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002690 break 2
2691 fi
2692done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002693done
Reid Spencera773bd52006-08-04 18:18:08 +00002694IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002695
2696fi
2697fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002698ac_ct_CC=$ac_cv_prog_ac_ct_CC
2699if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002700 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2701echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002702else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002703 { echo "$as_me:$LINENO: result: no" >&5
2704echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002705fi
2706
Reid Spencera773bd52006-08-04 18:18:08 +00002707
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002708 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002709done
John Criswell7a73b802003-06-30 21:59:07 +00002710
Reid Spencera773bd52006-08-04 18:18:08 +00002711 if test "x$ac_ct_CC" = x; then
2712 CC=""
2713 else
2714 case $cross_compiling:$ac_tool_warned in
2715yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002716{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2717whose name does not start with the host triplet. If you think this
2718configuration is useful to you, please write to autoconf@gnu.org." >&5
2719echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2720whose name does not start with the host triplet. If you think this
2721configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002722ac_tool_warned=yes ;;
2723esac
2724 CC=$ac_ct_CC
2725 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002726fi
2727
John Criswell7a73b802003-06-30 21:59:07 +00002728fi
2729
2730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002731test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2732See \`config.log' for more details." >&5
2733echo "$as_me: error: no acceptable C compiler found in \$PATH
2734See \`config.log' for more details." >&2;}
2735 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002736
John Criswell7a73b802003-06-30 21:59:07 +00002737# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002738echo "$as_me:$LINENO: checking for C compiler version" >&5
2739ac_compiler=`set X $ac_compile; echo $2`
2740{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002741case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002747 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }
2750{ (ac_try="$ac_compiler -v >&5"
2751case "(($ac_try" in
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2754esac
2755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_compiler -v >&5") 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }
2760{ (ac_try="$ac_compiler -V >&5"
2761case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2764esac
2765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_compiler -V >&5") 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002771cat >conftest.$ac_ext <<_ACEOF
2772/* confdefs.h. */
2773_ACEOF
2774cat confdefs.h >>conftest.$ac_ext
2775cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002776/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002777
John Criswell7a73b802003-06-30 21:59:07 +00002778int
2779main ()
2780{
2781
2782 ;
2783 return 0;
2784}
2785_ACEOF
2786ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002787ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002788# Try to create an executable without -o first, disregard a.out.
2789# It will help us diagnose broken compilers, and finding out an intuition
2790# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002791{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2792echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2793ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2794#
2795# List of possible output files, starting from the most likely.
2796# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2797# only as a last resort. b.out is created by i960 compilers.
2798ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2799#
2800# The IRIX 6 linker writes into existing files which may not be
2801# executable, retaining their permissions. Remove them first so a
2802# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002803ac_rmfiles=
2804for ac_file in $ac_files
2805do
2806 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2809 esac
2810done
2811rm -f $ac_rmfiles
2812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002813if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002814case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2817esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002819 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002820 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002823 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2824# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2825# in a Makefile. We should not override ac_cv_exeext if it was cached,
2826# so that the user can short-circuit this test for compilers unknown to
2827# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002828for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002829do
2830 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002831 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002833 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002834 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002835 # We found the default executable, but exeext='' is most
2836 # certainly right.
2837 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002838 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002839 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002840 then :; else
2841 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2842 fi
2843 # We set ac_cv_exeext here because the later test for it is not
2844 # safe: cross compilers may not add the suffix if given an `-o'
2845 # argument, so we may need to know it at that point already.
2846 # Even if this section looks crufty: it has the advantage of
2847 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002848 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002849 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002850 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002851 esac
2852done
Reid Spencera773bd52006-08-04 18:18:08 +00002853test "$ac_cv_exeext" = no && ac_cv_exeext=
2854
John Criswell7a73b802003-06-30 21:59:07 +00002855else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002856 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002857sed 's/^/| /' conftest.$ac_ext >&5
2858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002859{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2860See \`config.log' for more details." >&5
2861echo "$as_me: error: C compiler cannot create executables
2862See \`config.log' for more details." >&2;}
2863 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002864fi
John Criswell7a73b802003-06-30 21:59:07 +00002865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002866ac_exeext=$ac_cv_exeext
2867{ echo "$as_me:$LINENO: result: $ac_file" >&5
2868echo "${ECHO_T}$ac_file" >&6; }
2869
2870# Check that the compiler produces executables we can run. If not, either
2871# the compiler is broken, or we cross compile.
2872{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2873echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2874# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2875# If not cross compiling, check that we can run a simple program.
2876if test "$cross_compiling" != yes; then
2877 if { ac_try='./$ac_file'
2878 { (case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881esac
2882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_try") 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2887 cross_compiling=no
2888 else
2889 if test "$cross_compiling" = maybe; then
2890 cross_compiling=yes
2891 else
2892 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2893If you meant to cross compile, use \`--host'.
2894See \`config.log' for more details." >&5
2895echo "$as_me: error: cannot run C compiled programs.
2896If you meant to cross compile, use \`--host'.
2897See \`config.log' for more details." >&2;}
2898 { (exit 1); exit 1; }; }
2899 fi
2900 fi
2901fi
2902{ echo "$as_me:$LINENO: result: yes" >&5
2903echo "${ECHO_T}yes" >&6; }
2904
2905rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002906ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002907# Check that the compiler produces executables we can run. If not, either
2908# the compiler is broken, or we cross compile.
2909{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2910echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2911{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2912echo "${ECHO_T}$cross_compiling" >&6; }
2913
2914{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2915echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2916if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002917case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002922 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002923 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002926 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2927# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2928# work properly (i.e., refer to `conftest.exe'), while it won't with
2929# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002930for ac_file in conftest.exe conftest conftest.*; do
2931 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002932 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002934 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002935 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002936 * ) break;;
2937 esac
2938done
2939else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002940 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2941See \`config.log' for more details." >&5
2942echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2943See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002945fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002946
2947rm -f conftest$ac_cv_exeext
2948{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2949echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002950
2951rm -f conftest.$ac_ext
2952EXEEXT=$ac_cv_exeext
2953ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002954{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2955echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2956if test "${ac_cv_objext+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002958else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002959 cat >conftest.$ac_ext <<_ACEOF
2960/* confdefs.h. */
2961_ACEOF
2962cat confdefs.h >>conftest.$ac_ext
2963cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002964/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002965
John Criswell7a73b802003-06-30 21:59:07 +00002966int
2967main ()
2968{
2969
2970 ;
2971 return 0;
2972}
2973_ACEOF
2974rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002975if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002976case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002981 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002982 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002985 for ac_file in conftest.o conftest.obj conftest.*; do
2986 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002987 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002989 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2990 break;;
2991 esac
2992done
2993else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002994 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002995sed 's/^/| /' conftest.$ac_ext >&5
2996
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002997{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2998See \`config.log' for more details." >&5
2999echo "$as_me: error: cannot compute suffix of object files: cannot compile
3000See \`config.log' for more details." >&2;}
3001 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00003002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003003
John Criswell7a73b802003-06-30 21:59:07 +00003004rm -f conftest.$ac_cv_objext conftest.$ac_ext
3005fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003006{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3007echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003008OBJEXT=$ac_cv_objext
3009ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003010{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3011echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3012if test "${ac_cv_c_compiler_gnu+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003014else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003015 cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h. */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003020/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003021
John Criswell7a73b802003-06-30 21:59:07 +00003022int
3023main ()
3024{
3025#ifndef __GNUC__
3026 choke me
3027#endif
3028
3029 ;
3030 return 0;
3031}
3032_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003033rm -f conftest.$ac_objext
3034if { (ac_try="$ac_compile"
3035case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038esac
3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compile") 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3048 { (case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051esac
3052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_try") 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061esac
3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_try") 2>&5
3064 ac_status=$?
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003067 ac_compiler_gnu=yes
3068else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003069 echo "$as_me: failed program was:" >&5
3070sed 's/^/| /' conftest.$ac_ext >&5
3071
3072 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003073fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003074
Reid Spencera773bd52006-08-04 18:18:08 +00003075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003076ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003077
3078fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003079{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3080echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3081GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003082ac_test_CFLAGS=${CFLAGS+set}
3083ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003084{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3085echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3086if test "${ac_cv_prog_cc_g+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003088else
Reid Spencera773bd52006-08-04 18:18:08 +00003089 ac_save_c_werror_flag=$ac_c_werror_flag
3090 ac_c_werror_flag=yes
3091 ac_cv_prog_cc_g=no
3092 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003093 cat >conftest.$ac_ext <<_ACEOF
3094/* confdefs.h. */
3095_ACEOF
3096cat confdefs.h >>conftest.$ac_ext
3097cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003098/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003099
John Criswell7a73b802003-06-30 21:59:07 +00003100int
3101main ()
3102{
3103
3104 ;
3105 return 0;
3106}
3107_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003108rm -f conftest.$ac_objext
3109if { (ac_try="$ac_compile"
3110case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113esac
3114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compile") 2>conftest.er1
3116 ac_status=$?
3117 grep -v '^ *+' conftest.er1 >conftest.err
3118 rm -f conftest.er1
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } &&
3122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3123 { (case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_try") 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; } &&
3132 { ac_try='test -s conftest.$ac_objext'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003142 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003143else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003144 echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 CFLAGS=""
3148 cat >conftest.$ac_ext <<_ACEOF
3149/* confdefs.h. */
3150_ACEOF
3151cat confdefs.h >>conftest.$ac_ext
3152cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003153/* end confdefs.h. */
3154
3155int
3156main ()
3157{
3158
3159 ;
3160 return 0;
3161}
3162_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003163rm -f conftest.$ac_objext
3164if { (ac_try="$ac_compile"
3165case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168esac
3169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3178 { (case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181esac
3182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_try") 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest.$ac_objext'
3188 { (case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
3192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_try") 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 :
Torok Edwin871384f2010-01-26 08:50:50 +00003198else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003199 echo "$as_me: failed program was:" >&5
3200sed 's/^/| /' conftest.$ac_ext >&5
3201
3202 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003203 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003204 cat >conftest.$ac_ext <<_ACEOF
3205/* confdefs.h. */
3206_ACEOF
3207cat confdefs.h >>conftest.$ac_ext
3208cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003209/* end confdefs.h. */
3210
3211int
3212main ()
3213{
3214
3215 ;
3216 return 0;
3217}
3218_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003219rm -f conftest.$ac_objext
3220if { (ac_try="$ac_compile"
3221case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224esac
3225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_compile") 2>conftest.er1
3227 ac_status=$?
3228 grep -v '^ *+' conftest.er1 >conftest.err
3229 rm -f conftest.er1
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3234 { (case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237esac
3238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239 (eval "$ac_try") 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; } &&
3243 { ac_try='test -s conftest.$ac_objext'
3244 { (case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247esac
3248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_try") 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003253 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003254else
3255 echo "$as_me: failed program was:" >&5
3256sed 's/^/| /' conftest.$ac_ext >&5
3257
3258
John Criswell7a73b802003-06-30 21:59:07 +00003259fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003260
Reid Spencera773bd52006-08-04 18:18:08 +00003261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003262fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003263
Reid Spencera773bd52006-08-04 18:18:08 +00003264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003266
Reid Spencera773bd52006-08-04 18:18:08 +00003267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 ac_c_werror_flag=$ac_save_c_werror_flag
3269fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003270{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3271echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272if test "$ac_test_CFLAGS" = set; then
3273 CFLAGS=$ac_save_CFLAGS
3274elif test $ac_cv_prog_cc_g = yes; then
3275 if test "$GCC" = yes; then
3276 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003277 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003278 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003279 fi
3280else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003281 if test "$GCC" = yes; then
3282 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003283 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003284 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003285 fi
3286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003287{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3288echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3289if test "${ac_cv_prog_cc_c89+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291else
Reid Spencera773bd52006-08-04 18:18:08 +00003292 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003293ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003294cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h. */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003299/* end confdefs.h. */
3300#include <stdarg.h>
3301#include <stdio.h>
3302#include <sys/types.h>
3303#include <sys/stat.h>
3304/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3305struct buf { int x; };
3306FILE * (*rcsopen) (struct buf *, struct stat *, int);
3307static char *e (p, i)
3308 char **p;
3309 int i;
3310{
3311 return p[i];
3312}
3313static char *f (char * (*g) (char **, int), char **p, ...)
3314{
3315 char *s;
3316 va_list v;
3317 va_start (v,p);
3318 s = g (p, va_arg (v,int));
3319 va_end (v);
3320 return s;
3321}
3322
3323/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3324 function prototypes and stuff, but not '\xHH' hex character constants.
3325 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003326 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003327 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3328 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003329 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003330int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3331
Reid Spencera773bd52006-08-04 18:18:08 +00003332/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3333 inside strings and character constants. */
3334#define FOO(x) 'x'
3335int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3336
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003337int test (int i, double x);
3338struct s1 {int (*f) (int a);};
3339struct s2 {int (*f) (double a);};
3340int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3341int argc;
3342char **argv;
3343int
3344main ()
3345{
3346return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3347 ;
3348 return 0;
3349}
3350_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003351for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3352 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003353do
3354 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003355 rm -f conftest.$ac_objext
3356if { (ac_try="$ac_compile"
3357case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360esac
3361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_compile") 2>conftest.er1
3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3370 { (case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373esac
3374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_try") 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest.$ac_objext'
3380 { (case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383esac
3384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_try") 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003389 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003390else
3391 echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003395fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003396
Reid Spencera773bd52006-08-04 18:18:08 +00003397rm -f core conftest.err conftest.$ac_objext
3398 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399done
Reid Spencera773bd52006-08-04 18:18:08 +00003400rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401CC=$ac_save_CC
3402
3403fi
Reid Spencera773bd52006-08-04 18:18:08 +00003404# AC_CACHE_VAL
3405case "x$ac_cv_prog_cc_c89" in
3406 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003407 { echo "$as_me:$LINENO: result: none needed" >&5
3408echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003409 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003410 { echo "$as_me:$LINENO: result: unsupported" >&5
3411echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003412 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003413 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003414 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3415echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003416esac
3417
John Criswell0c38eaf2003-09-10 15:17:25 +00003418
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003419ac_ext=c
3420ac_cpp='$CPP $CPPFLAGS'
3421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424
3425
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003426ac_ext=c
3427ac_cpp='$CPP $CPPFLAGS'
3428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003431{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3432echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003433# On Suns, sometimes $CPP names a directory.
3434if test -n "$CPP" && test -d "$CPP"; then
3435 CPP=
3436fi
3437if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003438 if test "${ac_cv_prog_CPP+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003440else
3441 # Double quotes because CPP needs to be expanded
3442 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3443 do
3444 ac_preproc_ok=false
3445for ac_c_preproc_warn_flag in '' yes
3446do
3447 # Use a header file that comes with gcc, so configuring glibc
3448 # with a fresh cross-compiler works.
3449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3450 # <limits.h> exists even on freestanding compilers.
3451 # On the NeXT, cc -E runs the code through the compiler's parser,
3452 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003453 cat >conftest.$ac_ext <<_ACEOF
3454/* confdefs.h. */
3455_ACEOF
3456cat confdefs.h >>conftest.$ac_ext
3457cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003458/* end confdefs.h. */
3459#ifdef __STDC__
3460# include <limits.h>
3461#else
3462# include <assert.h>
3463#endif
3464 Syntax error
3465_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003466if { (ac_try="$ac_cpp conftest.$ac_ext"
3467case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470esac
3471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3473 ac_status=$?
3474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } >/dev/null; then
3479 if test -s conftest.err; then
3480 ac_cpp_err=$ac_c_preproc_warn_flag
3481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3482 else
3483 ac_cpp_err=
3484 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003485else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003486 ac_cpp_err=yes
3487fi
3488if test -z "$ac_cpp_err"; then
3489 :
3490else
3491 echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003494 # Broken: fails on valid input.
3495continue
3496fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003497
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003498rm -f conftest.err conftest.$ac_ext
3499
Reid Spencera773bd52006-08-04 18:18:08 +00003500 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003501 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003502 cat >conftest.$ac_ext <<_ACEOF
3503/* confdefs.h. */
3504_ACEOF
3505cat confdefs.h >>conftest.$ac_ext
3506cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003507/* end confdefs.h. */
3508#include <ac_nonexistent.h>
3509_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003510if { (ac_try="$ac_cpp conftest.$ac_ext"
3511case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514esac
3515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3517 ac_status=$?
3518 grep -v '^ *+' conftest.er1 >conftest.err
3519 rm -f conftest.er1
3520 cat conftest.err >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } >/dev/null; then
3523 if test -s conftest.err; then
3524 ac_cpp_err=$ac_c_preproc_warn_flag
3525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3526 else
3527 ac_cpp_err=
3528 fi
3529else
3530 ac_cpp_err=yes
3531fi
3532if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003533 # Broken: success on invalid input.
3534continue
3535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003536 echo "$as_me: failed program was:" >&5
3537sed 's/^/| /' conftest.$ac_ext >&5
3538
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003539 # Passes both tests.
3540ac_preproc_ok=:
3541break
3542fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003543
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003544rm -f conftest.err conftest.$ac_ext
3545
3546done
3547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3548rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003549if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003550 break
3551fi
3552
3553 done
3554 ac_cv_prog_CPP=$CPP
3555
3556fi
3557 CPP=$ac_cv_prog_CPP
3558else
3559 ac_cv_prog_CPP=$CPP
3560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003561{ echo "$as_me:$LINENO: result: $CPP" >&5
3562echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003563ac_preproc_ok=false
3564for ac_c_preproc_warn_flag in '' yes
3565do
3566 # Use a header file that comes with gcc, so configuring glibc
3567 # with a fresh cross-compiler works.
3568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3569 # <limits.h> exists even on freestanding compilers.
3570 # On the NeXT, cc -E runs the code through the compiler's parser,
3571 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003572 cat >conftest.$ac_ext <<_ACEOF
3573/* confdefs.h. */
3574_ACEOF
3575cat confdefs.h >>conftest.$ac_ext
3576cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003577/* end confdefs.h. */
3578#ifdef __STDC__
3579# include <limits.h>
3580#else
3581# include <assert.h>
3582#endif
3583 Syntax error
3584_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003585if { (ac_try="$ac_cpp conftest.$ac_ext"
3586case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589esac
3590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3592 ac_status=$?
3593 grep -v '^ *+' conftest.er1 >conftest.err
3594 rm -f conftest.er1
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } >/dev/null; then
3598 if test -s conftest.err; then
3599 ac_cpp_err=$ac_c_preproc_warn_flag
3600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3601 else
3602 ac_cpp_err=
3603 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003605 ac_cpp_err=yes
3606fi
3607if test -z "$ac_cpp_err"; then
3608 :
3609else
3610 echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003613 # Broken: fails on valid input.
3614continue
3615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003616
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003617rm -f conftest.err conftest.$ac_ext
3618
Reid Spencera773bd52006-08-04 18:18:08 +00003619 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003620 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003621 cat >conftest.$ac_ext <<_ACEOF
3622/* confdefs.h. */
3623_ACEOF
3624cat confdefs.h >>conftest.$ac_ext
3625cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003626/* end confdefs.h. */
3627#include <ac_nonexistent.h>
3628_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003629if { (ac_try="$ac_cpp conftest.$ac_ext"
3630case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633esac
3634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3636 ac_status=$?
3637 grep -v '^ *+' conftest.er1 >conftest.err
3638 rm -f conftest.er1
3639 cat conftest.err >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } >/dev/null; then
3642 if test -s conftest.err; then
3643 ac_cpp_err=$ac_c_preproc_warn_flag
3644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3645 else
3646 ac_cpp_err=
3647 fi
3648else
3649 ac_cpp_err=yes
3650fi
3651if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003652 # Broken: success on invalid input.
3653continue
3654else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003655 echo "$as_me: failed program was:" >&5
3656sed 's/^/| /' conftest.$ac_ext >&5
3657
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003658 # Passes both tests.
3659ac_preproc_ok=:
3660break
3661fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003662
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003663rm -f conftest.err conftest.$ac_ext
3664
3665done
3666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3667rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003668if $ac_preproc_ok; then
3669 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003670else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003671 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3672See \`config.log' for more details." >&5
3673echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3674See \`config.log' for more details." >&2;}
3675 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003676fi
3677
John Criswell7a73b802003-06-30 21:59:07 +00003678ac_ext=c
3679ac_cpp='$CPP $CPPFLAGS'
3680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683
John Criswell7a73b802003-06-30 21:59:07 +00003684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003685{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3686echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3687if test "${ac_cv_path_GREP+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003689else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003690 # Extract the first word of "grep ggrep" to use in msg output
3691if test -z "$GREP"; then
3692set dummy grep ggrep; ac_prog_name=$2
3693if test "${ac_cv_path_GREP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695else
Reid Spencera773bd52006-08-04 18:18:08 +00003696 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003697# Loop through the user's path and test for each of PROGNAME-LIST
3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003699for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003700do
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003703 for ac_prog in grep ggrep; do
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3706 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3707 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003708 # Check for GNU $ac_path_GREP
3709case `"$ac_path_GREP" --version 2>&1` in
3710*GNU*)
3711 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3712*)
3713 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003714 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003715 while :
3716 do
3717 cat "conftest.in" "conftest.in" >"conftest.tmp"
3718 mv "conftest.tmp" "conftest.in"
3719 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003720 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003721 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003723 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003724 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3725 # Best one so far, save it but keep looking for a better one
3726 ac_cv_path_GREP="$ac_path_GREP"
3727 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003728 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003729 # 10*(2^10) chars as input seems more than enough
3730 test $ac_count -gt 10 && break
3731 done
3732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3733esac
3734
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003735
3736 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003737 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003738done
3739
3740done
Reid Spencera773bd52006-08-04 18:18:08 +00003741IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003742
3743
3744fi
3745
3746GREP="$ac_cv_path_GREP"
3747if test -z "$GREP"; then
3748 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3749echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3750 { (exit 1); exit 1; }; }
3751fi
3752
Reid Spencera773bd52006-08-04 18:18:08 +00003753else
3754 ac_cv_path_GREP=$GREP
3755fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003757
Reid Spencera773bd52006-08-04 18:18:08 +00003758fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003759{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3760echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003761 GREP="$ac_cv_path_GREP"
3762
3763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003764{ echo "$as_me:$LINENO: checking for egrep" >&5
3765echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3766if test "${ac_cv_path_EGREP+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003768else
3769 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3770 then ac_cv_path_EGREP="$GREP -E"
3771 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003772 # Extract the first word of "egrep" to use in msg output
3773if test -z "$EGREP"; then
3774set dummy egrep; ac_prog_name=$2
3775if test "${ac_cv_path_EGREP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777else
Reid Spencera773bd52006-08-04 18:18:08 +00003778 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003779# Loop through the user's path and test for each of PROGNAME-LIST
3780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003781for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3782do
3783 IFS=$as_save_IFS
3784 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003785 for ac_prog in egrep; do
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3788 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3789 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003790 # Check for GNU $ac_path_EGREP
3791case `"$ac_path_EGREP" --version 2>&1` in
3792*GNU*)
3793 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3794*)
3795 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003796 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003797 while :
3798 do
3799 cat "conftest.in" "conftest.in" >"conftest.tmp"
3800 mv "conftest.tmp" "conftest.in"
3801 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003802 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003803 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003805 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003806 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3807 # Best one so far, save it but keep looking for a better one
3808 ac_cv_path_EGREP="$ac_path_EGREP"
3809 ac_path_EGREP_max=$ac_count
3810 fi
3811 # 10*(2^10) chars as input seems more than enough
3812 test $ac_count -gt 10 && break
3813 done
3814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3815esac
3816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003817
3818 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003819 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003820done
3821
3822done
Reid Spencera773bd52006-08-04 18:18:08 +00003823IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003824
3825
3826fi
3827
3828EGREP="$ac_cv_path_EGREP"
3829if test -z "$EGREP"; then
3830 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3831echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3832 { (exit 1); exit 1; }; }
3833fi
3834
Reid Spencera773bd52006-08-04 18:18:08 +00003835else
3836 ac_cv_path_EGREP=$EGREP
3837fi
3838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003839
Reid Spencera773bd52006-08-04 18:18:08 +00003840 fi
3841fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003842{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3843echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003844 EGREP="$ac_cv_path_EGREP"
3845
3846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003847{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3848echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3849if test "${ac_cv_header_stdc+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003851else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003852 cat >conftest.$ac_ext <<_ACEOF
3853/* confdefs.h. */
3854_ACEOF
3855cat confdefs.h >>conftest.$ac_ext
3856cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003857/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003858#include <stdlib.h>
3859#include <stdarg.h>
3860#include <string.h>
3861#include <float.h>
3862
John Criswell0c38eaf2003-09-10 15:17:25 +00003863int
3864main ()
3865{
3866
3867 ;
3868 return 0;
3869}
John Criswell7a73b802003-06-30 21:59:07 +00003870_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003871rm -f conftest.$ac_objext
3872if { (ac_try="$ac_compile"
3873case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3876esac
3877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3878 (eval "$ac_compile") 2>conftest.er1
3879 ac_status=$?
3880 grep -v '^ *+' conftest.er1 >conftest.err
3881 rm -f conftest.er1
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } &&
3885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3886 { (case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3889esac
3890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891 (eval "$ac_try") 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; } &&
3895 { ac_try='test -s conftest.$ac_objext'
3896 { (case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899esac
3900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_try") 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003905 ac_cv_header_stdc=yes
3906else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003907 echo "$as_me: failed program was:" >&5
3908sed 's/^/| /' conftest.$ac_ext >&5
3909
3910 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003911fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003912
Reid Spencera773bd52006-08-04 18:18:08 +00003913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003914
3915if test $ac_cv_header_stdc = yes; then
3916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003917 cat >conftest.$ac_ext <<_ACEOF
3918/* confdefs.h. */
3919_ACEOF
3920cat confdefs.h >>conftest.$ac_ext
3921cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003922/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003923#include <string.h>
3924
3925_ACEOF
3926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003927 $EGREP "memchr" >/dev/null 2>&1; then
3928 :
John Criswell7a73b802003-06-30 21:59:07 +00003929else
3930 ac_cv_header_stdc=no
3931fi
3932rm -f conftest*
3933
3934fi
3935
3936if test $ac_cv_header_stdc = yes; then
3937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003938 cat >conftest.$ac_ext <<_ACEOF
3939/* confdefs.h. */
3940_ACEOF
3941cat confdefs.h >>conftest.$ac_ext
3942cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003943/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003944#include <stdlib.h>
3945
3946_ACEOF
3947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003948 $EGREP "free" >/dev/null 2>&1; then
3949 :
John Criswell7a73b802003-06-30 21:59:07 +00003950else
3951 ac_cv_header_stdc=no
3952fi
3953rm -f conftest*
3954
3955fi
3956
3957if test $ac_cv_header_stdc = yes; then
3958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003959 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003960 :
3961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003962 cat >conftest.$ac_ext <<_ACEOF
3963/* confdefs.h. */
3964_ACEOF
3965cat confdefs.h >>conftest.$ac_ext
3966cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003967/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003968#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003969#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003970#if ((' ' & 0x0FF) == 0x020)
3971# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3972# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3973#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003974# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003975 (('a' <= (c) && (c) <= 'i') \
3976 || ('j' <= (c) && (c) <= 'r') \
3977 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003978# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3979#endif
3980
3981#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3982int
3983main ()
3984{
3985 int i;
3986 for (i = 0; i < 256; i++)
3987 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003988 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003989 return 2;
3990 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003991}
3992_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003993rm -f conftest$ac_exeext
3994if { (ac_try="$ac_link"
3995case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998esac
3999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_link") 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4004 { (case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007esac
4008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_try") 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 :
John Criswell7a73b802003-06-30 21:59:07 +00004014else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004015 echo "$as_me: program exited with status $ac_status" >&5
4016echo "$as_me: failed program was:" >&5
4017sed 's/^/| /' conftest.$ac_ext >&5
4018
4019( exit $ac_status )
4020ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004021fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004022rm -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 +00004023fi
4024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004025
John Criswell7a73b802003-06-30 21:59:07 +00004026fi
4027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004028{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4029echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004030if test $ac_cv_header_stdc = yes; then
4031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004032cat >>confdefs.h <<\_ACEOF
4033#define STDC_HEADERS 1
4034_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004035
4036fi
4037
Reid Spencera773bd52006-08-04 18:18:08 +00004038# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004039
4040
4041
4042
4043
4044
4045
4046
4047
Reid Spencera773bd52006-08-04 18:18:08 +00004048for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4049 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004050do
4051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4052{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056else
4057 cat >conftest.$ac_ext <<_ACEOF
4058/* confdefs.h. */
4059_ACEOF
4060cat confdefs.h >>conftest.$ac_ext
4061cat >>conftest.$ac_ext <<_ACEOF
4062/* end confdefs.h. */
4063$ac_includes_default
4064
4065#include <$ac_header>
4066_ACEOF
4067rm -f conftest.$ac_objext
4068if { (ac_try="$ac_compile"
4069case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072esac
4073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4075 ac_status=$?
4076 grep -v '^ *+' conftest.er1 >conftest.err
4077 rm -f conftest.er1
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4082 { (case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085esac
4086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_try") 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; } &&
4091 { ac_try='test -s conftest.$ac_objext'
4092 { (case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095esac
4096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_try") 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 eval "$as_ac_Header=yes"
4102else
4103 echo "$as_me: failed program was:" >&5
4104sed 's/^/| /' conftest.$ac_ext >&5
4105
4106 eval "$as_ac_Header=no"
4107fi
4108
4109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110fi
4111ac_res=`eval echo '${'$as_ac_Header'}'`
4112 { echo "$as_me:$LINENO: result: $ac_res" >&5
4113echo "${ECHO_T}$ac_res" >&6; }
4114if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004115 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004116#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004117_ACEOF
4118
4119fi
4120
4121done
4122
4123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004124{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4125echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4126if test "${ac_cv_c_bigendian+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004129 # See if sys/param.h defines the BYTE_ORDER macro.
4130cat >conftest.$ac_ext <<_ACEOF
4131/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004132_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004135/* end confdefs.h. */
4136#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004137#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004138
4139int
4140main ()
4141{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004142#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4143 bogus endian macros
4144#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004145
4146 ;
4147 return 0;
4148}
4149_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004150rm -f conftest.$ac_objext
4151if { (ac_try="$ac_compile"
4152case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155esac
4156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_compile") 2>conftest.er1
4158 ac_status=$?
4159 grep -v '^ *+' conftest.er1 >conftest.err
4160 rm -f conftest.er1
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4165 { (case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168esac
4169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_try") 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; } &&
4174 { ac_try='test -s conftest.$ac_objext'
4175 { (case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178esac
4179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_try") 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004184 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004185cat >conftest.$ac_ext <<_ACEOF
4186/* confdefs.h. */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004190/* end confdefs.h. */
4191#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004192#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004193
4194int
4195main ()
4196{
4197#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004198 not big endian
4199#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004200
4201 ;
4202 return 0;
4203}
4204_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004205rm -f conftest.$ac_objext
4206if { (ac_try="$ac_compile"
4207case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210esac
4211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_compile") 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } &&
4219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4220 { (case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223esac
4224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_try") 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233esac
4234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_try") 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004239 ac_cv_c_bigendian=yes
4240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004241 echo "$as_me: failed program was:" >&5
4242sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004243
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004244 ac_cv_c_bigendian=no
4245fi
4246
4247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248else
4249 echo "$as_me: failed program was:" >&5
4250sed 's/^/| /' conftest.$ac_ext >&5
4251
4252 # It does not; compile a test program.
4253if test "$cross_compiling" = yes; then
4254 # try to guess the endianness by grepping values into an object file
4255 ac_cv_c_bigendian=unknown
4256 cat >conftest.$ac_ext <<_ACEOF
4257/* confdefs.h. */
4258_ACEOF
4259cat confdefs.h >>conftest.$ac_ext
4260cat >>conftest.$ac_ext <<_ACEOF
4261/* end confdefs.h. */
4262short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4263short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4264void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4265short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4266short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4267void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004268int
4269main ()
4270{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004271 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004272 ;
4273 return 0;
4274}
4275_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004276rm -f conftest.$ac_objext
4277if { (ac_try="$ac_compile"
4278case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281esac
4282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_compile") 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
4290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4291 { (case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294esac
4295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest.$ac_objext'
4301 { (case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_try") 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004311 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004312fi
4313if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4314 if test "$ac_cv_c_bigendian" = unknown; then
4315 ac_cv_c_bigendian=no
4316 else
4317 # finding both strings is unlikely to happen, but who knows?
4318 ac_cv_c_bigendian=unknown
4319 fi
4320fi
Reid Spencera773bd52006-08-04 18:18:08 +00004321else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004322 echo "$as_me: failed program was:" >&5
4323sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004324
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004325
Torok Edwin871384f2010-01-26 08:50:50 +00004326fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004327
Reid Spencera773bd52006-08-04 18:18:08 +00004328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004330 cat >conftest.$ac_ext <<_ACEOF
4331/* confdefs.h. */
4332_ACEOF
4333cat confdefs.h >>conftest.$ac_ext
4334cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004335/* end confdefs.h. */
4336$ac_includes_default
4337int
4338main ()
4339{
4340
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004341 /* Are we little or big endian? From Harbison&Steele. */
4342 union
4343 {
4344 long int l;
4345 char c[sizeof (long int)];
4346 } u;
4347 u.l = 1;
4348 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004349
4350 ;
4351 return 0;
4352}
4353_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004354rm -f conftest$ac_exeext
4355if { (ac_try="$ac_link"
4356case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359esac
4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_link") 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4365 { (case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368esac
4369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_try") 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004374 ac_cv_c_bigendian=no
4375else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004376 echo "$as_me: program exited with status $ac_status" >&5
4377echo "$as_me: failed program was:" >&5
4378sed 's/^/| /' conftest.$ac_ext >&5
4379
4380( exit $ac_status )
4381ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004382fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004383rm -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 +00004384fi
4385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004386
Reid Spencera773bd52006-08-04 18:18:08 +00004387fi
4388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390fi
4391{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4392echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4393case $ac_cv_c_bigendian in
4394 yes)
4395 ENDIAN=big
4396 ;;
4397 no)
4398 ENDIAN=little
4399 ;;
4400 *)
4401 { { echo "$as_me:$LINENO: error: unknown endianness
4402presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4403echo "$as_me: error: unknown endianness
4404presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4405 { (exit 1); exit 1; }; } ;;
4406esac
Reid Spencera773bd52006-08-04 18:18:08 +00004407
4408
4409if test "$cross_compiling" = yes; then
4410 LLVM_CROSS_COMPILING=1
4411
4412
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004413{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4414echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4415if test "${ac_cv_build_exeext+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004417else
4418 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4419 ac_cv_build_exeext=.exe
4420else
4421 ac_build_prefix=${build_alias}-
4422
4423 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4424set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004429else
4430 if test -n "$BUILD_CC"; then
4431 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 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 +00004440 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004442 break 2
4443 fi
4444done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004445done
Reid Spencera773bd52006-08-04 18:18:08 +00004446IFS=$as_save_IFS
4447
4448fi
4449fi
4450BUILD_CC=$ac_cv_prog_BUILD_CC
4451if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004452 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004455 { echo "$as_me:$LINENO: result: no" >&5
4456echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004457fi
4458
4459
4460 if test -z "$BUILD_CC"; then
4461 # Extract the first word of "gcc", so it can be a program name with args.
4462set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004467else
4468 if test -n "$BUILD_CC"; then
4469 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470else
4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH
4473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 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 +00004478 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004480 break 2
4481 fi
4482done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004483done
Reid Spencera773bd52006-08-04 18:18:08 +00004484IFS=$as_save_IFS
4485
4486fi
4487fi
4488BUILD_CC=$ac_cv_prog_BUILD_CC
4489if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004490 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4491echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004492else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004493 { echo "$as_me:$LINENO: result: no" >&5
4494echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004495fi
4496
4497
4498 if test -z "$BUILD_CC"; then
4499 # Extract the first word of "cc", so it can be a program name with args.
4500set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4503if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004505else
4506 if test -n "$BUILD_CC"; then
4507 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4508else
4509 ac_prog_rejected=no
4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 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 +00004517 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4518 ac_prog_rejected=yes
4519 continue
4520 fi
4521 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004523 break 2
4524 fi
4525done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004526done
Reid Spencera773bd52006-08-04 18:18:08 +00004527IFS=$as_save_IFS
4528
4529if test $ac_prog_rejected = yes; then
4530 # We found a bogon in the path, so make sure we never use it.
4531 set dummy $ac_cv_prog_BUILD_CC
4532 shift
4533 if test $# != 0; then
4534 # We chose a different compiler from the bogus one.
4535 # However, it has the same basename, so the bogon will be chosen
4536 # first if we set BUILD_CC to just the basename; use the full file name.
4537 shift
4538 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4539 fi
4540fi
4541fi
4542fi
4543BUILD_CC=$ac_cv_prog_BUILD_CC
4544if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004545 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4546echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004547else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004548 { echo "$as_me:$LINENO: result: no" >&5
4549echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004550fi
4551
4552
4553 fi
4554 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004555 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4556echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4557 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004558 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4559 rm -f conftest*
4560 echo 'int main () { return 0; }' > conftest.$ac_ext
4561 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004562 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004563 (eval $ac_build_link) 2>&5
4564 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004567 for file in conftest.*; do
4568 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004569 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004570 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4571 esac
4572 done
4573 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004574 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4575echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4576 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004577 fi
4578 rm -f conftest*
4579 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4580fi
4581fi
4582
4583BUILD_EXEEXT=""
4584test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004585{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4586echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004587ac_build_exeext=$BUILD_EXEEXT
4588
Jim Grosbach673612e2008-10-02 22:56:44 +00004589 ac_build_prefix=${build_alias}-
4590 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4591set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004596else
4597 if test -n "$BUILD_CXX"; then
4598 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 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 +00004607 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004609 break 2
4610 fi
4611done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612done
Jim Grosbach673612e2008-10-02 22:56:44 +00004613IFS=$as_save_IFS
4614
4615fi
4616fi
4617BUILD_CXX=$ac_cv_prog_BUILD_CXX
4618if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004619 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4620echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004622 { echo "$as_me:$LINENO: result: no" >&5
4623echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004624fi
4625
4626
4627 if test -z "$BUILD_CXX"; then
4628 # Extract the first word of "g++", so it can be a program name with args.
4629set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004634else
4635 if test -n "$BUILD_CXX"; then
4636 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4637else
4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH
4640do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 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 +00004645 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004647 break 2
4648 fi
4649done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004650done
Jim Grosbach673612e2008-10-02 22:56:44 +00004651IFS=$as_save_IFS
4652
4653fi
4654fi
4655BUILD_CXX=$ac_cv_prog_BUILD_CXX
4656if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004657 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4658echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004659else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004660 { echo "$as_me:$LINENO: result: no" >&5
4661echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004662fi
4663
4664
4665 if test -z "$BUILD_CXX"; then
4666 # Extract the first word of "c++", so it can be a program name with args.
4667set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004672else
4673 if test -n "$BUILD_CXX"; then
4674 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4675else
4676 ac_prog_rejected=no
4677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678for as_dir in $PATH
4679do
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 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 +00004684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4685 ac_prog_rejected=yes
4686 continue
4687 fi
4688 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004690 break 2
4691 fi
4692done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004693done
Jim Grosbach673612e2008-10-02 22:56:44 +00004694IFS=$as_save_IFS
4695
4696if test $ac_prog_rejected = yes; then
4697 # We found a bogon in the path, so make sure we never use it.
4698 set dummy $ac_cv_prog_BUILD_CXX
4699 shift
4700 if test $# != 0; then
4701 # We chose a different compiler from the bogus one.
4702 # However, it has the same basename, so the bogon will be chosen
4703 # first if we set BUILD_CXX to just the basename; use the full file name.
4704 shift
4705 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4706 fi
4707fi
4708fi
4709fi
4710BUILD_CXX=$ac_cv_prog_BUILD_CXX
4711if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004712 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4713echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004714else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715 { echo "$as_me:$LINENO: result: no" >&5
4716echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004717fi
4718
4719
4720 fi
4721 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004722else
4723 LLVM_CROSS_COMPILING=0
4724
4725fi
4726
Dan Gohman56fb5f92010-08-04 16:25:01 +00004727if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004728 cvsbuild="yes"
4729 optimize="no"
4730 CVSBUILD=CVSBUILD=1
4731
4732else
4733 cvsbuild="no"
4734 optimize="yes"
4735fi
4736
4737
4738# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004739if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004740 enableval=$enable_optimized;
4741else
4742 enableval=$optimize
4743fi
4744
4745if test ${enableval} = "no" ; then
4746 ENABLE_OPTIMIZED=
4747
4748else
4749 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4750
4751fi
4752
David Greene2a5a12c2009-04-17 14:50:39 +00004753# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004754if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004755 enableval=$enable_profiling;
4756else
4757 enableval="no"
4758fi
4759
4760if test ${enableval} = "no" ; then
4761 ENABLE_PROFILING=
4762
4763else
4764 ENABLE_PROFILING=ENABLE_PROFILING=1
4765
4766fi
4767
Reid Spencera773bd52006-08-04 18:18:08 +00004768# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004769if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004770 enableval=$enable_assertions;
4771else
4772 enableval="yes"
4773fi
4774
4775if test ${enableval} = "yes" ; then
4776 DISABLE_ASSERTIONS=
4777
4778else
4779 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4780
4781fi
4782
David Greenea696d242007-06-28 19:36:08 +00004783# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004784if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004785 enableval=$enable_expensive_checks;
4786else
4787 enableval="no"
4788fi
4789
4790if test ${enableval} = "yes" ; then
4791 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4792
4793 EXPENSIVE_CHECKS=yes
4794
4795else
4796 ENABLE_EXPENSIVE_CHECKS=
4797
4798 EXPENSIVE_CHECKS=no
4799
4800fi
4801
Reid Spencer8b2e1412006-11-17 03:32:33 +00004802# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004803if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004804 enableval=$enable_debug_runtime;
4805else
4806 enableval=no
4807fi
4808
4809if test ${enableval} = "no" ; then
4810 DEBUG_RUNTIME=
4811
4812else
4813 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4814
4815fi
4816
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004817# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004818if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004819 enableval=$enable_debug_symbols;
4820else
4821 enableval=no
4822fi
4823
4824if test ${enableval} = "no" ; then
4825 DEBUG_SYMBOLS=
4826
4827else
4828 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4829
4830fi
4831
Reid Spencera773bd52006-08-04 18:18:08 +00004832# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004833if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004834 enableval=$enable_jit;
4835else
4836 enableval=default
4837fi
4838
4839if test ${enableval} = "no"
4840then
4841 JIT=
4842
4843else
4844 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004845 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004846 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004847 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004848 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004849 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004850 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004851 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004852 ;;
Chris Lattnerc476ed92010-11-14 18:24:41 +00004853 Alpha) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004854 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004855 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004856 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004857 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004858 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004859 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004860 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004861 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004862 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004863 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004864 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004865 Blackfin) TARGET_HAS_JIT=0
4866 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004867 MBlaze) TARGET_HAS_JIT=0
4868 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004869 PTX) TARGET_HAS_JIT=0
4870 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004871 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004872 ;;
4873 esac
4874fi
4875
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00004876# Check whether --enable-docs was given.
4877if test "${enable_docs+set}" = set; then
4878 enableval=$enable_docs;
4879else
4880 enableval=default
4881fi
4882
4883case "$enableval" in
4884 yes) ENABLE_DOCS=1
4885 ;;
4886 no) ENABLE_DOCS=0
4887 ;;
4888 default) ENABLE_DOCS=1
4889 ;;
4890 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4891echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4892 { (exit 1); exit 1; }; } ;;
4893esac
4894
Reid Spencera773bd52006-08-04 18:18:08 +00004895# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004896if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004897 enableval=$enable_doxygen;
4898else
4899 enableval=default
4900fi
4901
4902case "$enableval" in
4903 yes) ENABLE_DOXYGEN=1
4904 ;;
4905 no) ENABLE_DOXYGEN=0
4906 ;;
4907 default) ENABLE_DOXYGEN=0
4908 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004909 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4910echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4911 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004912esac
4913
4914# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004915if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004916 enableval=$enable_threads;
4917else
Reid Spencer65c5d752006-11-05 17:08:18 +00004918 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004919fi
4920
4921case "$enableval" in
4922 yes) ENABLE_THREADS=1
4923 ;;
4924 no) ENABLE_THREADS=0
4925 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004926 default) ENABLE_THREADS=1
4927 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004928 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4929echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4930 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004931esac
4932
Owen Andersona8603702009-05-19 22:18:56 +00004933cat >>confdefs.h <<_ACEOF
4934#define ENABLE_THREADS $ENABLE_THREADS
4935_ACEOF
4936
4937
Reid Spencer89b0d992006-12-16 22:07:52 +00004938# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004939if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004940 enableval=$enable_pic;
4941else
4942 enableval=default
4943fi
4944
4945case "$enableval" in
4946 yes) ENABLE_PIC=1
4947 ;;
4948 no) ENABLE_PIC=0
4949 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004950 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004951 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004952 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4953echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4954 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004955esac
4956
4957cat >>confdefs.h <<_ACEOF
4958#define ENABLE_PIC $ENABLE_PIC
4959_ACEOF
4960
4961
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004962# Check whether --enable-shared was given.
4963if test "${enable_shared+set}" = set; then
4964 enableval=$enable_shared;
4965else
4966 enableval=default
4967fi
4968
4969case "$enableval" in
4970 yes) ENABLE_SHARED=1
4971 ;;
4972 no) ENABLE_SHARED=0
4973 ;;
4974 default) ENABLE_SHARED=0
4975 ;;
4976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4977echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4978 { (exit 1); exit 1; }; } ;;
4979esac
4980
Daniel Dunbardd464df2010-05-10 20:11:56 +00004981# Check whether --enable-timestamps was given.
4982if test "${enable_timestamps+set}" = set; then
4983 enableval=$enable_timestamps;
4984else
4985 enableval=default
4986fi
4987
4988case "$enableval" in
4989 yes) ENABLE_TIMESTAMPS=1
4990 ;;
4991 no) ENABLE_TIMESTAMPS=0
4992 ;;
4993 default) ENABLE_TIMESTAMPS=1
4994 ;;
4995 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4996echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4997 { (exit 1); exit 1; }; } ;;
4998esac
4999
5000cat >>confdefs.h <<_ACEOF
5001#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5002_ACEOF
5003
5004
Reid Spencera773bd52006-08-04 18:18:08 +00005005TARGETS_TO_BUILD=""
5006# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005007if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005008 enableval=$enable_targets;
5009else
5010 enableval=all
5011fi
5012
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005013if test "$enableval" = host-only ; then
5014 enableval=host
5015fi
Reid Spencera773bd52006-08-04 18:18:08 +00005016case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00005017 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005018 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5019 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005020 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5021 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5022 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5023 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5024 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5025 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5026 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5027 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005028 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5029 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5030 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5031 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5032 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005033 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005034 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005035 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005036 host) case "$llvm_cv_target_arch" in
5037 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5038 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5039 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5040 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5041 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5042 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5043 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005044 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005045 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005046 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5047 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005048 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005049 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005050 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005051 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5052echo "$as_me: error: Can not set target to build" >&2;}
5053 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005054 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005055 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5056echo "$as_me: error: Unrecognized target $a_target" >&2;}
5057 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005058 esac
5059 done
5060 ;;
5061esac
Reid Spencera773bd52006-08-04 18:18:08 +00005062TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5063
5064
Douglas Gregor0711c302009-06-17 00:43:20 +00005065# Determine whether we are building LLVM support for the native architecture.
5066# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5067for a_target in $TARGETS_TO_BUILD; do
5068 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5069
5070cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005071#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5072_ACEOF
5073
5074 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5075 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5076 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5077
5078cat >>confdefs.h <<_ACEOF
5079#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005080_ACEOF
5081
5082
5083cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005084#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5085_ACEOF
5086
5087
5088cat >>confdefs.h <<_ACEOF
5089#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005090_ACEOF
5091
5092 fi
5093done
5094
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005095# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5096# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005097LLVM_ENUM_TARGETS=""
5098LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005099LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005100LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005101for target_to_build in $TARGETS_TO_BUILD; do
5102 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5103 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5104 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5105 fi
Jim Grosbach7ac16092010-10-01 22:39:28 +00005106 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5107 if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5108 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5109 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005110 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5111 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5112 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005113 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5114 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5115 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005116done
5117
5118
5119
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005120
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005121
Reid Spencer65c5d752006-11-05 17:08:18 +00005122# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005123if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005124 enableval=$enable_cbe_printf_a;
5125else
5126 enableval=default
5127fi
5128
5129case "$enableval" in
5130 yes) ENABLE_CBE_PRINTF_A=1
5131 ;;
5132 no) ENABLE_CBE_PRINTF_A=0
5133 ;;
5134 default) ENABLE_CBE_PRINTF_A=1
5135 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005136 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5137echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5138 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005139esac
5140
5141cat >>confdefs.h <<_ACEOF
5142#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5143_ACEOF
5144
5145
Reid Spencera773bd52006-08-04 18:18:08 +00005146
5147# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005148if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005149 withval=$with_llvmgccdir;
5150else
5151 withval=default
5152fi
5153
5154case "$withval" in
5155 default) WITH_LLVMGCCDIR=default ;;
5156 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005157 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5158echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5159 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005160esac
5161
5162
Devang Patel5d28b882007-12-04 22:54:47 +00005163# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005164if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005165 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5166 WITH_LLVMGCCDIR=""
5167fi
5168
5169
5170
5171# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005172if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005173 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5174 WITH_LLVMGCCDIR=""
5175fi
5176
Douglas Gregor01746742009-05-11 18:05:52 +00005177
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005178if test -n "$LLVMGCC"; then
5179 LLVMGCCCOMMAND="$LLVMGCC"
5180fi
5181
5182if test -n "$LLVMGXX"; then
5183 LLVMGXXCOMMAND="$LLVMGXX"
5184fi
Devang Patel5d28b882007-12-04 22:54:47 +00005185
5186if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005187 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5188echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5189 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005190fi
5191
5192if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005193 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5194echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5195 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005196fi
5197
5198
Daniel Dunbar98515672010-02-23 10:00:49 +00005199# Check whether --with-clang was given.
5200if test "${with_clang+set}" = set; then
5201 withval=$with_clang;
5202else
5203 with_clang=default
5204fi
5205
5206
5207
5208# Check whether --with-built-clang was given.
5209if test "${with_built_clang+set}" = set; then
5210 withval=$with_built_clang;
5211else
5212 with_built_clang=check
5213fi
5214
5215
5216{ echo "$as_me:$LINENO: checking clang compiler" >&5
5217echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5218WITH_CLANGPATH=""
5219WITH_BUILT_CLANG=0
5220if test "$with_clang" != "default"; then
5221 WITH_CLANGPATH="$with_clang"
5222 if ! test -x "$WITH_CLANGPATH"; then
5223 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5224echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5225 { (exit 1); exit 1; }; }
5226 fi
5227elif test "$with_built_clang" = "yes"; then
5228 WITH_BUILT_CLANG=1
5229elif test "$with_built_clang" = "no"; then
5230 WITH_BUILT_CLANG=0
5231else
5232 if test "$with_built_clang" != "check"; then
5233 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5234echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5235 { (exit 1); exit 1; }; }
5236 fi
5237
5238 if test -f ${srcdir}/tools/clang/README.txt; then
5239 WITH_BUILT_CLANG=1
5240 fi
5241fi
5242
5243if ! test -z "$WITH_CLANGPATH"; then
5244 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5245echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5246 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5247elif test "$WITH_BUILT_CLANG" = "1"; then
5248 { echo "$as_me:$LINENO: result: built" >&5
5249echo "${ECHO_T}built" >&6; }
5250else
5251 { echo "$as_me:$LINENO: result: none" >&5
5252echo "${ECHO_T}none" >&6; }
5253fi
5254CLANGPATH=$WITH_CLANGPATH
5255
5256CLANGXXPATH=$WITH_CLANGXXPATH
5257
5258ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5259
5260
5261
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005262# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005263if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005264 withval=$with_optimize_option;
5265else
5266 withval=default
5267fi
5268
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005269{ echo "$as_me:$LINENO: checking optimization flags" >&5
5270echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005271case "$withval" in
5272 default)
5273 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005274 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005275 MingW) optimize_option=-O2 ;;
5276 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005277 esac ;;
5278 *) optimize_option="$withval" ;;
5279esac
5280OPTIMIZE_OPTION=$optimize_option
5281
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005282{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5283echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005284
5285
Reid Spencera773bd52006-08-04 18:18:08 +00005286# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005287if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005288 withval=$with_extra_options;
5289else
5290 withval=default
5291fi
5292
5293case "$withval" in
5294 default) EXTRA_OPTIONS= ;;
5295 *) EXTRA_OPTIONS=$withval ;;
5296esac
5297EXTRA_OPTIONS=$EXTRA_OPTIONS
5298
5299
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005300# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005301if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005302 enableval=$enable_bindings;
5303else
5304 enableval=default
5305fi
5306
5307BINDINGS_TO_BUILD=""
5308case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005309 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005310 all ) BINDINGS_TO_BUILD="ocaml" ;;
5311 none | no) BINDINGS_TO_BUILD="" ;;
5312 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5313 case "$a_binding" in
5314 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005315 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5316echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5317 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005318 esac
5319 done
5320 ;;
5321esac
5322
Reid Spencera773bd52006-08-04 18:18:08 +00005323
Gordon Henriksenf0915682007-10-02 16:42:22 +00005324# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005325if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005326 withval=$with_ocaml_libdir;
5327else
5328 withval=auto
5329fi
5330
5331case "$withval" in
5332 auto) with_ocaml_libdir="$withval" ;;
5333 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005334 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5335echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5336 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005337esac
5338
5339
Chandler Carruth6b241162010-10-19 08:21:25 +00005340# Check whether --with-clang-resource-dir was given.
5341if test "${with_clang_resource_dir+set}" = set; then
5342 withval=$with_clang_resource_dir;
5343else
5344 withval=""
5345fi
5346
5347
5348cat >>confdefs.h <<_ACEOF
5349#define CLANG_RESOURCE_DIR "$withval"
5350_ACEOF
5351
5352
5353
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005354# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005355if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005356 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005357else
5358 withval=""
5359fi
5360
5361
5362cat >>confdefs.h <<_ACEOF
5363#define C_INCLUDE_DIRS "$withval"
5364_ACEOF
5365
5366
5367
Rafael Espindola420d23c2009-11-16 19:46:55 +00005368# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005369if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005370 withval=$with_cxx_include_root;
5371else
5372 withval=""
5373fi
5374
5375
5376cat >>confdefs.h <<_ACEOF
5377#define CXX_INCLUDE_ROOT "$withval"
5378_ACEOF
5379
5380
5381
5382# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005383if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005384 withval=$with_cxx_include_arch;
5385else
5386 withval=""
5387fi
5388
5389
5390cat >>confdefs.h <<_ACEOF
5391#define CXX_INCLUDE_ARCH "$withval"
5392_ACEOF
5393
5394
5395
5396# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005397if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005398 withval=$with_cxx_include_32bit_dir;
5399else
5400 withval=""
5401fi
5402
5403
5404cat >>confdefs.h <<_ACEOF
5405#define CXX_INCLUDE_32BIT_DIR "$withval"
5406_ACEOF
5407
5408
5409
5410# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005411if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005412 withval=$with_cxx_include_64bit_dir;
5413else
5414 withval=""
5415fi
5416
5417
5418cat >>confdefs.h <<_ACEOF
5419#define CXX_INCLUDE_64BIT_DIR "$withval"
5420_ACEOF
5421
5422
5423
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005424# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005425if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005426 withval=$with_binutils_include;
5427else
5428 withval=default
5429fi
5430
5431case "$withval" in
5432 default) WITH_BINUTILS_INCDIR=default ;;
5433 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005434 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5435echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5436 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005437esac
5438if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5439 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5440
5441 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5442 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005443 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5444echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5445 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005446 fi
5447fi
5448
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005449# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005450if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005451 enableval=$enable_libffi; case "$enableval" in
5452 yes) llvm_cv_enable_libffi="yes" ;;
5453 no) llvm_cv_enable_libffi="no" ;;
5454 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005455echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5456 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005457 esac
5458else
5459 llvm_cv_enable_libffi=no
5460fi
5461
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005462
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005463
Reid Spencera773bd52006-08-04 18:18:08 +00005464ac_ext=c
5465ac_cpp='$CPP $CPPFLAGS'
5466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005469{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5470echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005471# On Suns, sometimes $CPP names a directory.
5472if test -n "$CPP" && test -d "$CPP"; then
5473 CPP=
5474fi
5475if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005476 if test "${ac_cv_prog_CPP+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005478else
5479 # Double quotes because CPP needs to be expanded
5480 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5481 do
5482 ac_preproc_ok=false
5483for ac_c_preproc_warn_flag in '' yes
5484do
5485 # Use a header file that comes with gcc, so configuring glibc
5486 # with a fresh cross-compiler works.
5487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5488 # <limits.h> exists even on freestanding compilers.
5489 # On the NeXT, cc -E runs the code through the compiler's parser,
5490 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005491 cat >conftest.$ac_ext <<_ACEOF
5492/* confdefs.h. */
5493_ACEOF
5494cat confdefs.h >>conftest.$ac_ext
5495cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005496/* end confdefs.h. */
5497#ifdef __STDC__
5498# include <limits.h>
5499#else
5500# include <assert.h>
5501#endif
5502 Syntax error
5503_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005504if { (ac_try="$ac_cpp conftest.$ac_ext"
5505case "(($ac_try" in
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5508esac
5509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5511 ac_status=$?
5512 grep -v '^ *+' conftest.er1 >conftest.err
5513 rm -f conftest.er1
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } >/dev/null; then
5517 if test -s conftest.err; then
5518 ac_cpp_err=$ac_c_preproc_warn_flag
5519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5520 else
5521 ac_cpp_err=
5522 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005523else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005524 ac_cpp_err=yes
5525fi
5526if test -z "$ac_cpp_err"; then
5527 :
5528else
5529 echo "$as_me: failed program was:" >&5
5530sed 's/^/| /' conftest.$ac_ext >&5
5531
Reid Spencera773bd52006-08-04 18:18:08 +00005532 # Broken: fails on valid input.
5533continue
5534fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005535
Reid Spencera773bd52006-08-04 18:18:08 +00005536rm -f conftest.err conftest.$ac_ext
5537
5538 # OK, works on sane cases. Now check whether nonexistent headers
5539 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005540 cat >conftest.$ac_ext <<_ACEOF
5541/* confdefs.h. */
5542_ACEOF
5543cat confdefs.h >>conftest.$ac_ext
5544cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005545/* end confdefs.h. */
5546#include <ac_nonexistent.h>
5547_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005548if { (ac_try="$ac_cpp conftest.$ac_ext"
5549case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552esac
5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } >/dev/null; then
5561 if test -s conftest.err; then
5562 ac_cpp_err=$ac_c_preproc_warn_flag
5563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5564 else
5565 ac_cpp_err=
5566 fi
5567else
5568 ac_cpp_err=yes
5569fi
5570if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005571 # Broken: success on invalid input.
5572continue
5573else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005574 echo "$as_me: failed program was:" >&5
5575sed 's/^/| /' conftest.$ac_ext >&5
5576
Reid Spencera773bd52006-08-04 18:18:08 +00005577 # Passes both tests.
5578ac_preproc_ok=:
5579break
5580fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005581
Reid Spencera773bd52006-08-04 18:18:08 +00005582rm -f conftest.err conftest.$ac_ext
5583
5584done
5585# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5586rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005587if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005588 break
5589fi
5590
5591 done
5592 ac_cv_prog_CPP=$CPP
5593
5594fi
5595 CPP=$ac_cv_prog_CPP
5596else
5597 ac_cv_prog_CPP=$CPP
5598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005599{ echo "$as_me:$LINENO: result: $CPP" >&5
5600echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005601ac_preproc_ok=false
5602for ac_c_preproc_warn_flag in '' yes
5603do
5604 # Use a header file that comes with gcc, so configuring glibc
5605 # with a fresh cross-compiler works.
5606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5607 # <limits.h> exists even on freestanding compilers.
5608 # On the NeXT, cc -E runs the code through the compiler's parser,
5609 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005610 cat >conftest.$ac_ext <<_ACEOF
5611/* confdefs.h. */
5612_ACEOF
5613cat confdefs.h >>conftest.$ac_ext
5614cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005615/* end confdefs.h. */
5616#ifdef __STDC__
5617# include <limits.h>
5618#else
5619# include <assert.h>
5620#endif
5621 Syntax error
5622_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005623if { (ac_try="$ac_cpp conftest.$ac_ext"
5624case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627esac
5628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5630 ac_status=$?
5631 grep -v '^ *+' conftest.er1 >conftest.err
5632 rm -f conftest.er1
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } >/dev/null; then
5636 if test -s conftest.err; then
5637 ac_cpp_err=$ac_c_preproc_warn_flag
5638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5639 else
5640 ac_cpp_err=
5641 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005642else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005643 ac_cpp_err=yes
5644fi
5645if test -z "$ac_cpp_err"; then
5646 :
5647else
5648 echo "$as_me: failed program was:" >&5
5649sed 's/^/| /' conftest.$ac_ext >&5
5650
Reid Spencera773bd52006-08-04 18:18:08 +00005651 # Broken: fails on valid input.
5652continue
5653fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005654
Reid Spencera773bd52006-08-04 18:18:08 +00005655rm -f conftest.err conftest.$ac_ext
5656
5657 # OK, works on sane cases. Now check whether nonexistent headers
5658 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005659 cat >conftest.$ac_ext <<_ACEOF
5660/* confdefs.h. */
5661_ACEOF
5662cat confdefs.h >>conftest.$ac_ext
5663cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005664/* end confdefs.h. */
5665#include <ac_nonexistent.h>
5666_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005667if { (ac_try="$ac_cpp conftest.$ac_ext"
5668case "(($ac_try" in
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5671esac
5672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5674 ac_status=$?
5675 grep -v '^ *+' conftest.er1 >conftest.err
5676 rm -f conftest.er1
5677 cat conftest.err >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } >/dev/null; then
5680 if test -s conftest.err; then
5681 ac_cpp_err=$ac_c_preproc_warn_flag
5682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5683 else
5684 ac_cpp_err=
5685 fi
5686else
5687 ac_cpp_err=yes
5688fi
5689if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005690 # Broken: success on invalid input.
5691continue
5692else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005693 echo "$as_me: failed program was:" >&5
5694sed 's/^/| /' conftest.$ac_ext >&5
5695
Reid Spencera773bd52006-08-04 18:18:08 +00005696 # Passes both tests.
5697ac_preproc_ok=:
5698break
5699fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005700
Reid Spencera773bd52006-08-04 18:18:08 +00005701rm -f conftest.err conftest.$ac_ext
5702
5703done
5704# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5705rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005706if $ac_preproc_ok; then
5707 :
Reid Spencera773bd52006-08-04 18:18:08 +00005708else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005709 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5710See \`config.log' for more details." >&5
5711echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5712See \`config.log' for more details." >&2;}
5713 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005714fi
5715
5716ac_ext=c
5717ac_cpp='$CPP $CPPFLAGS'
5718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720ac_compiler_gnu=$ac_cv_c_compiler_gnu
5721
5722ac_ext=c
5723ac_cpp='$CPP $CPPFLAGS'
5724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726ac_compiler_gnu=$ac_cv_c_compiler_gnu
5727if test -n "$ac_tool_prefix"; then
5728 for ac_prog in gcc
5729 do
5730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5731set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005732{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5734if test "${ac_cv_prog_CC+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005736else
5737 if test -n "$CC"; then
5738 ac_cv_prog_CC="$CC" # Let the user override the test.
5739else
5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH
5742do
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 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 +00005747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005749 break 2
5750 fi
5751done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005752done
Reid Spencera773bd52006-08-04 18:18:08 +00005753IFS=$as_save_IFS
5754
5755fi
5756fi
5757CC=$ac_cv_prog_CC
5758if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005759 { echo "$as_me:$LINENO: result: $CC" >&5
5760echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005761else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005762 { echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005764fi
5765
5766
5767 test -n "$CC" && break
5768 done
5769fi
5770if test -z "$CC"; then
5771 ac_ct_CC=$CC
5772 for ac_prog in gcc
5773do
5774 # Extract the first word of "$ac_prog", so it can be a program name with args.
5775set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5778if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005780else
5781 if test -n "$ac_ct_CC"; then
5782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5783else
5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 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 +00005791 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005793 break 2
5794 fi
5795done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005796done
Reid Spencera773bd52006-08-04 18:18:08 +00005797IFS=$as_save_IFS
5798
5799fi
5800fi
5801ac_ct_CC=$ac_cv_prog_ac_ct_CC
5802if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005803 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5804echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005805else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005806 { echo "$as_me:$LINENO: result: no" >&5
5807echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005808fi
5809
5810
5811 test -n "$ac_ct_CC" && break
5812done
5813
5814 if test "x$ac_ct_CC" = x; then
5815 CC=""
5816 else
5817 case $cross_compiling:$ac_tool_warned in
5818yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005819{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5820whose name does not start with the host triplet. If you think this
5821configuration is useful to you, please write to autoconf@gnu.org." >&5
5822echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5823whose name does not start with the host triplet. If you think this
5824configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005825ac_tool_warned=yes ;;
5826esac
5827 CC=$ac_ct_CC
5828 fi
5829fi
5830
5831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005832test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5833See \`config.log' for more details." >&5
5834echo "$as_me: error: no acceptable C compiler found in \$PATH
5835See \`config.log' for more details." >&2;}
5836 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005837
5838# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005839echo "$as_me:$LINENO: checking for C compiler version" >&5
5840ac_compiler=`set X $ac_compile; echo $2`
5841{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005842case "(($ac_try" in
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5845esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005848 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }
5851{ (ac_try="$ac_compiler -v >&5"
5852case "(($ac_try" in
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5855esac
5856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_compiler -v >&5") 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }
5861{ (ac_try="$ac_compiler -V >&5"
5862case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865esac
5866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compiler -V >&5") 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005872{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5873echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5874if test "${ac_cv_c_compiler_gnu+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005876else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005877 cat >conftest.$ac_ext <<_ACEOF
5878/* confdefs.h. */
5879_ACEOF
5880cat confdefs.h >>conftest.$ac_ext
5881cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005882/* end confdefs.h. */
5883
5884int
5885main ()
5886{
5887#ifndef __GNUC__
5888 choke me
5889#endif
5890
5891 ;
5892 return 0;
5893}
5894_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005895rm -f conftest.$ac_objext
5896if { (ac_try="$ac_compile"
5897case "(($ac_try" in
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5900esac
5901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_compile") 2>conftest.er1
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5910 { (case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913esac
5914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_try") 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try='test -s conftest.$ac_objext'
5920 { (case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923esac
5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_try") 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005929 ac_compiler_gnu=yes
5930else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005931 echo "$as_me: failed program was:" >&5
5932sed 's/^/| /' conftest.$ac_ext >&5
5933
5934 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005935fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005936
Reid Spencera773bd52006-08-04 18:18:08 +00005937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938ac_cv_c_compiler_gnu=$ac_compiler_gnu
5939
5940fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005941{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5942echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5943GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005944ac_test_CFLAGS=${CFLAGS+set}
5945ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005946{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5947echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5948if test "${ac_cv_prog_cc_g+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005950else
5951 ac_save_c_werror_flag=$ac_c_werror_flag
5952 ac_c_werror_flag=yes
5953 ac_cv_prog_cc_g=no
5954 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005955 cat >conftest.$ac_ext <<_ACEOF
5956/* confdefs.h. */
5957_ACEOF
5958cat confdefs.h >>conftest.$ac_ext
5959cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005960/* end confdefs.h. */
5961
5962int
5963main ()
5964{
5965
5966 ;
5967 return 0;
5968}
5969_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005970rm -f conftest.$ac_objext
5971if { (ac_try="$ac_compile"
5972case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975esac
5976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_compile") 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } &&
5984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5985 { (case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988esac
5989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_try") 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest.$ac_objext'
5995 { (case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998esac
5999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_try") 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006004 ac_cv_prog_cc_g=yes
6005else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006006 echo "$as_me: failed program was:" >&5
6007sed 's/^/| /' conftest.$ac_ext >&5
6008
6009 CFLAGS=""
6010 cat >conftest.$ac_ext <<_ACEOF
6011/* confdefs.h. */
6012_ACEOF
6013cat confdefs.h >>conftest.$ac_ext
6014cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006015/* end confdefs.h. */
6016
6017int
6018main ()
6019{
6020
6021 ;
6022 return 0;
6023}
6024_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006025rm -f conftest.$ac_objext
6026if { (ac_try="$ac_compile"
6027case "(($ac_try" in
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6030esac
6031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032 (eval "$ac_compile") 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6040 { (case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043esac
6044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_try") 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; } &&
6049 { ac_try='test -s conftest.$ac_objext'
6050 { (case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6053esac
6054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_try") 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; }; then
6059 :
Torok Edwin871384f2010-01-26 08:50:50 +00006060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006061 echo "$as_me: failed program was:" >&5
6062sed 's/^/| /' conftest.$ac_ext >&5
6063
6064 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006065 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006066 cat >conftest.$ac_ext <<_ACEOF
6067/* confdefs.h. */
6068_ACEOF
6069cat confdefs.h >>conftest.$ac_ext
6070cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006071/* end confdefs.h. */
6072
6073int
6074main ()
6075{
6076
6077 ;
6078 return 0;
6079}
6080_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006081rm -f conftest.$ac_objext
6082if { (ac_try="$ac_compile"
6083case "(($ac_try" in
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6086esac
6087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088 (eval "$ac_compile") 2>conftest.er1
6089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
6095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6096 { (case "(($ac_try" in
6097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6099esac
6100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101 (eval "$ac_try") 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; } &&
6105 { ac_try='test -s conftest.$ac_objext'
6106 { (case "(($ac_try" in
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6109esac
6110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_try") 2>&5
6112 ac_status=$?
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006115 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006116else
6117 echo "$as_me: failed program was:" >&5
6118sed 's/^/| /' conftest.$ac_ext >&5
6119
6120
Reid Spencera773bd52006-08-04 18:18:08 +00006121fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006122
Reid Spencera773bd52006-08-04 18:18:08 +00006123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006125
Reid Spencera773bd52006-08-04 18:18:08 +00006126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006128
Reid Spencera773bd52006-08-04 18:18:08 +00006129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130 ac_c_werror_flag=$ac_save_c_werror_flag
6131fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006132{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6133echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006134if test "$ac_test_CFLAGS" = set; then
6135 CFLAGS=$ac_save_CFLAGS
6136elif test $ac_cv_prog_cc_g = yes; then
6137 if test "$GCC" = yes; then
6138 CFLAGS="-g -O2"
6139 else
6140 CFLAGS="-g"
6141 fi
6142else
6143 if test "$GCC" = yes; then
6144 CFLAGS="-O2"
6145 else
6146 CFLAGS=
6147 fi
6148fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6150echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6151if test "${ac_cv_prog_cc_c89+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006153else
6154 ac_cv_prog_cc_c89=no
6155ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006156cat >conftest.$ac_ext <<_ACEOF
6157/* confdefs.h. */
6158_ACEOF
6159cat confdefs.h >>conftest.$ac_ext
6160cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006161/* end confdefs.h. */
6162#include <stdarg.h>
6163#include <stdio.h>
6164#include <sys/types.h>
6165#include <sys/stat.h>
6166/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6167struct buf { int x; };
6168FILE * (*rcsopen) (struct buf *, struct stat *, int);
6169static char *e (p, i)
6170 char **p;
6171 int i;
6172{
6173 return p[i];
6174}
6175static char *f (char * (*g) (char **, int), char **p, ...)
6176{
6177 char *s;
6178 va_list v;
6179 va_start (v,p);
6180 s = g (p, va_arg (v,int));
6181 va_end (v);
6182 return s;
6183}
6184
6185/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6186 function prototypes and stuff, but not '\xHH' hex character constants.
6187 These don't provoke an error unfortunately, instead are silently treated
6188 as 'x'. The following induces an error, until -std is added to get
6189 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6190 array size at least. It's necessary to write '\x00'==0 to get something
6191 that's true only with -std. */
6192int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6193
6194/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6195 inside strings and character constants. */
6196#define FOO(x) 'x'
6197int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6198
6199int test (int i, double x);
6200struct s1 {int (*f) (int a);};
6201struct s2 {int (*f) (double a);};
6202int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6203int argc;
6204char **argv;
6205int
6206main ()
6207{
6208return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6209 ;
6210 return 0;
6211}
6212_ACEOF
6213for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6214 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6215do
6216 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006217 rm -f conftest.$ac_objext
6218if { (ac_try="$ac_compile"
6219case "(($ac_try" in
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6222esac
6223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_compile") 2>conftest.er1
6225 ac_status=$?
6226 grep -v '^ *+' conftest.er1 >conftest.err
6227 rm -f conftest.er1
6228 cat conftest.err >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } &&
6231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6232 { (case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6235esac
6236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_try") 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; } &&
6241 { ac_try='test -s conftest.$ac_objext'
6242 { (case "(($ac_try" in
6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6245esac
6246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247 (eval "$ac_try") 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006251 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006252else
6253 echo "$as_me: failed program was:" >&5
6254sed 's/^/| /' conftest.$ac_ext >&5
6255
6256
Reid Spencera773bd52006-08-04 18:18:08 +00006257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006258
Reid Spencera773bd52006-08-04 18:18:08 +00006259rm -f core conftest.err conftest.$ac_objext
6260 test "x$ac_cv_prog_cc_c89" != "xno" && break
6261done
6262rm -f conftest.$ac_ext
6263CC=$ac_save_CC
6264
6265fi
6266# AC_CACHE_VAL
6267case "x$ac_cv_prog_cc_c89" in
6268 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006269 { echo "$as_me:$LINENO: result: none needed" >&5
6270echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006271 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006272 { echo "$as_me:$LINENO: result: unsupported" >&5
6273echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006274 *)
6275 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006276 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6277echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006278esac
6279
6280
6281ac_ext=c
6282ac_cpp='$CPP $CPPFLAGS'
6283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6285ac_compiler_gnu=$ac_cv_c_compiler_gnu
6286
6287ac_ext=cpp
6288ac_cpp='$CXXCPP $CPPFLAGS'
6289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6292if test -z "$CXX"; then
6293 if test -n "$CCC"; then
6294 CXX=$CCC
6295 else
6296 if test -n "$ac_tool_prefix"; then
6297 for ac_prog in g++
6298 do
6299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6300set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303if test "${ac_cv_prog_CXX+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006305else
6306 if test -n "$CXX"; then
6307 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6308else
6309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 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 +00006316 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006318 break 2
6319 fi
6320done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006321done
Reid Spencera773bd52006-08-04 18:18:08 +00006322IFS=$as_save_IFS
6323
6324fi
6325fi
6326CXX=$ac_cv_prog_CXX
6327if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006328 { echo "$as_me:$LINENO: result: $CXX" >&5
6329echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006330else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006331 { echo "$as_me:$LINENO: result: no" >&5
6332echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006333fi
6334
6335
6336 test -n "$CXX" && break
6337 done
6338fi
6339if test -z "$CXX"; then
6340 ac_ct_CXX=$CXX
6341 for ac_prog in g++
6342do
6343 # Extract the first word of "$ac_prog", so it can be a program name with args.
6344set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6347if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006349else
6350 if test -n "$ac_ct_CXX"; then
6351 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6352else
6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354for as_dir in $PATH
6355do
6356 IFS=$as_save_IFS
6357 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 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 +00006360 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006362 break 2
6363 fi
6364done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006365done
Reid Spencera773bd52006-08-04 18:18:08 +00006366IFS=$as_save_IFS
6367
6368fi
6369fi
6370ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6371if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006372 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6373echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006374else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006375 { echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006377fi
6378
6379
6380 test -n "$ac_ct_CXX" && break
6381done
6382
6383 if test "x$ac_ct_CXX" = x; then
6384 CXX="g++"
6385 else
6386 case $cross_compiling:$ac_tool_warned in
6387yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006388{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6389whose name does not start with the host triplet. If you think this
6390configuration is useful to you, please write to autoconf@gnu.org." >&5
6391echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6392whose name does not start with the host triplet. If you think this
6393configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006394ac_tool_warned=yes ;;
6395esac
6396 CXX=$ac_ct_CXX
6397 fi
6398fi
6399
6400 fi
6401fi
6402# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006403echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6404ac_compiler=`set X $ac_compile; echo $2`
6405{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006406case "(($ac_try" in
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6409esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006412 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }
6415{ (ac_try="$ac_compiler -v >&5"
6416case "(($ac_try" in
6417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6418 *) ac_try_echo=$ac_try;;
6419esac
6420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6421 (eval "$ac_compiler -v >&5") 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }
6425{ (ac_try="$ac_compiler -V >&5"
6426case "(($ac_try" in
6427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6428 *) ac_try_echo=$ac_try;;
6429esac
6430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6431 (eval "$ac_compiler -V >&5") 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006436{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6437echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6438if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006440else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006441 cat >conftest.$ac_ext <<_ACEOF
6442/* confdefs.h. */
6443_ACEOF
6444cat confdefs.h >>conftest.$ac_ext
6445cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006446/* end confdefs.h. */
6447
6448int
6449main ()
6450{
6451#ifndef __GNUC__
6452 choke me
6453#endif
6454
6455 ;
6456 return 0;
6457}
6458_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006459rm -f conftest.$ac_objext
6460if { (ac_try="$ac_compile"
6461case "(($ac_try" in
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6464esac
6465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_compile") 2>conftest.er1
6467 ac_status=$?
6468 grep -v '^ *+' conftest.er1 >conftest.err
6469 rm -f conftest.er1
6470 cat conftest.err >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } &&
6473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6474 { (case "(($ac_try" in
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6477esac
6478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_try") 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; } &&
6483 { ac_try='test -s conftest.$ac_objext'
6484 { (case "(($ac_try" in
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6487esac
6488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489 (eval "$ac_try") 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006493 ac_compiler_gnu=yes
6494else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006495 echo "$as_me: failed program was:" >&5
6496sed 's/^/| /' conftest.$ac_ext >&5
6497
6498 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006499fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006500
Reid Spencera773bd52006-08-04 18:18:08 +00006501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6503
6504fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006505{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6506echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6507GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006508ac_test_CXXFLAGS=${CXXFLAGS+set}
6509ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006510{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6511echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6512if test "${ac_cv_prog_cxx_g+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006514else
6515 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6516 ac_cxx_werror_flag=yes
6517 ac_cv_prog_cxx_g=no
6518 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006519 cat >conftest.$ac_ext <<_ACEOF
6520/* confdefs.h. */
6521_ACEOF
6522cat confdefs.h >>conftest.$ac_ext
6523cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006524/* end confdefs.h. */
6525
6526int
6527main ()
6528{
6529
6530 ;
6531 return 0;
6532}
6533_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006534rm -f conftest.$ac_objext
6535if { (ac_try="$ac_compile"
6536case "(($ac_try" in
6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6539esac
6540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541 (eval "$ac_compile") 2>conftest.er1
6542 ac_status=$?
6543 grep -v '^ *+' conftest.er1 >conftest.err
6544 rm -f conftest.er1
6545 cat conftest.err >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } &&
6548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6549 { (case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6552esac
6553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_try") 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562esac
6563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_try") 2>&5
6565 ac_status=$?
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006568 ac_cv_prog_cxx_g=yes
6569else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006570 echo "$as_me: failed program was:" >&5
6571sed 's/^/| /' conftest.$ac_ext >&5
6572
6573 CXXFLAGS=""
6574 cat >conftest.$ac_ext <<_ACEOF
6575/* confdefs.h. */
6576_ACEOF
6577cat confdefs.h >>conftest.$ac_ext
6578cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006579/* end confdefs.h. */
6580
6581int
6582main ()
6583{
6584
6585 ;
6586 return 0;
6587}
6588_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006589rm -f conftest.$ac_objext
6590if { (ac_try="$ac_compile"
6591case "(($ac_try" in
6592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593 *) ac_try_echo=$ac_try;;
6594esac
6595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6596 (eval "$ac_compile") 2>conftest.er1
6597 ac_status=$?
6598 grep -v '^ *+' conftest.er1 >conftest.err
6599 rm -f conftest.er1
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6604 { (case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6607esac
6608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609 (eval "$ac_try") 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; } &&
6613 { ac_try='test -s conftest.$ac_objext'
6614 { (case "(($ac_try" in
6615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616 *) ac_try_echo=$ac_try;;
6617esac
6618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619 (eval "$ac_try") 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 :
Torok Edwin871384f2010-01-26 08:50:50 +00006624else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006625 echo "$as_me: failed program was:" >&5
6626sed 's/^/| /' conftest.$ac_ext >&5
6627
6628 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006629 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006630 cat >conftest.$ac_ext <<_ACEOF
6631/* confdefs.h. */
6632_ACEOF
6633cat confdefs.h >>conftest.$ac_ext
6634cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006635/* end confdefs.h. */
6636
6637int
6638main ()
6639{
6640
6641 ;
6642 return 0;
6643}
6644_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006645rm -f conftest.$ac_objext
6646if { (ac_try="$ac_compile"
6647case "(($ac_try" in
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6650esac
6651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652 (eval "$ac_compile") 2>conftest.er1
6653 ac_status=$?
6654 grep -v '^ *+' conftest.er1 >conftest.err
6655 rm -f conftest.er1
6656 cat conftest.err >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6660 { (case "(($ac_try" in
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6663esac
6664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665 (eval "$ac_try") 2>&5
6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; } &&
6669 { ac_try='test -s conftest.$ac_objext'
6670 { (case "(($ac_try" in
6671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6673esac
6674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6675 (eval "$ac_try") 2>&5
6676 ac_status=$?
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006679 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006680else
6681 echo "$as_me: failed program was:" >&5
6682sed 's/^/| /' conftest.$ac_ext >&5
6683
6684
Reid Spencera773bd52006-08-04 18:18:08 +00006685fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006686
Reid Spencera773bd52006-08-04 18:18:08 +00006687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006689
Reid Spencera773bd52006-08-04 18:18:08 +00006690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006692
Reid Spencera773bd52006-08-04 18:18:08 +00006693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6695fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006696{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6697echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006698if test "$ac_test_CXXFLAGS" = set; then
6699 CXXFLAGS=$ac_save_CXXFLAGS
6700elif test $ac_cv_prog_cxx_g = yes; then
6701 if test "$GXX" = yes; then
6702 CXXFLAGS="-g -O2"
6703 else
6704 CXXFLAGS="-g"
6705 fi
6706else
6707 if test "$GXX" = yes; then
6708 CXXFLAGS="-O2"
6709 else
6710 CXXFLAGS=
6711 fi
6712fi
6713ac_ext=c
6714ac_cpp='$CPP $CPPFLAGS'
6715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6717ac_compiler_gnu=$ac_cv_c_compiler_gnu
6718
Reid Spencera773bd52006-08-04 18:18:08 +00006719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006720{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6721echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6722if test "${lt_cv_path_NM+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006724else
6725 if test -n "$NM"; then
6726 # Let the user override the test.
6727 lt_cv_path_NM="$NM"
6728else
6729 lt_nm_to_check="${ac_tool_prefix}nm"
6730 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6731 lt_nm_to_check="$lt_nm_to_check nm"
6732 fi
6733 for lt_tmp_nm in $lt_nm_to_check; do
6734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6735 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6736 IFS="$lt_save_ifs"
6737 test -z "$ac_dir" && ac_dir=.
6738 tmp_nm="$ac_dir/$lt_tmp_nm"
6739 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6740 # Check to see if the nm accepts a BSD-compat flag.
6741 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6742 # nm: unknown option "B" ignored
6743 # Tru64's nm complains that /dev/null is an invalid object file
6744 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6745 */dev/null* | *'Invalid file or object type'*)
6746 lt_cv_path_NM="$tmp_nm -B"
6747 break
6748 ;;
6749 *)
6750 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6751 */dev/null*)
6752 lt_cv_path_NM="$tmp_nm -p"
6753 break
6754 ;;
6755 *)
6756 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6757 continue # so that we can try to find one that supports BSD flags
6758 ;;
6759 esac
6760 ;;
6761 esac
6762 fi
6763 done
6764 IFS="$lt_save_ifs"
6765 done
6766 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6767fi
6768fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006769{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6770echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006771NM="$lt_cv_path_NM"
6772
6773
6774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006775{ echo "$as_me:$LINENO: checking for GNU make" >&5
6776echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6777if test "${llvm_cv_gnu_make_command+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006779else
6780 llvm_cv_gnu_make_command=''
6781 for a in "$MAKE" make gmake gnumake ; do
6782 if test -z "$a" ; then continue ; fi ;
6783 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6784 then
6785 llvm_cv_gnu_make_command=$a ;
6786 break;
6787 fi
6788 done
6789fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006790{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6791echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006792 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6793 ifGNUmake='' ;
6794 else
6795 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006796 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6797echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006798 fi
6799
6800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006801{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6802echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006803LN_S=$as_ln_s
6804if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006805 { echo "$as_me:$LINENO: result: yes" >&5
6806echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006807else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6809echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006810fi
6811
6812# Extract the first word of "cmp", so it can be a program name with args.
6813set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816if test "${ac_cv_path_CMP+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006818else
6819 case $CMP in
6820 [\\/]* | ?:[\\/]*)
6821 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6822 ;;
6823 *)
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 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 +00006831 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006833 break 2
6834 fi
6835done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006836done
Reid Spencera773bd52006-08-04 18:18:08 +00006837IFS=$as_save_IFS
6838
6839 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6840 ;;
6841esac
6842fi
6843CMP=$ac_cv_path_CMP
6844if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006845 { echo "$as_me:$LINENO: result: $CMP" >&5
6846echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006847else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006848 { echo "$as_me:$LINENO: result: no" >&5
6849echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006850fi
6851
6852
6853# Extract the first word of "cp", so it can be a program name with args.
6854set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857if test "${ac_cv_path_CP+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006859else
6860 case $CP in
6861 [\\/]* | ?:[\\/]*)
6862 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6863 ;;
6864 *)
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
6867do
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 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 +00006872 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006874 break 2
6875 fi
6876done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006877done
Reid Spencera773bd52006-08-04 18:18:08 +00006878IFS=$as_save_IFS
6879
6880 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6881 ;;
6882esac
6883fi
6884CP=$ac_cv_path_CP
6885if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006886 { echo "$as_me:$LINENO: result: $CP" >&5
6887echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006888else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006889 { echo "$as_me:$LINENO: result: no" >&5
6890echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006891fi
6892
6893
6894# Extract the first word of "date", so it can be a program name with args.
6895set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006896{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898if test "${ac_cv_path_DATE+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006900else
6901 case $DATE in
6902 [\\/]* | ?:[\\/]*)
6903 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6904 ;;
6905 *)
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907for as_dir in $PATH
6908do
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 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 +00006913 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006915 break 2
6916 fi
6917done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006918done
Reid Spencera773bd52006-08-04 18:18:08 +00006919IFS=$as_save_IFS
6920
6921 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6922 ;;
6923esac
6924fi
6925DATE=$ac_cv_path_DATE
6926if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006927 { echo "$as_me:$LINENO: result: $DATE" >&5
6928echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006929else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006930 { echo "$as_me:$LINENO: result: no" >&5
6931echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006932fi
6933
6934
6935# Extract the first word of "find", so it can be a program name with args.
6936set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006937{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939if test "${ac_cv_path_FIND+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006941else
6942 case $FIND in
6943 [\\/]* | ?:[\\/]*)
6944 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6945 ;;
6946 *)
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 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 +00006954 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006956 break 2
6957 fi
6958done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006959done
Reid Spencera773bd52006-08-04 18:18:08 +00006960IFS=$as_save_IFS
6961
6962 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6963 ;;
6964esac
6965fi
6966FIND=$ac_cv_path_FIND
6967if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006968 { echo "$as_me:$LINENO: result: $FIND" >&5
6969echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006970else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006971 { echo "$as_me:$LINENO: result: no" >&5
6972echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006973fi
6974
6975
6976# Extract the first word of "grep", so it can be a program name with args.
6977set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006978{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980if test "${ac_cv_path_GREP+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006982else
6983 case $GREP in
6984 [\\/]* | ?:[\\/]*)
6985 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6986 ;;
6987 *)
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 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 +00006995 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006997 break 2
6998 fi
6999done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007000done
Reid Spencera773bd52006-08-04 18:18:08 +00007001IFS=$as_save_IFS
7002
7003 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7004 ;;
7005esac
7006fi
7007GREP=$ac_cv_path_GREP
7008if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007009 { echo "$as_me:$LINENO: result: $GREP" >&5
7010echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007011else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007012 { echo "$as_me:$LINENO: result: no" >&5
7013echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007014fi
7015
7016
7017# Extract the first word of "mkdir", so it can be a program name with args.
7018set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021if test "${ac_cv_path_MKDIR+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007023else
7024 case $MKDIR in
7025 [\\/]* | ?:[\\/]*)
7026 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7027 ;;
7028 *)
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 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 +00007036 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007038 break 2
7039 fi
7040done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007041done
Reid Spencera773bd52006-08-04 18:18:08 +00007042IFS=$as_save_IFS
7043
7044 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7045 ;;
7046esac
7047fi
7048MKDIR=$ac_cv_path_MKDIR
7049if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007050 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7051echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007052else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007053 { echo "$as_me:$LINENO: result: no" >&5
7054echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007055fi
7056
7057
7058# Extract the first word of "mv", so it can be a program name with args.
7059set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007060{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062if test "${ac_cv_path_MV+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007064else
7065 case $MV in
7066 [\\/]* | ?:[\\/]*)
7067 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7068 ;;
7069 *)
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 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 +00007077 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007079 break 2
7080 fi
7081done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007082done
Reid Spencera773bd52006-08-04 18:18:08 +00007083IFS=$as_save_IFS
7084
7085 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7086 ;;
7087esac
7088fi
7089MV=$ac_cv_path_MV
7090if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007091 { echo "$as_me:$LINENO: result: $MV" >&5
7092echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007093else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007094 { echo "$as_me:$LINENO: result: no" >&5
7095echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007096fi
7097
7098
7099if test -n "$ac_tool_prefix"; then
7100 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7101set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007102{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104if test "${ac_cv_prog_RANLIB+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007106else
7107 if test -n "$RANLIB"; then
7108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7109else
7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 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 +00007117 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007119 break 2
7120 fi
7121done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007122done
Reid Spencera773bd52006-08-04 18:18:08 +00007123IFS=$as_save_IFS
7124
7125fi
7126fi
7127RANLIB=$ac_cv_prog_RANLIB
7128if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007129 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7130echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007131else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007132 { echo "$as_me:$LINENO: result: no" >&5
7133echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007134fi
7135
7136
7137fi
7138if test -z "$ac_cv_prog_RANLIB"; then
7139 ac_ct_RANLIB=$RANLIB
7140 # Extract the first word of "ranlib", so it can be a program name with args.
7141set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007142{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007146else
7147 if test -n "$ac_ct_RANLIB"; then
7148 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7149else
7150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151for as_dir in $PATH
7152do
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 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 +00007157 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007159 break 2
7160 fi
7161done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007162done
Reid Spencera773bd52006-08-04 18:18:08 +00007163IFS=$as_save_IFS
7164
7165fi
7166fi
7167ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7168if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007169 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7170echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007171else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007172 { echo "$as_me:$LINENO: result: no" >&5
7173echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007174fi
7175
7176 if test "x$ac_ct_RANLIB" = x; then
7177 RANLIB=":"
7178 else
7179 case $cross_compiling:$ac_tool_warned in
7180yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007181{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7182whose name does not start with the host triplet. If you think this
7183configuration is useful to you, please write to autoconf@gnu.org." >&5
7184echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7185whose name does not start with the host triplet. If you think this
7186configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007187ac_tool_warned=yes ;;
7188esac
7189 RANLIB=$ac_ct_RANLIB
7190 fi
7191else
7192 RANLIB="$ac_cv_prog_RANLIB"
7193fi
7194
Torok Edwin871384f2010-01-26 08:50:50 +00007195if test -n "$ac_tool_prefix"; then
7196 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7197set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007198{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7200if test "${ac_cv_prog_AR+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007202else
7203 if test -n "$AR"; then
7204 ac_cv_prog_AR="$AR" # Let the user override the test.
7205else
7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH
7208do
7209 IFS=$as_save_IFS
7210 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 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 +00007213 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007215 break 2
7216 fi
7217done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007218done
Torok Edwin871384f2010-01-26 08:50:50 +00007219IFS=$as_save_IFS
7220
7221fi
7222fi
7223AR=$ac_cv_prog_AR
7224if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007225 { echo "$as_me:$LINENO: result: $AR" >&5
7226echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007227else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007228 { echo "$as_me:$LINENO: result: no" >&5
7229echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007230fi
7231
7232
7233fi
7234if test -z "$ac_cv_prog_AR"; then
7235 ac_ct_AR=$AR
7236 # Extract the first word of "ar", so it can be a program name with args.
7237set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007238{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007242else
7243 if test -n "$ac_ct_AR"; then
7244 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7245else
7246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247for as_dir in $PATH
7248do
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 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 +00007253 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007255 break 2
7256 fi
7257done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007258done
Torok Edwin871384f2010-01-26 08:50:50 +00007259IFS=$as_save_IFS
7260
7261fi
7262fi
7263ac_ct_AR=$ac_cv_prog_ac_ct_AR
7264if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007265 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7266echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007267else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007268 { echo "$as_me:$LINENO: result: no" >&5
7269echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007270fi
7271
7272 if test "x$ac_ct_AR" = x; then
7273 AR="false"
7274 else
7275 case $cross_compiling:$ac_tool_warned in
7276yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7278whose name does not start with the host triplet. If you think this
7279configuration is useful to you, please write to autoconf@gnu.org." >&5
7280echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7281whose name does not start with the host triplet. If you think this
7282configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007283ac_tool_warned=yes ;;
7284esac
7285 AR=$ac_ct_AR
7286 fi
7287else
7288 AR="$ac_cv_prog_AR"
7289fi
7290
Reid Spencera773bd52006-08-04 18:18:08 +00007291# Extract the first word of "rm", so it can be a program name with args.
7292set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295if test "${ac_cv_path_RM+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007297else
7298 case $RM in
7299 [\\/]* | ?:[\\/]*)
7300 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7301 ;;
7302 *)
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 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 +00007310 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007312 break 2
7313 fi
7314done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007315done
Reid Spencera773bd52006-08-04 18:18:08 +00007316IFS=$as_save_IFS
7317
7318 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7319 ;;
7320esac
7321fi
7322RM=$ac_cv_path_RM
7323if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007324 { echo "$as_me:$LINENO: result: $RM" >&5
7325echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007326else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007327 { echo "$as_me:$LINENO: result: no" >&5
7328echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007329fi
7330
7331
7332# Extract the first word of "sed", so it can be a program name with args.
7333set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336if test "${ac_cv_path_SED+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007338else
7339 case $SED in
7340 [\\/]* | ?:[\\/]*)
7341 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7342 ;;
7343 *)
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 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 +00007351 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007353 break 2
7354 fi
7355done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007356done
Reid Spencera773bd52006-08-04 18:18:08 +00007357IFS=$as_save_IFS
7358
7359 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7360 ;;
7361esac
7362fi
7363SED=$ac_cv_path_SED
7364if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007365 { echo "$as_me:$LINENO: result: $SED" >&5
7366echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007367else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007368 { echo "$as_me:$LINENO: result: no" >&5
7369echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007370fi
7371
7372
7373# Extract the first word of "tar", so it can be a program name with args.
7374set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007375{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7377if test "${ac_cv_path_TAR+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007379else
7380 case $TAR in
7381 [\\/]* | ?:[\\/]*)
7382 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7383 ;;
7384 *)
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386for as_dir in $PATH
7387do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 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 +00007392 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007394 break 2
7395 fi
7396done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007397done
Reid Spencera773bd52006-08-04 18:18:08 +00007398IFS=$as_save_IFS
7399
7400 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7401 ;;
7402esac
7403fi
7404TAR=$ac_cv_path_TAR
7405if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007406 { echo "$as_me:$LINENO: result: $TAR" >&5
7407echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007408else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007409 { echo "$as_me:$LINENO: result: no" >&5
7410echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007411fi
7412
7413
7414# Extract the first word of "pwd", so it can be a program name with args.
7415set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7418if test "${ac_cv_path_BINPWD+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007420else
7421 case $BINPWD in
7422 [\\/]* | ?:[\\/]*)
7423 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7424 ;;
7425 *)
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427for as_dir in $PATH
7428do
7429 IFS=$as_save_IFS
7430 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 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 +00007433 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007435 break 2
7436 fi
7437done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007438done
Reid Spencera773bd52006-08-04 18:18:08 +00007439IFS=$as_save_IFS
7440
7441 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7442 ;;
7443esac
7444fi
7445BINPWD=$ac_cv_path_BINPWD
7446if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007447 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7448echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007449else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007450 { echo "$as_me:$LINENO: result: no" >&5
7451echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007452fi
7453
7454
7455
7456# Extract the first word of "Graphviz", so it can be a program name with args.
7457set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7460if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007462else
7463 case $GRAPHVIZ in
7464 [\\/]* | ?:[\\/]*)
7465 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7466 ;;
7467 *)
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469for as_dir in $PATH
7470do
7471 IFS=$as_save_IFS
7472 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 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 +00007475 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007477 break 2
7478 fi
7479done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007480done
Reid Spencera773bd52006-08-04 18:18:08 +00007481IFS=$as_save_IFS
7482
7483 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7484 ;;
7485esac
7486fi
7487GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7488if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007489 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7490echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007491else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007492 { echo "$as_me:$LINENO: result: no" >&5
7493echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007494fi
7495
7496
7497if test "$GRAPHVIZ" != "echo Graphviz" ; then
7498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007499cat >>confdefs.h <<\_ACEOF
7500#define HAVE_GRAPHVIZ 1
7501_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007502
Jeff Cohen28783c32007-01-12 18:22:38 +00007503 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007504 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7505 fi
7506
7507cat >>confdefs.h <<_ACEOF
7508#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7509_ACEOF
7510
7511fi
7512# Extract the first word of "dot", so it can be a program name with args.
7513set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516if test "${ac_cv_path_DOT+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007518else
7519 case $DOT in
7520 [\\/]* | ?:[\\/]*)
7521 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7522 ;;
7523 *)
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 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 +00007531 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007533 break 2
7534 fi
7535done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007536done
Reid Spencera773bd52006-08-04 18:18:08 +00007537IFS=$as_save_IFS
7538
7539 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7540 ;;
7541esac
7542fi
7543DOT=$ac_cv_path_DOT
7544if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007545 { echo "$as_me:$LINENO: result: $DOT" >&5
7546echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007547else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007548 { echo "$as_me:$LINENO: result: no" >&5
7549echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007550fi
7551
7552
7553if test "$DOT" != "echo dot" ; then
7554
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007555cat >>confdefs.h <<\_ACEOF
7556#define HAVE_DOT 1
7557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007558
Jeff Cohen28783c32007-01-12 18:22:38 +00007559 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007560 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7561 fi
7562
7563cat >>confdefs.h <<_ACEOF
7564#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7565_ACEOF
7566
7567fi
David Greenef0b9eff2009-07-09 17:16:26 +00007568# Extract the first word of "fdp", so it can be a program name with args.
7569set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7572if test "${ac_cv_path_FDP+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007574else
7575 case $FDP in
7576 [\\/]* | ?:[\\/]*)
7577 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7578 ;;
7579 *)
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581for as_dir in $PATH
7582do
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 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 +00007587 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007589 break 2
7590 fi
7591done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007592done
David Greenef0b9eff2009-07-09 17:16:26 +00007593IFS=$as_save_IFS
7594
7595 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7596 ;;
7597esac
7598fi
7599FDP=$ac_cv_path_FDP
7600if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007601 { echo "$as_me:$LINENO: result: $FDP" >&5
7602echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007604 { echo "$as_me:$LINENO: result: no" >&5
7605echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007606fi
7607
7608
7609if test "$FDP" != "echo fdp" ; then
7610
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007611cat >>confdefs.h <<\_ACEOF
7612#define HAVE_FDP 1
7613_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007614
7615 if test "$llvm_cv_os_type" = "MingW" ; then
7616 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7617 fi
7618
7619cat >>confdefs.h <<_ACEOF
7620#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7621_ACEOF
7622
7623fi
7624# Extract the first word of "neato", so it can be a program name with args.
7625set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007626{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628if test "${ac_cv_path_NEATO+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007630else
7631 case $NEATO in
7632 [\\/]* | ?:[\\/]*)
7633 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7634 ;;
7635 *)
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637for as_dir in $PATH
7638do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 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 +00007643 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007645 break 2
7646 fi
7647done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007648done
David Greenef0b9eff2009-07-09 17:16:26 +00007649IFS=$as_save_IFS
7650
7651 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7652 ;;
7653esac
7654fi
7655NEATO=$ac_cv_path_NEATO
7656if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007657 { echo "$as_me:$LINENO: result: $NEATO" >&5
7658echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007659else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007660 { echo "$as_me:$LINENO: result: no" >&5
7661echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007662fi
7663
7664
7665if test "$NEATO" != "echo neato" ; then
7666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007667cat >>confdefs.h <<\_ACEOF
7668#define HAVE_NEATO 1
7669_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007670
7671 if test "$llvm_cv_os_type" = "MingW" ; then
7672 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7673 fi
7674
7675cat >>confdefs.h <<_ACEOF
7676#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7677_ACEOF
7678
7679fi
7680# Extract the first word of "twopi", so it can be a program name with args.
7681set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684if test "${ac_cv_path_TWOPI+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007686else
7687 case $TWOPI in
7688 [\\/]* | ?:[\\/]*)
7689 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7690 ;;
7691 *)
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693for as_dir in $PATH
7694do
7695 IFS=$as_save_IFS
7696 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 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 +00007699 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007701 break 2
7702 fi
7703done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007704done
David Greenef0b9eff2009-07-09 17:16:26 +00007705IFS=$as_save_IFS
7706
7707 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7708 ;;
7709esac
7710fi
7711TWOPI=$ac_cv_path_TWOPI
7712if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007713 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7714echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007715else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007716 { echo "$as_me:$LINENO: result: no" >&5
7717echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007718fi
7719
7720
7721if test "$TWOPI" != "echo twopi" ; then
7722
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007723cat >>confdefs.h <<\_ACEOF
7724#define HAVE_TWOPI 1
7725_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007726
7727 if test "$llvm_cv_os_type" = "MingW" ; then
7728 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7729 fi
7730
7731cat >>confdefs.h <<_ACEOF
7732#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7733_ACEOF
7734
7735fi
7736# Extract the first word of "circo", so it can be a program name with args.
7737set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740if test "${ac_cv_path_CIRCO+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007742else
7743 case $CIRCO in
7744 [\\/]* | ?:[\\/]*)
7745 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7746 ;;
7747 *)
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749for as_dir in $PATH
7750do
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 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 +00007755 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007757 break 2
7758 fi
7759done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007760done
David Greenef0b9eff2009-07-09 17:16:26 +00007761IFS=$as_save_IFS
7762
7763 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7764 ;;
7765esac
7766fi
7767CIRCO=$ac_cv_path_CIRCO
7768if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007769 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7770echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007771else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007772 { echo "$as_me:$LINENO: result: no" >&5
7773echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007774fi
7775
7776
7777if test "$CIRCO" != "echo circo" ; then
7778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007779cat >>confdefs.h <<\_ACEOF
7780#define HAVE_CIRCO 1
7781_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007782
7783 if test "$llvm_cv_os_type" = "MingW" ; then
7784 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7785 fi
7786
7787cat >>confdefs.h <<_ACEOF
7788#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7789_ACEOF
7790
7791fi
Reid Spencera773bd52006-08-04 18:18:08 +00007792for ac_prog in gv gsview32
7793do
7794 # Extract the first word of "$ac_prog", so it can be a program name with args.
7795set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007796{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7798if test "${ac_cv_path_GV+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007800else
7801 case $GV in
7802 [\\/]* | ?:[\\/]*)
7803 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7804 ;;
7805 *)
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807for as_dir in $PATH
7808do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 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 +00007813 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007815 break 2
7816 fi
7817done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007818done
Reid Spencera773bd52006-08-04 18:18:08 +00007819IFS=$as_save_IFS
7820
7821 ;;
7822esac
7823fi
7824GV=$ac_cv_path_GV
7825if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007826 { echo "$as_me:$LINENO: result: $GV" >&5
7827echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007828else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007829 { echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007831fi
7832
7833
7834 test -n "$GV" && break
7835done
7836test -n "$GV" || GV="echo gv"
7837
7838if test "$GV" != "echo gv" ; then
7839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007840cat >>confdefs.h <<\_ACEOF
7841#define HAVE_GV 1
7842_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007843
Jeff Cohen28783c32007-01-12 18:22:38 +00007844 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007845 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7846 fi
7847
7848cat >>confdefs.h <<_ACEOF
7849#define LLVM_PATH_GV "$GV${EXEEXT}"
7850_ACEOF
7851
7852fi
7853# Extract the first word of "dotty", so it can be a program name with args.
7854set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7857if test "${ac_cv_path_DOTTY+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007859else
7860 case $DOTTY in
7861 [\\/]* | ?:[\\/]*)
7862 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7863 ;;
7864 *)
7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866for as_dir in $PATH
7867do
7868 IFS=$as_save_IFS
7869 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007870 for ac_exec_ext in '' $ac_executable_extensions; do
7871 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 +00007872 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007874 break 2
7875 fi
7876done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007877done
Reid Spencera773bd52006-08-04 18:18:08 +00007878IFS=$as_save_IFS
7879
7880 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7881 ;;
7882esac
7883fi
7884DOTTY=$ac_cv_path_DOTTY
7885if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007886 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7887echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007888else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007889 { echo "$as_me:$LINENO: result: no" >&5
7890echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007891fi
7892
7893
7894if test "$DOTTY" != "echo dotty" ; then
7895
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007896cat >>confdefs.h <<\_ACEOF
7897#define HAVE_DOTTY 1
7898_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007899
Jeff Cohen28783c32007-01-12 18:22:38 +00007900 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007901 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7902 fi
7903
7904cat >>confdefs.h <<_ACEOF
7905#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7906_ACEOF
7907
7908fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007909# Extract the first word of "xdot.py", so it can be a program name with args.
7910set dummy xdot.py; ac_word=$2
7911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7913if test "${ac_cv_path_XDOT_PY+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7915else
7916 case $XDOT_PY in
7917 [\\/]* | ?:[\\/]*)
7918 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7919 ;;
7920 *)
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922for as_dir in $PATH
7923do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7928 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932done
7933done
7934IFS=$as_save_IFS
7935
7936 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7937 ;;
7938esac
7939fi
7940XDOT_PY=$ac_cv_path_XDOT_PY
7941if test -n "$XDOT_PY"; then
7942 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7943echo "${ECHO_T}$XDOT_PY" >&6; }
7944else
7945 { echo "$as_me:$LINENO: result: no" >&5
7946echo "${ECHO_T}no" >&6; }
7947fi
7948
7949
7950if test "$XDOT_PY" != "echo xdot.py" ; then
7951
7952cat >>confdefs.h <<\_ACEOF
7953#define HAVE_XDOT_PY 1
7954_ACEOF
7955
7956 if test "$llvm_cv_os_type" = "MingW" ; then
7957 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7958 fi
7959
7960cat >>confdefs.h <<_ACEOF
7961#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7962_ACEOF
7963
7964fi
Reid Spencera773bd52006-08-04 18:18:08 +00007965
7966
7967# Extract the first word of "perl", so it can be a program name with args.
7968set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7971if test "${ac_cv_path_PERL+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007973else
7974 case $PERL in
7975 [\\/]* | ?:[\\/]*)
7976 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7977 ;;
7978 *)
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980for as_dir in $PATH
7981do
7982 IFS=$as_save_IFS
7983 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 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 +00007986 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007988 break 2
7989 fi
7990done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007991done
Reid Spencera773bd52006-08-04 18:18:08 +00007992IFS=$as_save_IFS
7993
7994 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7995 ;;
7996esac
7997fi
7998PERL=$ac_cv_path_PERL
7999if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008000 { echo "$as_me:$LINENO: result: $PERL" >&5
8001echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008002else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008003 { echo "$as_me:$LINENO: result: no" >&5
8004echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008005fi
8006
8007
8008if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008009 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8010echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008011 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008012 { echo "$as_me:$LINENO: result: yes" >&5
8013echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008014 else
8015 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008016 { echo "$as_me:$LINENO: result: not found" >&5
8017echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008018 fi
8019fi
8020
8021
8022if test x"$PERL" = xnone; then
8023 HAVE_PERL=0
8024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008025 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8026echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8027 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008028else
8029 HAVE_PERL=1
8030
8031fi
8032
8033# Find a good install program. We prefer a C program (faster),
8034# so one script is as good as another. But avoid the broken or
8035# incompatible versions:
8036# SysV /etc/install, /usr/sbin/install
8037# SunOS /usr/etc/install
8038# IRIX /sbin/install
8039# AIX /bin/install
8040# AmigaOS /C/install, which installs bootblocks on floppy discs
8041# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8042# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8043# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8044# OS/2's system install, which has a completely different semantic
8045# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008046{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8047echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008048if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008049if test "${ac_cv_path_install+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008051else
8052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053for as_dir in $PATH
8054do
8055 IFS=$as_save_IFS
8056 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008057 # Account for people who put trailing slashes in PATH elements.
8058case $as_dir/ in
8059 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008060 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008061 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008062 /usr/ucb/* ) ;;
8063 *)
8064 # OSF1 and SCO ODT 3.0 have their own names for install.
8065 # Don't use installbsd from OSF since it installs stuff as root
8066 # by default.
8067 for ac_prog in ginstall scoinst install; do
8068 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008069 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 +00008070 if test $ac_prog = install &&
8071 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8072 # AIX install. It has an incompatible calling convention.
8073 :
8074 elif test $ac_prog = install &&
8075 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8076 # program-specific install script used by HP pwplus--don't use.
8077 :
8078 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008079 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8080 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008081 fi
8082 fi
8083 done
8084 done
8085 ;;
8086esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008087done
Reid Spencera773bd52006-08-04 18:18:08 +00008088IFS=$as_save_IFS
8089
8090
8091fi
8092 if test "${ac_cv_path_install+set}" = set; then
8093 INSTALL=$ac_cv_path_install
8094 else
8095 # As a last resort, use the slow shell script. Don't cache a
8096 # value for INSTALL within a source directory, because that will
8097 # break other packages using the cache if that directory is
8098 # removed, or if the value is a relative name.
8099 INSTALL=$ac_install_sh
8100 fi
8101fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008102{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8103echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008104
8105# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8106# It thinks the first close brace ends the variable substitution.
8107test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8108
8109test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8110
8111test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8112
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008113case "$INSTALL" in
8114 [\\/$]* | ?:[\\/]* ) ;;
8115 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8116esac
Reid Spencera773bd52006-08-04 18:18:08 +00008117
8118# Extract the first word of "bzip2", so it can be a program name with args.
8119set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008120{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8122if test "${ac_cv_path_BZIP2+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008124else
8125 case $BZIP2 in
8126 [\\/]* | ?:[\\/]*)
8127 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8128 ;;
8129 *)
8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131for as_dir in $PATH
8132do
8133 IFS=$as_save_IFS
8134 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008135 for ac_exec_ext in '' $ac_executable_extensions; do
8136 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 +00008137 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008139 break 2
8140 fi
8141done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008142done
Reid Spencera773bd52006-08-04 18:18:08 +00008143IFS=$as_save_IFS
8144
Reid Spencera773bd52006-08-04 18:18:08 +00008145 ;;
8146esac
8147fi
8148BZIP2=$ac_cv_path_BZIP2
8149if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008150 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8151echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008152else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008153 { echo "$as_me:$LINENO: result: no" >&5
8154echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008155fi
8156
8157
mike-m68cb3192010-05-06 23:45:43 +00008158# Extract the first word of "cat", so it can be a program name with args.
8159set dummy cat; ac_word=$2
8160{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8162if test "${ac_cv_path_CAT+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8164else
8165 case $CAT in
8166 [\\/]* | ?:[\\/]*)
8167 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8168 ;;
8169 *)
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171for as_dir in $PATH
8172do
8173 IFS=$as_save_IFS
8174 test -z "$as_dir" && as_dir=.
8175 for ac_exec_ext in '' $ac_executable_extensions; do
8176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8177 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8179 break 2
8180 fi
8181done
8182done
8183IFS=$as_save_IFS
8184
8185 ;;
8186esac
8187fi
8188CAT=$ac_cv_path_CAT
8189if test -n "$CAT"; then
8190 { echo "$as_me:$LINENO: result: $CAT" >&5
8191echo "${ECHO_T}$CAT" >&6; }
8192else
8193 { echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6; }
8195fi
8196
8197
Reid Spencera773bd52006-08-04 18:18:08 +00008198# Extract the first word of "doxygen", so it can be a program name with args.
8199set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8202if test "${ac_cv_path_DOXYGEN+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008204else
8205 case $DOXYGEN in
8206 [\\/]* | ?:[\\/]*)
8207 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8208 ;;
8209 *)
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211for as_dir in $PATH
8212do
8213 IFS=$as_save_IFS
8214 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 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 +00008217 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008219 break 2
8220 fi
8221done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008222done
Reid Spencera773bd52006-08-04 18:18:08 +00008223IFS=$as_save_IFS
8224
Reid Spencera773bd52006-08-04 18:18:08 +00008225 ;;
8226esac
8227fi
8228DOXYGEN=$ac_cv_path_DOXYGEN
8229if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008230 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8231echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008232else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008233 { echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008235fi
8236
8237
Reid Spencera773bd52006-08-04 18:18:08 +00008238# Extract the first word of "groff", so it can be a program name with args.
8239set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008240{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8242if test "${ac_cv_path_GROFF+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008244else
8245 case $GROFF in
8246 [\\/]* | ?:[\\/]*)
8247 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8248 ;;
8249 *)
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251for as_dir in $PATH
8252do
8253 IFS=$as_save_IFS
8254 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 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 +00008257 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008259 break 2
8260 fi
8261done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008262done
Reid Spencera773bd52006-08-04 18:18:08 +00008263IFS=$as_save_IFS
8264
Reid Spencera773bd52006-08-04 18:18:08 +00008265 ;;
8266esac
8267fi
8268GROFF=$ac_cv_path_GROFF
8269if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008270 { echo "$as_me:$LINENO: result: $GROFF" >&5
8271echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008272else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008273 { echo "$as_me:$LINENO: result: no" >&5
8274echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008275fi
8276
8277
8278# Extract the first word of "gzip", so it can be a program name with args.
8279set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8282if test "${ac_cv_path_GZIP+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008284else
8285 case $GZIP in
8286 [\\/]* | ?:[\\/]*)
8287 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8288 ;;
8289 *)
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291for as_dir in $PATH
8292do
8293 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 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 +00008297 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008299 break 2
8300 fi
8301done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008302done
Reid Spencera773bd52006-08-04 18:18:08 +00008303IFS=$as_save_IFS
8304
Reid Spencera773bd52006-08-04 18:18:08 +00008305 ;;
8306esac
8307fi
8308GZIP=$ac_cv_path_GZIP
8309if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008310 { echo "$as_me:$LINENO: result: $GZIP" >&5
8311echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008312else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008313 { echo "$as_me:$LINENO: result: no" >&5
8314echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008315fi
8316
8317
8318# Extract the first word of "pod2html", so it can be a program name with args.
8319set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8322if test "${ac_cv_path_POD2HTML+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008324else
8325 case $POD2HTML in
8326 [\\/]* | ?:[\\/]*)
8327 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8328 ;;
8329 *)
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331for as_dir in $PATH
8332do
8333 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 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 +00008337 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008339 break 2
8340 fi
8341done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008342done
Reid Spencera773bd52006-08-04 18:18:08 +00008343IFS=$as_save_IFS
8344
Reid Spencera773bd52006-08-04 18:18:08 +00008345 ;;
8346esac
8347fi
8348POD2HTML=$ac_cv_path_POD2HTML
8349if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008350 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8351echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008353 { echo "$as_me:$LINENO: result: no" >&5
8354echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008355fi
8356
8357
8358# Extract the first word of "pod2man", so it can be a program name with args.
8359set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8362if test "${ac_cv_path_POD2MAN+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008364else
8365 case $POD2MAN in
8366 [\\/]* | ?:[\\/]*)
8367 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8368 ;;
8369 *)
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371for as_dir in $PATH
8372do
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 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 +00008377 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008379 break 2
8380 fi
8381done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008382done
Reid Spencera773bd52006-08-04 18:18:08 +00008383IFS=$as_save_IFS
8384
Reid Spencera773bd52006-08-04 18:18:08 +00008385 ;;
8386esac
8387fi
8388POD2MAN=$ac_cv_path_POD2MAN
8389if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008390 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8391echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008392else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008393 { echo "$as_me:$LINENO: result: no" >&5
8394echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008395fi
8396
8397
mike-m68cb3192010-05-06 23:45:43 +00008398# Extract the first word of "pdfroff", so it can be a program name with args.
8399set dummy pdfroff; ac_word=$2
8400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402if test "${ac_cv_path_PDFROFF+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8404else
8405 case $PDFROFF in
8406 [\\/]* | ?:[\\/]*)
8407 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8408 ;;
8409 *)
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411for as_dir in $PATH
8412do
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8420 fi
8421done
8422done
8423IFS=$as_save_IFS
8424
8425 ;;
8426esac
8427fi
8428PDFROFF=$ac_cv_path_PDFROFF
8429if test -n "$PDFROFF"; then
8430 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8431echo "${ECHO_T}$PDFROFF" >&6; }
8432else
8433 { echo "$as_me:$LINENO: result: no" >&5
8434echo "${ECHO_T}no" >&6; }
8435fi
8436
8437
Reid Spencera773bd52006-08-04 18:18:08 +00008438# Extract the first word of "runtest", so it can be a program name with args.
8439set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8442if test "${ac_cv_path_RUNTEST+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008444else
8445 case $RUNTEST in
8446 [\\/]* | ?:[\\/]*)
8447 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8448 ;;
8449 *)
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451for as_dir in $PATH
8452do
8453 IFS=$as_save_IFS
8454 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 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 +00008457 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008459 break 2
8460 fi
8461done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008462done
Reid Spencera773bd52006-08-04 18:18:08 +00008463IFS=$as_save_IFS
8464
Reid Spencera773bd52006-08-04 18:18:08 +00008465 ;;
8466esac
8467fi
8468RUNTEST=$ac_cv_path_RUNTEST
8469if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008470 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8471echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008472else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008473 { echo "$as_me:$LINENO: result: no" >&5
8474echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008475fi
8476
8477
8478
8479no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008480{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8481echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008482
8483# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008484if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008485 withval=$with_tclinclude; with_tclinclude=${withval}
8486else
8487 with_tclinclude=''
8488fi
8489
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008490if test "${ac_cv_path_tclsh+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008492else
8493
8494if test x"${with_tclinclude}" != x ; then
8495 if test -f ${with_tclinclude}/tclsh ; then
8496 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8497 elif test -f ${with_tclinclude}/src/tclsh ; then
8498 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8499 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008500 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8501echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8502 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008503 fi
8504fi
Torok Edwin871384f2010-01-26 08:50:50 +00008505fi
8506
Reid Spencera773bd52006-08-04 18:18:08 +00008507
8508if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008509 { echo "$as_me:$LINENO: result: none" >&5
8510echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008511 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
8512do
8513 # Extract the first word of "$ac_prog", so it can be a program name with args.
8514set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8517if test "${ac_cv_path_TCLSH+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008519else
8520 case $TCLSH in
8521 [\\/]* | ?:[\\/]*)
8522 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8523 ;;
8524 *)
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526for as_dir in $PATH
8527do
8528 IFS=$as_save_IFS
8529 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 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 +00008532 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008534 break 2
8535 fi
8536done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008537done
Reid Spencera773bd52006-08-04 18:18:08 +00008538IFS=$as_save_IFS
8539
8540 ;;
8541esac
8542fi
8543TCLSH=$ac_cv_path_TCLSH
8544if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008545 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8546echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008547else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008548 { echo "$as_me:$LINENO: result: no" >&5
8549echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008550fi
8551
8552
8553 test -n "$TCLSH" && break
8554done
8555
8556 if test x"${TCLSH}" = x ; then
8557 ac_cv_path_tclsh='';
8558 else
8559 ac_cv_path_tclsh="${TCLSH}";
8560 fi
8561else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008562 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8563echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008564 TCLSH="${ac_cv_path_tclsh}"
8565
8566fi
8567
Reid Spencera773bd52006-08-04 18:18:08 +00008568# Extract the first word of "zip", so it can be a program name with args.
8569set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8572if test "${ac_cv_path_ZIP+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008574else
8575 case $ZIP in
8576 [\\/]* | ?:[\\/]*)
8577 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8578 ;;
8579 *)
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581for as_dir in $PATH
8582do
8583 IFS=$as_save_IFS
8584 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 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 +00008587 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008589 break 2
8590 fi
8591done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008592done
Reid Spencera773bd52006-08-04 18:18:08 +00008593IFS=$as_save_IFS
8594
Reid Spencera773bd52006-08-04 18:18:08 +00008595 ;;
8596esac
8597fi
8598ZIP=$ac_cv_path_ZIP
8599if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008600 { echo "$as_me:$LINENO: result: $ZIP" >&5
8601echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008602else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008603 { echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008605fi
8606
8607
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008608for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008609do
8610 # Extract the first word of "$ac_prog", so it can be a program name with args.
8611set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008612{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8614if test "${ac_cv_path_OCAMLC+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008616else
8617 case $OCAMLC in
8618 [\\/]* | ?:[\\/]*)
8619 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8620 ;;
8621 *)
8622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623for as_dir in $PATH
8624do
8625 IFS=$as_save_IFS
8626 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 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 +00008629 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008631 break 2
8632 fi
8633done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008634done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008635IFS=$as_save_IFS
8636
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008637 ;;
8638esac
8639fi
8640OCAMLC=$ac_cv_path_OCAMLC
8641if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008642 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8643echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008644else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008645 { echo "$as_me:$LINENO: result: no" >&5
8646echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008647fi
8648
8649
Gordon Henriksene7072162008-03-07 18:20:01 +00008650 test -n "$OCAMLC" && break
8651done
8652
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008653for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008654do
8655 # Extract the first word of "$ac_prog", so it can be a program name with args.
8656set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8659if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008661else
8662 case $OCAMLOPT in
8663 [\\/]* | ?:[\\/]*)
8664 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8665 ;;
8666 *)
8667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668for as_dir in $PATH
8669do
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 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 +00008674 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008676 break 2
8677 fi
8678done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008679done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008680IFS=$as_save_IFS
8681
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008682 ;;
8683esac
8684fi
8685OCAMLOPT=$ac_cv_path_OCAMLOPT
8686if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008687 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8688echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008689else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008690 { echo "$as_me:$LINENO: result: no" >&5
8691echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008692fi
8693
8694
Gordon Henriksene7072162008-03-07 18:20:01 +00008695 test -n "$OCAMLOPT" && break
8696done
8697
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008698for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008699do
8700 # Extract the first word of "$ac_prog", so it can be a program name with args.
8701set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8704if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008706else
8707 case $OCAMLDEP in
8708 [\\/]* | ?:[\\/]*)
8709 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8710 ;;
8711 *)
8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713for as_dir in $PATH
8714do
8715 IFS=$as_save_IFS
8716 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008717 for ac_exec_ext in '' $ac_executable_extensions; do
8718 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 +00008719 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008721 break 2
8722 fi
8723done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008724done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008725IFS=$as_save_IFS
8726
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008727 ;;
8728esac
8729fi
8730OCAMLDEP=$ac_cv_path_OCAMLDEP
8731if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008732 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8733echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008734else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008735 { echo "$as_me:$LINENO: result: no" >&5
8736echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008737fi
8738
8739
Gordon Henriksene7072162008-03-07 18:20:01 +00008740 test -n "$OCAMLDEP" && break
8741done
8742
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008743for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008744do
8745 # Extract the first word of "$ac_prog", so it can be a program name with args.
8746set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8749if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008751else
8752 case $OCAMLDOC in
8753 [\\/]* | ?:[\\/]*)
8754 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8755 ;;
8756 *)
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758for as_dir in $PATH
8759do
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 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 +00008764 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008766 break 2
8767 fi
8768done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008769done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008770IFS=$as_save_IFS
8771
8772 ;;
8773esac
8774fi
8775OCAMLDOC=$ac_cv_path_OCAMLDOC
8776if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008777 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8778echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008779else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008780 { echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008782fi
8783
8784
8785 test -n "$OCAMLDOC" && break
8786done
8787
Torok Edwincc499a42008-10-22 09:56:27 +00008788for ac_prog in gas as
8789do
8790 # Extract the first word of "$ac_prog", so it can be a program name with args.
8791set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8794if test "${ac_cv_path_GAS+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008796else
8797 case $GAS in
8798 [\\/]* | ?:[\\/]*)
8799 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8800 ;;
8801 *)
8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 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 +00008809 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008811 break 2
8812 fi
8813done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008814done
Torok Edwincc499a42008-10-22 09:56:27 +00008815IFS=$as_save_IFS
8816
8817 ;;
8818esac
8819fi
8820GAS=$ac_cv_path_GAS
8821if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008822 { echo "$as_me:$LINENO: result: $GAS" >&5
8823echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008825 { echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008827fi
8828
8829
8830 test -n "$GAS" && break
8831done
8832
Reid Spencera773bd52006-08-04 18:18:08 +00008833
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008834{ echo "$as_me:$LINENO: checking for linker version" >&5
8835echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8836if test "${llvm_cv_link_version+set}" = set; then
8837 echo $ECHO_N "(cached) $ECHO_C" >&6
8838else
8839
8840 version_string="$(ld -v 2>&1 | head -1)"
8841
8842 # Check for ld64.
8843 if (echo "$version_string" | grep -q "ld64"); then
8844 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8845 else
8846 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8847 fi
8848
8849fi
8850{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8851echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8852
8853cat >>confdefs.h <<_ACEOF
8854#define HOST_LINK_VERSION "$llvm_cv_link_version"
8855_ACEOF
8856
8857
8858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008859{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8860echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8861if test "${llvm_cv_link_use_r+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008863else
8864 ac_ext=c
8865ac_cpp='$CPP $CPPFLAGS'
8866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868ac_compiler_gnu=$ac_cv_c_compiler_gnu
8869
8870 oldcflags="$CFLAGS"
8871 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008872 cat >conftest.$ac_ext <<_ACEOF
8873/* confdefs.h. */
8874_ACEOF
8875cat confdefs.h >>conftest.$ac_ext
8876cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008877/* end confdefs.h. */
8878
8879int
8880main ()
8881{
Dan Gohman39ed6782010-04-25 00:12:20 +00008882
Reid Spencera773bd52006-08-04 18:18:08 +00008883 ;
8884 return 0;
8885}
8886_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008887rm -f conftest.$ac_objext conftest$ac_exeext
8888if { (ac_try="$ac_link"
8889case "(($ac_try" in
8890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8891 *) ac_try_echo=$ac_try;;
8892esac
8893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8894 (eval "$ac_link") 2>conftest.er1
8895 ac_status=$?
8896 grep -v '^ *+' conftest.er1 >conftest.err
8897 rm -f conftest.er1
8898 cat conftest.err >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } &&
8901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8902 { (case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8905esac
8906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_try") 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; } &&
8911 { ac_try='test -s conftest$ac_exeext'
8912 { (case "(($ac_try" in
8913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914 *) ac_try_echo=$ac_try;;
8915esac
8916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917 (eval "$ac_try") 2>&5
8918 ac_status=$?
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008921 llvm_cv_link_use_r=yes
8922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008923 echo "$as_me: failed program was:" >&5
8924sed 's/^/| /' conftest.$ac_ext >&5
8925
8926 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008927fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008928
Bill Wendlingebcceee2009-04-18 11:20:33 +00008929rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008930 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008931 CFLAGS="$oldcflags"
8932 ac_ext=c
8933ac_cpp='$CPP $CPPFLAGS'
8934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8936ac_compiler_gnu=$ac_cv_c_compiler_gnu
8937
8938
8939fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008940{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8941echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008942if test "$llvm_cv_link_use_r" = yes ; then
8943
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008944cat >>confdefs.h <<\_ACEOF
8945#define HAVE_LINK_R 1
8946_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008947
8948 fi
8949
8950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008951{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8952echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8953if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008955else
8956 ac_ext=c
8957ac_cpp='$CPP $CPPFLAGS'
8958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8960ac_compiler_gnu=$ac_cv_c_compiler_gnu
8961
8962 oldcflags="$CFLAGS"
8963 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008964 cat >conftest.$ac_ext <<_ACEOF
8965/* confdefs.h. */
8966_ACEOF
8967cat confdefs.h >>conftest.$ac_ext
8968cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008969/* end confdefs.h. */
8970
8971int
8972main ()
8973{
Dan Gohman39ed6782010-04-25 00:12:20 +00008974
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008975 ;
8976 return 0;
8977}
8978_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008979rm -f conftest.$ac_objext conftest$ac_exeext
8980if { (ac_try="$ac_link"
8981case "(($ac_try" in
8982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983 *) ac_try_echo=$ac_try;;
8984esac
8985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986 (eval "$ac_link") 2>conftest.er1
8987 ac_status=$?
8988 grep -v '^ *+' conftest.er1 >conftest.err
8989 rm -f conftest.er1
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8994 { (case "(($ac_try" in
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8997esac
8998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_try") 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try='test -s conftest$ac_exeext'
9004 { (case "(($ac_try" in
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9007esac
9008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9009 (eval "$ac_try") 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009013 llvm_cv_link_use_export_dynamic=yes
9014else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009015 echo "$as_me: failed program was:" >&5
9016sed 's/^/| /' conftest.$ac_ext >&5
9017
9018 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009020
Bill Wendlingebcceee2009-04-18 11:20:33 +00009021rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009022 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009023 CFLAGS="$oldcflags"
9024 ac_ext=c
9025ac_cpp='$CPP $CPPFLAGS'
9026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028ac_compiler_gnu=$ac_cv_c_compiler_gnu
9029
9030
9031fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009032{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9033echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009034if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009036cat >>confdefs.h <<\_ACEOF
9037#define HAVE_LINK_EXPORT_DYNAMIC 1
9038_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009039
9040 fi
9041
9042
Dan Gohmanda612d62010-06-01 14:56:56 +00009043{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9044echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9045if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00009046 echo $ECHO_N "(cached) $ECHO_C" >&6
9047else
9048 ac_ext=c
9049ac_cpp='$CPP $CPPFLAGS'
9050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9052ac_compiler_gnu=$ac_cv_c_compiler_gnu
9053
9054 oldcflags="$CFLAGS"
9055
9056 # The following code is from the autoconf manual,
9057 # "11.13: Limitations of Usual Tools".
9058 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9059 # Use mktemp if possible; otherwise fall back on mkdir,
9060 # with $RANDOM to make collisions less likely.
9061 : ${TMPDIR=/tmp}
9062 {
9063 tmp=`
9064 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9065 ` &&
9066 test -n "$tmp" && test -d "$tmp"
9067 } || {
9068 tmp=$TMPDIR/foo$$-$RANDOM
9069 (umask 077 && mkdir "$tmp")
9070 } || exit $?
9071
Dan Gohmanda612d62010-06-01 14:56:56 +00009072 echo "{" > "$tmp/export.map"
9073 echo " global: main;" >> "$tmp/export.map"
9074 echo " local: *;" >> "$tmp/export.map"
9075 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009076
Dan Gohmanda612d62010-06-01 14:56:56 +00009077 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009078 cat >conftest.$ac_ext <<_ACEOF
9079/* confdefs.h. */
9080_ACEOF
9081cat confdefs.h >>conftest.$ac_ext
9082cat >>conftest.$ac_ext <<_ACEOF
9083/* end confdefs.h. */
9084
9085int
9086main ()
9087{
Dan Gohman39ed6782010-04-25 00:12:20 +00009088
Dan Gohman391569c2010-04-16 22:59:06 +00009089 ;
9090 return 0;
9091}
9092_ACEOF
9093rm -f conftest.$ac_objext conftest$ac_exeext
9094if { (ac_try="$ac_link"
9095case "(($ac_try" in
9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097 *) ac_try_echo=$ac_try;;
9098esac
9099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9100 (eval "$ac_link") 2>conftest.er1
9101 ac_status=$?
9102 grep -v '^ *+' conftest.er1 >conftest.err
9103 rm -f conftest.er1
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9108 { (case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9111esac
9112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_try") 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; } &&
9117 { ac_try='test -s conftest$ac_exeext'
9118 { (case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9121esac
9122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_try") 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009127 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009128else
9129 echo "$as_me: failed program was:" >&5
9130sed 's/^/| /' conftest.$ac_ext >&5
9131
Dan Gohman943005e2010-06-01 16:22:27 +00009132 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009133fi
9134
9135rm -f core conftest.err conftest.$ac_objext \
9136 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009137 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009138 rmdir "$tmp"
9139 CFLAGS="$oldcflags"
9140 ac_ext=c
9141ac_cpp='$CPP $CPPFLAGS'
9142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9144ac_compiler_gnu=$ac_cv_c_compiler_gnu
9145
9146
9147fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009148{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9149echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9150if test "$llvm_cv_link_use_version_script" = yes ; then
9151 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009152
9153 fi
9154
9155
Reid Spencera773bd52006-08-04 18:18:08 +00009156
9157
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009158{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9159echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9160if test "${ac_cv_c_const+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009162else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009163 cat >conftest.$ac_ext <<_ACEOF
9164/* confdefs.h. */
9165_ACEOF
9166cat confdefs.h >>conftest.$ac_ext
9167cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009168/* end confdefs.h. */
9169
9170int
9171main ()
9172{
9173/* FIXME: Include the comments suggested by Paul. */
9174#ifndef __cplusplus
9175 /* Ultrix mips cc rejects this. */
9176 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009177 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009178 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009179 char const *const *ccp;
9180 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009181 /* NEC SVR4.0.2 mips cc rejects this. */
9182 struct point {int x, y;};
9183 static struct point const zero = {0,0};
9184 /* AIX XL C 1.02.0.0 rejects this.
9185 It does not let you subtract one const X* pointer from another in
9186 an arm of an if-expression whose if-part is not a constant
9187 expression */
9188 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009189 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009190 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009191 ++ccp;
9192 p = (char**) ccp;
9193 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009194 { /* SCO 3.2v4 cc rejects this. */
9195 char *t;
9196 char const *s = 0 ? (char *) 0 : (char const *) 0;
9197
9198 *t++ = 0;
9199 if (s) return 0;
9200 }
9201 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9202 int x[] = {25, 17};
9203 const int *foo = &x[0];
9204 ++foo;
9205 }
9206 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9207 typedef const int *iptr;
9208 iptr p = 0;
9209 ++p;
9210 }
9211 { /* AIX XL C 1.02.0.0 rejects this saying
9212 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9213 struct s { int j; const int *ap[3]; };
9214 struct s *b; b->j = 5;
9215 }
9216 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9217 const int foo = 10;
9218 if (!foo) return 0;
9219 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009220 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009221#endif
9222
9223 ;
9224 return 0;
9225}
9226_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009227rm -f conftest.$ac_objext
9228if { (ac_try="$ac_compile"
9229case "(($ac_try" in
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9232esac
9233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_compile") 2>conftest.er1
9235 ac_status=$?
9236 grep -v '^ *+' conftest.er1 >conftest.err
9237 rm -f conftest.er1
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9242 { (case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9245esac
9246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_try") 2>&5
9248 ac_status=$?
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; } &&
9251 { ac_try='test -s conftest.$ac_objext'
9252 { (case "(($ac_try" in
9253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9254 *) ac_try_echo=$ac_try;;
9255esac
9256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9257 (eval "$ac_try") 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009261 ac_cv_c_const=yes
9262else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009263 echo "$as_me: failed program was:" >&5
9264sed 's/^/| /' conftest.$ac_ext >&5
9265
9266 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009268
Reid Spencera773bd52006-08-04 18:18:08 +00009269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9270fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009271{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9272echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009273if test $ac_cv_c_const = no; then
9274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009275cat >>confdefs.h <<\_ACEOF
9276#define const
9277_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009278
9279fi
9280
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009281
9282
9283
9284
9285
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009286ac_header_dirent=no
9287for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009288 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9289{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9290echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009293else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009294 cat >conftest.$ac_ext <<_ACEOF
9295/* confdefs.h. */
9296_ACEOF
9297cat confdefs.h >>conftest.$ac_ext
9298cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009299/* end confdefs.h. */
9300#include <sys/types.h>
9301#include <$ac_hdr>
9302
9303int
9304main ()
9305{
9306if ((DIR *) 0)
9307return 0;
9308 ;
9309 return 0;
9310}
9311_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009312rm -f conftest.$ac_objext
9313if { (ac_try="$ac_compile"
9314case "(($ac_try" in
9315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316 *) ac_try_echo=$ac_try;;
9317esac
9318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9319 (eval "$ac_compile") 2>conftest.er1
9320 ac_status=$?
9321 grep -v '^ *+' conftest.er1 >conftest.err
9322 rm -f conftest.er1
9323 cat conftest.err >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } &&
9326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9327 { (case "(($ac_try" in
9328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9329 *) ac_try_echo=$ac_try;;
9330esac
9331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9332 (eval "$ac_try") 2>&5
9333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; } &&
9336 { ac_try='test -s conftest.$ac_objext'
9337 { (case "(($ac_try" in
9338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339 *) ac_try_echo=$ac_try;;
9340esac
9341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342 (eval "$ac_try") 2>&5
9343 ac_status=$?
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009346 eval "$as_ac_Header=yes"
9347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009348 echo "$as_me: failed program was:" >&5
9349sed 's/^/| /' conftest.$ac_ext >&5
9350
9351 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009352fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009353
Reid Spencera773bd52006-08-04 18:18:08 +00009354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009356ac_res=`eval echo '${'$as_ac_Header'}'`
9357 { echo "$as_me:$LINENO: result: $ac_res" >&5
9358echo "${ECHO_T}$ac_res" >&6; }
9359if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009360 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009361#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009362_ACEOF
9363
9364ac_header_dirent=$ac_hdr; break
9365fi
9366
9367done
9368# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9369if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009370 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9371echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9372if test "${ac_cv_search_opendir+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009374else
9375 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009376cat >conftest.$ac_ext <<_ACEOF
9377/* confdefs.h. */
9378_ACEOF
9379cat confdefs.h >>conftest.$ac_ext
9380cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009381/* end confdefs.h. */
9382
Reid Spencera773bd52006-08-04 18:18:08 +00009383/* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009386#ifdef __cplusplus
9387extern "C"
9388#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009389char opendir ();
9390int
9391main ()
9392{
Reid Spencera773bd52006-08-04 18:18:08 +00009393return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009394 ;
9395 return 0;
9396}
9397_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009398for ac_lib in '' dir; do
9399 if test -z "$ac_lib"; then
9400 ac_res="none required"
9401 else
9402 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009404 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009405 rm -f conftest.$ac_objext conftest$ac_exeext
9406if { (ac_try="$ac_link"
9407case "(($ac_try" in
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9410esac
9411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_link") 2>conftest.er1
9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9420 { (case "(($ac_try" in
9421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9422 *) ac_try_echo=$ac_try;;
9423esac
9424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9425 (eval "$ac_try") 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; } &&
9429 { ac_try='test -s conftest$ac_exeext'
9430 { (case "(($ac_try" in
9431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9432 *) ac_try_echo=$ac_try;;
9433esac
9434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9435 (eval "$ac_try") 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009439 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009440else
9441 echo "$as_me: failed program was:" >&5
9442sed 's/^/| /' conftest.$ac_ext >&5
9443
9444
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009446
Bill Wendlingebcceee2009-04-18 11:20:33 +00009447rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009448 conftest$ac_exeext
9449 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009450 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009451fi
John Criswell7a73b802003-06-30 21:59:07 +00009452done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009453if test "${ac_cv_search_opendir+set}" = set; then
9454 :
Reid Spencera773bd52006-08-04 18:18:08 +00009455else
9456 ac_cv_search_opendir=no
9457fi
9458rm conftest.$ac_ext
9459LIBS=$ac_func_search_save_LIBS
9460fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009461{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9462echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009463ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009464if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009466
Reid Spencera773bd52006-08-04 18:18:08 +00009467fi
9468
9469else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009470 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9471echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9472if test "${ac_cv_search_opendir+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009474else
9475 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009476cat >conftest.$ac_ext <<_ACEOF
9477/* confdefs.h. */
9478_ACEOF
9479cat confdefs.h >>conftest.$ac_ext
9480cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009481/* end confdefs.h. */
9482
9483/* Override any GCC internal prototype to avoid an error.
9484 Use char because int might match the return type of a GCC
9485 builtin and then its argument prototype would still apply. */
9486#ifdef __cplusplus
9487extern "C"
9488#endif
9489char opendir ();
9490int
9491main ()
9492{
9493return opendir ();
9494 ;
9495 return 0;
9496}
9497_ACEOF
9498for ac_lib in '' x; do
9499 if test -z "$ac_lib"; then
9500 ac_res="none required"
9501 else
9502 ac_res=-l$ac_lib
9503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9504 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009505 rm -f conftest.$ac_objext conftest$ac_exeext
9506if { (ac_try="$ac_link"
9507case "(($ac_try" in
9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509 *) ac_try_echo=$ac_try;;
9510esac
9511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9512 (eval "$ac_link") 2>conftest.er1
9513 ac_status=$?
9514 grep -v '^ *+' conftest.er1 >conftest.err
9515 rm -f conftest.er1
9516 cat conftest.err >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } &&
9519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9520 { (case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9523esac
9524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_try") 2>&5
9526 ac_status=$?
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; } &&
9529 { ac_try='test -s conftest$ac_exeext'
9530 { (case "(($ac_try" in
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9533esac
9534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_try") 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009539 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009540else
9541 echo "$as_me: failed program was:" >&5
9542sed 's/^/| /' conftest.$ac_ext >&5
9543
9544
Reid Spencera773bd52006-08-04 18:18:08 +00009545fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009546
Bill Wendlingebcceee2009-04-18 11:20:33 +00009547rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009548 conftest$ac_exeext
9549 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009550 break
9551fi
9552done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009553if test "${ac_cv_search_opendir+set}" = set; then
9554 :
Reid Spencera773bd52006-08-04 18:18:08 +00009555else
9556 ac_cv_search_opendir=no
9557fi
9558rm conftest.$ac_ext
9559LIBS=$ac_func_search_save_LIBS
9560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009561{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9562echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009563ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009564if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9566
9567fi
9568
9569fi
John Criswell7a73b802003-06-30 21:59:07 +00009570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009571
John Criswell7a73b802003-06-30 21:59:07 +00009572for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009573do
9574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9580fi
9581ac_res=`eval echo '${'$as_ac_Header'}'`
9582 { echo "$as_me:$LINENO: result: $ac_res" >&5
9583echo "${ECHO_T}$ac_res" >&6; }
9584else
9585 # Is the header compilable?
9586{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9588cat >conftest.$ac_ext <<_ACEOF
9589/* confdefs.h. */
9590_ACEOF
9591cat confdefs.h >>conftest.$ac_ext
9592cat >>conftest.$ac_ext <<_ACEOF
9593/* end confdefs.h. */
9594$ac_includes_default
9595#include <$ac_header>
9596_ACEOF
9597rm -f conftest.$ac_objext
9598if { (ac_try="$ac_compile"
9599case "(($ac_try" in
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9602esac
9603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604 (eval "$ac_compile") 2>conftest.er1
9605 ac_status=$?
9606 grep -v '^ *+' conftest.er1 >conftest.err
9607 rm -f conftest.er1
9608 cat conftest.err >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } &&
9611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9612 { (case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9615esac
9616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_try") 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; } &&
9621 { ac_try='test -s conftest.$ac_objext'
9622 { (case "(($ac_try" in
9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624 *) ac_try_echo=$ac_try;;
9625esac
9626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627 (eval "$ac_try") 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_header_compiler=yes
9632else
9633 echo "$as_me: failed program was:" >&5
9634sed 's/^/| /' conftest.$ac_ext >&5
9635
9636 ac_header_compiler=no
9637fi
9638
9639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9640{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9641echo "${ECHO_T}$ac_header_compiler" >&6; }
9642
9643# Is the header present?
9644{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9645echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9646cat >conftest.$ac_ext <<_ACEOF
9647/* confdefs.h. */
9648_ACEOF
9649cat confdefs.h >>conftest.$ac_ext
9650cat >>conftest.$ac_ext <<_ACEOF
9651/* end confdefs.h. */
9652#include <$ac_header>
9653_ACEOF
9654if { (ac_try="$ac_cpp conftest.$ac_ext"
9655case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9658esac
9659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9661 ac_status=$?
9662 grep -v '^ *+' conftest.er1 >conftest.err
9663 rm -f conftest.er1
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } >/dev/null; then
9667 if test -s conftest.err; then
9668 ac_cpp_err=$ac_c_preproc_warn_flag
9669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9670 else
9671 ac_cpp_err=
9672 fi
9673else
9674 ac_cpp_err=yes
9675fi
9676if test -z "$ac_cpp_err"; then
9677 ac_header_preproc=yes
9678else
9679 echo "$as_me: failed program was:" >&5
9680sed 's/^/| /' conftest.$ac_ext >&5
9681
9682 ac_header_preproc=no
9683fi
9684
9685rm -f conftest.err conftest.$ac_ext
9686{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9687echo "${ECHO_T}$ac_header_preproc" >&6; }
9688
9689# So? What about this header?
9690case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9691 yes:no: )
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9693echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9695echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9696 ac_header_preproc=yes
9697 ;;
9698 no:yes:* )
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9700echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9702echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9704echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9706echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9708echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9710echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9711 ( cat <<\_ASBOX
9712## ----------------------------------- ##
9713## Report this to llvmbugs@cs.uiuc.edu ##
9714## ----------------------------------- ##
9715_ASBOX
9716 ) | sed "s/^/$as_me: WARNING: /" >&2
9717 ;;
9718esac
9719{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723else
9724 eval "$as_ac_Header=\$ac_header_preproc"
9725fi
9726ac_res=`eval echo '${'$as_ac_Header'}'`
9727 { echo "$as_me:$LINENO: result: $ac_res" >&5
9728echo "${ECHO_T}$ac_res" >&6; }
9729
9730fi
9731if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009732 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009734_ACEOF
9735
9736fi
9737
9738done
9739
Reid Spencera773bd52006-08-04 18:18:08 +00009740# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009741if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009742 enableval=$enable_ltdl_install;
9743fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009744
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009746
9747
9748if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009749 INSTALL_LTDL_TRUE=
9750 INSTALL_LTDL_FALSE='#'
9751else
9752 INSTALL_LTDL_TRUE='#'
9753 INSTALL_LTDL_FALSE=
9754fi
9755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009756
9757
9758if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009759 CONVENIENCE_LTDL_TRUE=
9760 CONVENIENCE_LTDL_FALSE='#'
9761else
9762 CONVENIENCE_LTDL_TRUE='#'
9763 CONVENIENCE_LTDL_FALSE=
9764fi
9765
9766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009767{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9768echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009769library_names_spec=
9770libname_spec='lib$name'
9771soname_spec=
9772shrext_cmds=".so"
9773postinstall_cmds=
9774postuninstall_cmds=
9775finish_cmds=
9776finish_eval=
9777shlibpath_var=
9778shlibpath_overrides_runpath=unknown
9779version_type=none
9780dynamic_linker="$host_os ld.so"
9781sys_lib_dlsearch_path_spec="/lib /usr/lib"
9782if test "$GCC" = yes; then
9783 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9784 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9785 # if the path contains ";" then we assume it to be the separator
9786 # otherwise default to the standard path separator (i.e. ":") - it is
9787 # assumed that no part of a normal pathname contains ";" but that should
9788 # okay in the real world where ";" in dirpaths is itself problematic.
9789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9790 else
9791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9792 fi
9793else
9794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9795fi
9796need_lib_prefix=unknown
9797hardcode_into_libs=no
9798
9799# when you set need_version to no, make sure it does not cause -set_version
9800# flags to be left without arguments
9801need_version=unknown
9802
9803case $host_os in
9804aix3*)
9805 version_type=linux
9806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9807 shlibpath_var=LIBPATH
9808
9809 # AIX 3 has no versioning support, so we append a major version to the name.
9810 soname_spec='${libname}${release}${shared_ext}$major'
9811 ;;
9812
9813aix4* | aix5*)
9814 version_type=linux
9815 need_lib_prefix=no
9816 need_version=no
9817 hardcode_into_libs=yes
9818 if test "$host_cpu" = ia64; then
9819 # AIX 5 supports IA64
9820 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9821 shlibpath_var=LD_LIBRARY_PATH
9822 else
9823 # With GCC up to 2.95.x, collect2 would create an import file
9824 # for dependence libraries. The import file would start with
9825 # the line `#! .'. This would cause the generated library to
9826 # depend on `.', always an invalid library. This was fixed in
9827 # development snapshots of GCC prior to 3.0.
9828 case $host_os in
9829 aix4 | aix4.[01] | aix4.[01].*)
9830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9831 echo ' yes '
9832 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9833 :
9834 else
9835 can_build_shared=no
9836 fi
9837 ;;
9838 esac
9839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9840 # soname into executable. Probably we can add versioning support to
9841 # collect2, so additional links can be useful in future.
9842 if test "$aix_use_runtimelinking" = yes; then
9843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9844 # instead of lib<name>.a to let people know that these are not
9845 # typical AIX shared libraries.
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847 else
9848 # We preserve .a as extension for shared libraries through AIX4.2
9849 # and later when we are not doing run time linking.
9850 library_names_spec='${libname}${release}.a $libname.a'
9851 soname_spec='${libname}${release}${shared_ext}$major'
9852 fi
9853 shlibpath_var=LIBPATH
9854 fi
9855 ;;
9856
9857amigaos*)
9858 library_names_spec='$libname.ixlibrary $libname.a'
9859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9860 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'
9861 ;;
9862
9863beos*)
9864 library_names_spec='${libname}${shared_ext}'
9865 dynamic_linker="$host_os ld.so"
9866 shlibpath_var=LIBRARY_PATH
9867 ;;
9868
9869bsdi[45]*)
9870 version_type=linux
9871 need_version=no
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873 soname_spec='${libname}${release}${shared_ext}$major'
9874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9875 shlibpath_var=LD_LIBRARY_PATH
9876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9878 # the default ld.so.conf also contains /usr/contrib/lib and
9879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9880 # libtool to hard-code these into programs
9881 ;;
9882
9883cygwin* | mingw* | pw32*)
9884 version_type=windows
9885 shrext_cmds=".dll"
9886 need_version=no
9887 need_lib_prefix=no
9888
9889 case $GCC,$host_os in
9890 yes,cygwin* | yes,mingw* | yes,pw32*)
9891 library_names_spec='$libname.dll.a'
9892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9893 postinstall_cmds='base_file=`basename \${file}`~
9894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9895 dldir=$destdir/`dirname \$dlpath`~
9896 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009897 $install_prog $dir/$dlname \$dldir/$dlname~
9898 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9900 dlpath=$dir/\$dldll~
9901 $rm \$dlpath'
9902 shlibpath_overrides_runpath=yes
9903
9904 case $host_os in
9905 cygwin*)
9906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9908 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9909 ;;
9910 mingw*)
9911 # MinGW DLLs use traditional 'lib' prefix
9912 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9914 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9915 # It is most probably a Windows format PATH printed by
9916 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9917 # path with ; separators, and with drive letters. We can handle the
9918 # drive letters (cygwin fileutils understands them), so leave them,
9919 # especially as we might pass files found there to a mingw objdump,
9920 # which wouldn't understand a cygwinified path. Ahh.
9921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9922 else
9923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9924 fi
9925 ;;
9926 pw32*)
9927 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009928 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 +00009929 ;;
9930 esac
9931 ;;
9932
9933 *)
9934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9935 ;;
9936 esac
9937 dynamic_linker='Win32 ld.exe'
9938 # FIXME: first we should search . and the directory the executable is in
9939 shlibpath_var=PATH
9940 ;;
9941
9942darwin* | rhapsody*)
9943 dynamic_linker="$host_os dyld"
9944 version_type=darwin
9945 need_lib_prefix=no
9946 need_version=no
9947 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9948 soname_spec='${libname}${release}${major}$shared_ext'
9949 shlibpath_overrides_runpath=yes
9950 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009951 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009952 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9953 if test "$GCC" = yes; then
9954 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"`
9955 else
9956 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9957 fi
9958 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9959 ;;
9960
9961dgux*)
9962 version_type=linux
9963 need_lib_prefix=no
9964 need_version=no
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 shlibpath_var=LD_LIBRARY_PATH
9968 ;;
9969
9970freebsd1*)
9971 dynamic_linker=no
9972 ;;
9973
9974kfreebsd*-gnu)
9975 version_type=linux
9976 need_lib_prefix=no
9977 need_version=no
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 shlibpath_var=LD_LIBRARY_PATH
9981 shlibpath_overrides_runpath=no
9982 hardcode_into_libs=yes
9983 dynamic_linker='GNU ld.so'
9984 ;;
9985
Reid Spencera773bd52006-08-04 18:18:08 +00009986freebsd* | dragonfly*)
9987 # DragonFly does not have aout. When/if they implement a new
9988 # versioning mechanism, adjust this.
9989 if test -x /usr/bin/objformat; then
9990 objformat=`/usr/bin/objformat`
9991 else
9992 case $host_os in
9993 freebsd[123]*) objformat=aout ;;
9994 *) objformat=elf ;;
9995 esac
9996 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009997 version_type=freebsd-$objformat
9998 case $version_type in
9999 freebsd-elf*)
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10001 need_version=no
10002 need_lib_prefix=no
10003 ;;
10004 freebsd-*)
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10006 need_version=yes
10007 ;;
10008 esac
10009 shlibpath_var=LD_LIBRARY_PATH
10010 case $host_os in
10011 freebsd2*)
10012 shlibpath_overrides_runpath=yes
10013 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010014 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010015 shlibpath_overrides_runpath=yes
10016 hardcode_into_libs=yes
10017 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010018 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10019 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010020 shlibpath_overrides_runpath=no
10021 hardcode_into_libs=yes
10022 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010023 freebsd*) # from 4.6 on
10024 shlibpath_overrides_runpath=yes
10025 hardcode_into_libs=yes
10026 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010027 esac
10028 ;;
10029
10030gnu*)
10031 version_type=linux
10032 need_lib_prefix=no
10033 need_version=no
10034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10035 soname_spec='${libname}${release}${shared_ext}$major'
10036 shlibpath_var=LD_LIBRARY_PATH
10037 hardcode_into_libs=yes
10038 ;;
10039
10040hpux9* | hpux10* | hpux11*)
10041 # Give a soname corresponding to the major version so that dld.sl refuses to
10042 # link against other versions.
10043 version_type=sunos
10044 need_lib_prefix=no
10045 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000010046 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010047 ia64*)
10048 shrext_cmds='.so'
10049 hardcode_into_libs=yes
10050 dynamic_linker="$host_os dld.so"
10051 shlibpath_var=LD_LIBRARY_PATH
10052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 if test "X$HPUX_IA64_MODE" = X32; then
10056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10057 else
10058 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10059 fi
10060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10061 ;;
10062 hppa*64*)
10063 shrext_cmds='.sl'
10064 hardcode_into_libs=yes
10065 dynamic_linker="$host_os dld.sl"
10066 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10069 soname_spec='${libname}${release}${shared_ext}$major'
10070 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10072 ;;
10073 *)
10074 shrext_cmds='.sl'
10075 dynamic_linker="$host_os dld.sl"
10076 shlibpath_var=SHLIB_PATH
10077 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
10081 esac
10082 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10083 postinstall_cmds='chmod 555 $lib'
10084 ;;
10085
Reid Spencera773bd52006-08-04 18:18:08 +000010086interix3*)
10087 version_type=linux
10088 need_lib_prefix=no
10089 need_version=no
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 shlibpath_overrides_runpath=no
10095 hardcode_into_libs=yes
10096 ;;
10097
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010098irix5* | irix6* | nonstopux*)
10099 case $host_os in
10100 nonstopux*) version_type=nonstopux ;;
10101 *)
10102 if test "$lt_cv_prog_gnu_ld" = yes; then
10103 version_type=linux
10104 else
10105 version_type=irix
10106 fi ;;
10107 esac
10108 need_lib_prefix=no
10109 need_version=no
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10112 case $host_os in
10113 irix5* | nonstopux*)
10114 libsuff= shlibsuff=
10115 ;;
10116 *)
10117 case $LD in # libtool.m4 will add one of these switches to LD
10118 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10119 libsuff= shlibsuff= libmagic=32-bit;;
10120 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10121 libsuff=32 shlibsuff=N32 libmagic=N32;;
10122 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10123 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10124 *) libsuff= shlibsuff= libmagic=never-match;;
10125 esac
10126 ;;
10127 esac
10128 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10129 shlibpath_overrides_runpath=no
10130 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10131 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10132 hardcode_into_libs=yes
10133 ;;
10134
10135# No shared lib support for Linux oldld, aout, or coff.
10136linux*oldld* | linux*aout* | linux*coff*)
10137 dynamic_linker=no
10138 ;;
10139
10140# This must be Linux ELF.
10141linux*)
10142 version_type=linux
10143 need_lib_prefix=no
10144 need_version=no
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10148 shlibpath_var=LD_LIBRARY_PATH
10149 shlibpath_overrides_runpath=no
10150 # This implies no fast_install, which is unacceptable.
10151 # Some rework will be needed to allow for fast_install
10152 # before this can be enabled.
10153 hardcode_into_libs=yes
10154
10155 # Append ld.so.conf contents to the search path
10156 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010157 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 +000010158 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10159 fi
10160
10161 # We used to test for /lib/ld.so.1 and disable shared libraries on
10162 # powerpc, because MkLinux only supported shared libraries with the
10163 # GNU dynamic linker. Since this was broken with cross compilers,
10164 # most powerpc-linux boxes support dynamic linking these days and
10165 # people can always --disable-shared, the test was removed, and we
10166 # assume the GNU/Linux dynamic linker is in use.
10167 dynamic_linker='GNU/Linux ld.so'
10168 ;;
10169
10170knetbsd*-gnu)
10171 version_type=linux
10172 need_lib_prefix=no
10173 need_version=no
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 shlibpath_var=LD_LIBRARY_PATH
10177 shlibpath_overrides_runpath=no
10178 hardcode_into_libs=yes
10179 dynamic_linker='GNU ld.so'
10180 ;;
10181
10182netbsd*)
10183 version_type=sunos
10184 need_lib_prefix=no
10185 need_version=no
10186 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10189 dynamic_linker='NetBSD (a.out) ld.so'
10190 else
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10192 soname_spec='${libname}${release}${shared_ext}$major'
10193 dynamic_linker='NetBSD ld.elf_so'
10194 fi
10195 shlibpath_var=LD_LIBRARY_PATH
10196 shlibpath_overrides_runpath=yes
10197 hardcode_into_libs=yes
10198 ;;
10199
10200newsos6)
10201 version_type=linux
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 shlibpath_overrides_runpath=yes
10205 ;;
10206
10207nto-qnx*)
10208 version_type=linux
10209 need_lib_prefix=no
10210 need_version=no
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 shlibpath_var=LD_LIBRARY_PATH
10214 shlibpath_overrides_runpath=yes
10215 ;;
10216
10217openbsd*)
10218 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010219 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010220 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010221 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10222 case $host_os in
10223 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10224 *) need_version=no ;;
10225 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10228 shlibpath_var=LD_LIBRARY_PATH
10229 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10230 case $host_os in
10231 openbsd2.[89] | openbsd2.[89].*)
10232 shlibpath_overrides_runpath=no
10233 ;;
10234 *)
10235 shlibpath_overrides_runpath=yes
10236 ;;
10237 esac
10238 else
10239 shlibpath_overrides_runpath=yes
10240 fi
10241 ;;
10242
10243os2*)
10244 libname_spec='$name'
10245 shrext_cmds=".dll"
10246 need_lib_prefix=no
10247 library_names_spec='$libname${shared_ext} $libname.a'
10248 dynamic_linker='OS/2 ld.exe'
10249 shlibpath_var=LIBPATH
10250 ;;
10251
10252osf3* | osf4* | osf5*)
10253 version_type=osf
10254 need_lib_prefix=no
10255 need_version=no
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10260 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10261 ;;
10262
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010263solaris*)
10264 version_type=linux
10265 need_lib_prefix=no
10266 need_version=no
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10268 soname_spec='${libname}${release}${shared_ext}$major'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=yes
10271 hardcode_into_libs=yes
10272 # ldd complains unless libraries are executable
10273 postinstall_cmds='chmod +x $lib'
10274 ;;
10275
10276sunos4*)
10277 version_type=sunos
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10279 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10280 shlibpath_var=LD_LIBRARY_PATH
10281 shlibpath_overrides_runpath=yes
10282 if test "$with_gnu_ld" = yes; then
10283 need_lib_prefix=no
10284 fi
10285 need_version=yes
10286 ;;
10287
Reid Spencera773bd52006-08-04 18:18:08 +000010288sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010289 version_type=linux
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 case $host_vendor in
10294 sni)
10295 shlibpath_overrides_runpath=no
10296 need_lib_prefix=no
10297 export_dynamic_flag_spec='${wl}-Blargedynsym'
10298 runpath_var=LD_RUN_PATH
10299 ;;
10300 siemens)
10301 need_lib_prefix=no
10302 ;;
10303 motorola)
10304 need_lib_prefix=no
10305 need_version=no
10306 shlibpath_overrides_runpath=no
10307 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10308 ;;
10309 esac
10310 ;;
10311
10312sysv4*MP*)
10313 if test -d /usr/nec ;then
10314 version_type=linux
10315 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10316 soname_spec='$libname${shared_ext}.$major'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 fi
10319 ;;
10320
Reid Spencera773bd52006-08-04 18:18:08 +000010321sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10322 version_type=freebsd-elf
10323 need_lib_prefix=no
10324 need_version=no
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 hardcode_into_libs=yes
10329 if test "$with_gnu_ld" = yes; then
10330 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10331 shlibpath_overrides_runpath=no
10332 else
10333 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10334 shlibpath_overrides_runpath=yes
10335 case $host_os in
10336 sco3.2v5*)
10337 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10338 ;;
10339 esac
10340 fi
10341 sys_lib_dlsearch_path_spec='/usr/lib'
10342 ;;
10343
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010344uts4*)
10345 version_type=linux
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 ;;
10350
10351*)
10352 dynamic_linker=no
10353 ;;
10354esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010355{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10356echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010357test "$dynamic_linker" = no && can_build_shared=no
10358
Reid Spencera773bd52006-08-04 18:18:08 +000010359variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10360if test "$GCC" = yes; then
10361 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10362fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010363
Reid Spencera773bd52006-08-04 18:18:08 +000010364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010365{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10366echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10367if test "${libltdl_cv_shlibext+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010369else
10370
10371module=yes
10372eval libltdl_cv_shlibext=$shrext_cmds
10373
10374fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010375{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10376echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010377if test -n "$libltdl_cv_shlibext"; then
10378
10379cat >>confdefs.h <<_ACEOF
10380#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10381_ACEOF
10382
10383fi
10384
10385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010386{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10387echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10388if test "${libltdl_cv_shlibpath_var+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010390else
10391 libltdl_cv_shlibpath_var="$shlibpath_var"
10392fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010393{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10394echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010395if test -n "$libltdl_cv_shlibpath_var"; then
10396
10397cat >>confdefs.h <<_ACEOF
10398#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10399_ACEOF
10400
10401fi
10402
10403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010404{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10405echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10406if test "${libltdl_cv_sys_search_path+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010408else
10409 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010411{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10412echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010413if test -n "$libltdl_cv_sys_search_path"; then
10414 sys_search_path=
10415 for dir in $libltdl_cv_sys_search_path; do
10416 if test -z "$sys_search_path"; then
10417 sys_search_path="$dir"
10418 else
10419 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10420 fi
10421 done
10422
10423cat >>confdefs.h <<_ACEOF
10424#define LTDL_SYSSEARCHPATH "$sys_search_path"
10425_ACEOF
10426
10427fi
10428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010429{ echo "$as_me:$LINENO: checking for objdir" >&5
10430echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10431if test "${libltdl_cv_objdir+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010433else
10434 libltdl_cv_objdir="$objdir"
10435 if test -n "$objdir"; then
10436 :
10437 else
10438 rm -f .libs 2>/dev/null
10439 mkdir .libs 2>/dev/null
10440 if test -d .libs; then
10441 libltdl_cv_objdir=.libs
10442 else
10443 # MS-DOS does not allow filenames that begin with a dot.
10444 libltdl_cv_objdir=_libs
10445 fi
10446 rmdir .libs 2>/dev/null
10447 fi
10448
10449fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010450{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10451echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452
10453cat >>confdefs.h <<_ACEOF
10454#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10455_ACEOF
10456
10457
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010458
10459
10460
10461
10462# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010463{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10464echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10465if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010467else
10468
10469# These are sane defaults that work on at least a few old systems.
10470# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10471
10472# Character class describing NM global symbol codes.
10473symcode='[BCDEGRST]'
10474
10475# Regexp to match symbols that can be accessed directly from C.
10476sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10477
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010478# Transform an extracted symbol line into a proper C declaration
10479lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10480
10481# Transform an extracted symbol line into symbol name and symbol address
10482lt_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'"
10483
10484# Define system-specific variables.
10485case $host_os in
10486aix*)
10487 symcode='[BCDT]'
10488 ;;
10489cygwin* | mingw* | pw32*)
10490 symcode='[ABCDGISTW]'
10491 ;;
10492hpux*) # Its linker distinguishes data from code symbols
10493 if test "$host_cpu" = ia64; then
10494 symcode='[ABCDEGRST]'
10495 fi
10496 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10497 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'"
10498 ;;
10499linux*)
10500 if test "$host_cpu" = ia64; then
10501 symcode='[ABCDGIRSTW]'
10502 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10503 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'"
10504 fi
10505 ;;
10506irix* | nonstopux*)
10507 symcode='[BCDEGRST]'
10508 ;;
10509osf*)
10510 symcode='[BCDEGQRST]'
10511 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010512solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010513 symcode='[BDRT]'
10514 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010515sco3.2v5*)
10516 symcode='[DT]'
10517 ;;
10518sysv4.2uw2*)
10519 symcode='[DT]'
10520 ;;
10521sysv5* | sco5v6* | unixware* | OpenUNIX*)
10522 symcode='[ABDT]'
10523 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010524sysv4)
10525 symcode='[DFNSTU]'
10526 ;;
10527esac
10528
10529# Handle CRLF in mingw tool chain
10530opt_cr=
10531case $build_os in
10532mingw*)
10533 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10534 ;;
10535esac
10536
10537# If we're using GNU nm, then use its standard symbol codes.
10538case `$NM -V 2>&1` in
10539*GNU* | *'with BFD'*)
10540 symcode='[ABCDGIRSTW]' ;;
10541esac
10542
10543# Try without a prefix undercore, then with it.
10544for ac_symprfx in "" "_"; do
10545
Reid Spencera773bd52006-08-04 18:18:08 +000010546 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10547 symxfrm="\\1 $ac_symprfx\\2 \\2"
10548
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010549 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010550 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 +000010551
10552 # Check to see that the pipe works correctly.
10553 pipe_works=no
10554
10555 rm -f conftest*
10556 cat > conftest.$ac_ext <<EOF
10557#ifdef __cplusplus
10558extern "C" {
10559#endif
10560char nm_test_var;
10561void nm_test_func(){}
10562#ifdef __cplusplus
10563}
10564#endif
10565int main(){nm_test_var='a';nm_test_func();return(0);}
10566EOF
10567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010569 (eval $ac_compile) 2>&5
10570 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010573 # Now try to grab the symbols.
10574 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010575 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 +000010576 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10577 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010580 # Try sorting and uniquifying the output.
10581 if sort "$nlist" | uniq > "$nlist"T; then
10582 mv -f "$nlist"T "$nlist"
10583 else
10584 rm -f "$nlist"T
10585 fi
10586
10587 # Make sure that we snagged all the symbols we need.
10588 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10589 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10590 cat <<EOF > conftest.$ac_ext
10591#ifdef __cplusplus
10592extern "C" {
10593#endif
10594
10595EOF
10596 # Now generate the symbol file.
10597 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10598
10599 cat <<EOF >> conftest.$ac_ext
10600#if defined (__STDC__) && __STDC__
10601# define lt_ptr_t void *
10602#else
10603# define lt_ptr_t char *
10604# define const
10605#endif
10606
10607/* The mapping between symbol names and symbols. */
10608const struct {
10609 const char *name;
10610 lt_ptr_t address;
10611}
10612lt_preloaded_symbols[] =
10613{
10614EOF
10615 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10616 cat <<\EOF >> conftest.$ac_ext
10617 {0, (lt_ptr_t) 0}
10618};
10619
10620#ifdef __cplusplus
10621}
10622#endif
10623EOF
10624 # Now try linking the two files.
10625 mv conftest.$ac_objext conftstm.$ac_objext
10626 lt_save_LIBS="$LIBS"
10627 lt_save_CFLAGS="$CFLAGS"
10628 LIBS="conftstm.$ac_objext"
10629 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010631 (eval $ac_link) 2>&5
10632 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010635 pipe_works=yes
10636 fi
10637 LIBS="$lt_save_LIBS"
10638 CFLAGS="$lt_save_CFLAGS"
10639 else
10640 echo "cannot find nm_test_func in $nlist" >&5
10641 fi
10642 else
10643 echo "cannot find nm_test_var in $nlist" >&5
10644 fi
10645 else
10646 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10647 fi
10648 else
10649 echo "$progname: failed program was:" >&5
10650 cat conftest.$ac_ext >&5
10651 fi
10652 rm -f conftest* conftst*
10653
10654 # Do not use the global_symbol_pipe unless it works.
10655 if test "$pipe_works" = yes; then
10656 break
10657 else
10658 lt_cv_sys_global_symbol_pipe=
10659 fi
10660done
10661
10662fi
10663
10664if test -z "$lt_cv_sys_global_symbol_pipe"; then
10665 lt_cv_sys_global_symbol_to_cdecl=
10666fi
10667if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010668 { echo "$as_me:$LINENO: result: failed" >&5
10669echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010670else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010671 { echo "$as_me:$LINENO: result: ok" >&5
10672echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010673fi
10674
10675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010676{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10677echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10678if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010680else
10681 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10682 libltdl_cv_preloaded_symbols=yes
10683 else
10684 libltdl_cv_preloaded_symbols=no
10685 fi
10686
10687fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010688{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10689echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010690if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010692cat >>confdefs.h <<\_ACEOF
10693#define HAVE_PRELOADED_SYMBOLS 1
10694_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010695
10696fi
10697
10698LIBADD_DL=
10699
10700ac_ext=c
10701ac_cpp='$CPP $CPPFLAGS'
10702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10704ac_compiler_gnu=$ac_cv_c_compiler_gnu
10705
10706
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010707{ echo "$as_me:$LINENO: checking for shl_load" >&5
10708echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10709if test "${ac_cv_func_shl_load+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10711else
10712 cat >conftest.$ac_ext <<_ACEOF
10713/* confdefs.h. */
10714_ACEOF
10715cat confdefs.h >>conftest.$ac_ext
10716cat >>conftest.$ac_ext <<_ACEOF
10717/* end confdefs.h. */
10718/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10720#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010722/* System header to define __stub macros and hopefully few prototypes,
10723 which can conflict with char shl_load (); below.
10724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10725 <limits.h> exists even on freestanding compilers. */
10726
10727#ifdef __STDC__
10728# include <limits.h>
10729#else
10730# include <assert.h>
10731#endif
10732
10733#undef shl_load
10734
10735/* Override any GCC internal prototype to avoid an error.
10736 Use char because int might match the return type of a GCC
10737 builtin and then its argument prototype would still apply. */
10738#ifdef __cplusplus
10739extern "C"
10740#endif
10741char shl_load ();
10742/* The GNU C library defines this for functions which it implements
10743 to always fail with ENOSYS. Some functions are actually named
10744 something starting with __ and the normal name is an alias. */
10745#if defined __stub_shl_load || defined __stub___shl_load
10746choke me
10747#endif
10748
10749int
10750main ()
10751{
10752return shl_load ();
10753 ;
10754 return 0;
10755}
10756_ACEOF
10757rm -f conftest.$ac_objext conftest$ac_exeext
10758if { (ac_try="$ac_link"
10759case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10762esac
10763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_link") 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } &&
10771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10772 { (case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10775esac
10776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_try") 2>&5
10778 ac_status=$?
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; } &&
10781 { ac_try='test -s conftest$ac_exeext'
10782 { (case "(($ac_try" in
10783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784 *) ac_try_echo=$ac_try;;
10785esac
10786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787 (eval "$ac_try") 2>&5
10788 ac_status=$?
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }; then
10791 ac_cv_func_shl_load=yes
10792else
10793 echo "$as_me: failed program was:" >&5
10794sed 's/^/| /' conftest.$ac_ext >&5
10795
10796 ac_cv_func_shl_load=no
10797fi
10798
10799rm -f core conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801fi
10802{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10803echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10804if test $ac_cv_func_shl_load = yes; then
10805
10806cat >>confdefs.h <<\_ACEOF
10807#define HAVE_SHL_LOAD 1
10808_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010809
10810else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010811 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10812echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10813if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010815else
10816 ac_check_lib_save_LIBS=$LIBS
10817LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010818cat >conftest.$ac_ext <<_ACEOF
10819/* confdefs.h. */
10820_ACEOF
10821cat confdefs.h >>conftest.$ac_ext
10822cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010823/* end confdefs.h. */
10824
Reid Spencera773bd52006-08-04 18:18:08 +000010825/* Override any GCC internal prototype to avoid an error.
10826 Use char because int might match the return type of a GCC
10827 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010828#ifdef __cplusplus
10829extern "C"
10830#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010831char shl_load ();
10832int
10833main ()
10834{
Reid Spencera773bd52006-08-04 18:18:08 +000010835return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010836 ;
10837 return 0;
10838}
10839_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010840rm -f conftest.$ac_objext conftest$ac_exeext
10841if { (ac_try="$ac_link"
10842case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10845esac
10846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_link") 2>conftest.er1
10848 ac_status=$?
10849 grep -v '^ *+' conftest.er1 >conftest.err
10850 rm -f conftest.er1
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } &&
10854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10855 { (case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10858esac
10859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_try") 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; } &&
10864 { ac_try='test -s conftest$ac_exeext'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10868esac
10869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010874 ac_cv_lib_dld_shl_load=yes
10875else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010876 echo "$as_me: failed program was:" >&5
10877sed 's/^/| /' conftest.$ac_ext >&5
10878
10879 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010880fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010881
Bill Wendlingebcceee2009-04-18 11:20:33 +000010882rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010883 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010884LIBS=$ac_check_lib_save_LIBS
10885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010886{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10887echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10888if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010890cat >>confdefs.h <<\_ACEOF
10891#define HAVE_SHL_LOAD 1
10892_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010893
10894 LIBADD_DL="$LIBADD_DL -ldld"
10895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010896 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10897echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10898if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010900else
10901 ac_check_lib_save_LIBS=$LIBS
10902LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010903cat >conftest.$ac_ext <<_ACEOF
10904/* confdefs.h. */
10905_ACEOF
10906cat confdefs.h >>conftest.$ac_ext
10907cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010908/* end confdefs.h. */
10909
Reid Spencera773bd52006-08-04 18:18:08 +000010910/* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010913#ifdef __cplusplus
10914extern "C"
10915#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010916char dlopen ();
10917int
10918main ()
10919{
Reid Spencera773bd52006-08-04 18:18:08 +000010920return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010921 ;
10922 return 0;
10923}
10924_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010925rm -f conftest.$ac_objext conftest$ac_exeext
10926if { (ac_try="$ac_link"
10927case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10930esac
10931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_link") 2>conftest.er1
10933 ac_status=$?
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10940 { (case "(($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_try") 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; } &&
10949 { ac_try='test -s conftest$ac_exeext'
10950 { (case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10953esac
10954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_try") 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010959 ac_cv_lib_dl_dlopen=yes
10960else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010961 echo "$as_me: failed program was:" >&5
10962sed 's/^/| /' conftest.$ac_ext >&5
10963
10964 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010966
Bill Wendlingebcceee2009-04-18 11:20:33 +000010967rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010968 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010969LIBS=$ac_check_lib_save_LIBS
10970fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010971{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10972echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10973if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010974
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010975cat >>confdefs.h <<\_ACEOF
10976#define HAVE_LIBDL 1
10977_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010978
10979 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010981 cat >conftest.$ac_ext <<_ACEOF
10982/* confdefs.h. */
10983_ACEOF
10984cat confdefs.h >>conftest.$ac_ext
10985cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010986/* end confdefs.h. */
10987#if HAVE_DLFCN_H
10988# include <dlfcn.h>
10989#endif
10990
10991int
10992main ()
10993{
10994dlopen(0, 0);
10995 ;
10996 return 0;
10997}
10998_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010999rm -f conftest.$ac_objext conftest$ac_exeext
11000if { (ac_try="$ac_link"
11001case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004esac
11005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_link") 2>conftest.er1
11007 ac_status=$?
11008 grep -v '^ *+' conftest.er1 >conftest.err
11009 rm -f conftest.er1
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014 { (case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11017esac
11018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_try") 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest$ac_exeext'
11024 { (case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11027esac
11028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_try") 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011034cat >>confdefs.h <<\_ACEOF
11035#define HAVE_LIBDL 1
11036_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011037 libltdl_cv_func_dlopen="yes"
11038else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011039 echo "$as_me: failed program was:" >&5
11040sed 's/^/| /' conftest.$ac_ext >&5
11041
11042 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11043echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11044if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011046else
11047 ac_check_lib_save_LIBS=$LIBS
11048LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011049cat >conftest.$ac_ext <<_ACEOF
11050/* confdefs.h. */
11051_ACEOF
11052cat confdefs.h >>conftest.$ac_ext
11053cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011054/* end confdefs.h. */
11055
Reid Spencera773bd52006-08-04 18:18:08 +000011056/* Override any GCC internal prototype to avoid an error.
11057 Use char because int might match the return type of a GCC
11058 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011059#ifdef __cplusplus
11060extern "C"
11061#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011062char dlopen ();
11063int
11064main ()
11065{
Reid Spencera773bd52006-08-04 18:18:08 +000011066return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011067 ;
11068 return 0;
11069}
11070_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011071rm -f conftest.$ac_objext conftest$ac_exeext
11072if { (ac_try="$ac_link"
11073case "(($ac_try" in
11074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075 *) ac_try_echo=$ac_try;;
11076esac
11077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078 (eval "$ac_link") 2>conftest.er1
11079 ac_status=$?
11080 grep -v '^ *+' conftest.er1 >conftest.err
11081 rm -f conftest.er1
11082 cat conftest.err >&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } &&
11085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11086 { (case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11089esac
11090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_try") 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; } &&
11095 { ac_try='test -s conftest$ac_exeext'
11096 { (case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11099esac
11100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101 (eval "$ac_try") 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011105 ac_cv_lib_svld_dlopen=yes
11106else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011107 echo "$as_me: failed program was:" >&5
11108sed 's/^/| /' conftest.$ac_ext >&5
11109
11110 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011111fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011112
Bill Wendlingebcceee2009-04-18 11:20:33 +000011113rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011114 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011115LIBS=$ac_check_lib_save_LIBS
11116fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011117{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11118echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11119if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011120
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011121cat >>confdefs.h <<\_ACEOF
11122#define HAVE_LIBDL 1
11123_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011124
11125 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11126else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011127 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11128echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11129if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011131else
11132 ac_check_lib_save_LIBS=$LIBS
11133LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011134cat >conftest.$ac_ext <<_ACEOF
11135/* confdefs.h. */
11136_ACEOF
11137cat confdefs.h >>conftest.$ac_ext
11138cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011139/* end confdefs.h. */
11140
Reid Spencera773bd52006-08-04 18:18:08 +000011141/* Override any GCC internal prototype to avoid an error.
11142 Use char because int might match the return type of a GCC
11143 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011144#ifdef __cplusplus
11145extern "C"
11146#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011147char dld_link ();
11148int
11149main ()
11150{
Reid Spencera773bd52006-08-04 18:18:08 +000011151return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011152 ;
11153 return 0;
11154}
11155_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011156rm -f conftest.$ac_objext conftest$ac_exeext
11157if { (ac_try="$ac_link"
11158case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11161esac
11162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163 (eval "$ac_link") 2>conftest.er1
11164 ac_status=$?
11165 grep -v '^ *+' conftest.er1 >conftest.err
11166 rm -f conftest.er1
11167 cat conftest.err >&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11171 { (case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11174esac
11175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_try") 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; } &&
11180 { ac_try='test -s conftest$ac_exeext'
11181 { (case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11184esac
11185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_try") 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011190 ac_cv_lib_dld_dld_link=yes
11191else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011192 echo "$as_me: failed program was:" >&5
11193sed 's/^/| /' conftest.$ac_ext >&5
11194
11195 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011196fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011197
Bill Wendlingebcceee2009-04-18 11:20:33 +000011198rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011199 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011200LIBS=$ac_check_lib_save_LIBS
11201fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011202{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11203echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11204if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011206cat >>confdefs.h <<\_ACEOF
11207#define HAVE_DLD 1
11208_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011209
11210 LIBADD_DL="$LIBADD_DL -ldld"
11211else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011212 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11213echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11214if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216else
11217 cat >conftest.$ac_ext <<_ACEOF
11218/* confdefs.h. */
11219_ACEOF
11220cat confdefs.h >>conftest.$ac_ext
11221cat >>conftest.$ac_ext <<_ACEOF
11222/* end confdefs.h. */
11223/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11225#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011226
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011227/* System header to define __stub macros and hopefully few prototypes,
11228 which can conflict with char _dyld_func_lookup (); below.
11229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11230 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011232#ifdef __STDC__
11233# include <limits.h>
11234#else
11235# include <assert.h>
11236#endif
11237
11238#undef _dyld_func_lookup
11239
11240/* Override any GCC internal prototype to avoid an error.
11241 Use char because int might match the return type of a GCC
11242 builtin and then its argument prototype would still apply. */
11243#ifdef __cplusplus
11244extern "C"
11245#endif
11246char _dyld_func_lookup ();
11247/* The GNU C library defines this for functions which it implements
11248 to always fail with ENOSYS. Some functions are actually named
11249 something starting with __ and the normal name is an alias. */
11250#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11251choke me
11252#endif
11253
11254int
11255main ()
11256{
11257return _dyld_func_lookup ();
11258 ;
11259 return 0;
11260}
11261_ACEOF
11262rm -f conftest.$ac_objext conftest$ac_exeext
11263if { (ac_try="$ac_link"
11264case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11267esac
11268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_link") 2>conftest.er1
11270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
11272 rm -f conftest.er1
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } &&
11276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11280esac
11281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; } &&
11286 { ac_try='test -s conftest$ac_exeext'
11287 { (case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11290esac
11291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_try") 2>&5
11293 ac_status=$?
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; }; then
11296 ac_cv_func__dyld_func_lookup=yes
11297else
11298 echo "$as_me: failed program was:" >&5
11299sed 's/^/| /' conftest.$ac_ext >&5
11300
11301 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011302fi
Reid Spencera773bd52006-08-04 18:18:08 +000011303
Bill Wendlingebcceee2009-04-18 11:20:33 +000011304rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011305 conftest$ac_exeext conftest.$ac_ext
11306fi
11307{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11308echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11309if test $ac_cv_func__dyld_func_lookup = yes; then
11310
11311cat >>confdefs.h <<\_ACEOF
11312#define HAVE_DYLD 1
11313_ACEOF
11314
11315fi
11316
11317
11318fi
11319
11320
11321fi
11322
11323
11324fi
11325
11326rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011328
11329fi
11330
11331
11332fi
11333
11334
11335fi
11336
11337
11338if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11339then
11340 lt_save_LIBS="$LIBS"
11341 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011342
11343for ac_func in dlerror
11344do
11345as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11346{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11347echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11348if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11350else
11351 cat >conftest.$ac_ext <<_ACEOF
11352/* confdefs.h. */
11353_ACEOF
11354cat confdefs.h >>conftest.$ac_ext
11355cat >>conftest.$ac_ext <<_ACEOF
11356/* end confdefs.h. */
11357/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11359#define $ac_func innocuous_$ac_func
11360
11361/* System header to define __stub macros and hopefully few prototypes,
11362 which can conflict with char $ac_func (); below.
11363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11364 <limits.h> exists even on freestanding compilers. */
11365
11366#ifdef __STDC__
11367# include <limits.h>
11368#else
11369# include <assert.h>
11370#endif
11371
11372#undef $ac_func
11373
11374/* Override any GCC internal prototype to avoid an error.
11375 Use char because int might match the return type of a GCC
11376 builtin and then its argument prototype would still apply. */
11377#ifdef __cplusplus
11378extern "C"
11379#endif
11380char $ac_func ();
11381/* The GNU C library defines this for functions which it implements
11382 to always fail with ENOSYS. Some functions are actually named
11383 something starting with __ and the normal name is an alias. */
11384#if defined __stub_$ac_func || defined __stub___$ac_func
11385choke me
11386#endif
11387
11388int
11389main ()
11390{
11391return $ac_func ();
11392 ;
11393 return 0;
11394}
11395_ACEOF
11396rm -f conftest.$ac_objext conftest$ac_exeext
11397if { (ac_try="$ac_link"
11398case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11401esac
11402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_link") 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
11410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11411 { (case "(($ac_try" in
11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413 *) ac_try_echo=$ac_try;;
11414esac
11415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416 (eval "$ac_try") 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; } &&
11420 { ac_try='test -s conftest$ac_exeext'
11421 { (case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11424esac
11425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_try") 2>&5
11427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11430 eval "$as_ac_var=yes"
11431else
11432 echo "$as_me: failed program was:" >&5
11433sed 's/^/| /' conftest.$ac_ext >&5
11434
11435 eval "$as_ac_var=no"
11436fi
11437
11438rm -f core conftest.err conftest.$ac_objext \
11439 conftest$ac_exeext conftest.$ac_ext
11440fi
11441ac_res=`eval echo '${'$as_ac_var'}'`
11442 { echo "$as_me:$LINENO: result: $ac_res" >&5
11443echo "${ECHO_T}$ac_res" >&6; }
11444if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011445 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011446#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011447_ACEOF
11448
11449fi
11450done
11451
11452 LIBS="$lt_save_LIBS"
11453fi
11454ac_ext=c
11455ac_cpp='$CPP $CPPFLAGS'
11456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458ac_compiler_gnu=$ac_cv_c_compiler_gnu
11459
11460
11461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011462{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11463echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11464if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011466else
11467 ac_cv_sys_symbol_underscore=no
11468 cat > conftest.$ac_ext <<EOF
11469void nm_test_func(){}
11470int main(){nm_test_func;return 0;}
11471EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011473 (eval $ac_compile) 2>&5
11474 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011477 # Now try to grab the symbols.
11478 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011479 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 +000011480 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11481 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011484 # See whether the symbols have a leading underscore.
11485 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11486 ac_cv_sys_symbol_underscore=yes
11487 else
11488 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11489 :
11490 else
11491 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11492 fi
11493 fi
11494 else
11495 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11496 fi
11497 else
11498 echo "configure: failed program was:" >&5
11499 cat conftest.c >&5
11500 fi
11501 rm -rf conftest*
11502
11503fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011504{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11505echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011506
11507
11508if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11509 if test x"$libltdl_cv_func_dlopen" = xyes ||
11510 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011511 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11512echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11513if test "${libltdl_cv_need_uscore+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011515else
11516 libltdl_cv_need_uscore=unknown
11517 save_LIBS="$LIBS"
11518 LIBS="$LIBS $LIBADD_DL"
11519 if test "$cross_compiling" = yes; then :
11520 libltdl_cv_need_uscore=cross
11521else
11522 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11523 lt_status=$lt_dlunknown
11524 cat > conftest.$ac_ext <<EOF
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000011525#line 11525 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011526#include "confdefs.h"
11527
11528#if HAVE_DLFCN_H
11529#include <dlfcn.h>
11530#endif
11531
11532#include <stdio.h>
11533
11534#ifdef RTLD_GLOBAL
11535# define LT_DLGLOBAL RTLD_GLOBAL
11536#else
11537# ifdef DL_GLOBAL
11538# define LT_DLGLOBAL DL_GLOBAL
11539# else
11540# define LT_DLGLOBAL 0
11541# endif
11542#endif
11543
11544/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11545 find out it does not work in some platform. */
11546#ifndef LT_DLLAZY_OR_NOW
11547# ifdef RTLD_LAZY
11548# define LT_DLLAZY_OR_NOW RTLD_LAZY
11549# else
11550# ifdef DL_LAZY
11551# define LT_DLLAZY_OR_NOW DL_LAZY
11552# else
11553# ifdef RTLD_NOW
11554# define LT_DLLAZY_OR_NOW RTLD_NOW
11555# else
11556# ifdef DL_NOW
11557# define LT_DLLAZY_OR_NOW DL_NOW
11558# else
11559# define LT_DLLAZY_OR_NOW 0
11560# endif
11561# endif
11562# endif
11563# endif
11564#endif
11565
11566#ifdef __cplusplus
11567extern "C" void exit (int);
11568#endif
11569
11570void fnord() { int i=42;}
11571int main ()
11572{
11573 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11574 int status = $lt_dlunknown;
11575
11576 if (self)
11577 {
11578 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11579 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11580 /* dlclose (self); */
11581 }
Reid Spencera773bd52006-08-04 18:18:08 +000011582 else
11583 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011584
11585 exit (status);
11586}
11587EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011589 (eval $ac_link) 2>&5
11590 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011593 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594 lt_status=$?
11595 case x$lt_status in
11596 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11597 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011598 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011599 esac
11600 else :
11601 # compilation failed
11602
11603 fi
11604fi
11605rm -fr conftest*
11606
11607 LIBS="$save_LIBS"
11608
11609fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011610{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11611echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011612 fi
11613fi
11614
11615if test x"$libltdl_cv_need_uscore" = xyes; then
11616
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011617cat >>confdefs.h <<\_ACEOF
11618#define NEED_USCORE 1
11619_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011620
11621fi
11622
11623
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011624{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11625echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11626if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011628else
11629 # PORTME does your system automatically load deplibs for dlopen?
11630 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11631 # For now, we just catch OSes we know something about -- in the
11632 # future, we'll try test this programmatically.
11633 libltdl_cv_sys_dlopen_deplibs=unknown
11634 case "$host_os" in
11635 aix3*|aix4.1.*|aix4.2.*)
11636 # Unknown whether this is true for these versions of AIX, but
11637 # we want this `case' here to explicitly catch those versions.
11638 libltdl_cv_sys_dlopen_deplibs=unknown
11639 ;;
11640 aix[45]*)
11641 libltdl_cv_sys_dlopen_deplibs=yes
11642 ;;
11643 darwin*)
11644 # Assuming the user has installed a libdl from somewhere, this is true
11645 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11646 libltdl_cv_sys_dlopen_deplibs=yes
11647 ;;
11648 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11649 # GNU and its variants, using gnu ld.so (Glibc)
11650 libltdl_cv_sys_dlopen_deplibs=yes
11651 ;;
11652 hpux10*|hpux11*)
11653 libltdl_cv_sys_dlopen_deplibs=yes
11654 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011655 interix*)
11656 libltdl_cv_sys_dlopen_deplibs=yes
11657 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011658 irix[12345]*|irix6.[01]*)
11659 # Catch all versions of IRIX before 6.2, and indicate that we don't
11660 # know how it worked for any of those versions.
11661 libltdl_cv_sys_dlopen_deplibs=unknown
11662 ;;
11663 irix*)
11664 # The case above catches anything before 6.2, and it's known that
11665 # at 6.2 and later dlopen does load deplibs.
11666 libltdl_cv_sys_dlopen_deplibs=yes
11667 ;;
11668 netbsd*)
11669 libltdl_cv_sys_dlopen_deplibs=yes
11670 ;;
11671 openbsd*)
11672 libltdl_cv_sys_dlopen_deplibs=yes
11673 ;;
11674 osf[1234]*)
11675 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11676 # it did *not* use an RPATH in a shared library to find objects the
11677 # library depends on, so we explictly say `no'.
11678 libltdl_cv_sys_dlopen_deplibs=no
11679 ;;
11680 osf5.0|osf5.0a|osf5.1)
11681 # dlopen *does* load deplibs and with the right loader patch applied
11682 # it even uses RPATH in a shared library to search for shared objects
11683 # that the library depends on, but there's no easy way to know if that
11684 # patch is installed. Since this is the case, all we can really
11685 # say is unknown -- it depends on the patch being installed. If
11686 # it is, this changes to `yes'. Without it, it would be `no'.
11687 libltdl_cv_sys_dlopen_deplibs=unknown
11688 ;;
11689 osf*)
11690 # the two cases above should catch all versions of osf <= 5.1. Read
11691 # the comments above for what we know about them.
11692 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11693 # is used to find them so we can finally say `yes'.
11694 libltdl_cv_sys_dlopen_deplibs=yes
11695 ;;
11696 solaris*)
11697 libltdl_cv_sys_dlopen_deplibs=yes
11698 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11700 libltdl_cv_sys_dlopen_deplibs=yes
11701 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011702 esac
11703
11704fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011705{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11706echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011707if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011709cat >>confdefs.h <<\_ACEOF
11710#define LTDL_DLOPEN_DEPLIBS 1
11711_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011712
11713fi
11714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011715
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011716for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011717do
11718as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11719if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11724fi
11725ac_res=`eval echo '${'$as_ac_Header'}'`
11726 { echo "$as_me:$LINENO: result: $ac_res" >&5
11727echo "${ECHO_T}$ac_res" >&6; }
11728else
11729 # Is the header compilable?
11730{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11731echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11732cat >conftest.$ac_ext <<_ACEOF
11733/* confdefs.h. */
11734_ACEOF
11735cat confdefs.h >>conftest.$ac_ext
11736cat >>conftest.$ac_ext <<_ACEOF
11737/* end confdefs.h. */
11738$ac_includes_default
11739#include <$ac_header>
11740_ACEOF
11741rm -f conftest.$ac_objext
11742if { (ac_try="$ac_compile"
11743case "(($ac_try" in
11744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11746esac
11747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_compile") 2>conftest.er1
11749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
11755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11756 { (case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11759esac
11760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_try") 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; } &&
11765 { ac_try='test -s conftest.$ac_objext'
11766 { (case "(($ac_try" in
11767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768 *) ac_try_echo=$ac_try;;
11769esac
11770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771 (eval "$ac_try") 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11775 ac_header_compiler=yes
11776else
11777 echo "$as_me: failed program was:" >&5
11778sed 's/^/| /' conftest.$ac_ext >&5
11779
11780 ac_header_compiler=no
11781fi
11782
11783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11784{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11785echo "${ECHO_T}$ac_header_compiler" >&6; }
11786
11787# Is the header present?
11788{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11789echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11790cat >conftest.$ac_ext <<_ACEOF
11791/* confdefs.h. */
11792_ACEOF
11793cat confdefs.h >>conftest.$ac_ext
11794cat >>conftest.$ac_ext <<_ACEOF
11795/* end confdefs.h. */
11796#include <$ac_header>
11797_ACEOF
11798if { (ac_try="$ac_cpp conftest.$ac_ext"
11799case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802esac
11803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11805 ac_status=$?
11806 grep -v '^ *+' conftest.er1 >conftest.err
11807 rm -f conftest.er1
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } >/dev/null; then
11811 if test -s conftest.err; then
11812 ac_cpp_err=$ac_c_preproc_warn_flag
11813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11814 else
11815 ac_cpp_err=
11816 fi
11817else
11818 ac_cpp_err=yes
11819fi
11820if test -z "$ac_cpp_err"; then
11821 ac_header_preproc=yes
11822else
11823 echo "$as_me: failed program was:" >&5
11824sed 's/^/| /' conftest.$ac_ext >&5
11825
11826 ac_header_preproc=no
11827fi
11828
11829rm -f conftest.err conftest.$ac_ext
11830{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11831echo "${ECHO_T}$ac_header_preproc" >&6; }
11832
11833# So? What about this header?
11834case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11835 yes:no: )
11836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11837echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11839echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11840 ac_header_preproc=yes
11841 ;;
11842 no:yes:* )
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11844echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11846echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11848echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11850echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11852echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11854echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11855 ( cat <<\_ASBOX
11856## ----------------------------------- ##
11857## Report this to llvmbugs@cs.uiuc.edu ##
11858## ----------------------------------- ##
11859_ASBOX
11860 ) | sed "s/^/$as_me: WARNING: /" >&2
11861 ;;
11862esac
11863{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11867else
11868 eval "$as_ac_Header=\$ac_header_preproc"
11869fi
11870ac_res=`eval echo '${'$as_ac_Header'}'`
11871 { echo "$as_me:$LINENO: result: $ac_res" >&5
11872echo "${ECHO_T}$ac_res" >&6; }
11873
11874fi
11875if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011876 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011878_ACEOF
11879
11880fi
11881
11882done
11883
11884
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011885{ echo "$as_me:$LINENO: checking for error_t" >&5
11886echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11887if test "${ac_cv_type_error_t+set}" = set; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11889else
11890 cat >conftest.$ac_ext <<_ACEOF
11891/* confdefs.h. */
11892_ACEOF
11893cat confdefs.h >>conftest.$ac_ext
11894cat >>conftest.$ac_ext <<_ACEOF
11895/* end confdefs.h. */
11896#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011897# include <argz.h>
11898#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011899
11900typedef error_t ac__type_new_;
11901int
11902main ()
11903{
11904if ((ac__type_new_ *) 0)
11905 return 0;
11906if (sizeof (ac__type_new_))
11907 return 0;
11908 ;
11909 return 0;
11910}
11911_ACEOF
11912rm -f conftest.$ac_objext
11913if { (ac_try="$ac_compile"
11914case "(($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_compile") 2>conftest.er1
11920 ac_status=$?
11921 grep -v '^ *+' conftest.er1 >conftest.err
11922 rm -f conftest.er1
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } &&
11926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11927 { (case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11930esac
11931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_try") 2>&5
11933 ac_status=$?
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; } &&
11936 { ac_try='test -s conftest.$ac_objext'
11937 { (case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940esac
11941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_try") 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_cv_type_error_t=yes
11947else
11948 echo "$as_me: failed program was:" >&5
11949sed 's/^/| /' conftest.$ac_ext >&5
11950
11951 ac_cv_type_error_t=no
11952fi
11953
11954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11955fi
11956{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11957echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11958if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011959
11960cat >>confdefs.h <<_ACEOF
11961#define HAVE_ERROR_T 1
11962_ACEOF
11963
11964
11965else
11966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011967cat >>confdefs.h <<\_ACEOF
11968#define error_t int
11969_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011970
11971fi
11972
11973
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011974
11975
11976
11977
11978
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011979for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011980do
11981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11982{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11984if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11986else
11987 cat >conftest.$ac_ext <<_ACEOF
11988/* confdefs.h. */
11989_ACEOF
11990cat confdefs.h >>conftest.$ac_ext
11991cat >>conftest.$ac_ext <<_ACEOF
11992/* end confdefs.h. */
11993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11995#define $ac_func innocuous_$ac_func
11996
11997/* System header to define __stub macros and hopefully few prototypes,
11998 which can conflict with char $ac_func (); below.
11999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12000 <limits.h> exists even on freestanding compilers. */
12001
12002#ifdef __STDC__
12003# include <limits.h>
12004#else
12005# include <assert.h>
12006#endif
12007
12008#undef $ac_func
12009
12010/* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12013#ifdef __cplusplus
12014extern "C"
12015#endif
12016char $ac_func ();
12017/* The GNU C library defines this for functions which it implements
12018 to always fail with ENOSYS. Some functions are actually named
12019 something starting with __ and the normal name is an alias. */
12020#if defined __stub_$ac_func || defined __stub___$ac_func
12021choke me
12022#endif
12023
12024int
12025main ()
12026{
12027return $ac_func ();
12028 ;
12029 return 0;
12030}
12031_ACEOF
12032rm -f conftest.$ac_objext conftest$ac_exeext
12033if { (ac_try="$ac_link"
12034case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12037esac
12038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_link") 2>conftest.er1
12040 ac_status=$?
12041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12047 { (case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12050esac
12051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_try") 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; } &&
12056 { ac_try='test -s conftest$ac_exeext'
12057 { (case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12060esac
12061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_try") 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; }; then
12066 eval "$as_ac_var=yes"
12067else
12068 echo "$as_me: failed program was:" >&5
12069sed 's/^/| /' conftest.$ac_ext >&5
12070
12071 eval "$as_ac_var=no"
12072fi
12073
12074rm -f core conftest.err conftest.$ac_objext \
12075 conftest$ac_exeext conftest.$ac_ext
12076fi
12077ac_res=`eval echo '${'$as_ac_var'}'`
12078 { echo "$as_me:$LINENO: result: $ac_res" >&5
12079echo "${ECHO_T}$ac_res" >&6; }
12080if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012081 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012082#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012083_ACEOF
12084
12085fi
12086done
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012107
12108
12109
12110
12111
12112
12113
12114
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012115for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12116 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012117do
12118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12124fi
12125ac_res=`eval echo '${'$as_ac_Header'}'`
12126 { echo "$as_me:$LINENO: result: $ac_res" >&5
12127echo "${ECHO_T}$ac_res" >&6; }
12128else
12129 # Is the header compilable?
12130{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12131echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12132cat >conftest.$ac_ext <<_ACEOF
12133/* confdefs.h. */
12134_ACEOF
12135cat confdefs.h >>conftest.$ac_ext
12136cat >>conftest.$ac_ext <<_ACEOF
12137/* end confdefs.h. */
12138$ac_includes_default
12139#include <$ac_header>
12140_ACEOF
12141rm -f conftest.$ac_objext
12142if { (ac_try="$ac_compile"
12143case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12146esac
12147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_compile") 2>conftest.er1
12149 ac_status=$?
12150 grep -v '^ *+' conftest.er1 >conftest.err
12151 rm -f conftest.er1
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } &&
12155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12156 { (case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12159esac
12160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_try") 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try='test -s conftest.$ac_objext'
12166 { (case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169esac
12170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_try") 2>&5
12172 ac_status=$?
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12175 ac_header_compiler=yes
12176else
12177 echo "$as_me: failed program was:" >&5
12178sed 's/^/| /' conftest.$ac_ext >&5
12179
12180 ac_header_compiler=no
12181fi
12182
12183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12185echo "${ECHO_T}$ac_header_compiler" >&6; }
12186
12187# Is the header present?
12188{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12189echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12190cat >conftest.$ac_ext <<_ACEOF
12191/* confdefs.h. */
12192_ACEOF
12193cat confdefs.h >>conftest.$ac_ext
12194cat >>conftest.$ac_ext <<_ACEOF
12195/* end confdefs.h. */
12196#include <$ac_header>
12197_ACEOF
12198if { (ac_try="$ac_cpp conftest.$ac_ext"
12199case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12202esac
12203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12205 ac_status=$?
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } >/dev/null; then
12211 if test -s conftest.err; then
12212 ac_cpp_err=$ac_c_preproc_warn_flag
12213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12214 else
12215 ac_cpp_err=
12216 fi
12217else
12218 ac_cpp_err=yes
12219fi
12220if test -z "$ac_cpp_err"; then
12221 ac_header_preproc=yes
12222else
12223 echo "$as_me: failed program was:" >&5
12224sed 's/^/| /' conftest.$ac_ext >&5
12225
12226 ac_header_preproc=no
12227fi
12228
12229rm -f conftest.err conftest.$ac_ext
12230{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12231echo "${ECHO_T}$ac_header_preproc" >&6; }
12232
12233# So? What about this header?
12234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12235 yes:no: )
12236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12237echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12239echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12240 ac_header_preproc=yes
12241 ;;
12242 no:yes:* )
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12244echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12246echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12248echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12250echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12252echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12254echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12255 ( cat <<\_ASBOX
12256## ----------------------------------- ##
12257## Report this to llvmbugs@cs.uiuc.edu ##
12258## ----------------------------------- ##
12259_ASBOX
12260 ) | sed "s/^/$as_me: WARNING: /" >&2
12261 ;;
12262esac
12263{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12267else
12268 eval "$as_ac_Header=\$ac_header_preproc"
12269fi
12270ac_res=`eval echo '${'$as_ac_Header'}'`
12271 { echo "$as_me:$LINENO: result: $ac_res" >&5
12272echo "${ECHO_T}$ac_res" >&6; }
12273
12274fi
12275if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012276 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012278_ACEOF
12279
12280fi
12281
12282done
12283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012284
12285
12286
12287
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012288for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012289do
12290as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12294if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12296fi
12297ac_res=`eval echo '${'$as_ac_Header'}'`
12298 { echo "$as_me:$LINENO: result: $ac_res" >&5
12299echo "${ECHO_T}$ac_res" >&6; }
12300else
12301 # Is the header compilable?
12302{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12303echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12304cat >conftest.$ac_ext <<_ACEOF
12305/* confdefs.h. */
12306_ACEOF
12307cat confdefs.h >>conftest.$ac_ext
12308cat >>conftest.$ac_ext <<_ACEOF
12309/* end confdefs.h. */
12310$ac_includes_default
12311#include <$ac_header>
12312_ACEOF
12313rm -f conftest.$ac_objext
12314if { (ac_try="$ac_compile"
12315case "(($ac_try" in
12316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317 *) ac_try_echo=$ac_try;;
12318esac
12319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12320 (eval "$ac_compile") 2>conftest.er1
12321 ac_status=$?
12322 grep -v '^ *+' conftest.er1 >conftest.err
12323 rm -f conftest.er1
12324 cat conftest.err >&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } &&
12327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12328 { (case "(($ac_try" in
12329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330 *) ac_try_echo=$ac_try;;
12331esac
12332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333 (eval "$ac_try") 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } &&
12337 { ac_try='test -s conftest.$ac_objext'
12338 { (case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12341esac
12342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_try") 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; }; then
12347 ac_header_compiler=yes
12348else
12349 echo "$as_me: failed program was:" >&5
12350sed 's/^/| /' conftest.$ac_ext >&5
12351
12352 ac_header_compiler=no
12353fi
12354
12355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12357echo "${ECHO_T}$ac_header_compiler" >&6; }
12358
12359# Is the header present?
12360{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12361echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12362cat >conftest.$ac_ext <<_ACEOF
12363/* confdefs.h. */
12364_ACEOF
12365cat confdefs.h >>conftest.$ac_ext
12366cat >>conftest.$ac_ext <<_ACEOF
12367/* end confdefs.h. */
12368#include <$ac_header>
12369_ACEOF
12370if { (ac_try="$ac_cpp conftest.$ac_ext"
12371case "(($ac_try" in
12372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373 *) ac_try_echo=$ac_try;;
12374esac
12375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12377 ac_status=$?
12378 grep -v '^ *+' conftest.er1 >conftest.err
12379 rm -f conftest.er1
12380 cat conftest.err >&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } >/dev/null; then
12383 if test -s conftest.err; then
12384 ac_cpp_err=$ac_c_preproc_warn_flag
12385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12386 else
12387 ac_cpp_err=
12388 fi
12389else
12390 ac_cpp_err=yes
12391fi
12392if test -z "$ac_cpp_err"; then
12393 ac_header_preproc=yes
12394else
12395 echo "$as_me: failed program was:" >&5
12396sed 's/^/| /' conftest.$ac_ext >&5
12397
12398 ac_header_preproc=no
12399fi
12400
12401rm -f conftest.err conftest.$ac_ext
12402{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12403echo "${ECHO_T}$ac_header_preproc" >&6; }
12404
12405# So? What about this header?
12406case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12407 yes:no: )
12408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12409echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12411echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12412 ac_header_preproc=yes
12413 ;;
12414 no:yes:* )
12415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12416echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12418echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12419 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12420echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12421 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12422echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12424echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12425 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12426echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12427 ( cat <<\_ASBOX
12428## ----------------------------------- ##
12429## Report this to llvmbugs@cs.uiuc.edu ##
12430## ----------------------------------- ##
12431_ASBOX
12432 ) | sed "s/^/$as_me: WARNING: /" >&2
12433 ;;
12434esac
12435{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12439else
12440 eval "$as_ac_Header=\$ac_header_preproc"
12441fi
12442ac_res=`eval echo '${'$as_ac_Header'}'`
12443 { echo "$as_me:$LINENO: result: $ac_res" >&5
12444echo "${ECHO_T}$ac_res" >&6; }
12445
12446fi
12447if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012448 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012449#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012450_ACEOF
12451
12452fi
12453
12454done
12455
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012456
12457
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012458for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012459do
12460as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12464if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466fi
12467ac_res=`eval echo '${'$as_ac_Header'}'`
12468 { echo "$as_me:$LINENO: result: $ac_res" >&5
12469echo "${ECHO_T}$ac_res" >&6; }
12470else
12471 # Is the header compilable?
12472{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12473echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12474cat >conftest.$ac_ext <<_ACEOF
12475/* confdefs.h. */
12476_ACEOF
12477cat confdefs.h >>conftest.$ac_ext
12478cat >>conftest.$ac_ext <<_ACEOF
12479/* end confdefs.h. */
12480$ac_includes_default
12481#include <$ac_header>
12482_ACEOF
12483rm -f conftest.$ac_objext
12484if { (ac_try="$ac_compile"
12485case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12488esac
12489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490 (eval "$ac_compile") 2>conftest.er1
12491 ac_status=$?
12492 grep -v '^ *+' conftest.er1 >conftest.err
12493 rm -f conftest.er1
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12498 { (case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12501esac
12502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_try") 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; } &&
12507 { ac_try='test -s conftest.$ac_objext'
12508 { (case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12511esac
12512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_try") 2>&5
12514 ac_status=$?
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; }; then
12517 ac_header_compiler=yes
12518else
12519 echo "$as_me: failed program was:" >&5
12520sed 's/^/| /' conftest.$ac_ext >&5
12521
12522 ac_header_compiler=no
12523fi
12524
12525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12527echo "${ECHO_T}$ac_header_compiler" >&6; }
12528
12529# Is the header present?
12530{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12531echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12532cat >conftest.$ac_ext <<_ACEOF
12533/* confdefs.h. */
12534_ACEOF
12535cat confdefs.h >>conftest.$ac_ext
12536cat >>conftest.$ac_ext <<_ACEOF
12537/* end confdefs.h. */
12538#include <$ac_header>
12539_ACEOF
12540if { (ac_try="$ac_cpp conftest.$ac_ext"
12541case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12544esac
12545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12547 ac_status=$?
12548 grep -v '^ *+' conftest.er1 >conftest.err
12549 rm -f conftest.er1
12550 cat conftest.err >&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } >/dev/null; then
12553 if test -s conftest.err; then
12554 ac_cpp_err=$ac_c_preproc_warn_flag
12555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12556 else
12557 ac_cpp_err=
12558 fi
12559else
12560 ac_cpp_err=yes
12561fi
12562if test -z "$ac_cpp_err"; then
12563 ac_header_preproc=yes
12564else
12565 echo "$as_me: failed program was:" >&5
12566sed 's/^/| /' conftest.$ac_ext >&5
12567
12568 ac_header_preproc=no
12569fi
12570
12571rm -f conftest.err conftest.$ac_ext
12572{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12573echo "${ECHO_T}$ac_header_preproc" >&6; }
12574
12575# So? What about this header?
12576case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12577 yes:no: )
12578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12579echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12581echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12582 ac_header_preproc=yes
12583 ;;
12584 no:yes:* )
12585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12586echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12588echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12590echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12592echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12594echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12596echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12597 ( cat <<\_ASBOX
12598## ----------------------------------- ##
12599## Report this to llvmbugs@cs.uiuc.edu ##
12600## ----------------------------------- ##
12601_ASBOX
12602 ) | sed "s/^/$as_me: WARNING: /" >&2
12603 ;;
12604esac
12605{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12606echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12607if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12609else
12610 eval "$as_ac_Header=\$ac_header_preproc"
12611fi
12612ac_res=`eval echo '${'$as_ac_Header'}'`
12613 { echo "$as_me:$LINENO: result: $ac_res" >&5
12614echo "${ECHO_T}$ac_res" >&6; }
12615
12616fi
12617if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012618 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012619#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012620_ACEOF
12621 break
12622fi
12623
12624done
12625
12626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012627
12628
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012629for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012630do
12631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12632{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12634if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
12636else
12637 cat >conftest.$ac_ext <<_ACEOF
12638/* confdefs.h. */
12639_ACEOF
12640cat confdefs.h >>conftest.$ac_ext
12641cat >>conftest.$ac_ext <<_ACEOF
12642/* end confdefs.h. */
12643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12645#define $ac_func innocuous_$ac_func
12646
12647/* System header to define __stub macros and hopefully few prototypes,
12648 which can conflict with char $ac_func (); below.
12649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12650 <limits.h> exists even on freestanding compilers. */
12651
12652#ifdef __STDC__
12653# include <limits.h>
12654#else
12655# include <assert.h>
12656#endif
12657
12658#undef $ac_func
12659
12660/* Override any GCC internal prototype to avoid an error.
12661 Use char because int might match the return type of a GCC
12662 builtin and then its argument prototype would still apply. */
12663#ifdef __cplusplus
12664extern "C"
12665#endif
12666char $ac_func ();
12667/* The GNU C library defines this for functions which it implements
12668 to always fail with ENOSYS. Some functions are actually named
12669 something starting with __ and the normal name is an alias. */
12670#if defined __stub_$ac_func || defined __stub___$ac_func
12671choke me
12672#endif
12673
12674int
12675main ()
12676{
12677return $ac_func ();
12678 ;
12679 return 0;
12680}
12681_ACEOF
12682rm -f conftest.$ac_objext conftest$ac_exeext
12683if { (ac_try="$ac_link"
12684case "(($ac_try" in
12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12687esac
12688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_link") 2>conftest.er1
12690 ac_status=$?
12691 grep -v '^ *+' conftest.er1 >conftest.err
12692 rm -f conftest.er1
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } &&
12696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12697 { (case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12700esac
12701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12702 (eval "$ac_try") 2>&5
12703 ac_status=$?
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); }; } &&
12706 { ac_try='test -s conftest$ac_exeext'
12707 { (case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12710esac
12711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_try") 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 eval "$as_ac_var=yes"
12717else
12718 echo "$as_me: failed program was:" >&5
12719sed 's/^/| /' conftest.$ac_ext >&5
12720
12721 eval "$as_ac_var=no"
12722fi
12723
12724rm -f core conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
12726fi
12727ac_res=`eval echo '${'$as_ac_var'}'`
12728 { echo "$as_me:$LINENO: result: $ac_res" >&5
12729echo "${ECHO_T}$ac_res" >&6; }
12730if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012731 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012733_ACEOF
12734 break
12735fi
12736done
12737
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012738
12739
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012740for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012741do
12742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12743{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12745if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12747else
12748 cat >conftest.$ac_ext <<_ACEOF
12749/* confdefs.h. */
12750_ACEOF
12751cat confdefs.h >>conftest.$ac_ext
12752cat >>conftest.$ac_ext <<_ACEOF
12753/* end confdefs.h. */
12754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12756#define $ac_func innocuous_$ac_func
12757
12758/* System header to define __stub macros and hopefully few prototypes,
12759 which can conflict with char $ac_func (); below.
12760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12761 <limits.h> exists even on freestanding compilers. */
12762
12763#ifdef __STDC__
12764# include <limits.h>
12765#else
12766# include <assert.h>
12767#endif
12768
12769#undef $ac_func
12770
12771/* Override any GCC internal prototype to avoid an error.
12772 Use char because int might match the return type of a GCC
12773 builtin and then its argument prototype would still apply. */
12774#ifdef __cplusplus
12775extern "C"
12776#endif
12777char $ac_func ();
12778/* The GNU C library defines this for functions which it implements
12779 to always fail with ENOSYS. Some functions are actually named
12780 something starting with __ and the normal name is an alias. */
12781#if defined __stub_$ac_func || defined __stub___$ac_func
12782choke me
12783#endif
12784
12785int
12786main ()
12787{
12788return $ac_func ();
12789 ;
12790 return 0;
12791}
12792_ACEOF
12793rm -f conftest.$ac_objext conftest$ac_exeext
12794if { (ac_try="$ac_link"
12795case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12798esac
12799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_link") 2>conftest.er1
12801 ac_status=$?
12802 grep -v '^ *+' conftest.er1 >conftest.err
12803 rm -f conftest.er1
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } &&
12807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12808 { (case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12811esac
12812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_try") 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; } &&
12817 { ac_try='test -s conftest$ac_exeext'
12818 { (case "(($ac_try" in
12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12821esac
12822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_try") 2>&5
12824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; }; then
12827 eval "$as_ac_var=yes"
12828else
12829 echo "$as_me: failed program was:" >&5
12830sed 's/^/| /' conftest.$ac_ext >&5
12831
12832 eval "$as_ac_var=no"
12833fi
12834
12835rm -f core conftest.err conftest.$ac_objext \
12836 conftest$ac_exeext conftest.$ac_ext
12837fi
12838ac_res=`eval echo '${'$as_ac_var'}'`
12839 { echo "$as_me:$LINENO: result: $ac_res" >&5
12840echo "${ECHO_T}$ac_res" >&6; }
12841if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012842 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012843#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012844_ACEOF
12845 break
12846fi
12847done
12848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012849
12850
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012851for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012852do
12853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12854{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12856if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12858else
12859 cat >conftest.$ac_ext <<_ACEOF
12860/* confdefs.h. */
12861_ACEOF
12862cat confdefs.h >>conftest.$ac_ext
12863cat >>conftest.$ac_ext <<_ACEOF
12864/* end confdefs.h. */
12865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12867#define $ac_func innocuous_$ac_func
12868
12869/* System header to define __stub macros and hopefully few prototypes,
12870 which can conflict with char $ac_func (); below.
12871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12872 <limits.h> exists even on freestanding compilers. */
12873
12874#ifdef __STDC__
12875# include <limits.h>
12876#else
12877# include <assert.h>
12878#endif
12879
12880#undef $ac_func
12881
12882/* Override any GCC internal prototype to avoid an error.
12883 Use char because int might match the return type of a GCC
12884 builtin and then its argument prototype would still apply. */
12885#ifdef __cplusplus
12886extern "C"
12887#endif
12888char $ac_func ();
12889/* The GNU C library defines this for functions which it implements
12890 to always fail with ENOSYS. Some functions are actually named
12891 something starting with __ and the normal name is an alias. */
12892#if defined __stub_$ac_func || defined __stub___$ac_func
12893choke me
12894#endif
12895
12896int
12897main ()
12898{
12899return $ac_func ();
12900 ;
12901 return 0;
12902}
12903_ACEOF
12904rm -f conftest.$ac_objext conftest$ac_exeext
12905if { (ac_try="$ac_link"
12906case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12909esac
12910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_link") 2>conftest.er1
12912 ac_status=$?
12913 grep -v '^ *+' conftest.er1 >conftest.err
12914 rm -f conftest.er1
12915 cat conftest.err >&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } &&
12918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12919 { (case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12922esac
12923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924 (eval "$ac_try") 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest$ac_exeext'
12929 { (case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12932esac
12933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_try") 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12938 eval "$as_ac_var=yes"
12939else
12940 echo "$as_me: failed program was:" >&5
12941sed 's/^/| /' conftest.$ac_ext >&5
12942
12943 eval "$as_ac_var=no"
12944fi
12945
12946rm -f core conftest.err conftest.$ac_objext \
12947 conftest$ac_exeext conftest.$ac_ext
12948fi
12949ac_res=`eval echo '${'$as_ac_var'}'`
12950 { echo "$as_me:$LINENO: result: $ac_res" >&5
12951echo "${ECHO_T}$ac_res" >&6; }
12952if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012953 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012955_ACEOF
12956 break
12957fi
12958done
12959
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012960
12961
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012962for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012963do
12964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12965{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12967if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12969else
12970 cat >conftest.$ac_ext <<_ACEOF
12971/* confdefs.h. */
12972_ACEOF
12973cat confdefs.h >>conftest.$ac_ext
12974cat >>conftest.$ac_ext <<_ACEOF
12975/* end confdefs.h. */
12976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12978#define $ac_func innocuous_$ac_func
12979
12980/* System header to define __stub macros and hopefully few prototypes,
12981 which can conflict with char $ac_func (); below.
12982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12983 <limits.h> exists even on freestanding compilers. */
12984
12985#ifdef __STDC__
12986# include <limits.h>
12987#else
12988# include <assert.h>
12989#endif
12990
12991#undef $ac_func
12992
12993/* Override any GCC internal prototype to avoid an error.
12994 Use char because int might match the return type of a GCC
12995 builtin and then its argument prototype would still apply. */
12996#ifdef __cplusplus
12997extern "C"
12998#endif
12999char $ac_func ();
13000/* The GNU C library defines this for functions which it implements
13001 to always fail with ENOSYS. Some functions are actually named
13002 something starting with __ and the normal name is an alias. */
13003#if defined __stub_$ac_func || defined __stub___$ac_func
13004choke me
13005#endif
13006
13007int
13008main ()
13009{
13010return $ac_func ();
13011 ;
13012 return 0;
13013}
13014_ACEOF
13015rm -f conftest.$ac_objext conftest$ac_exeext
13016if { (ac_try="$ac_link"
13017case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13020esac
13021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_link") 2>conftest.er1
13023 ac_status=$?
13024 grep -v '^ *+' conftest.er1 >conftest.err
13025 rm -f conftest.er1
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } &&
13029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13030 { (case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13033esac
13034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035 (eval "$ac_try") 2>&5
13036 ac_status=$?
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; } &&
13039 { ac_try='test -s conftest$ac_exeext'
13040 { (case "(($ac_try" in
13041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042 *) ac_try_echo=$ac_try;;
13043esac
13044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045 (eval "$ac_try") 2>&5
13046 ac_status=$?
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); }; }; then
13049 eval "$as_ac_var=yes"
13050else
13051 echo "$as_me: failed program was:" >&5
13052sed 's/^/| /' conftest.$ac_ext >&5
13053
13054 eval "$as_ac_var=no"
13055fi
13056
13057rm -f core conftest.err conftest.$ac_objext \
13058 conftest$ac_exeext conftest.$ac_ext
13059fi
13060ac_res=`eval echo '${'$as_ac_var'}'`
13061 { echo "$as_me:$LINENO: result: $ac_res" >&5
13062echo "${ECHO_T}$ac_res" >&6; }
13063if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013064 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013066_ACEOF
13067
13068fi
13069done
13070
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013071
13072
13073
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013074for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013075do
13076as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13077{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13078echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13079if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13081else
13082 cat >conftest.$ac_ext <<_ACEOF
13083/* confdefs.h. */
13084_ACEOF
13085cat confdefs.h >>conftest.$ac_ext
13086cat >>conftest.$ac_ext <<_ACEOF
13087/* end confdefs.h. */
13088/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13090#define $ac_func innocuous_$ac_func
13091
13092/* System header to define __stub macros and hopefully few prototypes,
13093 which can conflict with char $ac_func (); below.
13094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13095 <limits.h> exists even on freestanding compilers. */
13096
13097#ifdef __STDC__
13098# include <limits.h>
13099#else
13100# include <assert.h>
13101#endif
13102
13103#undef $ac_func
13104
13105/* Override any GCC internal prototype to avoid an error.
13106 Use char because int might match the return type of a GCC
13107 builtin and then its argument prototype would still apply. */
13108#ifdef __cplusplus
13109extern "C"
13110#endif
13111char $ac_func ();
13112/* The GNU C library defines this for functions which it implements
13113 to always fail with ENOSYS. Some functions are actually named
13114 something starting with __ and the normal name is an alias. */
13115#if defined __stub_$ac_func || defined __stub___$ac_func
13116choke me
13117#endif
13118
13119int
13120main ()
13121{
13122return $ac_func ();
13123 ;
13124 return 0;
13125}
13126_ACEOF
13127rm -f conftest.$ac_objext conftest$ac_exeext
13128if { (ac_try="$ac_link"
13129case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13132esac
13133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_link") 2>conftest.er1
13135 ac_status=$?
13136 grep -v '^ *+' conftest.er1 >conftest.err
13137 rm -f conftest.er1
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
13141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13142 { (case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145esac
13146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_try") 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest$ac_exeext'
13152 { (case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13155esac
13156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_try") 2>&5
13158 ac_status=$?
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 eval "$as_ac_var=yes"
13162else
13163 echo "$as_me: failed program was:" >&5
13164sed 's/^/| /' conftest.$ac_ext >&5
13165
13166 eval "$as_ac_var=no"
13167fi
13168
13169rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
13171fi
13172ac_res=`eval echo '${'$as_ac_var'}'`
13173 { echo "$as_me:$LINENO: result: $ac_res" >&5
13174echo "${ECHO_T}$ac_res" >&6; }
13175if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013176 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013177#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013178_ACEOF
13179
13180fi
13181done
13182
13183
Douglas Gregor01746742009-05-11 18:05:52 +000013184
Reid Spencer7931a782004-12-27 06:15:02 +000013185if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013186 LLVMGCC="llvm-gcc${EXEEXT}"
13187 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013188 LLVMGCCCOMMAND="$LLVMGCC"
13189 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013190 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13191
13192 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13193
Reid Spencerc84492c2005-06-02 22:34:49 +000013194 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13195set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013196{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13198if test "${ac_cv_path_LLVMGCC+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013200else
13201 case $LLVMGCC in
13202 [\\/]* | ?:[\\/]*)
13203 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13204 ;;
13205 *)
13206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207for as_dir in $PATH
13208do
13209 IFS=$as_save_IFS
13210 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013211 for ac_exec_ext in '' $ac_executable_extensions; do
13212 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 +000013213 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013215 break 2
13216 fi
13217done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013218done
Reid Spencera773bd52006-08-04 18:18:08 +000013219IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013220
Reid Spencer59473af2004-12-25 07:31:29 +000013221 ;;
13222esac
13223fi
13224LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013225if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013226 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13227echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013228else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013229 { echo "$as_me:$LINENO: result: no" >&5
13230echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013231fi
13232
Reid Spencera773bd52006-08-04 18:18:08 +000013233
Reid Spencerc84492c2005-06-02 22:34:49 +000013234 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13235set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013236{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13238if test "${ac_cv_path_LLVMGXX+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013240else
13241 case $LLVMGXX in
13242 [\\/]* | ?:[\\/]*)
13243 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13244 ;;
13245 *)
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247for as_dir in $PATH
13248do
13249 IFS=$as_save_IFS
13250 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013251 for ac_exec_ext in '' $ac_executable_extensions; do
13252 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 +000013253 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013255 break 2
13256 fi
13257done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013258done
Reid Spencera773bd52006-08-04 18:18:08 +000013259IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013260
Reid Spencer59473af2004-12-25 07:31:29 +000013261 ;;
13262esac
13263fi
13264LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013265if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013266 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13267echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013268else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013269 { echo "$as_me:$LINENO: result: no" >&5
13270echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013271fi
13272
Reid Spencera773bd52006-08-04 18:18:08 +000013273
Reid Spencer59473af2004-12-25 07:31:29 +000013274else
Devang Patel5d28b882007-12-04 22:54:47 +000013275 if test -z "$LLVMGCC"; then
13276 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013277 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013278 fi
13279 if test -z "$LLVMGXX"; then
13280 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013281 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013282 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013283
Reid Spencer59473af2004-12-25 07:31:29 +000013284 LLVMGCC=$LLVMGCC
13285
13286 LLVMGXX=$LLVMGXX
13287
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013288 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13289
13290 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13291
Reid Spencer59473af2004-12-25 07:31:29 +000013292fi
13293
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013294
Daniel Dunbar98515672010-02-23 10:00:49 +000013295# Check whether --with-llvmcc was given.
13296if test "${with_llvmcc+set}" = set; then
13297 withval=$with_llvmcc;
13298else
13299 with_llvmcc=check
13300fi
13301
13302{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13303echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13304if test "$with_llvmcc" != "check"; then
13305 if (test "$with_llvmcc" != "llvm-gcc" &&
13306 test "$with_llvmcc" != "clang" &&
13307 test "$with_llvmcc" != "none"); then
13308 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13309echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13310 { (exit 1); exit 1; }; }
13311 fi
13312 WITH_LLVMCC="$with_llvmcc"
13313elif test -n "$LLVMGCC"; then
13314 WITH_LLVMCC=llvm-gcc
13315elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13316 WITH_LLVMCC=clang
13317else
13318 WITH_LLVMCC=none
13319fi
13320{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13321echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13322LLVMCC_OPTION=$WITH_LLVMCC
13323
13324
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013325{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13326echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013327
Reid Spencer86901802004-12-08 23:07:27 +000013328ICC=no
13329IXX=no
13330case $CC in
13331 icc*|icpc*)
13332 ICC=yes
13333 IXX=yes
13334 ;;
13335 *)
13336 ;;
13337esac
13338
Duraid Madina937c60a2006-02-15 07:57:42 +000013339if test "$GCC" != "yes" && test "$ICC" != "yes"
13340then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013341 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13342echo "$as_me: error: gcc|icc required but not found" >&2;}
13343 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013344fi
13345
13346if test "$GXX" != "yes" && test "$IXX" != "yes"
13347then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013348 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13349echo "$as_me: error: g++|icc required but not found" >&2;}
13350 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013351fi
13352
Reid Spencer86901802004-12-08 23:07:27 +000013353if test "$GCC" = "yes"
13354then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013355 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013356#if !defined(__GNUC__) || __GNUC__ < 3
13357#error Unsupported GCC version
13358#endif
13359
13360_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013361rm -f conftest.$ac_objext
13362if { (ac_try="$ac_compile"
13363case "(($ac_try" in
13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13366esac
13367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_compile") 2>conftest.er1
13369 ac_status=$?
13370 grep -v '^ *+' conftest.er1 >conftest.err
13371 rm -f conftest.er1
13372 cat conftest.err >&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } &&
13375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13376 { (case "(($ac_try" in
13377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378 *) ac_try_echo=$ac_try;;
13379esac
13380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381 (eval "$ac_try") 2>&5
13382 ac_status=$?
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; } &&
13385 { ac_try='test -s conftest.$ac_objext'
13386 { (case "(($ac_try" in
13387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388 *) ac_try_echo=$ac_try;;
13389esac
13390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13391 (eval "$ac_try") 2>&5
13392 ac_status=$?
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; }; then
13395 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013396else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013397 echo "$as_me: failed program was:" >&5
13398sed 's/^/| /' conftest.$ac_ext >&5
13399
13400 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13401echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13402 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013403fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013404
Chris Lattner399c7c72008-02-05 19:43:53 +000013405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013406fi
13407
13408if test -z "$llvm_cv_gnu_make_command"
13409then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013410 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13411echo "$as_me: error: GNU Make required but not found" >&2;}
13412 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013413fi
13414
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013415{ echo "$as_me:$LINENO: result: ok" >&5
13416echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013418{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13419echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013420NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13421
13422NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013424{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13425echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013426
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013428
13429{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13430echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13431if test "${ac_cv_lib_m_sin+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013433else
13434 ac_check_lib_save_LIBS=$LIBS
13435LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013436cat >conftest.$ac_ext <<_ACEOF
13437/* confdefs.h. */
13438_ACEOF
13439cat confdefs.h >>conftest.$ac_ext
13440cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013441/* end confdefs.h. */
13442
Reid Spencera773bd52006-08-04 18:18:08 +000013443/* Override any GCC internal prototype to avoid an error.
13444 Use char because int might match the return type of a GCC
13445 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013446#ifdef __cplusplus
13447extern "C"
13448#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013449char sin ();
13450int
13451main ()
13452{
Reid Spencera773bd52006-08-04 18:18:08 +000013453return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013454 ;
13455 return 0;
13456}
13457_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013458rm -f conftest.$ac_objext conftest$ac_exeext
13459if { (ac_try="$ac_link"
13460case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13463esac
13464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_link") 2>conftest.er1
13466 ac_status=$?
13467 grep -v '^ *+' conftest.er1 >conftest.err
13468 rm -f conftest.er1
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13473 { (case "(($ac_try" in
13474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475 *) ac_try_echo=$ac_try;;
13476esac
13477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13478 (eval "$ac_try") 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; } &&
13482 { ac_try='test -s conftest$ac_exeext'
13483 { (case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13486esac
13487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_try") 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013492 ac_cv_lib_m_sin=yes
13493else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013494 echo "$as_me: failed program was:" >&5
13495sed 's/^/| /' conftest.$ac_ext >&5
13496
13497 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013498fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013499
Bill Wendlingebcceee2009-04-18 11:20:33 +000013500rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013501 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013502LIBS=$ac_check_lib_save_LIBS
13503fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013504{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13505echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13506if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013507 cat >>confdefs.h <<_ACEOF
13508#define HAVE_LIBM 1
13509_ACEOF
13510
13511 LIBS="-lm $LIBS"
13512
13513fi
13514
Jeff Cohen28783c32007-01-12 18:22:38 +000013515if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013516
13517{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13518echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13519if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013521else
13522 ac_check_lib_save_LIBS=$LIBS
13523LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013524cat >conftest.$ac_ext <<_ACEOF
13525/* confdefs.h. */
13526_ACEOF
13527cat confdefs.h >>conftest.$ac_ext
13528cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013529/* end confdefs.h. */
13530
Reid Spencer48fdf912006-06-01 19:03:21 +000013531
Reid Spencer484fc8e2006-06-01 16:55:59 +000013532int
13533main ()
13534{
Reid Spencera773bd52006-08-04 18:18:08 +000013535return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013536 ;
13537 return 0;
13538}
13539_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013540rm -f conftest.$ac_objext conftest$ac_exeext
13541if { (ac_try="$ac_link"
13542case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13545esac
13546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_link") 2>conftest.er1
13548 ac_status=$?
13549 grep -v '^ *+' conftest.er1 >conftest.err
13550 rm -f conftest.er1
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
13554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13555 { (case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13558esac
13559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_try") 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; } &&
13564 { ac_try='test -s conftest$ac_exeext'
13565 { (case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13568esac
13569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_try") 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013574 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013575else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013576 echo "$as_me: failed program was:" >&5
13577sed 's/^/| /' conftest.$ac_ext >&5
13578
13579 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013580fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013581
Bill Wendlingebcceee2009-04-18 11:20:33 +000013582rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013583 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013584LIBS=$ac_check_lib_save_LIBS
13585fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013586{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13587echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13588if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013589 cat >>confdefs.h <<_ACEOF
13590#define HAVE_LIBIMAGEHLP 1
13591_ACEOF
13592
13593 LIBS="-limagehlp $LIBS"
13594
13595fi
13596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013597
13598{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13599echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13600if test "${ac_cv_lib_psapi_main+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013602else
13603 ac_check_lib_save_LIBS=$LIBS
13604LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013605cat >conftest.$ac_ext <<_ACEOF
13606/* confdefs.h. */
13607_ACEOF
13608cat confdefs.h >>conftest.$ac_ext
13609cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013610/* end confdefs.h. */
13611
Reid Spencer48fdf912006-06-01 19:03:21 +000013612
Reid Spencer484fc8e2006-06-01 16:55:59 +000013613int
13614main ()
13615{
Reid Spencera773bd52006-08-04 18:18:08 +000013616return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013617 ;
13618 return 0;
13619}
13620_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013621rm -f conftest.$ac_objext conftest$ac_exeext
13622if { (ac_try="$ac_link"
13623case "(($ac_try" in
13624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625 *) ac_try_echo=$ac_try;;
13626esac
13627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628 (eval "$ac_link") 2>conftest.er1
13629 ac_status=$?
13630 grep -v '^ *+' conftest.er1 >conftest.err
13631 rm -f conftest.er1
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } &&
13635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13636 { (case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13639esac
13640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_try") 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; } &&
13645 { ac_try='test -s conftest$ac_exeext'
13646 { (case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13649esac
13650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_try") 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013655 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013656else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013657 echo "$as_me: failed program was:" >&5
13658sed 's/^/| /' conftest.$ac_ext >&5
13659
13660 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013661fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013662
Bill Wendlingebcceee2009-04-18 11:20:33 +000013663rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013664 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013665LIBS=$ac_check_lib_save_LIBS
13666fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013667{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13668echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13669if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013670 cat >>confdefs.h <<_ACEOF
13671#define HAVE_LIBPSAPI 1
13672_ACEOF
13673
13674 LIBS="-lpsapi $LIBS"
13675
13676fi
13677
13678fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013680{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13681echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13682if test "${ac_cv_search_dlopen+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013684else
13685 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013686cat >conftest.$ac_ext <<_ACEOF
13687/* confdefs.h. */
13688_ACEOF
13689cat confdefs.h >>conftest.$ac_ext
13690cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013691/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013692
Reid Spencera773bd52006-08-04 18:18:08 +000013693/* Override any GCC internal prototype to avoid an error.
13694 Use char because int might match the return type of a GCC
13695 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013696#ifdef __cplusplus
13697extern "C"
13698#endif
John Criswell7a73b802003-06-30 21:59:07 +000013699char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013700int
13701main ()
13702{
Reid Spencera773bd52006-08-04 18:18:08 +000013703return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013704 ;
13705 return 0;
13706}
13707_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013708for ac_lib in '' dl; do
13709 if test -z "$ac_lib"; then
13710 ac_res="none required"
13711 else
13712 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013713 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013714 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013715 rm -f conftest.$ac_objext conftest$ac_exeext
13716if { (ac_try="$ac_link"
13717case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13720esac
13721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_link") 2>conftest.er1
13723 ac_status=$?
13724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -f conftest.er1
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13730 { (case "(($ac_try" in
13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732 *) ac_try_echo=$ac_try;;
13733esac
13734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735 (eval "$ac_try") 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; } &&
13739 { ac_try='test -s conftest$ac_exeext'
13740 { (case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13743esac
13744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_try") 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013749 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013750else
13751 echo "$as_me: failed program was:" >&5
13752sed 's/^/| /' conftest.$ac_ext >&5
13753
13754
John Criswell7a73b802003-06-30 21:59:07 +000013755fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013756
Bill Wendlingebcceee2009-04-18 11:20:33 +000013757rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013758 conftest$ac_exeext
13759 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013760 break
John Criswell7a73b802003-06-30 21:59:07 +000013761fi
Reid Spencera773bd52006-08-04 18:18:08 +000013762done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013763if test "${ac_cv_search_dlopen+set}" = set; then
13764 :
Reid Spencera773bd52006-08-04 18:18:08 +000013765else
13766 ac_cv_search_dlopen=no
13767fi
13768rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013769LIBS=$ac_func_search_save_LIBS
13770fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013771{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13772echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013773ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013774if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013775 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013777cat >>confdefs.h <<\_ACEOF
13778#define HAVE_DLOPEN 1
13779_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013780
13781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013782 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13783echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013784fi
13785
13786
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013787if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013788 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13789echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13790if test "${ac_cv_search_ffi_call+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013792else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013793 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013794cat >conftest.$ac_ext <<_ACEOF
13795/* confdefs.h. */
13796_ACEOF
13797cat confdefs.h >>conftest.$ac_ext
13798cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013799/* end confdefs.h. */
13800
13801/* Override any GCC internal prototype to avoid an error.
13802 Use char because int might match the return type of a GCC
13803 builtin and then its argument prototype would still apply. */
13804#ifdef __cplusplus
13805extern "C"
13806#endif
13807char ffi_call ();
13808int
13809main ()
13810{
13811return ffi_call ();
13812 ;
13813 return 0;
13814}
13815_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013816for ac_lib in '' ffi; do
13817 if test -z "$ac_lib"; then
13818 ac_res="none required"
13819 else
13820 ac_res=-l$ac_lib
13821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13822 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013823 rm -f conftest.$ac_objext conftest$ac_exeext
13824if { (ac_try="$ac_link"
13825case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13828esac
13829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_link") 2>conftest.er1
13831 ac_status=$?
13832 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
13837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13838 { (case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13841esac
13842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_try") 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; } &&
13847 { ac_try='test -s conftest$ac_exeext'
13848 { (case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13851esac
13852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853 (eval "$ac_try") 2>&5
13854 ac_status=$?
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013857 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013858else
13859 echo "$as_me: failed program was:" >&5
13860sed 's/^/| /' conftest.$ac_ext >&5
13861
13862
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013863fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013864
Bill Wendlingebcceee2009-04-18 11:20:33 +000013865rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013866 conftest$ac_exeext
13867 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013868 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013869fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013870done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013871if test "${ac_cv_search_ffi_call+set}" = set; then
13872 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013873else
13874 ac_cv_search_ffi_call=no
13875fi
13876rm conftest.$ac_ext
13877LIBS=$ac_func_search_save_LIBS
13878fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013879{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13880echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013881ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013882if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13884
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013885cat >>confdefs.h <<\_ACEOF
13886#define HAVE_FFI_CALL 1
13887_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013888
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013889else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013890 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13891echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13892 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013893fi
13894
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013895fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013896
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013897{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13898echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13899if test "${ac_cv_search_mallinfo+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013901else
13902 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013903cat >conftest.$ac_ext <<_ACEOF
13904/* confdefs.h. */
13905_ACEOF
13906cat confdefs.h >>conftest.$ac_ext
13907cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013908/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013909
Reid Spencera773bd52006-08-04 18:18:08 +000013910/* Override any GCC internal prototype to avoid an error.
13911 Use char because int might match the return type of a GCC
13912 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013913#ifdef __cplusplus
13914extern "C"
13915#endif
John Criswell7a73b802003-06-30 21:59:07 +000013916char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013917int
13918main ()
13919{
Reid Spencera773bd52006-08-04 18:18:08 +000013920return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013921 ;
13922 return 0;
13923}
13924_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013925for ac_lib in '' malloc; do
13926 if test -z "$ac_lib"; then
13927 ac_res="none required"
13928 else
13929 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013931 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013932 rm -f conftest.$ac_objext conftest$ac_exeext
13933if { (ac_try="$ac_link"
13934case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13937esac
13938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_link") 2>conftest.er1
13940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13947 { (case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13950esac
13951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_try") 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; } &&
13956 { ac_try='test -s conftest$ac_exeext'
13957 { (case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13960esac
13961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_try") 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013966 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013967else
13968 echo "$as_me: failed program was:" >&5
13969sed 's/^/| /' conftest.$ac_ext >&5
13970
13971
John Criswell7a73b802003-06-30 21:59:07 +000013972fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013973
Bill Wendlingebcceee2009-04-18 11:20:33 +000013974rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013975 conftest$ac_exeext
13976 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013977 break
John Criswell7a73b802003-06-30 21:59:07 +000013978fi
Reid Spencera773bd52006-08-04 18:18:08 +000013979done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013980if test "${ac_cv_search_mallinfo+set}" = set; then
13981 :
Reid Spencera773bd52006-08-04 18:18:08 +000013982else
13983 ac_cv_search_mallinfo=no
13984fi
13985rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013986LIBS=$ac_func_search_save_LIBS
13987fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013988{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13989echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013990ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013991if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013994cat >>confdefs.h <<\_ACEOF
13995#define HAVE_MALLINFO 1
13996_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013997
13998fi
13999
14000
Reid Spencer0a262ba2005-08-24 10:07:20 +000014001if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014002
14003{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14004echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14005if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000014007else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014008 ac_check_lib_save_LIBS=$LIBS
14009LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014010cat >conftest.$ac_ext <<_ACEOF
14011/* confdefs.h. */
14012_ACEOF
14013cat confdefs.h >>conftest.$ac_ext
14014cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014015/* end confdefs.h. */
14016
Reid Spencera773bd52006-08-04 18:18:08 +000014017/* Override any GCC internal prototype to avoid an error.
14018 Use char because int might match the return type of a GCC
14019 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000014020#ifdef __cplusplus
14021extern "C"
14022#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000014023char pthread_mutex_init ();
14024int
14025main ()
14026{
Reid Spencera773bd52006-08-04 18:18:08 +000014027return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000014028 ;
14029 return 0;
14030}
14031_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014032rm -f conftest.$ac_objext conftest$ac_exeext
14033if { (ac_try="$ac_link"
14034case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14037esac
14038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039 (eval "$ac_link") 2>conftest.er1
14040 ac_status=$?
14041 grep -v '^ *+' conftest.er1 >conftest.err
14042 rm -f conftest.er1
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14047 { (case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14050esac
14051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_try") 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest$ac_exeext'
14057 { (case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14060esac
14061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_try") 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014066 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014067else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014068 echo "$as_me: failed program was:" >&5
14069sed 's/^/| /' conftest.$ac_ext >&5
14070
14071 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014072fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014073
Bill Wendlingebcceee2009-04-18 11:20:33 +000014074rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014075 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014076LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014077fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014078{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14079echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14080if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014081 cat >>confdefs.h <<_ACEOF
14082#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014083_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014084
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014085 LIBS="-lpthread $LIBS"
14086
Reid Spencer22177fe2005-07-12 15:24:20 +000014087fi
14088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014089 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14090echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14091if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14092 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014093else
14094 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014095cat >conftest.$ac_ext <<_ACEOF
14096/* confdefs.h. */
14097_ACEOF
14098cat confdefs.h >>conftest.$ac_ext
14099cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014100/* end confdefs.h. */
14101
Reid Spencera773bd52006-08-04 18:18:08 +000014102/* Override any GCC internal prototype to avoid an error.
14103 Use char because int might match the return type of a GCC
14104 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014105#ifdef __cplusplus
14106extern "C"
14107#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014108char pthread_mutex_lock ();
14109int
14110main ()
14111{
Reid Spencera773bd52006-08-04 18:18:08 +000014112return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014113 ;
14114 return 0;
14115}
14116_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014117for ac_lib in '' pthread; do
14118 if test -z "$ac_lib"; then
14119 ac_res="none required"
14120 else
14121 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014123 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014124 rm -f conftest.$ac_objext conftest$ac_exeext
14125if { (ac_try="$ac_link"
14126case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14129esac
14130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_link") 2>conftest.er1
14132 ac_status=$?
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
14138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14139 { (case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14142esac
14143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144 (eval "$ac_try") 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; } &&
14148 { ac_try='test -s conftest$ac_exeext'
14149 { (case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14152esac
14153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_try") 2>&5
14155 ac_status=$?
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014158 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014159else
14160 echo "$as_me: failed program was:" >&5
14161sed 's/^/| /' conftest.$ac_ext >&5
14162
14163
Brian Gaeke5f268f72003-12-05 19:29:01 +000014164fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014165
Bill Wendlingebcceee2009-04-18 11:20:33 +000014166rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014167 conftest$ac_exeext
14168 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014169 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014170fi
Reid Spencera773bd52006-08-04 18:18:08 +000014171done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014172if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14173 :
Reid Spencera773bd52006-08-04 18:18:08 +000014174else
14175 ac_cv_search_pthread_mutex_lock=no
14176fi
14177rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014178LIBS=$ac_func_search_save_LIBS
14179fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014180{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14181echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014182ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014183if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014185
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014186cat >>confdefs.h <<\_ACEOF
14187#define HAVE_PTHREAD_MUTEX_LOCK 1
14188_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014189
14190fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014192 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14193echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14194if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014196else
14197 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014198cat >conftest.$ac_ext <<_ACEOF
14199/* confdefs.h. */
14200_ACEOF
14201cat confdefs.h >>conftest.$ac_ext
14202cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014203/* end confdefs.h. */
14204
14205/* Override any GCC internal prototype to avoid an error.
14206 Use char because int might match the return type of a GCC
14207 builtin and then its argument prototype would still apply. */
14208#ifdef __cplusplus
14209extern "C"
14210#endif
14211char pthread_rwlock_init ();
14212int
14213main ()
14214{
14215return pthread_rwlock_init ();
14216 ;
14217 return 0;
14218}
14219_ACEOF
14220for ac_lib in '' pthread; do
14221 if test -z "$ac_lib"; then
14222 ac_res="none required"
14223 else
14224 ac_res=-l$ac_lib
14225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14226 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014227 rm -f conftest.$ac_objext conftest$ac_exeext
14228if { (ac_try="$ac_link"
14229case "(($ac_try" in
14230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231 *) ac_try_echo=$ac_try;;
14232esac
14233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234 (eval "$ac_link") 2>conftest.er1
14235 ac_status=$?
14236 grep -v '^ *+' conftest.er1 >conftest.err
14237 rm -f conftest.er1
14238 cat conftest.err >&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } &&
14241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14242 { (case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14245esac
14246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247 (eval "$ac_try") 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; } &&
14251 { ac_try='test -s conftest$ac_exeext'
14252 { (case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14255esac
14256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_try") 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014261 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014262else
14263 echo "$as_me: failed program was:" >&5
14264sed 's/^/| /' conftest.$ac_ext >&5
14265
14266
Owen Andersonde8aed22009-06-16 18:20:20 +000014267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014268
Owen Andersonde8aed22009-06-16 18:20:20 +000014269rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014270 conftest$ac_exeext
14271 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014272 break
14273fi
14274done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014275if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14276 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014277else
14278 ac_cv_search_pthread_rwlock_init=no
14279fi
14280rm conftest.$ac_ext
14281LIBS=$ac_func_search_save_LIBS
14282fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014283{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14284echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014285ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014286if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14288
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014289cat >>confdefs.h <<\_ACEOF
14290#define HAVE_PTHREAD_RWLOCK_INIT 1
14291_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014292
14293fi
14294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014295 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14296echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14297if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014299else
14300 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014301cat >conftest.$ac_ext <<_ACEOF
14302/* confdefs.h. */
14303_ACEOF
14304cat confdefs.h >>conftest.$ac_ext
14305cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014306/* end confdefs.h. */
14307
14308/* Override any GCC internal prototype to avoid an error.
14309 Use char because int might match the return type of a GCC
14310 builtin and then its argument prototype would still apply. */
14311#ifdef __cplusplus
14312extern "C"
14313#endif
14314char pthread_getspecific ();
14315int
14316main ()
14317{
14318return pthread_getspecific ();
14319 ;
14320 return 0;
14321}
14322_ACEOF
14323for ac_lib in '' pthread; do
14324 if test -z "$ac_lib"; then
14325 ac_res="none required"
14326 else
14327 ac_res=-l$ac_lib
14328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14329 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014330 rm -f conftest.$ac_objext conftest$ac_exeext
14331if { (ac_try="$ac_link"
14332case "(($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_link") 2>conftest.er1
14338 ac_status=$?
14339 grep -v '^ *+' conftest.er1 >conftest.err
14340 rm -f conftest.er1
14341 cat conftest.err >&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } &&
14344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14345 { (case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14348esac
14349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_try") 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try='test -s conftest$ac_exeext'
14355 { (case "(($ac_try" in
14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357 *) ac_try_echo=$ac_try;;
14358esac
14359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360 (eval "$ac_try") 2>&5
14361 ac_status=$?
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014364 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014365else
14366 echo "$as_me: failed program was:" >&5
14367sed 's/^/| /' conftest.$ac_ext >&5
14368
14369
Owen Anderson27fcfe12009-06-25 23:10:26 +000014370fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014371
Owen Anderson27fcfe12009-06-25 23:10:26 +000014372rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014373 conftest$ac_exeext
14374 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014375 break
14376fi
14377done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014378if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14379 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014380else
14381 ac_cv_search_pthread_getspecific=no
14382fi
14383rm conftest.$ac_ext
14384LIBS=$ac_func_search_save_LIBS
14385fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014386{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14387echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014388ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014389if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014392cat >>confdefs.h <<\_ACEOF
14393#define HAVE_PTHREAD_GETSPECIFIC 1
14394_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014395
14396fi
14397
Reid Spencer0a262ba2005-08-24 10:07:20 +000014398fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014399
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014400
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014401# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014402if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014403 withval=$with_udis86;
14404 USE_UDIS86=1
14405
14406 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014407 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014408 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14409 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014410
14411{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14412echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14413if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14414 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014415else
14416 ac_check_lib_save_LIBS=$LIBS
14417LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014418cat >conftest.$ac_ext <<_ACEOF
14419/* confdefs.h. */
14420_ACEOF
14421cat confdefs.h >>conftest.$ac_ext
14422cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014423/* end confdefs.h. */
14424
14425/* Override any GCC internal prototype to avoid an error.
14426 Use char because int might match the return type of a GCC
14427 builtin and then its argument prototype would still apply. */
14428#ifdef __cplusplus
14429extern "C"
14430#endif
14431char ud_init ();
14432int
14433main ()
14434{
14435return ud_init ();
14436 ;
14437 return 0;
14438}
14439_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014440rm -f conftest.$ac_objext conftest$ac_exeext
14441if { (ac_try="$ac_link"
14442case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14445esac
14446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_link") 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
14454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14455 { (case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458esac
14459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_try") 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; } &&
14464 { ac_try='test -s conftest$ac_exeext'
14465 { (case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14468esac
14469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470 (eval "$ac_try") 2>&5
14471 ac_status=$?
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014474 ac_cv_lib_udis86_ud_init=yes
14475else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014476 echo "$as_me: failed program was:" >&5
14477sed 's/^/| /' conftest.$ac_ext >&5
14478
14479 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014480fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014481
Bill Wendlingebcceee2009-04-18 11:20:33 +000014482rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014483 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014484LIBS=$ac_check_lib_save_LIBS
14485fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014486{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14487echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14488if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014489 cat >>confdefs.h <<_ACEOF
14490#define HAVE_LIBUDIS86 1
14491_ACEOF
14492
14493 LIBS="-ludis86 $LIBS"
14494
14495else
14496
14497 echo "Error! You need to have libudis86 around."
14498 exit -1
14499
14500fi
14501
14502
14503else
14504 USE_UDIS86=0
14505
14506fi
14507
14508
14509cat >>confdefs.h <<_ACEOF
14510#define USE_UDIS86 $USE_UDIS86
14511_ACEOF
14512
14513
14514
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014515# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014516if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014517 withval=$with_oprofile;
14518 USE_OPROFILE=1
14519
14520 case "$withval" in
14521 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014522 no) llvm_cv_oppath=
14523 USE_OPROFILE=0
14524 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014525 *) llvm_cv_oppath="${withval}/lib/oprofile"
14526 CPPFLAGS="-I${withval}/include";;
14527 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014528 if test -n "$llvm_cv_oppath" ; then
14529 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014530 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14531echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14532if test "${ac_cv_search_bfd_init+set}" = set; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014534else
14535 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014536cat >conftest.$ac_ext <<_ACEOF
14537/* confdefs.h. */
14538_ACEOF
14539cat confdefs.h >>conftest.$ac_ext
14540cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014541/* end confdefs.h. */
14542
14543/* Override any GCC internal prototype to avoid an error.
14544 Use char because int might match the return type of a GCC
14545 builtin and then its argument prototype would still apply. */
14546#ifdef __cplusplus
14547extern "C"
14548#endif
14549char bfd_init ();
14550int
14551main ()
14552{
14553return bfd_init ();
14554 ;
14555 return 0;
14556}
14557_ACEOF
14558for ac_lib in '' bfd; do
14559 if test -z "$ac_lib"; then
14560 ac_res="none required"
14561 else
14562 ac_res=-l$ac_lib
14563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14564 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014565 rm -f conftest.$ac_objext conftest$ac_exeext
14566if { (ac_try="$ac_link"
14567case "(($ac_try" in
14568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569 *) ac_try_echo=$ac_try;;
14570esac
14571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572 (eval "$ac_link") 2>conftest.er1
14573 ac_status=$?
14574 grep -v '^ *+' conftest.er1 >conftest.err
14575 rm -f conftest.er1
14576 cat conftest.err >&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } &&
14579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14580 { (case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14583esac
14584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_try") 2>&5
14586 ac_status=$?
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; } &&
14589 { ac_try='test -s conftest$ac_exeext'
14590 { (case "(($ac_try" in
14591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14592 *) ac_try_echo=$ac_try;;
14593esac
14594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14595 (eval "$ac_try") 2>&5
14596 ac_status=$?
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014599 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014600else
14601 echo "$as_me: failed program was:" >&5
14602sed 's/^/| /' conftest.$ac_ext >&5
14603
14604
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014606
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014607rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014608 conftest$ac_exeext
14609 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014610 break
14611fi
14612done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014613if test "${ac_cv_search_bfd_init+set}" = set; then
14614 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014615else
14616 ac_cv_search_bfd_init=no
14617fi
14618rm conftest.$ac_ext
14619LIBS=$ac_func_search_save_LIBS
14620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014621{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14622echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014623ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014624if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14626
14627fi
14628
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014629 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14630echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14631if test "${ac_cv_search_op_open_agent+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014633else
14634 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014635cat >conftest.$ac_ext <<_ACEOF
14636/* confdefs.h. */
14637_ACEOF
14638cat confdefs.h >>conftest.$ac_ext
14639cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014640/* end confdefs.h. */
14641
14642/* Override any GCC internal prototype to avoid an error.
14643 Use char because int might match the return type of a GCC
14644 builtin and then its argument prototype would still apply. */
14645#ifdef __cplusplus
14646extern "C"
14647#endif
14648char op_open_agent ();
14649int
14650main ()
14651{
14652return op_open_agent ();
14653 ;
14654 return 0;
14655}
14656_ACEOF
14657for ac_lib in '' opagent; do
14658 if test -z "$ac_lib"; then
14659 ac_res="none required"
14660 else
14661 ac_res=-l$ac_lib
14662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14663 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014664 rm -f conftest.$ac_objext conftest$ac_exeext
14665if { (ac_try="$ac_link"
14666case "(($ac_try" in
14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668 *) ac_try_echo=$ac_try;;
14669esac
14670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_link") 2>conftest.er1
14672 ac_status=$?
14673 grep -v '^ *+' conftest.er1 >conftest.err
14674 rm -f conftest.er1
14675 cat conftest.err >&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } &&
14678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14679 { (case "(($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_try") 2>&5
14685 ac_status=$?
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; } &&
14688 { ac_try='test -s conftest$ac_exeext'
14689 { (case "(($ac_try" in
14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14692esac
14693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_try") 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014698 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014699else
14700 echo "$as_me: failed program was:" >&5
14701sed 's/^/| /' conftest.$ac_ext >&5
14702
14703
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014704fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014705
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014706rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014707 conftest$ac_exeext
14708 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014709 break
14710fi
14711done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014712if test "${ac_cv_search_op_open_agent+set}" = set; then
14713 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014714else
14715 ac_cv_search_op_open_agent=no
14716fi
14717rm conftest.$ac_ext
14718LIBS=$ac_func_search_save_LIBS
14719fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014720{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14721echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014722ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014723if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14725
14726else
14727
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014728 echo "Error! You need to have libopagent around."
14729 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014730
14731fi
14732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014733 if test "${ac_cv_header_opagent_h+set}" = set; then
14734 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14735echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14736if test "${ac_cv_header_opagent_h+set}" = set; then
14737 echo $ECHO_N "(cached) $ECHO_C" >&6
14738fi
14739{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14740echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14741else
14742 # Is the header compilable?
14743{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14744echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14745cat >conftest.$ac_ext <<_ACEOF
14746/* confdefs.h. */
14747_ACEOF
14748cat confdefs.h >>conftest.$ac_ext
14749cat >>conftest.$ac_ext <<_ACEOF
14750/* end confdefs.h. */
14751$ac_includes_default
14752#include <opagent.h>
14753_ACEOF
14754rm -f conftest.$ac_objext
14755if { (ac_try="$ac_compile"
14756case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14759esac
14760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_compile") 2>conftest.er1
14762 ac_status=$?
14763 grep -v '^ *+' conftest.er1 >conftest.err
14764 rm -f conftest.er1
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
14768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14769 { (case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14772esac
14773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_try") 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; } &&
14778 { ac_try='test -s conftest.$ac_objext'
14779 { (case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14782esac
14783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_header_compiler=yes
14789else
14790 echo "$as_me: failed program was:" >&5
14791sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014793 ac_header_compiler=no
14794fi
14795
14796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14798echo "${ECHO_T}$ac_header_compiler" >&6; }
14799
14800# Is the header present?
14801{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14802echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14803cat >conftest.$ac_ext <<_ACEOF
14804/* confdefs.h. */
14805_ACEOF
14806cat confdefs.h >>conftest.$ac_ext
14807cat >>conftest.$ac_ext <<_ACEOF
14808/* end confdefs.h. */
14809#include <opagent.h>
14810_ACEOF
14811if { (ac_try="$ac_cpp conftest.$ac_ext"
14812case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14815esac
14816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14818 ac_status=$?
14819 grep -v '^ *+' conftest.er1 >conftest.err
14820 rm -f conftest.er1
14821 cat conftest.err >&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } >/dev/null; then
14824 if test -s conftest.err; then
14825 ac_cpp_err=$ac_c_preproc_warn_flag
14826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14827 else
14828 ac_cpp_err=
14829 fi
14830else
14831 ac_cpp_err=yes
14832fi
14833if test -z "$ac_cpp_err"; then
14834 ac_header_preproc=yes
14835else
14836 echo "$as_me: failed program was:" >&5
14837sed 's/^/| /' conftest.$ac_ext >&5
14838
14839 ac_header_preproc=no
14840fi
14841
14842rm -f conftest.err conftest.$ac_ext
14843{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14844echo "${ECHO_T}$ac_header_preproc" >&6; }
14845
14846# So? What about this header?
14847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14848 yes:no: )
14849 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14850echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14852echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14853 ac_header_preproc=yes
14854 ;;
14855 no:yes:* )
14856 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14857echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14858 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14859echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14861echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14863echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14865echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14867echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14868 ( cat <<\_ASBOX
14869## ----------------------------------- ##
14870## Report this to llvmbugs@cs.uiuc.edu ##
14871## ----------------------------------- ##
14872_ASBOX
14873 ) | sed "s/^/$as_me: WARNING: /" >&2
14874 ;;
14875esac
14876{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14877echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14878if test "${ac_cv_header_opagent_h+set}" = set; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14880else
14881 ac_cv_header_opagent_h=$ac_header_preproc
14882fi
14883{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14884echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14885
14886fi
14887if test $ac_cv_header_opagent_h = yes; then
14888 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014889else
14890
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014891 echo "Error! You need to have opagent.h around."
14892 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014893
14894fi
14895
14896
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014897 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014898
14899else
14900
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014901 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014902
14903
14904fi
14905
14906
14907cat >>confdefs.h <<_ACEOF
14908#define USE_OPROFILE $USE_OPROFILE
14909_ACEOF
14910
14911
14912
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014913
14914
14915
14916
14917
Reid Spencer59473af2004-12-25 07:31:29 +000014918ac_header_dirent=no
14919for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014920 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14921{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14922echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014925else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014926 cat >conftest.$ac_ext <<_ACEOF
14927/* confdefs.h. */
14928_ACEOF
14929cat confdefs.h >>conftest.$ac_ext
14930cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014931/* end confdefs.h. */
14932#include <sys/types.h>
14933#include <$ac_hdr>
14934
14935int
14936main ()
14937{
14938if ((DIR *) 0)
14939return 0;
14940 ;
14941 return 0;
14942}
14943_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014944rm -f conftest.$ac_objext
14945if { (ac_try="$ac_compile"
14946case "(($ac_try" in
14947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948 *) ac_try_echo=$ac_try;;
14949esac
14950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951 (eval "$ac_compile") 2>conftest.er1
14952 ac_status=$?
14953 grep -v '^ *+' conftest.er1 >conftest.err
14954 rm -f conftest.er1
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } &&
14958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14959 { (case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14962esac
14963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964 (eval "$ac_try") 2>&5
14965 ac_status=$?
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; } &&
14968 { ac_try='test -s conftest.$ac_objext'
14969 { (case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14972esac
14973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974 (eval "$ac_try") 2>&5
14975 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014978 eval "$as_ac_Header=yes"
14979else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014980 echo "$as_me: failed program was:" >&5
14981sed 's/^/| /' conftest.$ac_ext >&5
14982
14983 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014984fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014985
Reid Spencera773bd52006-08-04 18:18:08 +000014986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014987fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014988ac_res=`eval echo '${'$as_ac_Header'}'`
14989 { echo "$as_me:$LINENO: result: $ac_res" >&5
14990echo "${ECHO_T}$ac_res" >&6; }
14991if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014992 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014993#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014994_ACEOF
14995
14996ac_header_dirent=$ac_hdr; break
14997fi
14998
14999done
15000# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15001if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015002 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15003echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15004if test "${ac_cv_search_opendir+set}" = set; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015006else
15007 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015008cat >conftest.$ac_ext <<_ACEOF
15009/* confdefs.h. */
15010_ACEOF
15011cat confdefs.h >>conftest.$ac_ext
15012cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015013/* end confdefs.h. */
15014
Reid Spencera773bd52006-08-04 18:18:08 +000015015/* Override any GCC internal prototype to avoid an error.
15016 Use char because int might match the return type of a GCC
15017 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015018#ifdef __cplusplus
15019extern "C"
15020#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015021char opendir ();
15022int
15023main ()
15024{
Reid Spencera773bd52006-08-04 18:18:08 +000015025return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015026 ;
15027 return 0;
15028}
15029_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015030for ac_lib in '' dir; do
15031 if test -z "$ac_lib"; then
15032 ac_res="none required"
15033 else
15034 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015035 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015036 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015037 rm -f conftest.$ac_objext conftest$ac_exeext
15038if { (ac_try="$ac_link"
15039case "(($ac_try" in
15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041 *) ac_try_echo=$ac_try;;
15042esac
15043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044 (eval "$ac_link") 2>conftest.er1
15045 ac_status=$?
15046 grep -v '^ *+' conftest.er1 >conftest.err
15047 rm -f conftest.er1
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15052 { (case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15055esac
15056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_try") 2>&5
15058 ac_status=$?
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; } &&
15061 { ac_try='test -s conftest$ac_exeext'
15062 { (case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15065esac
15066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_try") 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015071 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015072else
15073 echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076
Reid Spencer59473af2004-12-25 07:31:29 +000015077fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015078
Bill Wendlingebcceee2009-04-18 11:20:33 +000015079rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015080 conftest$ac_exeext
15081 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015082 break
Reid Spencer59473af2004-12-25 07:31:29 +000015083fi
Reid Spencera773bd52006-08-04 18:18:08 +000015084done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015085if test "${ac_cv_search_opendir+set}" = set; then
15086 :
Reid Spencera773bd52006-08-04 18:18:08 +000015087else
15088 ac_cv_search_opendir=no
15089fi
15090rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015091LIBS=$ac_func_search_save_LIBS
15092fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015093{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15094echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015095ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015096if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015097 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015098
15099fi
15100
15101else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015102 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15103echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15104if test "${ac_cv_search_opendir+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015106else
15107 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015108cat >conftest.$ac_ext <<_ACEOF
15109/* confdefs.h. */
15110_ACEOF
15111cat confdefs.h >>conftest.$ac_ext
15112cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015113/* end confdefs.h. */
15114
Reid Spencera773bd52006-08-04 18:18:08 +000015115/* Override any GCC internal prototype to avoid an error.
15116 Use char because int might match the return type of a GCC
15117 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015118#ifdef __cplusplus
15119extern "C"
15120#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015121char opendir ();
15122int
15123main ()
15124{
Reid Spencera773bd52006-08-04 18:18:08 +000015125return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015126 ;
15127 return 0;
15128}
15129_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015130for ac_lib in '' x; do
15131 if test -z "$ac_lib"; then
15132 ac_res="none required"
15133 else
15134 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015136 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015137 rm -f conftest.$ac_objext conftest$ac_exeext
15138if { (ac_try="$ac_link"
15139case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15142esac
15143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_link") 2>conftest.er1
15145 ac_status=$?
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15152 { (case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155esac
15156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_try") 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; } &&
15161 { ac_try='test -s conftest$ac_exeext'
15162 { (case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15165esac
15166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_try") 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015171 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015172else
15173 echo "$as_me: failed program was:" >&5
15174sed 's/^/| /' conftest.$ac_ext >&5
15175
15176
Reid Spencer59473af2004-12-25 07:31:29 +000015177fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015178
Bill Wendlingebcceee2009-04-18 11:20:33 +000015179rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015180 conftest$ac_exeext
15181 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015182 break
Reid Spencer59473af2004-12-25 07:31:29 +000015183fi
Reid Spencera773bd52006-08-04 18:18:08 +000015184done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015185if test "${ac_cv_search_opendir+set}" = set; then
15186 :
Reid Spencera773bd52006-08-04 18:18:08 +000015187else
15188 ac_cv_search_opendir=no
15189fi
15190rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015191LIBS=$ac_func_search_save_LIBS
15192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015193{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15194echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015195ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015196if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015197 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015198
15199fi
15200
15201fi
15202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015203{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15204echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15205if test "${ac_cv_header_mmap_anon+set}" = set; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015207else
15208 ac_ext=c
15209ac_cpp='$CPP $CPPFLAGS'
15210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15212ac_compiler_gnu=$ac_cv_c_compiler_gnu
15213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015214 cat >conftest.$ac_ext <<_ACEOF
15215/* confdefs.h. */
15216_ACEOF
15217cat confdefs.h >>conftest.$ac_ext
15218cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015219/* end confdefs.h. */
15220#include <sys/mman.h>
15221#include <unistd.h>
15222#include <fcntl.h>
15223int
15224main ()
15225{
15226mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15227 ;
15228 return 0;
15229}
15230_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015231rm -f conftest.$ac_objext
15232if { (ac_try="$ac_compile"
15233case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15236esac
15237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238 (eval "$ac_compile") 2>conftest.er1
15239 ac_status=$?
15240 grep -v '^ *+' conftest.er1 >conftest.err
15241 rm -f conftest.er1
15242 cat conftest.err >&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } &&
15245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15246 { (case "(($ac_try" in
15247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248 *) ac_try_echo=$ac_try;;
15249esac
15250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251 (eval "$ac_try") 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; } &&
15255 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015265 ac_cv_header_mmap_anon=yes
15266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015267 echo "$as_me: failed program was:" >&5
15268sed 's/^/| /' conftest.$ac_ext >&5
15269
15270 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015272
Reid Spencera773bd52006-08-04 18:18:08 +000015273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015274 ac_ext=c
15275ac_cpp='$CPP $CPPFLAGS'
15276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15278ac_compiler_gnu=$ac_cv_c_compiler_gnu
15279
15280
15281fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015282{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15283echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015284if test "$ac_cv_header_mmap_anon" = yes; then
15285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015286cat >>confdefs.h <<\_ACEOF
15287#define HAVE_MMAP_ANONYMOUS 1
15288_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015289
15290fi
15291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015292{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15293echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15294if test "${ac_cv_header_stat_broken+set}" = set; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015297 cat >conftest.$ac_ext <<_ACEOF
15298/* confdefs.h. */
15299_ACEOF
15300cat confdefs.h >>conftest.$ac_ext
15301cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015302/* end confdefs.h. */
15303#include <sys/types.h>
15304#include <sys/stat.h>
15305
Reid Spencera773bd52006-08-04 18:18:08 +000015306#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015307# if S_ISBLK (S_IFDIR)
15308You lose.
15309# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015310#endif
15311
Reid Spencera773bd52006-08-04 18:18:08 +000015312#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015313# if S_ISBLK (S_IFCHR)
15314You lose.
15315# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015316#endif
15317
Reid Spencera773bd52006-08-04 18:18:08 +000015318#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015319# if S_ISLNK (S_IFREG)
15320You lose.
15321# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015322#endif
15323
Reid Spencera773bd52006-08-04 18:18:08 +000015324#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015325# if S_ISSOCK (S_IFREG)
15326You lose.
15327# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015328#endif
15329
15330_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15332 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015333 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015334else
15335 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015336fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015337rm -f conftest*
15338
Reid Spencer59473af2004-12-25 07:31:29 +000015339fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015340{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15341echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015342if test $ac_cv_header_stat_broken = yes; then
15343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015344cat >>confdefs.h <<\_ACEOF
15345#define STAT_MACROS_BROKEN 1
15346_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015347
15348fi
15349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015350{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15351echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15352if test "${ac_cv_header_stdc+set}" = set; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015354else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015355 cat >conftest.$ac_ext <<_ACEOF
15356/* confdefs.h. */
15357_ACEOF
15358cat confdefs.h >>conftest.$ac_ext
15359cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015360/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015361#include <stdlib.h>
15362#include <stdarg.h>
15363#include <string.h>
15364#include <float.h>
15365
John Criswell0c38eaf2003-09-10 15:17:25 +000015366int
15367main ()
15368{
15369
15370 ;
15371 return 0;
15372}
John Criswell7a73b802003-06-30 21:59:07 +000015373_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015374rm -f conftest.$ac_objext
15375if { (ac_try="$ac_compile"
15376case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15379esac
15380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_compile") 2>conftest.er1
15382 ac_status=$?
15383 grep -v '^ *+' conftest.er1 >conftest.err
15384 rm -f conftest.er1
15385 cat conftest.err >&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } &&
15388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15389 { (case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15392esac
15393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_try") 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; } &&
15398 { ac_try='test -s conftest.$ac_objext'
15399 { (case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15402esac
15403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_try") 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015408 ac_cv_header_stdc=yes
15409else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015410 echo "$as_me: failed program was:" >&5
15411sed 's/^/| /' conftest.$ac_ext >&5
15412
15413 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015414fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015415
Reid Spencera773bd52006-08-04 18:18:08 +000015416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015417
15418if test $ac_cv_header_stdc = yes; then
15419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015420 cat >conftest.$ac_ext <<_ACEOF
15421/* confdefs.h. */
15422_ACEOF
15423cat confdefs.h >>conftest.$ac_ext
15424cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015425/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015426#include <string.h>
15427
15428_ACEOF
15429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015430 $EGREP "memchr" >/dev/null 2>&1; then
15431 :
John Criswell7a73b802003-06-30 21:59:07 +000015432else
15433 ac_cv_header_stdc=no
15434fi
15435rm -f conftest*
15436
15437fi
15438
15439if test $ac_cv_header_stdc = yes; then
15440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015441 cat >conftest.$ac_ext <<_ACEOF
15442/* confdefs.h. */
15443_ACEOF
15444cat confdefs.h >>conftest.$ac_ext
15445cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015446/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015447#include <stdlib.h>
15448
15449_ACEOF
15450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015451 $EGREP "free" >/dev/null 2>&1; then
15452 :
John Criswell7a73b802003-06-30 21:59:07 +000015453else
15454 ac_cv_header_stdc=no
15455fi
15456rm -f conftest*
15457
15458fi
15459
15460if test $ac_cv_header_stdc = yes; then
15461 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015462 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015463 :
15464else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015465 cat >conftest.$ac_ext <<_ACEOF
15466/* confdefs.h. */
15467_ACEOF
15468cat confdefs.h >>conftest.$ac_ext
15469cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015470/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015471#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015472#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015473#if ((' ' & 0x0FF) == 0x020)
15474# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15475# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15476#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015477# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015478 (('a' <= (c) && (c) <= 'i') \
15479 || ('j' <= (c) && (c) <= 'r') \
15480 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015481# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15482#endif
15483
15484#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15485int
15486main ()
15487{
15488 int i;
15489 for (i = 0; i < 256; i++)
15490 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015491 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015492 return 2;
15493 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015494}
15495_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015496rm -f conftest$ac_exeext
15497if { (ac_try="$ac_link"
15498case "(($ac_try" in
15499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500 *) ac_try_echo=$ac_try;;
15501esac
15502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15503 (eval "$ac_link") 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15507 { (case "(($ac_try" in
15508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509 *) ac_try_echo=$ac_try;;
15510esac
15511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512 (eval "$ac_try") 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 :
John Criswell7a73b802003-06-30 21:59:07 +000015517else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015518 echo "$as_me: program exited with status $ac_status" >&5
15519echo "$as_me: failed program was:" >&5
15520sed 's/^/| /' conftest.$ac_ext >&5
15521
15522( exit $ac_status )
15523ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015524fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015525rm -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 +000015526fi
15527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015528
John Criswell7a73b802003-06-30 21:59:07 +000015529fi
15530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015531{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15532echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015533if test $ac_cv_header_stdc = yes; then
15534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015535cat >>confdefs.h <<\_ACEOF
15536#define STDC_HEADERS 1
15537_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015538
15539fi
15540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015541{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15542echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15543if test "${ac_cv_header_sys_wait_h+set}" = set; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015545else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015546 cat >conftest.$ac_ext <<_ACEOF
15547/* confdefs.h. */
15548_ACEOF
15549cat confdefs.h >>conftest.$ac_ext
15550cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015551/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015552#include <sys/types.h>
15553#include <sys/wait.h>
15554#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015555# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015556#endif
15557#ifndef WIFEXITED
15558# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15559#endif
15560
John Criswell7a73b802003-06-30 21:59:07 +000015561int
15562main ()
15563{
15564 int s;
15565 wait (&s);
15566 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15567 ;
15568 return 0;
15569}
15570_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015571rm -f conftest.$ac_objext
15572if { (ac_try="$ac_compile"
15573case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15576esac
15577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15578 (eval "$ac_compile") 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15586 { (case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15589esac
15590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_try") 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; } &&
15595 { ac_try='test -s conftest.$ac_objext'
15596 { (case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15599esac
15600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_try") 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015605 ac_cv_header_sys_wait_h=yes
15606else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015607 echo "$as_me: failed program was:" >&5
15608sed 's/^/| /' conftest.$ac_ext >&5
15609
15610 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015611fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015612
Reid Spencera773bd52006-08-04 18:18:08 +000015613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015615{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15616echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015617if test $ac_cv_header_sys_wait_h = yes; then
15618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015619cat >>confdefs.h <<\_ACEOF
15620#define HAVE_SYS_WAIT_H 1
15621_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015622
15623fi
15624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015625{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15626echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15627if test "${ac_cv_header_time+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015629else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015630 cat >conftest.$ac_ext <<_ACEOF
15631/* confdefs.h. */
15632_ACEOF
15633cat confdefs.h >>conftest.$ac_ext
15634cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015635/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015636#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015637#include <sys/time.h>
15638#include <time.h>
15639
15640int
15641main ()
15642{
15643if ((struct tm *) 0)
15644return 0;
15645 ;
15646 return 0;
15647}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015648_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015649rm -f conftest.$ac_objext
15650if { (ac_try="$ac_compile"
15651case "(($ac_try" in
15652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653 *) ac_try_echo=$ac_try;;
15654esac
15655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15656 (eval "$ac_compile") 2>conftest.er1
15657 ac_status=$?
15658 grep -v '^ *+' conftest.er1 >conftest.err
15659 rm -f conftest.er1
15660 cat conftest.err >&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); } &&
15663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15664 { (case "(($ac_try" in
15665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15666 *) ac_try_echo=$ac_try;;
15667esac
15668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669 (eval "$ac_try") 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; } &&
15673 { ac_try='test -s conftest.$ac_objext'
15674 { (case "(($ac_try" in
15675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15676 *) ac_try_echo=$ac_try;;
15677esac
15678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15679 (eval "$ac_try") 2>&5
15680 ac_status=$?
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015683 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015684else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015685 echo "$as_me: failed program was:" >&5
15686sed 's/^/| /' conftest.$ac_ext >&5
15687
15688 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015689fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015690
Reid Spencera773bd52006-08-04 18:18:08 +000015691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015692fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015693{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15694echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015695if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015697cat >>confdefs.h <<\_ACEOF
15698#define TIME_WITH_SYS_TIME 1
15699_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015700
15701fi
15702
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015704
15705
15706
15707
15708
15709
Reid Spencer59473af2004-12-25 07:31:29 +000015710for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015711do
15712as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15713if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15716if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15718fi
15719ac_res=`eval echo '${'$as_ac_Header'}'`
15720 { echo "$as_me:$LINENO: result: $ac_res" >&5
15721echo "${ECHO_T}$ac_res" >&6; }
15722else
15723 # Is the header compilable?
15724{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15725echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15726cat >conftest.$ac_ext <<_ACEOF
15727/* confdefs.h. */
15728_ACEOF
15729cat confdefs.h >>conftest.$ac_ext
15730cat >>conftest.$ac_ext <<_ACEOF
15731/* end confdefs.h. */
15732$ac_includes_default
15733#include <$ac_header>
15734_ACEOF
15735rm -f conftest.$ac_objext
15736if { (ac_try="$ac_compile"
15737case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15740esac
15741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_compile") 2>conftest.er1
15743 ac_status=$?
15744 grep -v '^ *+' conftest.er1 >conftest.err
15745 rm -f conftest.er1
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15750 { (case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15753esac
15754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755 (eval "$ac_try") 2>&5
15756 ac_status=$?
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; } &&
15759 { ac_try='test -s conftest.$ac_objext'
15760 { (case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15763esac
15764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765 (eval "$ac_try") 2>&5
15766 ac_status=$?
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769 ac_header_compiler=yes
15770else
15771 echo "$as_me: failed program was:" >&5
15772sed 's/^/| /' conftest.$ac_ext >&5
15773
15774 ac_header_compiler=no
15775fi
15776
15777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15778{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15779echo "${ECHO_T}$ac_header_compiler" >&6; }
15780
15781# Is the header present?
15782{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15783echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15784cat >conftest.$ac_ext <<_ACEOF
15785/* confdefs.h. */
15786_ACEOF
15787cat confdefs.h >>conftest.$ac_ext
15788cat >>conftest.$ac_ext <<_ACEOF
15789/* end confdefs.h. */
15790#include <$ac_header>
15791_ACEOF
15792if { (ac_try="$ac_cpp conftest.$ac_ext"
15793case "(($ac_try" in
15794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795 *) ac_try_echo=$ac_try;;
15796esac
15797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15799 ac_status=$?
15800 grep -v '^ *+' conftest.er1 >conftest.err
15801 rm -f conftest.er1
15802 cat conftest.err >&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } >/dev/null; then
15805 if test -s conftest.err; then
15806 ac_cpp_err=$ac_c_preproc_warn_flag
15807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15808 else
15809 ac_cpp_err=
15810 fi
15811else
15812 ac_cpp_err=yes
15813fi
15814if test -z "$ac_cpp_err"; then
15815 ac_header_preproc=yes
15816else
15817 echo "$as_me: failed program was:" >&5
15818sed 's/^/| /' conftest.$ac_ext >&5
15819
15820 ac_header_preproc=no
15821fi
15822
15823rm -f conftest.err conftest.$ac_ext
15824{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15825echo "${ECHO_T}$ac_header_preproc" >&6; }
15826
15827# So? What about this header?
15828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15829 yes:no: )
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15831echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15833echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15834 ac_header_preproc=yes
15835 ;;
15836 no:yes:* )
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15838echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15840echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15842echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15844echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15846echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15848echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15849 ( cat <<\_ASBOX
15850## ----------------------------------- ##
15851## Report this to llvmbugs@cs.uiuc.edu ##
15852## ----------------------------------- ##
15853_ASBOX
15854 ) | sed "s/^/$as_me: WARNING: /" >&2
15855 ;;
15856esac
15857{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15861else
15862 eval "$as_ac_Header=\$ac_header_preproc"
15863fi
15864ac_res=`eval echo '${'$as_ac_Header'}'`
15865 { echo "$as_me:$LINENO: result: $ac_res" >&5
15866echo "${ECHO_T}$ac_res" >&6; }
15867
15868fi
15869if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015870 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015871#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015872_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015873
15874fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015875
Reid Spencer59473af2004-12-25 07:31:29 +000015876done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015877
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015878
15879
15880
15881
15882
15883
Douglas Gregor071d73d2009-05-18 17:21:34 +000015884for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015885do
15886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15890if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15891 echo $ECHO_N "(cached) $ECHO_C" >&6
15892fi
15893ac_res=`eval echo '${'$as_ac_Header'}'`
15894 { echo "$as_me:$LINENO: result: $ac_res" >&5
15895echo "${ECHO_T}$ac_res" >&6; }
15896else
15897 # Is the header compilable?
15898{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15899echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15900cat >conftest.$ac_ext <<_ACEOF
15901/* confdefs.h. */
15902_ACEOF
15903cat confdefs.h >>conftest.$ac_ext
15904cat >>conftest.$ac_ext <<_ACEOF
15905/* end confdefs.h. */
15906$ac_includes_default
15907#include <$ac_header>
15908_ACEOF
15909rm -f conftest.$ac_objext
15910if { (ac_try="$ac_compile"
15911case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15914esac
15915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916 (eval "$ac_compile") 2>conftest.er1
15917 ac_status=$?
15918 grep -v '^ *+' conftest.er1 >conftest.err
15919 rm -f conftest.er1
15920 cat conftest.err >&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } &&
15923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15924 { (case "(($ac_try" in
15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926 *) ac_try_echo=$ac_try;;
15927esac
15928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929 (eval "$ac_try") 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; } &&
15933 { ac_try='test -s conftest.$ac_objext'
15934 { (case "(($ac_try" in
15935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936 *) ac_try_echo=$ac_try;;
15937esac
15938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15939 (eval "$ac_try") 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; }; then
15943 ac_header_compiler=yes
15944else
15945 echo "$as_me: failed program was:" >&5
15946sed 's/^/| /' conftest.$ac_ext >&5
15947
15948 ac_header_compiler=no
15949fi
15950
15951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15952{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15953echo "${ECHO_T}$ac_header_compiler" >&6; }
15954
15955# Is the header present?
15956{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15957echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15958cat >conftest.$ac_ext <<_ACEOF
15959/* confdefs.h. */
15960_ACEOF
15961cat confdefs.h >>conftest.$ac_ext
15962cat >>conftest.$ac_ext <<_ACEOF
15963/* end confdefs.h. */
15964#include <$ac_header>
15965_ACEOF
15966if { (ac_try="$ac_cpp conftest.$ac_ext"
15967case "(($ac_try" in
15968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15969 *) ac_try_echo=$ac_try;;
15970esac
15971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15973 ac_status=$?
15974 grep -v '^ *+' conftest.er1 >conftest.err
15975 rm -f conftest.er1
15976 cat conftest.err >&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); } >/dev/null; then
15979 if test -s conftest.err; then
15980 ac_cpp_err=$ac_c_preproc_warn_flag
15981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15982 else
15983 ac_cpp_err=
15984 fi
15985else
15986 ac_cpp_err=yes
15987fi
15988if test -z "$ac_cpp_err"; then
15989 ac_header_preproc=yes
15990else
15991 echo "$as_me: failed program was:" >&5
15992sed 's/^/| /' conftest.$ac_ext >&5
15993
15994 ac_header_preproc=no
15995fi
15996
15997rm -f conftest.err conftest.$ac_ext
15998{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15999echo "${ECHO_T}$ac_header_preproc" >&6; }
16000
16001# So? What about this header?
16002case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16003 yes:no: )
16004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16005echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16007echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16008 ac_header_preproc=yes
16009 ;;
16010 no:yes:* )
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16012echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16014echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16016echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16018echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16020echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16022echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16023 ( cat <<\_ASBOX
16024## ----------------------------------- ##
16025## Report this to llvmbugs@cs.uiuc.edu ##
16026## ----------------------------------- ##
16027_ASBOX
16028 ) | sed "s/^/$as_me: WARNING: /" >&2
16029 ;;
16030esac
16031{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16035else
16036 eval "$as_ac_Header=\$ac_header_preproc"
16037fi
16038ac_res=`eval echo '${'$as_ac_Header'}'`
16039 { echo "$as_me:$LINENO: result: $ac_res" >&5
16040echo "${ECHO_T}$ac_res" >&6; }
16041
16042fi
16043if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000016044 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016045#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000016046_ACEOF
16047
16048fi
16049
16050done
16051
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016052
16053
Douglas Gregor071d73d2009-05-18 17:21:34 +000016054for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016055do
16056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16062fi
16063ac_res=`eval echo '${'$as_ac_Header'}'`
16064 { echo "$as_me:$LINENO: result: $ac_res" >&5
16065echo "${ECHO_T}$ac_res" >&6; }
16066else
16067 # Is the header compilable?
16068{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16069echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16070cat >conftest.$ac_ext <<_ACEOF
16071/* confdefs.h. */
16072_ACEOF
16073cat confdefs.h >>conftest.$ac_ext
16074cat >>conftest.$ac_ext <<_ACEOF
16075/* end confdefs.h. */
16076$ac_includes_default
16077#include <$ac_header>
16078_ACEOF
16079rm -f conftest.$ac_objext
16080if { (ac_try="$ac_compile"
16081case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16084esac
16085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_compile") 2>conftest.er1
16087 ac_status=$?
16088 grep -v '^ *+' conftest.er1 >conftest.err
16089 rm -f conftest.er1
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } &&
16093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16094 { (case "(($ac_try" in
16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096 *) ac_try_echo=$ac_try;;
16097esac
16098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099 (eval "$ac_try") 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest.$ac_objext'
16104 { (case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16107esac
16108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_try") 2>&5
16110 ac_status=$?
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; }; then
16113 ac_header_compiler=yes
16114else
16115 echo "$as_me: failed program was:" >&5
16116sed 's/^/| /' conftest.$ac_ext >&5
16117
16118 ac_header_compiler=no
16119fi
16120
16121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16122{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16123echo "${ECHO_T}$ac_header_compiler" >&6; }
16124
16125# Is the header present?
16126{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16128cat >conftest.$ac_ext <<_ACEOF
16129/* confdefs.h. */
16130_ACEOF
16131cat confdefs.h >>conftest.$ac_ext
16132cat >>conftest.$ac_ext <<_ACEOF
16133/* end confdefs.h. */
16134#include <$ac_header>
16135_ACEOF
16136if { (ac_try="$ac_cpp conftest.$ac_ext"
16137case "(($ac_try" in
16138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16139 *) ac_try_echo=$ac_try;;
16140esac
16141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16143 ac_status=$?
16144 grep -v '^ *+' conftest.er1 >conftest.err
16145 rm -f conftest.er1
16146 cat conftest.err >&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } >/dev/null; then
16149 if test -s conftest.err; then
16150 ac_cpp_err=$ac_c_preproc_warn_flag
16151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16152 else
16153 ac_cpp_err=
16154 fi
16155else
16156 ac_cpp_err=yes
16157fi
16158if test -z "$ac_cpp_err"; then
16159 ac_header_preproc=yes
16160else
16161 echo "$as_me: failed program was:" >&5
16162sed 's/^/| /' conftest.$ac_ext >&5
16163
16164 ac_header_preproc=no
16165fi
16166
16167rm -f conftest.err conftest.$ac_ext
16168{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16169echo "${ECHO_T}$ac_header_preproc" >&6; }
16170
16171# So? What about this header?
16172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16173 yes:no: )
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16175echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16177echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16178 ac_header_preproc=yes
16179 ;;
16180 no:yes:* )
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16182echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16184echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16186echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16188echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16190echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16192echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16193 ( cat <<\_ASBOX
16194## ----------------------------------- ##
16195## Report this to llvmbugs@cs.uiuc.edu ##
16196## ----------------------------------- ##
16197_ASBOX
16198 ) | sed "s/^/$as_me: WARNING: /" >&2
16199 ;;
16200esac
16201{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16205else
16206 eval "$as_ac_Header=\$ac_header_preproc"
16207fi
16208ac_res=`eval echo '${'$as_ac_Header'}'`
16209 { echo "$as_me:$LINENO: result: $ac_res" >&5
16210echo "${ECHO_T}$ac_res" >&6; }
16211
16212fi
16213if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016214 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016216_ACEOF
16217
16218fi
16219
16220done
Reid Spencer59473af2004-12-25 07:31:29 +000016221
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016222
16223
16224
16225
Reid Spencerbe3e4192007-08-17 05:45:26 +000016226for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016227do
16228as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16233 echo $ECHO_N "(cached) $ECHO_C" >&6
16234fi
16235ac_res=`eval echo '${'$as_ac_Header'}'`
16236 { echo "$as_me:$LINENO: result: $ac_res" >&5
16237echo "${ECHO_T}$ac_res" >&6; }
16238else
16239 # Is the header compilable?
16240{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16241echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16242cat >conftest.$ac_ext <<_ACEOF
16243/* confdefs.h. */
16244_ACEOF
16245cat confdefs.h >>conftest.$ac_ext
16246cat >>conftest.$ac_ext <<_ACEOF
16247/* end confdefs.h. */
16248$ac_includes_default
16249#include <$ac_header>
16250_ACEOF
16251rm -f conftest.$ac_objext
16252if { (ac_try="$ac_compile"
16253case "(($ac_try" in
16254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255 *) ac_try_echo=$ac_try;;
16256esac
16257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258 (eval "$ac_compile") 2>conftest.er1
16259 ac_status=$?
16260 grep -v '^ *+' conftest.er1 >conftest.err
16261 rm -f conftest.er1
16262 cat conftest.err >&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } &&
16265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16266 { (case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16269esac
16270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_try") 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; } &&
16275 { ac_try='test -s conftest.$ac_objext'
16276 { (case "(($ac_try" in
16277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16278 *) ac_try_echo=$ac_try;;
16279esac
16280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16281 (eval "$ac_try") 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; }; then
16285 ac_header_compiler=yes
16286else
16287 echo "$as_me: failed program was:" >&5
16288sed 's/^/| /' conftest.$ac_ext >&5
16289
16290 ac_header_compiler=no
16291fi
16292
16293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16294{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16295echo "${ECHO_T}$ac_header_compiler" >&6; }
16296
16297# Is the header present?
16298{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16299echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16300cat >conftest.$ac_ext <<_ACEOF
16301/* confdefs.h. */
16302_ACEOF
16303cat confdefs.h >>conftest.$ac_ext
16304cat >>conftest.$ac_ext <<_ACEOF
16305/* end confdefs.h. */
16306#include <$ac_header>
16307_ACEOF
16308if { (ac_try="$ac_cpp conftest.$ac_ext"
16309case "(($ac_try" in
16310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311 *) ac_try_echo=$ac_try;;
16312esac
16313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16315 ac_status=$?
16316 grep -v '^ *+' conftest.er1 >conftest.err
16317 rm -f conftest.er1
16318 cat conftest.err >&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } >/dev/null; then
16321 if test -s conftest.err; then
16322 ac_cpp_err=$ac_c_preproc_warn_flag
16323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16324 else
16325 ac_cpp_err=
16326 fi
16327else
16328 ac_cpp_err=yes
16329fi
16330if test -z "$ac_cpp_err"; then
16331 ac_header_preproc=yes
16332else
16333 echo "$as_me: failed program was:" >&5
16334sed 's/^/| /' conftest.$ac_ext >&5
16335
16336 ac_header_preproc=no
16337fi
16338
16339rm -f conftest.err conftest.$ac_ext
16340{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16341echo "${ECHO_T}$ac_header_preproc" >&6; }
16342
16343# So? What about this header?
16344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16345 yes:no: )
16346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16347echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16349echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16350 ac_header_preproc=yes
16351 ;;
16352 no:yes:* )
16353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16354echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16356echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16358echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16360echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16362echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16364echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16365 ( cat <<\_ASBOX
16366## ----------------------------------- ##
16367## Report this to llvmbugs@cs.uiuc.edu ##
16368## ----------------------------------- ##
16369_ASBOX
16370 ) | sed "s/^/$as_me: WARNING: /" >&2
16371 ;;
16372esac
16373{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16377else
16378 eval "$as_ac_Header=\$ac_header_preproc"
16379fi
16380ac_res=`eval echo '${'$as_ac_Header'}'`
16381 { echo "$as_me:$LINENO: result: $ac_res" >&5
16382echo "${ECHO_T}$ac_res" >&6; }
16383
16384fi
16385if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016386 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016388_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016389
16390fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016391
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016392done
16393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016394
16395
16396
16397
Douglas Gregor01746742009-05-11 18:05:52 +000016398for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016399do
16400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16406fi
16407ac_res=`eval echo '${'$as_ac_Header'}'`
16408 { echo "$as_me:$LINENO: result: $ac_res" >&5
16409echo "${ECHO_T}$ac_res" >&6; }
16410else
16411 # Is the header compilable?
16412{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16413echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16414cat >conftest.$ac_ext <<_ACEOF
16415/* confdefs.h. */
16416_ACEOF
16417cat confdefs.h >>conftest.$ac_ext
16418cat >>conftest.$ac_ext <<_ACEOF
16419/* end confdefs.h. */
16420$ac_includes_default
16421#include <$ac_header>
16422_ACEOF
16423rm -f conftest.$ac_objext
16424if { (ac_try="$ac_compile"
16425case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16428esac
16429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_compile") 2>conftest.er1
16431 ac_status=$?
16432 grep -v '^ *+' conftest.er1 >conftest.err
16433 rm -f conftest.er1
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } &&
16437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16438 { (case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16441esac
16442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_try") 2>&5
16444 ac_status=$?
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; } &&
16447 { ac_try='test -s conftest.$ac_objext'
16448 { (case "(($ac_try" in
16449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450 *) ac_try_echo=$ac_try;;
16451esac
16452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453 (eval "$ac_try") 2>&5
16454 ac_status=$?
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; }; then
16457 ac_header_compiler=yes
16458else
16459 echo "$as_me: failed program was:" >&5
16460sed 's/^/| /' conftest.$ac_ext >&5
16461
16462 ac_header_compiler=no
16463fi
16464
16465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16466{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16467echo "${ECHO_T}$ac_header_compiler" >&6; }
16468
16469# Is the header present?
16470{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16472cat >conftest.$ac_ext <<_ACEOF
16473/* confdefs.h. */
16474_ACEOF
16475cat confdefs.h >>conftest.$ac_ext
16476cat >>conftest.$ac_ext <<_ACEOF
16477/* end confdefs.h. */
16478#include <$ac_header>
16479_ACEOF
16480if { (ac_try="$ac_cpp conftest.$ac_ext"
16481case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16484esac
16485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16487 ac_status=$?
16488 grep -v '^ *+' conftest.er1 >conftest.err
16489 rm -f conftest.er1
16490 cat conftest.err >&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); } >/dev/null; then
16493 if test -s conftest.err; then
16494 ac_cpp_err=$ac_c_preproc_warn_flag
16495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16496 else
16497 ac_cpp_err=
16498 fi
16499else
16500 ac_cpp_err=yes
16501fi
16502if test -z "$ac_cpp_err"; then
16503 ac_header_preproc=yes
16504else
16505 echo "$as_me: failed program was:" >&5
16506sed 's/^/| /' conftest.$ac_ext >&5
16507
16508 ac_header_preproc=no
16509fi
16510
16511rm -f conftest.err conftest.$ac_ext
16512{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16513echo "${ECHO_T}$ac_header_preproc" >&6; }
16514
16515# So? What about this header?
16516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16517 yes:no: )
16518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16519echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16521echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16522 ac_header_preproc=yes
16523 ;;
16524 no:yes:* )
16525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16526echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16528echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16530echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16532echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16534echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16536echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16537 ( cat <<\_ASBOX
16538## ----------------------------------- ##
16539## Report this to llvmbugs@cs.uiuc.edu ##
16540## ----------------------------------- ##
16541_ASBOX
16542 ) | sed "s/^/$as_me: WARNING: /" >&2
16543 ;;
16544esac
16545{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16549else
16550 eval "$as_ac_Header=\$ac_header_preproc"
16551fi
16552ac_res=`eval echo '${'$as_ac_Header'}'`
16553 { echo "$as_me:$LINENO: result: $ac_res" >&5
16554echo "${ECHO_T}$ac_res" >&6; }
16555
16556fi
16557if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016558 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016560_ACEOF
16561
16562fi
16563
16564done
16565
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016566
16567for ac_header in valgrind/valgrind.h
16568do
16569as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16574 echo $ECHO_N "(cached) $ECHO_C" >&6
16575fi
16576ac_res=`eval echo '${'$as_ac_Header'}'`
16577 { echo "$as_me:$LINENO: result: $ac_res" >&5
16578echo "${ECHO_T}$ac_res" >&6; }
16579else
16580 # Is the header compilable?
16581{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16583cat >conftest.$ac_ext <<_ACEOF
16584/* confdefs.h. */
16585_ACEOF
16586cat confdefs.h >>conftest.$ac_ext
16587cat >>conftest.$ac_ext <<_ACEOF
16588/* end confdefs.h. */
16589$ac_includes_default
16590#include <$ac_header>
16591_ACEOF
16592rm -f conftest.$ac_objext
16593if { (ac_try="$ac_compile"
16594case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16597esac
16598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_compile") 2>conftest.er1
16600 ac_status=$?
16601 grep -v '^ *+' conftest.er1 >conftest.err
16602 rm -f conftest.er1
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
16606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16607 { (case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16610esac
16611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_try") 2>&5
16613 ac_status=$?
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; } &&
16616 { ac_try='test -s conftest.$ac_objext'
16617 { (case "(($ac_try" in
16618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16620esac
16621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_try") 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_header_compiler=yes
16627else
16628 echo "$as_me: failed program was:" >&5
16629sed 's/^/| /' conftest.$ac_ext >&5
16630
16631 ac_header_compiler=no
16632fi
16633
16634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16635{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16636echo "${ECHO_T}$ac_header_compiler" >&6; }
16637
16638# Is the header present?
16639{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16640echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16641cat >conftest.$ac_ext <<_ACEOF
16642/* confdefs.h. */
16643_ACEOF
16644cat confdefs.h >>conftest.$ac_ext
16645cat >>conftest.$ac_ext <<_ACEOF
16646/* end confdefs.h. */
16647#include <$ac_header>
16648_ACEOF
16649if { (ac_try="$ac_cpp conftest.$ac_ext"
16650case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16653esac
16654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16656 ac_status=$?
16657 grep -v '^ *+' conftest.er1 >conftest.err
16658 rm -f conftest.er1
16659 cat conftest.err >&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); } >/dev/null; then
16662 if test -s conftest.err; then
16663 ac_cpp_err=$ac_c_preproc_warn_flag
16664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16665 else
16666 ac_cpp_err=
16667 fi
16668else
16669 ac_cpp_err=yes
16670fi
16671if test -z "$ac_cpp_err"; then
16672 ac_header_preproc=yes
16673else
16674 echo "$as_me: failed program was:" >&5
16675sed 's/^/| /' conftest.$ac_ext >&5
16676
16677 ac_header_preproc=no
16678fi
16679
16680rm -f conftest.err conftest.$ac_ext
16681{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16682echo "${ECHO_T}$ac_header_preproc" >&6; }
16683
16684# So? What about this header?
16685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16686 yes:no: )
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16688echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16690echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16691 ac_header_preproc=yes
16692 ;;
16693 no:yes:* )
16694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16695echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16697echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16699echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16701echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16703echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16705echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16706 ( cat <<\_ASBOX
16707## ----------------------------------- ##
16708## Report this to llvmbugs@cs.uiuc.edu ##
16709## ----------------------------------- ##
16710_ASBOX
16711 ) | sed "s/^/$as_me: WARNING: /" >&2
16712 ;;
16713esac
16714{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16716if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16717 echo $ECHO_N "(cached) $ECHO_C" >&6
16718else
16719 eval "$as_ac_Header=\$ac_header_preproc"
16720fi
16721ac_res=`eval echo '${'$as_ac_Header'}'`
16722 { echo "$as_me:$LINENO: result: $ac_res" >&5
16723echo "${ECHO_T}$ac_res" >&6; }
16724
16725fi
16726if test `eval echo '${'$as_ac_Header'}'` = yes; then
16727 cat >>confdefs.h <<_ACEOF
16728#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16729_ACEOF
16730
16731fi
16732
16733done
16734
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016735
16736for ac_header in fenv.h
16737do
16738as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16744fi
16745ac_res=`eval echo '${'$as_ac_Header'}'`
16746 { echo "$as_me:$LINENO: result: $ac_res" >&5
16747echo "${ECHO_T}$ac_res" >&6; }
16748else
16749 # Is the header compilable?
16750{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16751echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16752cat >conftest.$ac_ext <<_ACEOF
16753/* confdefs.h. */
16754_ACEOF
16755cat confdefs.h >>conftest.$ac_ext
16756cat >>conftest.$ac_ext <<_ACEOF
16757/* end confdefs.h. */
16758$ac_includes_default
16759#include <$ac_header>
16760_ACEOF
16761rm -f conftest.$ac_objext
16762if { (ac_try="$ac_compile"
16763case "(($ac_try" in
16764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765 *) ac_try_echo=$ac_try;;
16766esac
16767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16768 (eval "$ac_compile") 2>conftest.er1
16769 ac_status=$?
16770 grep -v '^ *+' conftest.er1 >conftest.err
16771 rm -f conftest.er1
16772 cat conftest.err >&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); } &&
16775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16776 { (case "(($ac_try" in
16777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778 *) ac_try_echo=$ac_try;;
16779esac
16780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16781 (eval "$ac_try") 2>&5
16782 ac_status=$?
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; } &&
16785 { ac_try='test -s conftest.$ac_objext'
16786 { (case "(($ac_try" in
16787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788 *) ac_try_echo=$ac_try;;
16789esac
16790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_try") 2>&5
16792 ac_status=$?
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; }; then
16795 ac_header_compiler=yes
16796else
16797 echo "$as_me: failed program was:" >&5
16798sed 's/^/| /' conftest.$ac_ext >&5
16799
16800 ac_header_compiler=no
16801fi
16802
16803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16805echo "${ECHO_T}$ac_header_compiler" >&6; }
16806
16807# Is the header present?
16808{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16809echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16810cat >conftest.$ac_ext <<_ACEOF
16811/* confdefs.h. */
16812_ACEOF
16813cat confdefs.h >>conftest.$ac_ext
16814cat >>conftest.$ac_ext <<_ACEOF
16815/* end confdefs.h. */
16816#include <$ac_header>
16817_ACEOF
16818if { (ac_try="$ac_cpp conftest.$ac_ext"
16819case "(($ac_try" in
16820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821 *) ac_try_echo=$ac_try;;
16822esac
16823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16825 ac_status=$?
16826 grep -v '^ *+' conftest.er1 >conftest.err
16827 rm -f conftest.er1
16828 cat conftest.err >&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); } >/dev/null; then
16831 if test -s conftest.err; then
16832 ac_cpp_err=$ac_c_preproc_warn_flag
16833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16834 else
16835 ac_cpp_err=
16836 fi
16837else
16838 ac_cpp_err=yes
16839fi
16840if test -z "$ac_cpp_err"; then
16841 ac_header_preproc=yes
16842else
16843 echo "$as_me: failed program was:" >&5
16844sed 's/^/| /' conftest.$ac_ext >&5
16845
16846 ac_header_preproc=no
16847fi
16848
16849rm -f conftest.err conftest.$ac_ext
16850{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16851echo "${ECHO_T}$ac_header_preproc" >&6; }
16852
16853# So? What about this header?
16854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16855 yes:no: )
16856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16859echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16860 ac_header_preproc=yes
16861 ;;
16862 no:yes:* )
16863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16864echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16866echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16868echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16870echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16872echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16874echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16875 ( cat <<\_ASBOX
16876## ----------------------------------- ##
16877## Report this to llvmbugs@cs.uiuc.edu ##
16878## ----------------------------------- ##
16879_ASBOX
16880 ) | sed "s/^/$as_me: WARNING: /" >&2
16881 ;;
16882esac
16883{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16885if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16887else
16888 eval "$as_ac_Header=\$ac_header_preproc"
16889fi
16890ac_res=`eval echo '${'$as_ac_Header'}'`
16891 { echo "$as_me:$LINENO: result: $ac_res" >&5
16892echo "${ECHO_T}$ac_res" >&6; }
16893
16894fi
16895if test `eval echo '${'$as_ac_Header'}'` = yes; then
16896 cat >>confdefs.h <<_ACEOF
16897#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16898_ACEOF
16899
16900fi
16901
16902done
16903
Reid Spencer0a262ba2005-08-24 10:07:20 +000016904if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016905
16906for ac_header in pthread.h
16907do
16908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16914fi
16915ac_res=`eval echo '${'$as_ac_Header'}'`
16916 { echo "$as_me:$LINENO: result: $ac_res" >&5
16917echo "${ECHO_T}$ac_res" >&6; }
16918else
16919 # Is the header compilable?
16920{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16921echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16922cat >conftest.$ac_ext <<_ACEOF
16923/* confdefs.h. */
16924_ACEOF
16925cat confdefs.h >>conftest.$ac_ext
16926cat >>conftest.$ac_ext <<_ACEOF
16927/* end confdefs.h. */
16928$ac_includes_default
16929#include <$ac_header>
16930_ACEOF
16931rm -f conftest.$ac_objext
16932if { (ac_try="$ac_compile"
16933case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16936esac
16937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_compile") 2>conftest.er1
16939 ac_status=$?
16940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949esac
16950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest.$ac_objext'
16956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16959esac
16960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 ac_header_compiler=yes
16966else
16967 echo "$as_me: failed program was:" >&5
16968sed 's/^/| /' conftest.$ac_ext >&5
16969
16970 ac_header_compiler=no
16971fi
16972
16973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16975echo "${ECHO_T}$ac_header_compiler" >&6; }
16976
16977# Is the header present?
16978{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16980cat >conftest.$ac_ext <<_ACEOF
16981/* confdefs.h. */
16982_ACEOF
16983cat confdefs.h >>conftest.$ac_ext
16984cat >>conftest.$ac_ext <<_ACEOF
16985/* end confdefs.h. */
16986#include <$ac_header>
16987_ACEOF
16988if { (ac_try="$ac_cpp conftest.$ac_ext"
16989case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16992esac
16993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16995 ac_status=$?
16996 grep -v '^ *+' conftest.er1 >conftest.err
16997 rm -f conftest.er1
16998 cat conftest.err >&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } >/dev/null; then
17001 if test -s conftest.err; then
17002 ac_cpp_err=$ac_c_preproc_warn_flag
17003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17004 else
17005 ac_cpp_err=
17006 fi
17007else
17008 ac_cpp_err=yes
17009fi
17010if test -z "$ac_cpp_err"; then
17011 ac_header_preproc=yes
17012else
17013 echo "$as_me: failed program was:" >&5
17014sed 's/^/| /' conftest.$ac_ext >&5
17015
17016 ac_header_preproc=no
17017fi
17018
17019rm -f conftest.err conftest.$ac_ext
17020{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17021echo "${ECHO_T}$ac_header_preproc" >&6; }
17022
17023# So? What about this header?
17024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17025 yes:no: )
17026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17027echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17029echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17030 ac_header_preproc=yes
17031 ;;
17032 no:yes:* )
17033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17034echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17036echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17038echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17040echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17044echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17045 ( cat <<\_ASBOX
17046## ----------------------------------- ##
17047## Report this to llvmbugs@cs.uiuc.edu ##
17048## ----------------------------------- ##
17049_ASBOX
17050 ) | sed "s/^/$as_me: WARNING: /" >&2
17051 ;;
17052esac
17053{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17056 echo $ECHO_N "(cached) $ECHO_C" >&6
17057else
17058 eval "$as_ac_Header=\$ac_header_preproc"
17059fi
17060ac_res=`eval echo '${'$as_ac_Header'}'`
17061 { echo "$as_me:$LINENO: result: $ac_res" >&5
17062echo "${ECHO_T}$ac_res" >&6; }
17063
17064fi
17065if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017066 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017068_ACEOF
17069 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017070
17071else
17072 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017073
17074fi
17075
Reid Spencerbe3e4192007-08-17 05:45:26 +000017076done
Reid Spencer1000b732006-12-01 00:37:14 +000017077
17078else
17079 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017080
17081fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017082
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017083if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017084
17085
17086for ac_header in ffi.h ffi/ffi.h
17087do
17088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17094fi
17095ac_res=`eval echo '${'$as_ac_Header'}'`
17096 { echo "$as_me:$LINENO: result: $ac_res" >&5
17097echo "${ECHO_T}$ac_res" >&6; }
17098else
17099 # Is the header compilable?
17100{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17101echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17102cat >conftest.$ac_ext <<_ACEOF
17103/* confdefs.h. */
17104_ACEOF
17105cat confdefs.h >>conftest.$ac_ext
17106cat >>conftest.$ac_ext <<_ACEOF
17107/* end confdefs.h. */
17108$ac_includes_default
17109#include <$ac_header>
17110_ACEOF
17111rm -f conftest.$ac_objext
17112if { (ac_try="$ac_compile"
17113case "(($ac_try" in
17114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115 *) ac_try_echo=$ac_try;;
17116esac
17117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_compile") 2>conftest.er1
17119 ac_status=$?
17120 grep -v '^ *+' conftest.er1 >conftest.err
17121 rm -f conftest.er1
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } &&
17125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17126 { (case "(($ac_try" in
17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128 *) ac_try_echo=$ac_try;;
17129esac
17130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131 (eval "$ac_try") 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; } &&
17135 { ac_try='test -s conftest.$ac_objext'
17136 { (case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17139esac
17140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141 (eval "$ac_try") 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 ac_header_compiler=yes
17146else
17147 echo "$as_me: failed program was:" >&5
17148sed 's/^/| /' conftest.$ac_ext >&5
17149
17150 ac_header_compiler=no
17151fi
17152
17153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17154{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17155echo "${ECHO_T}$ac_header_compiler" >&6; }
17156
17157# Is the header present?
17158{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17159echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17160cat >conftest.$ac_ext <<_ACEOF
17161/* confdefs.h. */
17162_ACEOF
17163cat confdefs.h >>conftest.$ac_ext
17164cat >>conftest.$ac_ext <<_ACEOF
17165/* end confdefs.h. */
17166#include <$ac_header>
17167_ACEOF
17168if { (ac_try="$ac_cpp conftest.$ac_ext"
17169case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17172esac
17173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17175 ac_status=$?
17176 grep -v '^ *+' conftest.er1 >conftest.err
17177 rm -f conftest.er1
17178 cat conftest.err >&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } >/dev/null; then
17181 if test -s conftest.err; then
17182 ac_cpp_err=$ac_c_preproc_warn_flag
17183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17184 else
17185 ac_cpp_err=
17186 fi
17187else
17188 ac_cpp_err=yes
17189fi
17190if test -z "$ac_cpp_err"; then
17191 ac_header_preproc=yes
17192else
17193 echo "$as_me: failed program was:" >&5
17194sed 's/^/| /' conftest.$ac_ext >&5
17195
17196 ac_header_preproc=no
17197fi
17198
17199rm -f conftest.err conftest.$ac_ext
17200{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17201echo "${ECHO_T}$ac_header_preproc" >&6; }
17202
17203# So? What about this header?
17204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17205 yes:no: )
17206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17207echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17209echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17210 ac_header_preproc=yes
17211 ;;
17212 no:yes:* )
17213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17214echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17216echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17218echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17220echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17222echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17224echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17225 ( cat <<\_ASBOX
17226## ----------------------------------- ##
17227## Report this to llvmbugs@cs.uiuc.edu ##
17228## ----------------------------------- ##
17229_ASBOX
17230 ) | sed "s/^/$as_me: WARNING: /" >&2
17231 ;;
17232esac
17233{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17236 echo $ECHO_N "(cached) $ECHO_C" >&6
17237else
17238 eval "$as_ac_Header=\$ac_header_preproc"
17239fi
17240ac_res=`eval echo '${'$as_ac_Header'}'`
17241 { echo "$as_me:$LINENO: result: $ac_res" >&5
17242echo "${ECHO_T}$ac_res" >&6; }
17243
17244fi
17245if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017246 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017248_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017249
17250fi
17251
17252done
17253
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017254fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017255
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017256
Eric Christopher654dee42010-06-22 21:01:04 +000017257for ac_header in CrashReporterClient.h
17258do
17259as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17264 echo $ECHO_N "(cached) $ECHO_C" >&6
17265fi
17266ac_res=`eval echo '${'$as_ac_Header'}'`
17267 { echo "$as_me:$LINENO: result: $ac_res" >&5
17268echo "${ECHO_T}$ac_res" >&6; }
17269else
17270 # Is the header compilable?
17271{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17272echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17273cat >conftest.$ac_ext <<_ACEOF
17274/* confdefs.h. */
17275_ACEOF
17276cat confdefs.h >>conftest.$ac_ext
17277cat >>conftest.$ac_ext <<_ACEOF
17278/* end confdefs.h. */
17279$ac_includes_default
17280#include <$ac_header>
17281_ACEOF
17282rm -f conftest.$ac_objext
17283if { (ac_try="$ac_compile"
17284case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17287esac
17288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_compile") 2>conftest.er1
17290 ac_status=$?
17291 grep -v '^ *+' conftest.er1 >conftest.err
17292 rm -f conftest.er1
17293 cat conftest.err >&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } &&
17296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17297 { (case "(($ac_try" in
17298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299 *) ac_try_echo=$ac_try;;
17300esac
17301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302 (eval "$ac_try") 2>&5
17303 ac_status=$?
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; } &&
17306 { ac_try='test -s conftest.$ac_objext'
17307 { (case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17310esac
17311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_try") 2>&5
17313 ac_status=$?
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; }; then
17316 ac_header_compiler=yes
17317else
17318 echo "$as_me: failed program was:" >&5
17319sed 's/^/| /' conftest.$ac_ext >&5
17320
17321 ac_header_compiler=no
17322fi
17323
17324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17325{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17326echo "${ECHO_T}$ac_header_compiler" >&6; }
17327
17328# Is the header present?
17329{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17330echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17331cat >conftest.$ac_ext <<_ACEOF
17332/* confdefs.h. */
17333_ACEOF
17334cat confdefs.h >>conftest.$ac_ext
17335cat >>conftest.$ac_ext <<_ACEOF
17336/* end confdefs.h. */
17337#include <$ac_header>
17338_ACEOF
17339if { (ac_try="$ac_cpp conftest.$ac_ext"
17340case "(($ac_try" in
17341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17343esac
17344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17346 ac_status=$?
17347 grep -v '^ *+' conftest.er1 >conftest.err
17348 rm -f conftest.er1
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } >/dev/null; then
17352 if test -s conftest.err; then
17353 ac_cpp_err=$ac_c_preproc_warn_flag
17354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17355 else
17356 ac_cpp_err=
17357 fi
17358else
17359 ac_cpp_err=yes
17360fi
17361if test -z "$ac_cpp_err"; then
17362 ac_header_preproc=yes
17363else
17364 echo "$as_me: failed program was:" >&5
17365sed 's/^/| /' conftest.$ac_ext >&5
17366
17367 ac_header_preproc=no
17368fi
17369
17370rm -f conftest.err conftest.$ac_ext
17371{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17372echo "${ECHO_T}$ac_header_preproc" >&6; }
17373
17374# So? What about this header?
17375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17376 yes:no: )
17377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17378echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17380echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17381 ac_header_preproc=yes
17382 ;;
17383 no:yes:* )
17384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17385echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17387echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17389echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17391echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17393echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17395echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17396 ( cat <<\_ASBOX
17397## ----------------------------------- ##
17398## Report this to llvmbugs@cs.uiuc.edu ##
17399## ----------------------------------- ##
17400_ASBOX
17401 ) | sed "s/^/$as_me: WARNING: /" >&2
17402 ;;
17403esac
17404{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17408else
17409 eval "$as_ac_Header=\$ac_header_preproc"
17410fi
17411ac_res=`eval echo '${'$as_ac_Header'}'`
17412 { echo "$as_me:$LINENO: result: $ac_res" >&5
17413echo "${ECHO_T}$ac_res" >&6; }
17414
17415fi
17416if test `eval echo '${'$as_ac_Header'}'` = yes; then
17417 cat >>confdefs.h <<_ACEOF
17418#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17419_ACEOF
17420
17421fi
17422
17423done
17424
17425
17426
Reid Spencer8085cff2005-01-16 02:58:39 +000017427
Torok Edwin871384f2010-01-26 08:50:50 +000017428
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017429 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17430echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17431if test "${ac_cv_huge_val_sanity+set}" = set; then
17432 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017433else
17434
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017435 ac_ext=cpp
17436ac_cpp='$CXXCPP $CPPFLAGS'
17437ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17438ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17439ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017440
Eric Christopherc7718502010-03-02 05:06:54 +000017441 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017442 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017443 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017444 ac_cv_huge_val_sanity=yes
17445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017446 cat >conftest.$ac_ext <<_ACEOF
17447/* confdefs.h. */
17448_ACEOF
17449cat confdefs.h >>conftest.$ac_ext
17450cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017451/* end confdefs.h. */
17452#include <math.h>
17453int
17454main ()
17455{
17456double x = HUGE_VAL; return x != x;
17457 ;
17458 return 0;
17459}
17460_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017461rm -f conftest$ac_exeext
17462if { (ac_try="$ac_link"
17463case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17466esac
17467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468 (eval "$ac_link") 2>&5
17469 ac_status=$?
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17472 { (case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17475esac
17476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_try") 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017481 ac_cv_huge_val_sanity=yes
17482else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017483 echo "$as_me: program exited with status $ac_status" >&5
17484echo "$as_me: failed program was:" >&5
17485sed 's/^/| /' conftest.$ac_ext >&5
17486
17487( exit $ac_status )
17488ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017489fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017490rm -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 +000017491fi
17492
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017493
Eric Christopherc7718502010-03-02 05:06:54 +000017494 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017495 ac_ext=c
17496ac_cpp='$CPP $CPPFLAGS'
17497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17499ac_compiler_gnu=$ac_cv_c_compiler_gnu
17500
17501
17502fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017503{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17504echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017505 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17506
17507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017508{ echo "$as_me:$LINENO: checking for pid_t" >&5
17509echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17510if test "${ac_cv_type_pid_t+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17512else
17513 cat >conftest.$ac_ext <<_ACEOF
17514/* confdefs.h. */
17515_ACEOF
17516cat confdefs.h >>conftest.$ac_ext
17517cat >>conftest.$ac_ext <<_ACEOF
17518/* end confdefs.h. */
17519$ac_includes_default
17520typedef pid_t ac__type_new_;
17521int
17522main ()
17523{
17524if ((ac__type_new_ *) 0)
17525 return 0;
17526if (sizeof (ac__type_new_))
17527 return 0;
17528 ;
17529 return 0;
17530}
17531_ACEOF
17532rm -f conftest.$ac_objext
17533if { (ac_try="$ac_compile"
17534case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537esac
17538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_compile") 2>conftest.er1
17540 ac_status=$?
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550esac
17551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; } &&
17556 { ac_try='test -s conftest.$ac_objext'
17557 { (case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17560esac
17561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17566 ac_cv_type_pid_t=yes
17567else
17568 echo "$as_me: failed program was:" >&5
17569sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017571 ac_cv_type_pid_t=no
17572fi
17573
17574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17575fi
17576{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17577echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17578if test $ac_cv_type_pid_t = yes; then
17579 :
John Criswell7a73b802003-06-30 21:59:07 +000017580else
17581
17582cat >>confdefs.h <<_ACEOF
17583#define pid_t int
17584_ACEOF
17585
17586fi
17587
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017588{ echo "$as_me:$LINENO: checking for size_t" >&5
17589echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17590if test "${ac_cv_type_size_t+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17592else
17593 cat >conftest.$ac_ext <<_ACEOF
17594/* confdefs.h. */
17595_ACEOF
17596cat confdefs.h >>conftest.$ac_ext
17597cat >>conftest.$ac_ext <<_ACEOF
17598/* end confdefs.h. */
17599$ac_includes_default
17600typedef size_t ac__type_new_;
17601int
17602main ()
17603{
17604if ((ac__type_new_ *) 0)
17605 return 0;
17606if (sizeof (ac__type_new_))
17607 return 0;
17608 ;
17609 return 0;
17610}
17611_ACEOF
17612rm -f conftest.$ac_objext
17613if { (ac_try="$ac_compile"
17614case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17617esac
17618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_compile") 2>conftest.er1
17620 ac_status=$?
17621 grep -v '^ *+' conftest.er1 >conftest.err
17622 rm -f conftest.er1
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17627 { (case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17630esac
17631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632 (eval "$ac_try") 2>&5
17633 ac_status=$?
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; } &&
17636 { ac_try='test -s conftest.$ac_objext'
17637 { (case "(($ac_try" in
17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639 *) ac_try_echo=$ac_try;;
17640esac
17641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642 (eval "$ac_try") 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_type_size_t=yes
17647else
17648 echo "$as_me: failed program was:" >&5
17649sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017651 ac_cv_type_size_t=no
17652fi
17653
17654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17655fi
17656{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17657echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17658if test $ac_cv_type_size_t = yes; then
17659 :
John Criswell7a73b802003-06-30 21:59:07 +000017660else
17661
17662cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017663#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017664_ACEOF
17665
17666fi
17667
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017668
17669cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017670#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017671_ACEOF
17672
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017673{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17674echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17675if test "${ac_cv_struct_tm+set}" = set; then
17676 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017678 cat >conftest.$ac_ext <<_ACEOF
17679/* confdefs.h. */
17680_ACEOF
17681cat confdefs.h >>conftest.$ac_ext
17682cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017683/* end confdefs.h. */
17684#include <sys/types.h>
17685#include <time.h>
17686
17687int
17688main ()
17689{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017690struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017691 ;
17692 return 0;
17693}
17694_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017695rm -f conftest.$ac_objext
17696if { (ac_try="$ac_compile"
17697case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17700esac
17701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_compile") 2>conftest.er1
17703 ac_status=$?
17704 grep -v '^ *+' conftest.er1 >conftest.err
17705 rm -f conftest.er1
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
17709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17710 { (case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17713esac
17714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_try") 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest.$ac_objext'
17720 { (case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17723esac
17724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_try") 2>&5
17726 ac_status=$?
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017729 ac_cv_struct_tm=time.h
17730else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017731 echo "$as_me: failed program was:" >&5
17732sed 's/^/| /' conftest.$ac_ext >&5
17733
17734 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017735fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017736
Reid Spencera773bd52006-08-04 18:18:08 +000017737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017738fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017739{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17740echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017741if test $ac_cv_struct_tm = sys/time.h; then
17742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017743cat >>confdefs.h <<\_ACEOF
17744#define TM_IN_SYS_TIME 1
17745_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017746
17747fi
17748
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017749{ echo "$as_me:$LINENO: checking for int64_t" >&5
17750echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17751if test "${ac_cv_type_int64_t+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17753else
17754 cat >conftest.$ac_ext <<_ACEOF
17755/* confdefs.h. */
17756_ACEOF
17757cat confdefs.h >>conftest.$ac_ext
17758cat >>conftest.$ac_ext <<_ACEOF
17759/* end confdefs.h. */
17760$ac_includes_default
17761typedef int64_t ac__type_new_;
17762int
17763main ()
17764{
17765if ((ac__type_new_ *) 0)
17766 return 0;
17767if (sizeof (ac__type_new_))
17768 return 0;
17769 ;
17770 return 0;
17771}
17772_ACEOF
17773rm -f conftest.$ac_objext
17774if { (ac_try="$ac_compile"
17775case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17778esac
17779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_compile") 2>conftest.er1
17781 ac_status=$?
17782 grep -v '^ *+' conftest.er1 >conftest.err
17783 rm -f conftest.er1
17784 cat conftest.err >&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } &&
17787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17788 { (case "(($ac_try" in
17789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17790 *) ac_try_echo=$ac_try;;
17791esac
17792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17793 (eval "$ac_try") 2>&5
17794 ac_status=$?
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; } &&
17797 { ac_try='test -s conftest.$ac_objext'
17798 { (case "(($ac_try" in
17799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17800 *) ac_try_echo=$ac_try;;
17801esac
17802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17803 (eval "$ac_try") 2>&5
17804 ac_status=$?
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); }; }; then
17807 ac_cv_type_int64_t=yes
17808else
17809 echo "$as_me: failed program was:" >&5
17810sed 's/^/| /' conftest.$ac_ext >&5
17811
17812 ac_cv_type_int64_t=no
17813fi
17814
17815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17816fi
17817{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17818echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17819if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017820
17821cat >>confdefs.h <<_ACEOF
17822#define HAVE_INT64_T 1
17823_ACEOF
17824
17825
17826else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017827 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17828echo "$as_me: error: Type int64_t required but not found" >&2;}
17829 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017830fi
17831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017832{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17833echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17834if test "${ac_cv_type_uint64_t+set}" = set; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17836else
17837 cat >conftest.$ac_ext <<_ACEOF
17838/* confdefs.h. */
17839_ACEOF
17840cat confdefs.h >>conftest.$ac_ext
17841cat >>conftest.$ac_ext <<_ACEOF
17842/* end confdefs.h. */
17843$ac_includes_default
17844typedef uint64_t ac__type_new_;
17845int
17846main ()
17847{
17848if ((ac__type_new_ *) 0)
17849 return 0;
17850if (sizeof (ac__type_new_))
17851 return 0;
17852 ;
17853 return 0;
17854}
17855_ACEOF
17856rm -f conftest.$ac_objext
17857if { (ac_try="$ac_compile"
17858case "(($ac_try" in
17859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860 *) ac_try_echo=$ac_try;;
17861esac
17862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863 (eval "$ac_compile") 2>conftest.er1
17864 ac_status=$?
17865 grep -v '^ *+' conftest.er1 >conftest.err
17866 rm -f conftest.er1
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } &&
17870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17871 { (case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17874esac
17875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876 (eval "$ac_try") 2>&5
17877 ac_status=$?
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; } &&
17880 { ac_try='test -s conftest.$ac_objext'
17881 { (case "(($ac_try" in
17882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883 *) ac_try_echo=$ac_try;;
17884esac
17885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886 (eval "$ac_try") 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; }; then
17890 ac_cv_type_uint64_t=yes
17891else
17892 echo "$as_me: failed program was:" >&5
17893sed 's/^/| /' conftest.$ac_ext >&5
17894
17895 ac_cv_type_uint64_t=no
17896fi
17897
17898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17899fi
17900{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17901echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17902if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017903
17904cat >>confdefs.h <<_ACEOF
17905#define HAVE_UINT64_T 1
17906_ACEOF
17907
17908
17909else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017910 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17911echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17912if test "${ac_cv_type_u_int64_t+set}" = set; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17914else
17915 cat >conftest.$ac_ext <<_ACEOF
17916/* confdefs.h. */
17917_ACEOF
17918cat confdefs.h >>conftest.$ac_ext
17919cat >>conftest.$ac_ext <<_ACEOF
17920/* end confdefs.h. */
17921$ac_includes_default
17922typedef u_int64_t ac__type_new_;
17923int
17924main ()
17925{
17926if ((ac__type_new_ *) 0)
17927 return 0;
17928if (sizeof (ac__type_new_))
17929 return 0;
17930 ;
17931 return 0;
17932}
17933_ACEOF
17934rm -f conftest.$ac_objext
17935if { (ac_try="$ac_compile"
17936case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17939esac
17940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_compile") 2>conftest.er1
17942 ac_status=$?
17943 grep -v '^ *+' conftest.er1 >conftest.err
17944 rm -f conftest.er1
17945 cat conftest.err >&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } &&
17948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17949 { (case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17952esac
17953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954 (eval "$ac_try") 2>&5
17955 ac_status=$?
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; } &&
17958 { ac_try='test -s conftest.$ac_objext'
17959 { (case "(($ac_try" in
17960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961 *) ac_try_echo=$ac_try;;
17962esac
17963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964 (eval "$ac_try") 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 ac_cv_type_u_int64_t=yes
17969else
17970 echo "$as_me: failed program was:" >&5
17971sed 's/^/| /' conftest.$ac_ext >&5
17972
17973 ac_cv_type_u_int64_t=no
17974fi
17975
17976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17977fi
17978{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17979echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17980if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017981
17982cat >>confdefs.h <<_ACEOF
17983#define HAVE_U_INT64_T 1
17984_ACEOF
17985
17986
Misha Brukmanceca9042004-09-02 23:02:30 +000017987else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017988 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17989echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17990 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017991fi
17992
John Criswell679ff312004-09-02 18:44:44 +000017993fi
17994
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017995
17996
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017997
17998
17999
18000
18001
18002
18003
Reid Spencerdf3be822006-01-23 08:15:53 +000018004for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018005do
18006as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18007{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18008echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18009if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18010 echo $ECHO_N "(cached) $ECHO_C" >&6
18011else
18012 cat >conftest.$ac_ext <<_ACEOF
18013/* confdefs.h. */
18014_ACEOF
18015cat confdefs.h >>conftest.$ac_ext
18016cat >>conftest.$ac_ext <<_ACEOF
18017/* end confdefs.h. */
18018/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18020#define $ac_func innocuous_$ac_func
18021
18022/* System header to define __stub macros and hopefully few prototypes,
18023 which can conflict with char $ac_func (); below.
18024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18025 <limits.h> exists even on freestanding compilers. */
18026
18027#ifdef __STDC__
18028# include <limits.h>
18029#else
18030# include <assert.h>
18031#endif
18032
18033#undef $ac_func
18034
18035/* Override any GCC internal prototype to avoid an error.
18036 Use char because int might match the return type of a GCC
18037 builtin and then its argument prototype would still apply. */
18038#ifdef __cplusplus
18039extern "C"
18040#endif
18041char $ac_func ();
18042/* The GNU C library defines this for functions which it implements
18043 to always fail with ENOSYS. Some functions are actually named
18044 something starting with __ and the normal name is an alias. */
18045#if defined __stub_$ac_func || defined __stub___$ac_func
18046choke me
18047#endif
18048
18049int
18050main ()
18051{
18052return $ac_func ();
18053 ;
18054 return 0;
18055}
18056_ACEOF
18057rm -f conftest.$ac_objext conftest$ac_exeext
18058if { (ac_try="$ac_link"
18059case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18062esac
18063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064 (eval "$ac_link") 2>conftest.er1
18065 ac_status=$?
18066 grep -v '^ *+' conftest.er1 >conftest.err
18067 rm -f conftest.er1
18068 cat conftest.err >&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
18071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18072 { (case "(($ac_try" in
18073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074 *) ac_try_echo=$ac_try;;
18075esac
18076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077 (eval "$ac_try") 2>&5
18078 ac_status=$?
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; } &&
18081 { ac_try='test -s conftest$ac_exeext'
18082 { (case "(($ac_try" in
18083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084 *) ac_try_echo=$ac_try;;
18085esac
18086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087 (eval "$ac_try") 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091 eval "$as_ac_var=yes"
18092else
18093 echo "$as_me: failed program was:" >&5
18094sed 's/^/| /' conftest.$ac_ext >&5
18095
18096 eval "$as_ac_var=no"
18097fi
18098
18099rm -f core conftest.err conftest.$ac_objext \
18100 conftest$ac_exeext conftest.$ac_ext
18101fi
18102ac_res=`eval echo '${'$as_ac_var'}'`
18103 { echo "$as_me:$LINENO: result: $ac_res" >&5
18104echo "${ECHO_T}$ac_res" >&6; }
18105if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018106 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018108_ACEOF
18109
18110fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018111done
John Criswell7a73b802003-06-30 21:59:07 +000018112
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018113
18114
18115
18116
Reid Spencer96cf5872007-07-13 10:05:30 +000018117for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018118do
18119as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18120{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18121echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18122if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18124else
18125 cat >conftest.$ac_ext <<_ACEOF
18126/* confdefs.h. */
18127_ACEOF
18128cat confdefs.h >>conftest.$ac_ext
18129cat >>conftest.$ac_ext <<_ACEOF
18130/* end confdefs.h. */
18131/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18133#define $ac_func innocuous_$ac_func
18134
18135/* System header to define __stub macros and hopefully few prototypes,
18136 which can conflict with char $ac_func (); below.
18137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18138 <limits.h> exists even on freestanding compilers. */
18139
18140#ifdef __STDC__
18141# include <limits.h>
18142#else
18143# include <assert.h>
18144#endif
18145
18146#undef $ac_func
18147
18148/* Override any GCC internal prototype to avoid an error.
18149 Use char because int might match the return type of a GCC
18150 builtin and then its argument prototype would still apply. */
18151#ifdef __cplusplus
18152extern "C"
18153#endif
18154char $ac_func ();
18155/* The GNU C library defines this for functions which it implements
18156 to always fail with ENOSYS. Some functions are actually named
18157 something starting with __ and the normal name is an alias. */
18158#if defined __stub_$ac_func || defined __stub___$ac_func
18159choke me
18160#endif
18161
18162int
18163main ()
18164{
18165return $ac_func ();
18166 ;
18167 return 0;
18168}
18169_ACEOF
18170rm -f conftest.$ac_objext conftest$ac_exeext
18171if { (ac_try="$ac_link"
18172case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18175esac
18176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_link") 2>conftest.er1
18178 ac_status=$?
18179 grep -v '^ *+' conftest.er1 >conftest.err
18180 rm -f conftest.er1
18181 cat conftest.err >&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } &&
18184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18185 { (case "(($ac_try" in
18186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187 *) ac_try_echo=$ac_try;;
18188esac
18189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190 (eval "$ac_try") 2>&5
18191 ac_status=$?
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; } &&
18194 { ac_try='test -s conftest$ac_exeext'
18195 { (case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18198esac
18199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_try") 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; }; then
18204 eval "$as_ac_var=yes"
18205else
18206 echo "$as_me: failed program was:" >&5
18207sed 's/^/| /' conftest.$ac_ext >&5
18208
18209 eval "$as_ac_var=no"
18210fi
18211
18212rm -f core conftest.err conftest.$ac_objext \
18213 conftest$ac_exeext conftest.$ac_ext
18214fi
18215ac_res=`eval echo '${'$as_ac_var'}'`
18216 { echo "$as_me:$LINENO: result: $ac_res" >&5
18217echo "${ECHO_T}$ac_res" >&6; }
18218if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018219 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018220#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018221_ACEOF
18222
18223fi
18224done
18225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018226
18227
18228
18229
18230
Reid Spencerb90645c2007-02-16 19:17:20 +000018231for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018232do
18233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18234{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18236if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18238else
18239 cat >conftest.$ac_ext <<_ACEOF
18240/* confdefs.h. */
18241_ACEOF
18242cat confdefs.h >>conftest.$ac_ext
18243cat >>conftest.$ac_ext <<_ACEOF
18244/* end confdefs.h. */
18245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18247#define $ac_func innocuous_$ac_func
18248
18249/* System header to define __stub macros and hopefully few prototypes,
18250 which can conflict with char $ac_func (); below.
18251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18252 <limits.h> exists even on freestanding compilers. */
18253
18254#ifdef __STDC__
18255# include <limits.h>
18256#else
18257# include <assert.h>
18258#endif
18259
18260#undef $ac_func
18261
18262/* Override any GCC internal prototype to avoid an error.
18263 Use char because int might match the return type of a GCC
18264 builtin and then its argument prototype would still apply. */
18265#ifdef __cplusplus
18266extern "C"
18267#endif
18268char $ac_func ();
18269/* The GNU C library defines this for functions which it implements
18270 to always fail with ENOSYS. Some functions are actually named
18271 something starting with __ and the normal name is an alias. */
18272#if defined __stub_$ac_func || defined __stub___$ac_func
18273choke me
18274#endif
18275
18276int
18277main ()
18278{
18279return $ac_func ();
18280 ;
18281 return 0;
18282}
18283_ACEOF
18284rm -f conftest.$ac_objext conftest$ac_exeext
18285if { (ac_try="$ac_link"
18286case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18289esac
18290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_link") 2>conftest.er1
18292 ac_status=$?
18293 grep -v '^ *+' conftest.er1 >conftest.err
18294 rm -f conftest.er1
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } &&
18298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18299 { (case "(($ac_try" in
18300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301 *) ac_try_echo=$ac_try;;
18302esac
18303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18304 (eval "$ac_try") 2>&5
18305 ac_status=$?
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; } &&
18308 { ac_try='test -s conftest$ac_exeext'
18309 { (case "(($ac_try" in
18310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311 *) ac_try_echo=$ac_try;;
18312esac
18313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314 (eval "$ac_try") 2>&5
18315 ac_status=$?
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18318 eval "$as_ac_var=yes"
18319else
18320 echo "$as_me: failed program was:" >&5
18321sed 's/^/| /' conftest.$ac_ext >&5
18322
18323 eval "$as_ac_var=no"
18324fi
18325
18326rm -f core conftest.err conftest.$ac_objext \
18327 conftest$ac_exeext conftest.$ac_ext
18328fi
18329ac_res=`eval echo '${'$as_ac_var'}'`
18330 { echo "$as_me:$LINENO: result: $ac_res" >&5
18331echo "${ECHO_T}$ac_res" >&6; }
18332if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018333 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018335_ACEOF
18336
18337fi
18338done
18339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018340
18341
18342
Reid Spencerb90645c2007-02-16 19:17:20 +000018343for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018344do
18345as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18346{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18347echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18348if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18350else
18351 cat >conftest.$ac_ext <<_ACEOF
18352/* confdefs.h. */
18353_ACEOF
18354cat confdefs.h >>conftest.$ac_ext
18355cat >>conftest.$ac_ext <<_ACEOF
18356/* end confdefs.h. */
18357/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18359#define $ac_func innocuous_$ac_func
18360
18361/* System header to define __stub macros and hopefully few prototypes,
18362 which can conflict with char $ac_func (); below.
18363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18364 <limits.h> exists even on freestanding compilers. */
18365
18366#ifdef __STDC__
18367# include <limits.h>
18368#else
18369# include <assert.h>
18370#endif
18371
18372#undef $ac_func
18373
18374/* Override any GCC internal prototype to avoid an error.
18375 Use char because int might match the return type of a GCC
18376 builtin and then its argument prototype would still apply. */
18377#ifdef __cplusplus
18378extern "C"
18379#endif
18380char $ac_func ();
18381/* The GNU C library defines this for functions which it implements
18382 to always fail with ENOSYS. Some functions are actually named
18383 something starting with __ and the normal name is an alias. */
18384#if defined __stub_$ac_func || defined __stub___$ac_func
18385choke me
18386#endif
18387
18388int
18389main ()
18390{
18391return $ac_func ();
18392 ;
18393 return 0;
18394}
18395_ACEOF
18396rm -f conftest.$ac_objext conftest$ac_exeext
18397if { (ac_try="$ac_link"
18398case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18401esac
18402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_link") 2>conftest.er1
18404 ac_status=$?
18405 grep -v '^ *+' conftest.er1 >conftest.err
18406 rm -f conftest.er1
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
18410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18411 { (case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18414esac
18415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416 (eval "$ac_try") 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; } &&
18420 { ac_try='test -s conftest$ac_exeext'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424esac
18425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 eval "$as_ac_var=yes"
18431else
18432 echo "$as_me: failed program was:" >&5
18433sed 's/^/| /' conftest.$ac_ext >&5
18434
18435 eval "$as_ac_var=no"
18436fi
18437
18438rm -f core conftest.err conftest.$ac_objext \
18439 conftest$ac_exeext conftest.$ac_ext
18440fi
18441ac_res=`eval echo '${'$as_ac_var'}'`
18442 { echo "$as_me:$LINENO: result: $ac_res" >&5
18443echo "${ECHO_T}$ac_res" >&6; }
18444if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018445 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018446#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018447_ACEOF
18448
18449fi
18450done
18451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018452
18453
18454
18455
18456
Eric Christophere4291822010-04-16 05:14:21 +000018457
18458for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018459do
18460as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18461{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18462echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18463if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18464 echo $ECHO_N "(cached) $ECHO_C" >&6
18465else
18466 cat >conftest.$ac_ext <<_ACEOF
18467/* confdefs.h. */
18468_ACEOF
18469cat confdefs.h >>conftest.$ac_ext
18470cat >>conftest.$ac_ext <<_ACEOF
18471/* end confdefs.h. */
18472/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18474#define $ac_func innocuous_$ac_func
18475
18476/* System header to define __stub macros and hopefully few prototypes,
18477 which can conflict with char $ac_func (); below.
18478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18479 <limits.h> exists even on freestanding compilers. */
18480
18481#ifdef __STDC__
18482# include <limits.h>
18483#else
18484# include <assert.h>
18485#endif
18486
18487#undef $ac_func
18488
18489/* Override any GCC internal prototype to avoid an error.
18490 Use char because int might match the return type of a GCC
18491 builtin and then its argument prototype would still apply. */
18492#ifdef __cplusplus
18493extern "C"
18494#endif
18495char $ac_func ();
18496/* The GNU C library defines this for functions which it implements
18497 to always fail with ENOSYS. Some functions are actually named
18498 something starting with __ and the normal name is an alias. */
18499#if defined __stub_$ac_func || defined __stub___$ac_func
18500choke me
18501#endif
18502
18503int
18504main ()
18505{
18506return $ac_func ();
18507 ;
18508 return 0;
18509}
18510_ACEOF
18511rm -f conftest.$ac_objext conftest$ac_exeext
18512if { (ac_try="$ac_link"
18513case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516esac
18517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_link") 2>conftest.er1
18519 ac_status=$?
18520 grep -v '^ *+' conftest.er1 >conftest.err
18521 rm -f conftest.er1
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } &&
18525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18526 { (case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18529esac
18530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_try") 2>&5
18532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; } &&
18535 { ac_try='test -s conftest$ac_exeext'
18536 { (case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18539esac
18540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_try") 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 eval "$as_ac_var=yes"
18546else
18547 echo "$as_me: failed program was:" >&5
18548sed 's/^/| /' conftest.$ac_ext >&5
18549
18550 eval "$as_ac_var=no"
18551fi
18552
18553rm -f core conftest.err conftest.$ac_objext \
18554 conftest$ac_exeext conftest.$ac_ext
18555fi
18556ac_res=`eval echo '${'$as_ac_var'}'`
18557 { echo "$as_me:$LINENO: result: $ac_res" >&5
18558echo "${ECHO_T}$ac_res" >&6; }
18559if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018560 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018562_ACEOF
18563
18564fi
18565done
Reid Spencerdf3be822006-01-23 08:15:53 +000018566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018567
18568
18569
18570
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018571for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018572do
18573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18574{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18576if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18578else
18579 cat >conftest.$ac_ext <<_ACEOF
18580/* confdefs.h. */
18581_ACEOF
18582cat confdefs.h >>conftest.$ac_ext
18583cat >>conftest.$ac_ext <<_ACEOF
18584/* end confdefs.h. */
18585/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18587#define $ac_func innocuous_$ac_func
18588
18589/* System header to define __stub macros and hopefully few prototypes,
18590 which can conflict with char $ac_func (); below.
18591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18592 <limits.h> exists even on freestanding compilers. */
18593
18594#ifdef __STDC__
18595# include <limits.h>
18596#else
18597# include <assert.h>
18598#endif
18599
18600#undef $ac_func
18601
18602/* Override any GCC internal prototype to avoid an error.
18603 Use char because int might match the return type of a GCC
18604 builtin and then its argument prototype would still apply. */
18605#ifdef __cplusplus
18606extern "C"
18607#endif
18608char $ac_func ();
18609/* The GNU C library defines this for functions which it implements
18610 to always fail with ENOSYS. Some functions are actually named
18611 something starting with __ and the normal name is an alias. */
18612#if defined __stub_$ac_func || defined __stub___$ac_func
18613choke me
18614#endif
18615
18616int
18617main ()
18618{
18619return $ac_func ();
18620 ;
18621 return 0;
18622}
18623_ACEOF
18624rm -f conftest.$ac_objext conftest$ac_exeext
18625if { (ac_try="$ac_link"
18626case "(($ac_try" in
18627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628 *) ac_try_echo=$ac_try;;
18629esac
18630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631 (eval "$ac_link") 2>conftest.er1
18632 ac_status=$?
18633 grep -v '^ *+' conftest.er1 >conftest.err
18634 rm -f conftest.er1
18635 cat conftest.err >&5
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } &&
18638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18639 { (case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18642esac
18643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644 (eval "$ac_try") 2>&5
18645 ac_status=$?
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); }; } &&
18648 { ac_try='test -s conftest$ac_exeext'
18649 { (case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18652esac
18653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_try") 2>&5
18655 ac_status=$?
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }; }; then
18658 eval "$as_ac_var=yes"
18659else
18660 echo "$as_me: failed program was:" >&5
18661sed 's/^/| /' conftest.$ac_ext >&5
18662
18663 eval "$as_ac_var=no"
18664fi
18665
18666rm -f core conftest.err conftest.$ac_objext \
18667 conftest$ac_exeext conftest.$ac_ext
18668fi
18669ac_res=`eval echo '${'$as_ac_var'}'`
18670 { echo "$as_me:$LINENO: result: $ac_res" >&5
18671echo "${ECHO_T}$ac_res" >&6; }
18672if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018673 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018675_ACEOF
18676
18677fi
18678done
18679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018680
18681
18682
18683
Chris Lattner511f11d2005-11-14 07:25:50 +000018684for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018685do
18686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18687{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18689if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18691else
18692 cat >conftest.$ac_ext <<_ACEOF
18693/* confdefs.h. */
18694_ACEOF
18695cat confdefs.h >>conftest.$ac_ext
18696cat >>conftest.$ac_ext <<_ACEOF
18697/* end confdefs.h. */
18698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18700#define $ac_func innocuous_$ac_func
18701
18702/* System header to define __stub macros and hopefully few prototypes,
18703 which can conflict with char $ac_func (); below.
18704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18705 <limits.h> exists even on freestanding compilers. */
18706
18707#ifdef __STDC__
18708# include <limits.h>
18709#else
18710# include <assert.h>
18711#endif
18712
18713#undef $ac_func
18714
18715/* Override any GCC internal prototype to avoid an error.
18716 Use char because int might match the return type of a GCC
18717 builtin and then its argument prototype would still apply. */
18718#ifdef __cplusplus
18719extern "C"
18720#endif
18721char $ac_func ();
18722/* The GNU C library defines this for functions which it implements
18723 to always fail with ENOSYS. Some functions are actually named
18724 something starting with __ and the normal name is an alias. */
18725#if defined __stub_$ac_func || defined __stub___$ac_func
18726choke me
18727#endif
18728
18729int
18730main ()
18731{
18732return $ac_func ();
18733 ;
18734 return 0;
18735}
18736_ACEOF
18737rm -f conftest.$ac_objext conftest$ac_exeext
18738if { (ac_try="$ac_link"
18739case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18742esac
18743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_link") 2>conftest.er1
18745 ac_status=$?
18746 grep -v '^ *+' conftest.er1 >conftest.err
18747 rm -f conftest.er1
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } &&
18751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18752 { (case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18755esac
18756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757 (eval "$ac_try") 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest$ac_exeext'
18762 { (case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18765esac
18766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_try") 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 eval "$as_ac_var=yes"
18772else
18773 echo "$as_me: failed program was:" >&5
18774sed 's/^/| /' conftest.$ac_ext >&5
18775
18776 eval "$as_ac_var=no"
18777fi
18778
18779rm -f core conftest.err conftest.$ac_objext \
18780 conftest$ac_exeext conftest.$ac_ext
18781fi
18782ac_res=`eval echo '${'$as_ac_var'}'`
18783 { echo "$as_me:$LINENO: result: $ac_res" >&5
18784echo "${ECHO_T}$ac_res" >&6; }
18785if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018786 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018788_ACEOF
18789
18790fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018791done
John Criswell7a73b802003-06-30 21:59:07 +000018792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018793
18794
18795
18796
Reid Spencerafa22e22006-12-10 23:29:19 +000018797for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018798do
18799as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18800{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18801echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18802if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18804else
18805 cat >conftest.$ac_ext <<_ACEOF
18806/* confdefs.h. */
18807_ACEOF
18808cat confdefs.h >>conftest.$ac_ext
18809cat >>conftest.$ac_ext <<_ACEOF
18810/* end confdefs.h. */
18811/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18813#define $ac_func innocuous_$ac_func
18814
18815/* System header to define __stub macros and hopefully few prototypes,
18816 which can conflict with char $ac_func (); below.
18817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18818 <limits.h> exists even on freestanding compilers. */
18819
18820#ifdef __STDC__
18821# include <limits.h>
18822#else
18823# include <assert.h>
18824#endif
18825
18826#undef $ac_func
18827
18828/* Override any GCC internal prototype to avoid an error.
18829 Use char because int might match the return type of a GCC
18830 builtin and then its argument prototype would still apply. */
18831#ifdef __cplusplus
18832extern "C"
18833#endif
18834char $ac_func ();
18835/* The GNU C library defines this for functions which it implements
18836 to always fail with ENOSYS. Some functions are actually named
18837 something starting with __ and the normal name is an alias. */
18838#if defined __stub_$ac_func || defined __stub___$ac_func
18839choke me
18840#endif
18841
18842int
18843main ()
18844{
18845return $ac_func ();
18846 ;
18847 return 0;
18848}
18849_ACEOF
18850rm -f conftest.$ac_objext conftest$ac_exeext
18851if { (ac_try="$ac_link"
18852case "(($ac_try" in
18853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854 *) ac_try_echo=$ac_try;;
18855esac
18856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18857 (eval "$ac_link") 2>conftest.er1
18858 ac_status=$?
18859 grep -v '^ *+' conftest.er1 >conftest.err
18860 rm -f conftest.er1
18861 cat conftest.err >&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } &&
18864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18865 { (case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18868esac
18869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870 (eval "$ac_try") 2>&5
18871 ac_status=$?
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; } &&
18874 { ac_try='test -s conftest$ac_exeext'
18875 { (case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18878esac
18879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880 (eval "$ac_try") 2>&5
18881 ac_status=$?
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); }; }; then
18884 eval "$as_ac_var=yes"
18885else
18886 echo "$as_me: failed program was:" >&5
18887sed 's/^/| /' conftest.$ac_ext >&5
18888
18889 eval "$as_ac_var=no"
18890fi
18891
18892rm -f core conftest.err conftest.$ac_objext \
18893 conftest$ac_exeext conftest.$ac_ext
18894fi
18895ac_res=`eval echo '${'$as_ac_var'}'`
18896 { echo "$as_me:$LINENO: result: $ac_res" >&5
18897echo "${ECHO_T}$ac_res" >&6; }
18898if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018899 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018901_ACEOF
18902
18903fi
18904done
18905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018906{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18907echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18908if test "${llvm_cv_c_printf_a+set}" = set; then
18909 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018910else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018911 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018912ac_cpp='$CPP $CPPFLAGS'
18913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18915ac_compiler_gnu=$ac_cv_c_compiler_gnu
18916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018917 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018918 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018919else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018920 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018922 /* confdefs.h. */
18923_ACEOF
18924cat confdefs.h >>conftest.$ac_ext
18925cat >>conftest.$ac_ext <<_ACEOF
18926/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018927
John Criswella0137d32003-10-13 16:22:01 +000018928#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018929#include <stdlib.h>
18930
John Criswella0137d32003-10-13 16:22:01 +000018931int
18932main ()
18933{
18934
Reid Spencer2706f8c2004-09-19 23:53:36 +000018935volatile double A, B;
18936char Buffer[100];
18937A = 1;
18938A /= 10.0;
18939sprintf(Buffer, "%a", A);
18940B = atof(Buffer);
18941if (A != B)
18942 return (1);
18943if (A != 0x1.999999999999ap-4)
18944 return (1);
18945return (0);
John Criswella0137d32003-10-13 16:22:01 +000018946 ;
18947 return 0;
18948}
18949_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018950rm -f conftest$ac_exeext
18951if { (ac_try="$ac_link"
18952case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18955esac
18956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_link") 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18961 { (case "(($ac_try" in
18962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963 *) ac_try_echo=$ac_try;;
18964esac
18965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966 (eval "$ac_try") 2>&5
18967 ac_status=$?
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018970 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018971else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018972 echo "$as_me: program exited with status $ac_status" >&5
18973echo "$as_me: failed program was:" >&5
18974sed 's/^/| /' conftest.$ac_ext >&5
18975
18976( exit $ac_status )
18977llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018978fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018979rm -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 +000018980fi
Reid Spencera773bd52006-08-04 18:18:08 +000018981
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018982
Reid Spencer2706f8c2004-09-19 23:53:36 +000018983 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018984ac_cpp='$CPP $CPPFLAGS'
18985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18987ac_compiler_gnu=$ac_cv_c_compiler_gnu
18988
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018989fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018990{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18991echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018992 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018994cat >>confdefs.h <<\_ACEOF
18995#define HAVE_PRINTF_A 1
18996_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018997
Reid Spencer2706f8c2004-09-19 23:53:36 +000018998 fi
John Criswella0137d32003-10-13 16:22:01 +000018999
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019001{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19002echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19003if test "${ac_cv_func_rand48+set}" = set; then
19004 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019005else
Reid Spencera773bd52006-08-04 18:18:08 +000019006 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019007ac_cpp='$CXXCPP $CPPFLAGS'
19008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019012 cat >conftest.$ac_ext <<_ACEOF
19013/* confdefs.h. */
19014_ACEOF
19015cat confdefs.h >>conftest.$ac_ext
19016cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019017/* end confdefs.h. */
19018#include <stdlib.h>
19019int
19020main ()
19021{
19022srand48(0);lrand48();drand48();
19023 ;
19024 return 0;
19025}
19026_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019027rm -f conftest.$ac_objext
19028if { (ac_try="$ac_compile"
19029case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19032esac
19033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_compile") 2>conftest.er1
19035 ac_status=$?
19036 grep -v '^ *+' conftest.er1 >conftest.err
19037 rm -f conftest.er1
19038 cat conftest.err >&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
19041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19042 { (case "(($ac_try" in
19043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044 *) ac_try_echo=$ac_try;;
19045esac
19046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047 (eval "$ac_try") 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; } &&
19051 { ac_try='test -s conftest.$ac_objext'
19052 { (case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19055esac
19056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_try") 2>&5
19058 ac_status=$?
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019061 ac_cv_func_rand48=yes
19062else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019063 echo "$as_me: failed program was:" >&5
19064sed 's/^/| /' conftest.$ac_ext >&5
19065
19066 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019067fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019068
Reid Spencera773bd52006-08-04 18:18:08 +000019069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019070 ac_ext=c
19071ac_cpp='$CPP $CPPFLAGS'
19072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19074ac_compiler_gnu=$ac_cv_c_compiler_gnu
19075
19076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019077{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19078echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019079
19080if test "$ac_cv_func_rand48" = "yes" ; then
19081
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019082cat >>confdefs.h <<\_ACEOF
19083#define HAVE_RAND48 1
19084_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019085
19086fi
John Criswell0021c312004-02-13 21:57:29 +000019087
19088
Torok Edwin871384f2010-01-26 08:50:50 +000019089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019090{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19091echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19092if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019094else
Reid Spencera773bd52006-08-04 18:18:08 +000019095 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019096ac_cpp='$CXXCPP $CPPFLAGS'
19097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019101 cat >conftest.$ac_ext <<_ACEOF
19102/* confdefs.h. */
19103_ACEOF
19104cat confdefs.h >>conftest.$ac_ext
19105cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019106/* end confdefs.h. */
19107#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019108int
19109main ()
19110{
19111float f; isnan(f);
19112 ;
19113 return 0;
19114}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019115_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019116rm -f conftest.$ac_objext
19117if { (ac_try="$ac_compile"
19118case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19121esac
19122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_compile") 2>conftest.er1
19124 ac_status=$?
19125 grep -v '^ *+' conftest.er1 >conftest.err
19126 rm -f conftest.er1
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } &&
19130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19131 { (case "(($ac_try" in
19132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133 *) ac_try_echo=$ac_try;;
19134esac
19135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136 (eval "$ac_try") 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; } &&
19140 { ac_try='test -s conftest.$ac_objext'
19141 { (case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19144esac
19145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_try") 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019150 ac_cv_func_isnan_in_math_h=yes
19151else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019152 echo "$as_me: failed program was:" >&5
19153sed 's/^/| /' conftest.$ac_ext >&5
19154
19155 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019156fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019157
Reid Spencera773bd52006-08-04 18:18:08 +000019158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019159 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019160ac_cpp='$CPP $CPPFLAGS'
19161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163ac_compiler_gnu=$ac_cv_c_compiler_gnu
19164
19165fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019166{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19167echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019168
19169
19170if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019172cat >>confdefs.h <<\_ACEOF
19173#define HAVE_ISNAN_IN_MATH_H 1
19174_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019175
Reid Spencerabec8f92004-10-27 23:03:44 +000019176fi
19177
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019178{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19179echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19180if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19181 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019182else
Reid Spencera773bd52006-08-04 18:18:08 +000019183 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019184ac_cpp='$CXXCPP $CPPFLAGS'
19185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019189 cat >conftest.$ac_ext <<_ACEOF
19190/* confdefs.h. */
19191_ACEOF
19192cat confdefs.h >>conftest.$ac_ext
19193cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019194/* end confdefs.h. */
19195#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019196int
19197main ()
19198{
19199float f; isnan(f);
19200 ;
19201 return 0;
19202}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019203_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019204rm -f conftest.$ac_objext
19205if { (ac_try="$ac_compile"
19206case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19209esac
19210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211 (eval "$ac_compile") 2>conftest.er1
19212 ac_status=$?
19213 grep -v '^ *+' conftest.er1 >conftest.err
19214 rm -f conftest.er1
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } &&
19218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19219 { (case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19222esac
19223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_try") 2>&5
19225 ac_status=$?
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; } &&
19228 { ac_try='test -s conftest.$ac_objext'
19229 { (case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19232esac
19233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_try") 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019238 ac_cv_func_isnan_in_cmath=yes
19239else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019240 echo "$as_me: failed program was:" >&5
19241sed 's/^/| /' conftest.$ac_ext >&5
19242
19243 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019244fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019245
Reid Spencera773bd52006-08-04 18:18:08 +000019246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019247 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019248ac_cpp='$CPP $CPPFLAGS'
19249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19251ac_compiler_gnu=$ac_cv_c_compiler_gnu
19252
19253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019254{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19255echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019256
19257if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019259cat >>confdefs.h <<\_ACEOF
19260#define HAVE_ISNAN_IN_CMATH 1
19261_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019262
Reid Spencerabec8f92004-10-27 23:03:44 +000019263fi
19264
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019265{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19266echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19267if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19268 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019269else
Reid Spencera773bd52006-08-04 18:18:08 +000019270 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019271ac_cpp='$CXXCPP $CPPFLAGS'
19272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019276 cat >conftest.$ac_ext <<_ACEOF
19277/* confdefs.h. */
19278_ACEOF
19279cat confdefs.h >>conftest.$ac_ext
19280cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019281/* end confdefs.h. */
19282#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019283int
19284main ()
19285{
19286float f; std::isnan(f);
19287 ;
19288 return 0;
19289}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019290_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019291rm -f conftest.$ac_objext
19292if { (ac_try="$ac_compile"
19293case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19296esac
19297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_compile") 2>conftest.er1
19299 ac_status=$?
19300 grep -v '^ *+' conftest.er1 >conftest.err
19301 rm -f conftest.er1
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
19305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19306 { (case "(($ac_try" in
19307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19309esac
19310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_try") 2>&5
19312 ac_status=$?
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; } &&
19315 { ac_try='test -s conftest.$ac_objext'
19316 { (case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19319esac
19320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321 (eval "$ac_try") 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019325 ac_cv_func_std_isnan_in_cmath=yes
19326else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019327 echo "$as_me: failed program was:" >&5
19328sed 's/^/| /' conftest.$ac_ext >&5
19329
19330 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019332
Reid Spencera773bd52006-08-04 18:18:08 +000019333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019334 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019335ac_cpp='$CPP $CPPFLAGS'
19336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19338ac_compiler_gnu=$ac_cv_c_compiler_gnu
19339
19340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019341{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19342echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019343
19344if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019346cat >>confdefs.h <<\_ACEOF
19347#define HAVE_STD_ISNAN_IN_CMATH 1
19348_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019349
Reid Spencerabec8f92004-10-27 23:03:44 +000019350fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019351
19352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019353{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19354echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19355if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19356 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019357else
Reid Spencera773bd52006-08-04 18:18:08 +000019358 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019359ac_cpp='$CXXCPP $CPPFLAGS'
19360ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19361ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19362ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019364 cat >conftest.$ac_ext <<_ACEOF
19365/* confdefs.h. */
19366_ACEOF
19367cat confdefs.h >>conftest.$ac_ext
19368cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019369/* end confdefs.h. */
19370#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019371int
19372main ()
19373{
19374float f; isinf(f);
19375 ;
19376 return 0;
19377}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019378_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019379rm -f conftest.$ac_objext
19380if { (ac_try="$ac_compile"
19381case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19384esac
19385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386 (eval "$ac_compile") 2>conftest.er1
19387 ac_status=$?
19388 grep -v '^ *+' conftest.er1 >conftest.err
19389 rm -f conftest.er1
19390 cat conftest.err >&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } &&
19393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19394 { (case "(($ac_try" in
19395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396 *) ac_try_echo=$ac_try;;
19397esac
19398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19399 (eval "$ac_try") 2>&5
19400 ac_status=$?
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; } &&
19403 { ac_try='test -s conftest.$ac_objext'
19404 { (case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19407esac
19408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19409 (eval "$ac_try") 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019413 ac_cv_func_isinf_in_math_h=yes
19414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019415 echo "$as_me: failed program was:" >&5
19416sed 's/^/| /' conftest.$ac_ext >&5
19417
19418 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019420
Reid Spencera773bd52006-08-04 18:18:08 +000019421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019422 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019423ac_cpp='$CPP $CPPFLAGS'
19424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19426ac_compiler_gnu=$ac_cv_c_compiler_gnu
19427
19428fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019429{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19430echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019431
19432if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019434cat >>confdefs.h <<\_ACEOF
19435#define HAVE_ISINF_IN_MATH_H 1
19436_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019437
Reid Spencerabec8f92004-10-27 23:03:44 +000019438fi
19439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019440{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19441echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19442if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019444else
Reid Spencera773bd52006-08-04 18:18:08 +000019445 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019446ac_cpp='$CXXCPP $CPPFLAGS'
19447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19450
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019451 cat >conftest.$ac_ext <<_ACEOF
19452/* confdefs.h. */
19453_ACEOF
19454cat confdefs.h >>conftest.$ac_ext
19455cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019456/* end confdefs.h. */
19457#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019458int
19459main ()
19460{
19461float f; isinf(f);
19462 ;
19463 return 0;
19464}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019465_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019466rm -f conftest.$ac_objext
19467if { (ac_try="$ac_compile"
19468case "(($ac_try" in
19469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470 *) ac_try_echo=$ac_try;;
19471esac
19472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19473 (eval "$ac_compile") 2>conftest.er1
19474 ac_status=$?
19475 grep -v '^ *+' conftest.er1 >conftest.err
19476 rm -f conftest.er1
19477 cat conftest.err >&5
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } &&
19480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19481 { (case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19484esac
19485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_try") 2>&5
19487 ac_status=$?
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; } &&
19490 { ac_try='test -s conftest.$ac_objext'
19491 { (case "(($ac_try" in
19492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493 *) ac_try_echo=$ac_try;;
19494esac
19495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496 (eval "$ac_try") 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019500 ac_cv_func_isinf_in_cmath=yes
19501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019502 echo "$as_me: failed program was:" >&5
19503sed 's/^/| /' conftest.$ac_ext >&5
19504
19505 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019506fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019507
Reid Spencera773bd52006-08-04 18:18:08 +000019508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019509 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019510ac_cpp='$CPP $CPPFLAGS'
19511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19513ac_compiler_gnu=$ac_cv_c_compiler_gnu
19514
19515fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019516{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19517echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019518
19519if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019521cat >>confdefs.h <<\_ACEOF
19522#define HAVE_ISINF_IN_CMATH 1
19523_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019524
Reid Spencerabec8f92004-10-27 23:03:44 +000019525fi
19526
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019527{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19528echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19529if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019531else
Reid Spencera773bd52006-08-04 18:18:08 +000019532 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019533ac_cpp='$CXXCPP $CPPFLAGS'
19534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19537
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019538 cat >conftest.$ac_ext <<_ACEOF
19539/* confdefs.h. */
19540_ACEOF
19541cat confdefs.h >>conftest.$ac_ext
19542cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019543/* end confdefs.h. */
19544#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019545int
19546main ()
19547{
19548float f; std::isinf(f)}
19549 ;
19550 return 0;
19551}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019552_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019553rm -f conftest.$ac_objext
19554if { (ac_try="$ac_compile"
19555case "(($ac_try" in
19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557 *) ac_try_echo=$ac_try;;
19558esac
19559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560 (eval "$ac_compile") 2>conftest.er1
19561 ac_status=$?
19562 grep -v '^ *+' conftest.er1 >conftest.err
19563 rm -f conftest.er1
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } &&
19567 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19568 { (case "(($ac_try" in
19569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570 *) ac_try_echo=$ac_try;;
19571esac
19572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573 (eval "$ac_try") 2>&5
19574 ac_status=$?
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; } &&
19577 { ac_try='test -s conftest.$ac_objext'
19578 { (case "(($ac_try" in
19579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580 *) ac_try_echo=$ac_try;;
19581esac
19582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583 (eval "$ac_try") 2>&5
19584 ac_status=$?
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019587 ac_cv_func_std_isinf_in_cmath=yes
19588else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019589 echo "$as_me: failed program was:" >&5
19590sed 's/^/| /' conftest.$ac_ext >&5
19591
19592 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019593fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019594
Reid Spencera773bd52006-08-04 18:18:08 +000019595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019596 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019597ac_cpp='$CPP $CPPFLAGS'
19598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19600ac_compiler_gnu=$ac_cv_c_compiler_gnu
19601
19602fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019603{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19604echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019605
19606if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019608cat >>confdefs.h <<\_ACEOF
19609#define HAVE_STD_ISINF_IN_CMATH 1
19610_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019611
Reid Spencerabec8f92004-10-27 23:03:44 +000019612fi
19613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019614{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19615echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19616if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19617 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019618else
Reid Spencera773bd52006-08-04 18:18:08 +000019619 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019620ac_cpp='$CXXCPP $CPPFLAGS'
19621ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19622ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19623ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019625 cat >conftest.$ac_ext <<_ACEOF
19626/* confdefs.h. */
19627_ACEOF
19628cat confdefs.h >>conftest.$ac_ext
19629cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019630/* end confdefs.h. */
19631#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019632int
19633main ()
19634{
19635float f; finite(f);
19636 ;
19637 return 0;
19638}
Brian Gaeked59a6472004-07-21 03:33:58 +000019639_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019640rm -f conftest.$ac_objext
19641if { (ac_try="$ac_compile"
19642case "(($ac_try" in
19643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644 *) ac_try_echo=$ac_try;;
19645esac
19646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19647 (eval "$ac_compile") 2>conftest.er1
19648 ac_status=$?
19649 grep -v '^ *+' conftest.er1 >conftest.err
19650 rm -f conftest.er1
19651 cat conftest.err >&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } &&
19654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19655 { (case "(($ac_try" in
19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19658esac
19659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660 (eval "$ac_try") 2>&5
19661 ac_status=$?
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; } &&
19664 { ac_try='test -s conftest.$ac_objext'
19665 { (case "(($ac_try" in
19666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667 *) ac_try_echo=$ac_try;;
19668esac
19669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670 (eval "$ac_try") 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019674 ac_cv_func_finite_in_ieeefp_h=yes
19675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019676 echo "$as_me: failed program was:" >&5
19677sed 's/^/| /' conftest.$ac_ext >&5
19678
19679 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019681
Reid Spencera773bd52006-08-04 18:18:08 +000019682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019683 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019684ac_cpp='$CPP $CPPFLAGS'
19685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19687ac_compiler_gnu=$ac_cv_c_compiler_gnu
19688
19689fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019690{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19691echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019692
Brian Gaeke6802b552004-10-28 05:06:45 +000019693if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019695cat >>confdefs.h <<\_ACEOF
19696#define HAVE_FINITE_IN_IEEEFP_H 1
19697_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019698
Reid Spencerabec8f92004-10-27 23:03:44 +000019699fi
19700
19701
19702
Reid Spencer30fe5262007-01-20 07:48:49 +000019703if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019704
19705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019706for ac_header in stdlib.h unistd.h
19707do
19708as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19713 echo $ECHO_N "(cached) $ECHO_C" >&6
19714fi
19715ac_res=`eval echo '${'$as_ac_Header'}'`
19716 { echo "$as_me:$LINENO: result: $ac_res" >&5
19717echo "${ECHO_T}$ac_res" >&6; }
19718else
19719 # Is the header compilable?
19720{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19721echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19722cat >conftest.$ac_ext <<_ACEOF
19723/* confdefs.h. */
19724_ACEOF
19725cat confdefs.h >>conftest.$ac_ext
19726cat >>conftest.$ac_ext <<_ACEOF
19727/* end confdefs.h. */
19728$ac_includes_default
19729#include <$ac_header>
19730_ACEOF
19731rm -f conftest.$ac_objext
19732if { (ac_try="$ac_compile"
19733case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19736esac
19737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_compile") 2>conftest.er1
19739 ac_status=$?
19740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } &&
19745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19746 { (case "(($ac_try" in
19747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748 *) ac_try_echo=$ac_try;;
19749esac
19750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751 (eval "$ac_try") 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; } &&
19755 { ac_try='test -s conftest.$ac_objext'
19756 { (case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19759esac
19760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761 (eval "$ac_try") 2>&5
19762 ac_status=$?
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
19765 ac_header_compiler=yes
19766else
19767 echo "$as_me: failed program was:" >&5
19768sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019770 ac_header_compiler=no
19771fi
19772
19773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19774{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19775echo "${ECHO_T}$ac_header_compiler" >&6; }
19776
19777# Is the header present?
19778{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19779echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19780cat >conftest.$ac_ext <<_ACEOF
19781/* confdefs.h. */
19782_ACEOF
19783cat confdefs.h >>conftest.$ac_ext
19784cat >>conftest.$ac_ext <<_ACEOF
19785/* end confdefs.h. */
19786#include <$ac_header>
19787_ACEOF
19788if { (ac_try="$ac_cpp conftest.$ac_ext"
19789case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19792esac
19793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19795 ac_status=$?
19796 grep -v '^ *+' conftest.er1 >conftest.err
19797 rm -f conftest.er1
19798 cat conftest.err >&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } >/dev/null; then
19801 if test -s conftest.err; then
19802 ac_cpp_err=$ac_c_preproc_warn_flag
19803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19804 else
19805 ac_cpp_err=
19806 fi
19807else
19808 ac_cpp_err=yes
19809fi
19810if test -z "$ac_cpp_err"; then
19811 ac_header_preproc=yes
19812else
19813 echo "$as_me: failed program was:" >&5
19814sed 's/^/| /' conftest.$ac_ext >&5
19815
19816 ac_header_preproc=no
19817fi
19818
19819rm -f conftest.err conftest.$ac_ext
19820{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19821echo "${ECHO_T}$ac_header_preproc" >&6; }
19822
19823# So? What about this header?
19824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19825 yes:no: )
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19829echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19830 ac_header_preproc=yes
19831 ;;
19832 no:yes:* )
19833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19834echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19836echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19838echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19840echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19844echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19845 ( cat <<\_ASBOX
19846## ----------------------------------- ##
19847## Report this to llvmbugs@cs.uiuc.edu ##
19848## ----------------------------------- ##
19849_ASBOX
19850 ) | sed "s/^/$as_me: WARNING: /" >&2
19851 ;;
19852esac
19853{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19857else
19858 eval "$as_ac_Header=\$ac_header_preproc"
19859fi
19860ac_res=`eval echo '${'$as_ac_Header'}'`
19861 { echo "$as_me:$LINENO: result: $ac_res" >&5
19862echo "${ECHO_T}$ac_res" >&6; }
19863
19864fi
19865if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019866 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019867#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019868_ACEOF
19869
19870fi
19871
19872done
19873
19874
19875for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019876do
19877as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19878{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19879echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19880if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19882else
19883 cat >conftest.$ac_ext <<_ACEOF
19884/* confdefs.h. */
19885_ACEOF
19886cat confdefs.h >>conftest.$ac_ext
19887cat >>conftest.$ac_ext <<_ACEOF
19888/* end confdefs.h. */
19889/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19891#define $ac_func innocuous_$ac_func
19892
19893/* System header to define __stub macros and hopefully few prototypes,
19894 which can conflict with char $ac_func (); below.
19895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19896 <limits.h> exists even on freestanding compilers. */
19897
19898#ifdef __STDC__
19899# include <limits.h>
19900#else
19901# include <assert.h>
19902#endif
19903
19904#undef $ac_func
19905
19906/* Override any GCC internal prototype to avoid an error.
19907 Use char because int might match the return type of a GCC
19908 builtin and then its argument prototype would still apply. */
19909#ifdef __cplusplus
19910extern "C"
19911#endif
19912char $ac_func ();
19913/* The GNU C library defines this for functions which it implements
19914 to always fail with ENOSYS. Some functions are actually named
19915 something starting with __ and the normal name is an alias. */
19916#if defined __stub_$ac_func || defined __stub___$ac_func
19917choke me
19918#endif
19919
19920int
19921main ()
19922{
19923return $ac_func ();
19924 ;
19925 return 0;
19926}
19927_ACEOF
19928rm -f conftest.$ac_objext conftest$ac_exeext
19929if { (ac_try="$ac_link"
19930case "(($ac_try" in
19931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932 *) ac_try_echo=$ac_try;;
19933esac
19934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_link") 2>conftest.er1
19936 ac_status=$?
19937 grep -v '^ *+' conftest.er1 >conftest.err
19938 rm -f conftest.er1
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } &&
19942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19943 { (case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19946esac
19947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_try") 2>&5
19949 ac_status=$?
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; } &&
19952 { ac_try='test -s conftest$ac_exeext'
19953 { (case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19956esac
19957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958 (eval "$ac_try") 2>&5
19959 ac_status=$?
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; }; then
19962 eval "$as_ac_var=yes"
19963else
19964 echo "$as_me: failed program was:" >&5
19965sed 's/^/| /' conftest.$ac_ext >&5
19966
19967 eval "$as_ac_var=no"
19968fi
19969
19970rm -f core conftest.err conftest.$ac_objext \
19971 conftest$ac_exeext conftest.$ac_ext
19972fi
19973ac_res=`eval echo '${'$as_ac_var'}'`
19974 { echo "$as_me:$LINENO: result: $ac_res" >&5
19975echo "${ECHO_T}$ac_res" >&6; }
19976if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019977 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019978#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019979_ACEOF
19980
19981fi
19982done
19983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019984{ echo "$as_me:$LINENO: checking for working mmap" >&5
19985echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19986if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19987 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019988else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019989 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019990 ac_cv_func_mmap_fixed_mapped=no
19991else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019992 cat >conftest.$ac_ext <<_ACEOF
19993/* confdefs.h. */
19994_ACEOF
19995cat confdefs.h >>conftest.$ac_ext
19996cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019997/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019998$ac_includes_default
19999/* malloc might have been renamed as rpl_malloc. */
20000#undef malloc
20001
20002/* Thanks to Mike Haertel and Jim Avera for this test.
20003 Here is a matrix of mmap possibilities:
20004 mmap private not fixed
20005 mmap private fixed at somewhere currently unmapped
20006 mmap private fixed at somewhere already mapped
20007 mmap shared not fixed
20008 mmap shared fixed at somewhere currently unmapped
20009 mmap shared fixed at somewhere already mapped
20010 For private mappings, we should verify that changes cannot be read()
20011 back from the file, nor mmap's back from the file at a different
20012 address. (There have been systems where private was not correctly
20013 implemented like the infamous i386 svr4.0, and systems where the
20014 VM page cache was not coherent with the file system buffer cache
20015 like early versions of FreeBSD and possibly contemporary NetBSD.)
20016 For shared mappings, we should conversely verify that changes get
20017 propagated back to all the places they're supposed to be.
20018
20019 Grep wants private fixed already mapped.
20020 The main things grep needs to know about mmap are:
20021 * does it exist and is it safe to write into the mmap'd area
20022 * how to use it (BSD variants) */
20023
20024#include <fcntl.h>
20025#include <sys/mman.h>
20026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020027#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020028char *malloc ();
20029#endif
20030
20031/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020032#if !HAVE_GETPAGESIZE
20033/* Assume that all systems that can run configure have sys/param.h. */
20034# if !HAVE_SYS_PARAM_H
20035# define HAVE_SYS_PARAM_H 1
20036# endif
20037
John Criswell7a73b802003-06-30 21:59:07 +000020038# ifdef _SC_PAGESIZE
20039# define getpagesize() sysconf(_SC_PAGESIZE)
20040# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020041# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020042# include <sys/param.h>
20043# ifdef EXEC_PAGESIZE
20044# define getpagesize() EXEC_PAGESIZE
20045# else /* no EXEC_PAGESIZE */
20046# ifdef NBPG
20047# define getpagesize() NBPG * CLSIZE
20048# ifndef CLSIZE
20049# define CLSIZE 1
20050# endif /* no CLSIZE */
20051# else /* no NBPG */
20052# ifdef NBPC
20053# define getpagesize() NBPC
20054# else /* no NBPC */
20055# ifdef PAGESIZE
20056# define getpagesize() PAGESIZE
20057# endif /* PAGESIZE */
20058# endif /* no NBPC */
20059# endif /* no NBPG */
20060# endif /* no EXEC_PAGESIZE */
20061# else /* no HAVE_SYS_PARAM_H */
20062# define getpagesize() 8192 /* punt totally */
20063# endif /* no HAVE_SYS_PARAM_H */
20064# endif /* no _SC_PAGESIZE */
20065
20066#endif /* no HAVE_GETPAGESIZE */
20067
20068int
20069main ()
20070{
20071 char *data, *data2, *data3;
20072 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020073 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020074
20075 pagesize = getpagesize ();
20076
20077 /* First, make a file with some known garbage in it. */
20078 data = (char *) malloc (pagesize);
20079 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020080 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020081 for (i = 0; i < pagesize; ++i)
20082 *(data + i) = rand ();
20083 umask (0);
20084 fd = creat ("conftest.mmap", 0600);
20085 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020086 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020087 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020088 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020089 close (fd);
20090
20091 /* Next, try to mmap the file at a fixed address which already has
20092 something else allocated at it. If we can, also make sure that
20093 we see the same garbage. */
20094 fd = open ("conftest.mmap", O_RDWR);
20095 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020096 return 1;
20097 data2 = (char *) malloc (2 * pagesize);
20098 if (!data2)
20099 return 1;
20100 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020101 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020102 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020103 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020104 for (i = 0; i < pagesize; ++i)
20105 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020106 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020107
20108 /* Finally, make sure that changes to the mapped area do not
20109 percolate back to the file as seen by read(). (This is a bug on
20110 some variants of i386 svr4.0.) */
20111 for (i = 0; i < pagesize; ++i)
20112 *(data2 + i) = *(data2 + i) + 1;
20113 data3 = (char *) malloc (pagesize);
20114 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020115 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020116 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020117 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020118 for (i = 0; i < pagesize; ++i)
20119 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020120 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020121 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020122 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020123}
20124_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020125rm -f conftest$ac_exeext
20126if { (ac_try="$ac_link"
20127case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20130esac
20131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132 (eval "$ac_link") 2>&5
20133 ac_status=$?
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20136 { (case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20139esac
20140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_try") 2>&5
20142 ac_status=$?
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020145 ac_cv_func_mmap_fixed_mapped=yes
20146else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020147 echo "$as_me: program exited with status $ac_status" >&5
20148echo "$as_me: failed program was:" >&5
20149sed 's/^/| /' conftest.$ac_ext >&5
20150
20151( exit $ac_status )
20152ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020153fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020154rm -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 +000020155fi
Reid Spencera773bd52006-08-04 18:18:08 +000020156
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020157
John Criswell7a73b802003-06-30 21:59:07 +000020158fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020159{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20160echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020161if test $ac_cv_func_mmap_fixed_mapped = yes; then
20162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020163cat >>confdefs.h <<\_ACEOF
20164#define HAVE_MMAP 1
20165_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020166
20167fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020168rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020170 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20171echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20172if test "${ac_cv_func_mmap_file+set}" = set; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020174else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020175 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020176ac_cpp='$CPP $CPPFLAGS'
20177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20179ac_compiler_gnu=$ac_cv_c_compiler_gnu
20180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020181 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020182 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020183else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020184 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020185
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020186 /* confdefs.h. */
20187_ACEOF
20188cat confdefs.h >>conftest.$ac_ext
20189cat >>conftest.$ac_ext <<_ACEOF
20190/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020191
John Criswell7a73b802003-06-30 21:59:07 +000020192#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020193#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020194#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020195
20196int
20197main ()
20198{
John Criswell7a73b802003-06-30 21:59:07 +000020199
20200 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020201 fd = creat ("foo",0777);
20202 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20203 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020204 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020205 ;
20206 return 0;
20207}
John Criswell7a73b802003-06-30 21:59:07 +000020208_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020209rm -f conftest$ac_exeext
20210if { (ac_try="$ac_link"
20211case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20214esac
20215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_link") 2>&5
20217 ac_status=$?
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20220 { (case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20223esac
20224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_try") 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020229 ac_cv_func_mmap_file=yes
20230else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020231 echo "$as_me: program exited with status $ac_status" >&5
20232echo "$as_me: failed program was:" >&5
20233sed 's/^/| /' conftest.$ac_ext >&5
20234
20235( exit $ac_status )
20236ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020237fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020238rm -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 +000020239fi
Reid Spencera773bd52006-08-04 18:18:08 +000020240
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020241
John Criswell7a73b802003-06-30 21:59:07 +000020242 ac_ext=c
20243ac_cpp='$CPP $CPPFLAGS'
20244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20246ac_compiler_gnu=$ac_cv_c_compiler_gnu
20247
20248
20249fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020250{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20251echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020252if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020254cat >>confdefs.h <<\_ACEOF
20255#define HAVE_MMAP_FILE
20256_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020257
20258 MMAP_FILE=yes
20259
20260fi
20261
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020262 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20263echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20264if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20265 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020266else
Reid Spencer582a23c2004-12-29 07:07:57 +000020267 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020268 ac_cv_need_dev_zero_for_mmap=yes
20269 else
20270 ac_cv_need_dev_zero_for_mmap=no
20271 fi
20272
20273fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020274{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20275echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020276if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20277
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020278cat >>confdefs.h <<\_ACEOF
20279#define NEED_DEV_ZERO_FOR_MMAP 1
20280_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020281
20282fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020283
Reid Spencer30fe5262007-01-20 07:48:49 +000020284 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20285 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020286 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20287echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020288 fi
20289 if test "$ac_cv_func_mmap_file" = "no"
20290 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020291 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20292echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020293 fi
John Criswellb13092b2003-07-22 21:00:24 +000020294fi
John Criswell7a73b802003-06-30 21:59:07 +000020295
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020296{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20297echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020298ac_ext=cpp
20299ac_cpp='$CXXCPP $CPPFLAGS'
20300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20303
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020304cat >conftest.$ac_ext <<_ACEOF
20305/* confdefs.h. */
20306_ACEOF
20307cat confdefs.h >>conftest.$ac_ext
20308cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020309/* end confdefs.h. */
20310int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020311 volatile unsigned long val = 1;
20312 __sync_synchronize();
20313 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020314 __sync_add_and_fetch(&val, 1);
20315 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020316 return 0;
20317 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020318
20319_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020320rm -f conftest.$ac_objext conftest$ac_exeext
20321if { (ac_try="$ac_link"
20322case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20325esac
20326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327 (eval "$ac_link") 2>conftest.er1
20328 ac_status=$?
20329 grep -v '^ *+' conftest.er1 >conftest.err
20330 rm -f conftest.er1
20331 cat conftest.err >&5
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } &&
20334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20335 { (case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20338esac
20339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_try") 2>&5
20341 ac_status=$?
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; } &&
20344 { ac_try='test -s conftest$ac_exeext'
20345 { (case "(($ac_try" in
20346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347 *) ac_try_echo=$ac_try;;
20348esac
20349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_try") 2>&5
20351 ac_status=$?
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020354 ac_ext=c
20355ac_cpp='$CPP $CPPFLAGS'
20356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20358ac_compiler_gnu=$ac_cv_c_compiler_gnu
20359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020360 { echo "$as_me:$LINENO: result: yes" >&5
20361echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020363cat >>confdefs.h <<\_ACEOF
20364#define LLVM_MULTITHREADED 1
20365_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020366
Owen Andersond4b272b2009-05-18 23:58:51 +000020367else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020368 echo "$as_me: failed program was:" >&5
20369sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020371 { echo "$as_me:$LINENO: result: no" >&5
20372echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020374cat >>confdefs.h <<\_ACEOF
20375#define LLVM_MULTITHREADED 0
20376_ACEOF
20377
20378 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20379echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020380fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020381
Owen Andersond4b272b2009-05-18 23:58:51 +000020382rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020383 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020384
John Criswell7a73b802003-06-30 21:59:07 +000020385
Nick Lewycky4372e692009-09-29 06:18:23 +000020386if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020387 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20388echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20389if test "${llvm_cv_linux_mixed+set}" = set; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020391else
20392 ac_ext=c
20393ac_cpp='$CPP $CPPFLAGS'
20394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20396ac_compiler_gnu=$ac_cv_c_compiler_gnu
20397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020398 cat >conftest.$ac_ext <<_ACEOF
20399/* confdefs.h. */
20400_ACEOF
20401cat confdefs.h >>conftest.$ac_ext
20402cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020403/* end confdefs.h. */
20404#ifndef __x86_64__
20405 error: Not x86-64 even if uname says so!
20406 #endif
20407
20408int
20409main ()
20410{
20411
20412 ;
20413 return 0;
20414}
20415_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020416rm -f conftest.$ac_objext
20417if { (ac_try="$ac_compile"
20418case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20421esac
20422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_compile") 2>conftest.er1
20424 ac_status=$?
20425 grep -v '^ *+' conftest.er1 >conftest.err
20426 rm -f conftest.er1
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } &&
20430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20431 { (case "(($ac_try" in
20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433 *) ac_try_echo=$ac_try;;
20434esac
20435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436 (eval "$ac_try") 2>&5
20437 ac_status=$?
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }; } &&
20440 { ac_try='test -s conftest.$ac_objext'
20441 { (case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20444esac
20445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_try") 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020450 llvm_cv_linux_mixed=no
20451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020452 echo "$as_me: failed program was:" >&5
20453sed 's/^/| /' conftest.$ac_ext >&5
20454
20455 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020456fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020457
Nick Lewycky4372e692009-09-29 06:18:23 +000020458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20459 ac_ext=c
20460ac_cpp='$CPP $CPPFLAGS'
20461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20463ac_compiler_gnu=$ac_cv_c_compiler_gnu
20464
20465
20466fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020467{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20468echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020469
20470 if test "$llvm_cv_linux_mixed" = "yes"; then
20471 llvm_cv_target_arch="x86"
20472 ARCH="x86"
20473 fi
20474fi
20475
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020476
Reid Spencer9372f152007-07-30 20:13:24 +000020477for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020478do
20479as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20480{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20481echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20482if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20483 echo $ECHO_N "(cached) $ECHO_C" >&6
20484else
20485 cat >conftest.$ac_ext <<_ACEOF
20486/* confdefs.h. */
20487_ACEOF
20488cat confdefs.h >>conftest.$ac_ext
20489cat >>conftest.$ac_ext <<_ACEOF
20490/* end confdefs.h. */
20491/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20493#define $ac_func innocuous_$ac_func
20494
20495/* System header to define __stub macros and hopefully few prototypes,
20496 which can conflict with char $ac_func (); below.
20497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20498 <limits.h> exists even on freestanding compilers. */
20499
20500#ifdef __STDC__
20501# include <limits.h>
20502#else
20503# include <assert.h>
20504#endif
20505
20506#undef $ac_func
20507
20508/* Override any GCC internal prototype to avoid an error.
20509 Use char because int might match the return type of a GCC
20510 builtin and then its argument prototype would still apply. */
20511#ifdef __cplusplus
20512extern "C"
20513#endif
20514char $ac_func ();
20515/* The GNU C library defines this for functions which it implements
20516 to always fail with ENOSYS. Some functions are actually named
20517 something starting with __ and the normal name is an alias. */
20518#if defined __stub_$ac_func || defined __stub___$ac_func
20519choke me
20520#endif
20521
20522int
20523main ()
20524{
20525return $ac_func ();
20526 ;
20527 return 0;
20528}
20529_ACEOF
20530rm -f conftest.$ac_objext conftest$ac_exeext
20531if { (ac_try="$ac_link"
20532case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20535esac
20536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_link") 2>conftest.er1
20538 ac_status=$?
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } &&
20544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20545 { (case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20548esac
20549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_try") 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; } &&
20554 { ac_try='test -s conftest$ac_exeext'
20555 { (case "(($ac_try" in
20556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557 *) ac_try_echo=$ac_try;;
20558esac
20559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560 (eval "$ac_try") 2>&5
20561 ac_status=$?
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; }; then
20564 eval "$as_ac_var=yes"
20565else
20566 echo "$as_me: failed program was:" >&5
20567sed 's/^/| /' conftest.$ac_ext >&5
20568
20569 eval "$as_ac_var=no"
20570fi
20571
20572rm -f core conftest.err conftest.$ac_objext \
20573 conftest$ac_exeext conftest.$ac_ext
20574fi
20575ac_res=`eval echo '${'$as_ac_var'}'`
20576 { echo "$as_me:$LINENO: result: $ac_res" >&5
20577echo "${ECHO_T}$ac_res" >&6; }
20578if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020579 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020580#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020581_ACEOF
20582
20583fi
20584done
20585
20586
Tobias Grossera84b5672010-11-10 16:31:34 +000020587{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
20588echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
20589if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20591else
20592 llvm_cv_llvmgcc_dragonegg="no"
20593if test -x "$LLVMGCC" ; then
20594 cp /dev/null conftest.c
20595 "$LLVMGCC" -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c | \
20596 grep 'target datalayout =' > /dev/null 2>&1
20597 if test $? -eq 0 ; then
20598 llvm_cv_llvmgcc_dragonegg="yes"
20599 fi
20600 rm conftest.c
20601fi
20602fi
20603{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
20604echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
20605
20606if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
20607 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
20608 LLVMGCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
20609else
20610 LLVMCC_EMITIR_FLAG="-emit-llvm"
20611 LLVMGCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
20612fi
20613
20614
20615
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020616{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20617echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20618if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020620else
20621 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000020622if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020623 cp /dev/null conftest.c
Tobias Grossera84b5672010-11-10 16:31:34 +000020624 "$LLVMGCC" "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000020625 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020626 if test $? -eq 0 ; then
20627 llvm_cv_llvmgcc_sanity="yes"
20628 fi
20629 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020630fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020631fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020632{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20633echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020634
20635if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020636 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20637echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020638 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020639 LLVMCC1=$llvmcc1path
20640
Reid Spencer502935f2004-12-22 05:56:56 +000020641 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020642 LLVMCC1PLUS=$llvmcc1pluspath
20643
Reid Spencer502935f2004-12-22 05:56:56 +000020644 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20645 LLVMGCCDIR=$llvmgccdir
20646
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020647 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020648 LLVMGCC_LANGS=$llvmgcclangs
20649
Tobias Grossera84b5672010-11-10 16:31:34 +000020650 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
20651
20652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020653 { echo "$as_me:$LINENO: result: ok" >&5
20654echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020655fi
20656
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020657SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020658
20659
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020660SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20661
20662
Reid Spencere9de0912004-08-20 09:03:57 +000020663# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020664# information into substitutions that will end up in Makefile.config.in
20665# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020666if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020667 prefix="/usr/local"
20668fi
Reid Spencere9de0912004-08-20 09:03:57 +000020669eval LLVM_PREFIX="${prefix}";
20670eval LLVM_BINDIR="${prefix}/bin";
20671eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020672eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020673eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020674eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020675eval LLVM_INCLUDEDIR="${prefix}/include";
20676eval LLVM_INFODIR="${prefix}/info";
20677eval LLVM_MANDIR="${prefix}/man";
20678LLVM_CONFIGTIME=`date`
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020690# Place the various directores into the config.h file as #defines so that we
20691# can know about the installation paths within LLVM.
20692
Reid Spencere9de0912004-08-20 09:03:57 +000020693cat >>confdefs.h <<_ACEOF
20694#define LLVM_PREFIX "$LLVM_PREFIX"
20695_ACEOF
20696
20697
20698cat >>confdefs.h <<_ACEOF
20699#define LLVM_BINDIR "$LLVM_BINDIR"
20700_ACEOF
20701
20702
20703cat >>confdefs.h <<_ACEOF
20704#define LLVM_LIBDIR "$LLVM_LIBDIR"
20705_ACEOF
20706
20707
20708cat >>confdefs.h <<_ACEOF
20709#define LLVM_DATADIR "$LLVM_DATADIR"
20710_ACEOF
20711
20712
20713cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020714#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020715_ACEOF
20716
20717
20718cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020719#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020720_ACEOF
20721
20722
20723cat >>confdefs.h <<_ACEOF
20724#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20725_ACEOF
20726
20727
20728cat >>confdefs.h <<_ACEOF
20729#define LLVM_INFODIR "$LLVM_INFODIR"
20730_ACEOF
20731
20732
20733cat >>confdefs.h <<_ACEOF
20734#define LLVM_MANDIR "$LLVM_MANDIR"
20735_ACEOF
20736
20737
20738cat >>confdefs.h <<_ACEOF
20739#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20740_ACEOF
20741
20742
Eric Christopher790e11c2007-12-01 00:34:39 +000020743cat >>confdefs.h <<_ACEOF
20744#define LLVM_HOSTTRIPLE "$host"
20745_ACEOF
20746
20747
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020748# Determine which bindings to build.
20749if test "$BINDINGS_TO_BUILD" = auto ; then
20750 BINDINGS_TO_BUILD=""
20751 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20752 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20753 fi
20754fi
20755BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20756
20757
20758# This isn't really configurey, but it avoids having to repeat the list in
20759# other files.
20760ALL_BINDINGS=ocaml
20761
20762
Gordon Henriksenf0915682007-10-02 16:42:22 +000020763# Do any work necessary to ensure that bindings have what they need.
20764binding_prereqs_failed=0
20765for a_binding in $BINDINGS_TO_BUILD ; do
20766 case "$a_binding" in
20767 ocaml)
20768 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020769 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20770echo "$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 +000020771 binding_prereqs_failed=1
20772 fi
20773 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020774 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20775echo "$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 +000020776 binding_prereqs_failed=1
20777 fi
20778 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020779 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20780echo "$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 +000020781 fi
20782 if test "x$with_ocaml_libdir" != xauto ; then
20783 OCAML_LIBDIR=$with_ocaml_libdir
20784
20785 else
20786 ocaml_stdlib="`"$OCAMLC" -where`"
20787 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20788 then
20789 # ocaml stdlib is beneath our prefix; use stdlib
20790 OCAML_LIBDIR=$ocaml_stdlib
20791
20792 else
20793 # ocaml stdlib is outside our prefix; use libdir/ocaml
20794 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20795
20796 fi
20797 fi
20798 ;;
20799 esac
20800done
20801if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020802 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20803echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20804 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020805fi
20806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020807{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20808echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20809if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020811else
20812 ac_ext=cpp
20813ac_cpp='$CXXCPP $CPPFLAGS'
20814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20817
20818 oldcxxflags="$CXXFLAGS"
20819 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020820 cat >conftest.$ac_ext <<_ACEOF
20821/* confdefs.h. */
20822_ACEOF
20823cat confdefs.h >>conftest.$ac_ext
20824cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020825/* end confdefs.h. */
20826
20827int
20828main ()
20829{
20830
20831 ;
20832 return 0;
20833}
20834_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020835rm -f conftest.$ac_objext
20836if { (ac_try="$ac_compile"
20837case "(($ac_try" in
20838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839 *) ac_try_echo=$ac_try;;
20840esac
20841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842 (eval "$ac_compile") 2>conftest.er1
20843 ac_status=$?
20844 grep -v '^ *+' conftest.er1 >conftest.err
20845 rm -f conftest.er1
20846 cat conftest.err >&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); } &&
20849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20850 { (case "(($ac_try" in
20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20853esac
20854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855 (eval "$ac_try") 2>&5
20856 ac_status=$?
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); }; } &&
20859 { ac_try='test -s conftest.$ac_objext'
20860 { (case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20863esac
20864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865 (eval "$ac_try") 2>&5
20866 ac_status=$?
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020869 llvm_cv_cxx_visibility_inlines_hidden=yes
20870else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020871 echo "$as_me: failed program was:" >&5
20872sed 's/^/| /' conftest.$ac_ext >&5
20873
20874 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020875fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020876
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20878 CXXFLAGS="$oldcxxflags"
20879 ac_ext=c
20880ac_cpp='$CPP $CPPFLAGS'
20881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20883ac_compiler_gnu=$ac_cv_c_compiler_gnu
20884
20885
20886fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020887{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20888echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020889if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20890 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20891
20892else
20893 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20894
20895fi
20896
Gordon Henriksenf0915682007-10-02 16:42:22 +000020897
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020898if test "$llvm_cv_link_use_r" = "yes" ; then
20899 RPATH="-Wl,-R"
20900else
20901 RPATH="-Wl,-rpath"
20902fi
20903
20904
20905if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20906 RDYNAMIC="-Wl,-export-dynamic"
20907else
20908 RDYNAMIC=""
20909fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020910
20911
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020912
Eric Christophera1cba682010-08-08 02:44:25 +000020913ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020914
Eric Christopher21d3eeb2010-08-08 09:20:39 +000020915
20916
20917
20918
20919
Douglas Gregor1555a232009-06-16 20:12:29 +000020920ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20921
20922ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20923
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020924ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20925
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020926ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20927
Chandler Carruth8b67f772009-10-26 01:35:46 +000020928ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020929
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020930
Reid Spencera773bd52006-08-04 18:18:08 +000020931ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020932
20933
Reid Spencerea949cf2006-08-16 00:45:38 +000020934ac_config_files="$ac_config_files llvm.spec"
20935
20936
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000020937ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020938
20939
Reid Spencera773bd52006-08-04 18:18:08 +000020940ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020941
20942
Reid Spencera773bd52006-08-04 18:18:08 +000020943ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020944
Reid Spencera773bd52006-08-04 18:18:08 +000020945ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020946
20947
Reid Spencera773bd52006-08-04 18:18:08 +000020948ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020949
20950
Reid Spencera773bd52006-08-04 18:18:08 +000020951ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020952
20953
Reid Spencera773bd52006-08-04 18:18:08 +000020954ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020955
20956
Reid Spencer8b2e1412006-11-17 03:32:33 +000020957ac_config_commands="$ac_config_commands runtime/Makefile"
20958
20959
Reid Spencera773bd52006-08-04 18:18:08 +000020960ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020961
20962
Reid Spencera773bd52006-08-04 18:18:08 +000020963ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020964
20965
Bill Wendlingf24eb392009-01-04 23:12:30 +000020966ac_config_commands="$ac_config_commands unittests/Makefile"
20967
20968
Reid Spencera773bd52006-08-04 18:18:08 +000020969ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020970
20971
Reid Spencera773bd52006-08-04 18:18:08 +000020972ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020973
20974
Reid Spencera773bd52006-08-04 18:18:08 +000020975ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020976
20977
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020978ac_config_commands="$ac_config_commands bindings/Makefile"
20979
20980
20981ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20982
20983
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020984
John Criswell7a73b802003-06-30 21:59:07 +000020985cat >confcache <<\_ACEOF
20986# This file is a shell script that caches the results of configure
20987# tests run on this system so they can be shared between configure
20988# scripts and configure runs, see configure's option --config-cache.
20989# It is not useful on other systems. If it contains results you don't
20990# want to keep, you may remove or edit it.
20991#
20992# config.status only pays attention to the cache file if you give it
20993# the --recheck option to rerun configure.
20994#
John Criswell0c38eaf2003-09-10 15:17:25 +000020995# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020996# loading this file, other *unset* `ac_cv_foo' will be assigned the
20997# following values.
20998
20999_ACEOF
21000
21001# The following way of writing the cache mishandles newlines in values,
21002# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021003# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021004# Ultrix sh set writes to stderr and can't be redirected directly,
21005# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021006(
21007 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21008 eval ac_val=\$$ac_var
21009 case $ac_val in #(
21010 *${as_nl}*)
21011 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021012 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21013echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021014 esac
21015 case $ac_var in #(
21016 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021017 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021018 esac ;;
21019 esac
21020 done
21021
John Criswell7a73b802003-06-30 21:59:07 +000021022 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021023 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21024 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021025 # `set' does not quote correctly, so add quotes (double-quote
21026 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021027 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021028 "s/'/'\\\\''/g;
21029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021030 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021031 *)
21032 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021034 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021035 esac |
21036 sort
21037) |
John Criswell7a73b802003-06-30 21:59:07 +000021038 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021039 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021040 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021041 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021042 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21043 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021044 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21045 :end' >>confcache
21046if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21047 if test -w "$cache_file"; then
21048 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021049 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21050echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021051 cat confcache >$cache_file
21052 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021053 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21054echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021055 fi
21056fi
21057rm -f confcache
21058
21059test "x$prefix" = xNONE && prefix=$ac_default_prefix
21060# Let make expand exec_prefix.
21061test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21062
John Criswell7a73b802003-06-30 21:59:07 +000021063DEFS=-DHAVE_CONFIG_H
21064
John Criswell0c38eaf2003-09-10 15:17:25 +000021065ac_libobjs=
21066ac_ltlibobjs=
21067for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21068 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021070 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21072 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021073 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21074 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021075done
21076LIBOBJS=$ac_libobjs
21077
21078LTLIBOBJS=$ac_ltlibobjs
21079
21080
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021081if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021082 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21083Usually this means the macro was only invoked conditionally." >&5
21084echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21085Usually this means the macro was only invoked conditionally." >&2;}
21086 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021087fi
21088if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021089 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21090Usually this means the macro was only invoked conditionally." >&5
21091echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21092Usually this means the macro was only invoked conditionally." >&2;}
21093 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021094fi
John Criswell7a73b802003-06-30 21:59:07 +000021095
21096: ${CONFIG_STATUS=./config.status}
21097ac_clean_files_save=$ac_clean_files
21098ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021099{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21100echo "$as_me: creating $CONFIG_STATUS" >&6;}
21101cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021102#! $SHELL
21103# Generated by $as_me.
21104# Run this file to recreate the current configuration.
21105# Compiler output produced by configure, useful for debugging
21106# configure, is in config.log if it exists.
21107
21108debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021109ac_cs_recheck=false
21110ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021111SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021112_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021114cat >>$CONFIG_STATUS <<\_ACEOF
21115## --------------------- ##
21116## M4sh Initialization. ##
21117## --------------------- ##
21118
21119# Be Bourne compatible
21120if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021121 emulate sh
21122 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021123 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021124 # is contrary to our usage. Disable this feature.
21125 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021126 setopt NO_GLOB_SUBST
21127else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021128 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021129fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021130BIN_SH=xpg4; export BIN_SH # for Tru64
21131DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021132
John Criswell7a73b802003-06-30 21:59:07 +000021133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021134# PATH needs CR
21135# Avoid depending upon Character Ranges.
21136as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21137as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21138as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21139as_cr_digits='0123456789'
21140as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021141
21142# The user is always right.
21143if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021144 echo "#! /bin/sh" >conf$$.sh
21145 echo "exit 0" >>conf$$.sh
21146 chmod +x conf$$.sh
21147 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21148 PATH_SEPARATOR=';'
21149 else
21150 PATH_SEPARATOR=:
21151 fi
21152 rm -f conf$$.sh
21153fi
21154
21155# Support unset when possible.
21156if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21157 as_unset=unset
21158else
21159 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021160fi
John Criswell7a73b802003-06-30 21:59:07 +000021161
Reid Spencera773bd52006-08-04 18:18:08 +000021162
21163# IFS
21164# We need space, tab and new line, in precisely that order. Quoting is
21165# there to prevent editors from complaining about space-tab.
21166# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21167# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021168as_nl='
21169'
Reid Spencera773bd52006-08-04 18:18:08 +000021170IFS=" "" $as_nl"
21171
21172# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021173case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021174 *[\\/]* ) as_myself=$0 ;;
21175 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021176for as_dir in $PATH
21177do
21178 IFS=$as_save_IFS
21179 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021180 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21181done
Reid Spencera773bd52006-08-04 18:18:08 +000021182IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021183
Reid Spencera773bd52006-08-04 18:18:08 +000021184 ;;
21185esac
21186# We did not find ourselves, most probably we were run as `sh COMMAND'
21187# in which case we are not to be found in the path.
21188if test "x$as_myself" = x; then
21189 as_myself=$0
21190fi
21191if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021192 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21193 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021194fi
21195
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021196# Work around bugs in pre-3.0 UWIN ksh.
21197for as_var in ENV MAIL MAILPATH
21198do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021199done
21200PS1='$ '
21201PS2='> '
21202PS4='+ '
21203
21204# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021205for as_var in \
21206 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21207 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21208 LC_TELEPHONE LC_TIME
21209do
21210 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21211 eval $as_var=C; export $as_var
21212 else
21213 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021214 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021215done
Torok Edwin871384f2010-01-26 08:50:50 +000021216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021217# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021218if expr a : '\(a\)' >/dev/null 2>&1 &&
21219 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21220 as_expr=expr
21221else
21222 as_expr=false
21223fi
21224
21225if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21226 as_basename=basename
21227else
21228 as_basename=false
21229fi
21230
21231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021232# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021233as_me=`$as_basename -- "$0" ||
21234$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21235 X"$0" : 'X\(//\)$' \| \
21236 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021237echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021238 sed '/^.*\/\([^/][^/]*\)\/*$/{
21239 s//\1/
21240 q
21241 }
21242 /^X\/\(\/\/\)$/{
21243 s//\1/
21244 q
21245 }
21246 /^X\/\(\/\).*/{
21247 s//\1/
21248 q
21249 }
21250 s/.*/./; q'`
21251
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021252# CDPATH.
21253$as_unset CDPATH
21254
21255
21256
21257 as_lineno_1=$LINENO
21258 as_lineno_2=$LINENO
21259 test "x$as_lineno_1" != "x$as_lineno_2" &&
21260 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21261
21262 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21263 # uniformly replaced by the line number. The first 'sed' inserts a
21264 # line-number line after each line using $LINENO; the second 'sed'
21265 # does the real work. The second script uses 'N' to pair each
21266 # line-number line with the line containing $LINENO, and appends
21267 # trailing '-' during substitution so that $LINENO is not a special
21268 # case at line end.
21269 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21270 # scripts with optimization help from Paolo Bonzini. Blame Lee
21271 # E. McMahon (1931-1989) for sed's syntax. :-)
21272 sed -n '
21273 p
21274 /[$]LINENO/=
21275 ' <$as_myself |
21276 sed '
21277 s/[$]LINENO.*/&-/
21278 t lineno
21279 b
21280 :lineno
21281 N
21282 :loop
21283 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21284 t loop
21285 s/-\n.*//
21286 ' >$as_me.lineno &&
21287 chmod +x "$as_me.lineno" ||
21288 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21289 { (exit 1); exit 1; }; }
21290
21291 # Don't try to exec as it changes $[0], causing all sort of problems
21292 # (the dirname of $[0] is not the place where we might find the
21293 # original and so on. Autoconf is especially sensitive to this).
21294 . "./$as_me.lineno"
21295 # Exit status is that of the last command.
21296 exit
21297}
21298
21299
21300if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21301 as_dirname=dirname
21302else
21303 as_dirname=false
21304fi
Reid Spencera773bd52006-08-04 18:18:08 +000021305
21306ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021307case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021308-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021309 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021310 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021311 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021312 esac;;
21313*)
21314 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021315esac
21316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021317if expr a : '\(a\)' >/dev/null 2>&1 &&
21318 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21319 as_expr=expr
21320else
21321 as_expr=false
21322fi
21323
John Criswell7a73b802003-06-30 21:59:07 +000021324rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021325if test -d conf$$.dir; then
21326 rm -f conf$$.dir/conf$$.file
21327else
21328 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021329 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021331echo >conf$$.file
21332if ln -s conf$$.file conf$$ 2>/dev/null; then
21333 as_ln_s='ln -s'
21334 # ... but there are two gotchas:
21335 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21336 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21337 # In both cases, we have to default to `cp -p'.
21338 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021339 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021340elif ln conf$$.file conf$$ 2>/dev/null; then
21341 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021342else
21343 as_ln_s='cp -p'
21344fi
Reid Spencera773bd52006-08-04 18:18:08 +000021345rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21346rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021347
John Criswell0c38eaf2003-09-10 15:17:25 +000021348if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021349 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021350else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021351 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021352 as_mkdir_p=false
21353fi
21354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021355# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21356# systems may use methods other than mode bits to determine executability.
21357cat >conf$$.file <<_ASEOF
21358#! /bin/sh
21359exit 0
21360_ASEOF
21361chmod +x conf$$.file
21362if test -x conf$$.file >/dev/null 2>&1; then
21363 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021364else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021365 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021366fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021367rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021368
21369# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021370as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021371
21372# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021373as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021374
21375
John Criswell7a73b802003-06-30 21:59:07 +000021376exec 6>&1
21377
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021378# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021379# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021380# values after options handling.
21381ac_log="
Eric Christopherb26697c2010-09-06 18:47:10 +000021382This file was extended by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021383generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021384
21385 CONFIG_FILES = $CONFIG_FILES
21386 CONFIG_HEADERS = $CONFIG_HEADERS
21387 CONFIG_LINKS = $CONFIG_LINKS
21388 CONFIG_COMMANDS = $CONFIG_COMMANDS
21389 $ $0 $@
21390
Reid Spencera773bd52006-08-04 18:18:08 +000021391on `(hostname || uname -n) 2>/dev/null | sed 1q`
21392"
21393
John Criswell7a73b802003-06-30 21:59:07 +000021394_ACEOF
21395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021396cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021397# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021398config_files="$ac_config_files"
21399config_headers="$ac_config_headers"
21400config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021401
Reid Spencera773bd52006-08-04 18:18:08 +000021402_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021404cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021405ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021406\`$as_me' instantiates files from templates according to the
21407current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021408
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021409Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021410
21411 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021412 -V, --version print version number, then exit
21413 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021414 -d, --debug don't remove temporary files
21415 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021416 --file=FILE[:TEMPLATE]
21417 instantiate the configuration file FILE
21418 --header=FILE[:TEMPLATE]
21419 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021420
21421Configuration files:
21422$config_files
21423
21424Configuration headers:
21425$config_headers
21426
John Criswellc764fbc2003-09-06 15:17:13 +000021427Configuration commands:
21428$config_commands
21429
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021430Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021431
Reid Spencera773bd52006-08-04 18:18:08 +000021432_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021433cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021434ac_cs_version="\\
Eric Christopherb26697c2010-09-06 18:47:10 +000021435llvm config.status 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021436configured by $0, generated by GNU Autoconf 2.60,
21437 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021439Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021440This config.status script is free software; the Free Software Foundation
21441gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021442
21443ac_pwd='$ac_pwd'
21444srcdir='$srcdir'
21445INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021446_ACEOF
21447
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021448cat >>$CONFIG_STATUS <<\_ACEOF
21449# If no file are specified by the user, then we need to provide default
21450# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021451ac_need_defaults=:
21452while test $# != 0
21453do
21454 case $1 in
21455 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021456 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21457 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021458 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021459 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021460 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021461 ac_option=$1
21462 ac_optarg=$2
21463 ac_shift=shift
21464 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021465 esac
21466
John Criswell0c38eaf2003-09-10 15:17:25 +000021467 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021468 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021469 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21470 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021471 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021472 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021473 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021474 debug=: ;;
21475 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021476 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021477 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021478 ac_need_defaults=false;;
21479 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021480 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021481 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021482 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021483 --he | --h)
21484 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021485 { echo "$as_me: error: ambiguous option: $1
21486Try \`$0 --help' for more information." >&2
21487 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021488 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021489 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21491 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21492 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021493
21494 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021495 -*) { echo "$as_me: error: unrecognized option: $1
21496Try \`$0 --help' for more information." >&2
21497 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021499 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021500 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021501
21502 esac
21503 shift
21504done
21505
John Criswell0c38eaf2003-09-10 15:17:25 +000021506ac_configure_extra_args=
21507
21508if $ac_cs_silent; then
21509 exec 6>/dev/null
21510 ac_configure_extra_args="$ac_configure_extra_args --silent"
21511fi
21512
21513_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021514cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021515if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021516 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21517 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021518 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021519 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021520fi
21521
John Criswell7a73b802003-06-30 21:59:07 +000021522_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021523cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021524exec 5>>config.log
21525{
21526 echo
21527 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21528## Running $as_me. ##
21529_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021530 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021531} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021532
Reid Spencera773bd52006-08-04 18:18:08 +000021533_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021534cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021535#
Reid Spencera773bd52006-08-04 18:18:08 +000021536# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021537#
Reid Spencerc0682832005-02-24 19:05:19 +000021538llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021539
21540_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021542cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021543
21544# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021545for ac_config_target in $ac_config_targets
21546do
Reid Spencera773bd52006-08-04 18:18:08 +000021547 case $ac_config_target in
21548 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021549 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021550 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21551 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021552 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021553 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000021554 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021555 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021556 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021557 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021558 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21559 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21560 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21561 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21562 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21563 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021564 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021565 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21566 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021567 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021568 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21569 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21570 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021571 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21572 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021574 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21575echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21576 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021577 esac
21578done
21579
Reid Spencera773bd52006-08-04 18:18:08 +000021580
John Criswell7a73b802003-06-30 21:59:07 +000021581# If the user did not use the arguments to specify the items to instantiate,
21582# then the envvar interface is used. Set only those that are not.
21583# We use the long form for the default assignment because of an extremely
21584# bizarre bug on SunOS 4.1.3.
21585if $ac_need_defaults; then
21586 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21587 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021588 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021589fi
21590
John Criswell0c38eaf2003-09-10 15:17:25 +000021591# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021592# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021593# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021594# Hook for its removal unless debugging.
21595# Note that there is a small window in which the directory will not be cleaned:
21596# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021597$debug ||
21598{
Reid Spencera773bd52006-08-04 18:18:08 +000021599 tmp=
21600 trap 'exit_status=$?
21601 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21602' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021603 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021604}
John Criswell7a73b802003-06-30 21:59:07 +000021605# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021606
John Criswell7a73b802003-06-30 21:59:07 +000021607{
Reid Spencera773bd52006-08-04 18:18:08 +000021608 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021609 test -n "$tmp" && test -d "$tmp"
21610} ||
21611{
Reid Spencera773bd52006-08-04 18:18:08 +000021612 tmp=./conf$$-$RANDOM
21613 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021614} ||
21615{
21616 echo "$me: cannot create a temporary directory in ." >&2
21617 { (exit 1); exit 1; }
21618}
John Criswell7a73b802003-06-30 21:59:07 +000021619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021620#
21621# Set up the sed scripts for CONFIG_FILES section.
21622#
21623
21624# No need to generate the scripts if there are no CONFIG_FILES.
21625# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021626if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021627
21628_ACEOF
21629
Reid Spencera773bd52006-08-04 18:18:08 +000021630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021631
Reid Spencera773bd52006-08-04 18:18:08 +000021632ac_delim='%!_!# '
21633for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021634 cat >conf$$subs.sed <<_ACEOF
21635SHELL!$SHELL$ac_delim
21636PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21637PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21638PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21639PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21640PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21641PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21642exec_prefix!$exec_prefix$ac_delim
21643prefix!$prefix$ac_delim
21644program_transform_name!$program_transform_name$ac_delim
21645bindir!$bindir$ac_delim
21646sbindir!$sbindir$ac_delim
21647libexecdir!$libexecdir$ac_delim
21648datarootdir!$datarootdir$ac_delim
21649datadir!$datadir$ac_delim
21650sysconfdir!$sysconfdir$ac_delim
21651sharedstatedir!$sharedstatedir$ac_delim
21652localstatedir!$localstatedir$ac_delim
21653includedir!$includedir$ac_delim
21654oldincludedir!$oldincludedir$ac_delim
21655docdir!$docdir$ac_delim
21656infodir!$infodir$ac_delim
21657htmldir!$htmldir$ac_delim
21658dvidir!$dvidir$ac_delim
21659pdfdir!$pdfdir$ac_delim
21660psdir!$psdir$ac_delim
21661libdir!$libdir$ac_delim
21662localedir!$localedir$ac_delim
21663mandir!$mandir$ac_delim
21664DEFS!$DEFS$ac_delim
21665ECHO_C!$ECHO_C$ac_delim
21666ECHO_N!$ECHO_N$ac_delim
21667ECHO_T!$ECHO_T$ac_delim
21668LIBS!$LIBS$ac_delim
21669build_alias!$build_alias$ac_delim
21670host_alias!$host_alias$ac_delim
21671target_alias!$target_alias$ac_delim
21672LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21673subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021674ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21675LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021676build!$build$ac_delim
21677build_cpu!$build_cpu$ac_delim
21678build_vendor!$build_vendor$ac_delim
21679build_os!$build_os$ac_delim
21680host!$host$ac_delim
21681host_cpu!$host_cpu$ac_delim
21682host_vendor!$host_vendor$ac_delim
21683host_os!$host_os$ac_delim
21684target!$target$ac_delim
21685target_cpu!$target_cpu$ac_delim
21686target_vendor!$target_vendor$ac_delim
21687target_os!$target_os$ac_delim
21688OS!$OS$ac_delim
21689HOST_OS!$HOST_OS$ac_delim
21690TARGET_OS!$TARGET_OS$ac_delim
21691LINKALL!$LINKALL$ac_delim
21692NOLINKALL!$NOLINKALL$ac_delim
21693LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21694LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21695ARCH!$ARCH$ac_delim
21696ENDIAN!$ENDIAN$ac_delim
21697CC!$CC$ac_delim
21698CFLAGS!$CFLAGS$ac_delim
21699LDFLAGS!$LDFLAGS$ac_delim
21700CPPFLAGS!$CPPFLAGS$ac_delim
21701ac_ct_CC!$ac_ct_CC$ac_delim
21702EXEEXT!$EXEEXT$ac_delim
21703OBJEXT!$OBJEXT$ac_delim
21704CPP!$CPP$ac_delim
21705GREP!$GREP$ac_delim
21706EGREP!$EGREP$ac_delim
21707LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21708BUILD_CC!$BUILD_CC$ac_delim
21709BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21710BUILD_CXX!$BUILD_CXX$ac_delim
21711CVSBUILD!$CVSBUILD$ac_delim
21712ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21713ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21714DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21715ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21716EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21717DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21718DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21719JIT!$JIT$ac_delim
21720TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021721ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021722ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21723ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21724ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021725ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021726ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021727TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21728LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21729LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21730LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21731LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021732_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021734 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021735 break
21736 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021737 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21738echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21739 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021740 else
21741 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021742 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021743done
21744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021745ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21746if test -n "$ac_eof"; then
21747 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21748 ac_eof=`expr $ac_eof + 1`
21749fi
21750
21751cat >>$CONFIG_STATUS <<_ACEOF
21752cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21753/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021754_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021755sed '
21756s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21757s/^/s,@/; s/!/@,|#_!!_#|/
21758:n
21759t n
21760s/'"$ac_delim"'$/,g/; t
21761s/$/\\/; p
21762N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21763' >>$CONFIG_STATUS <conf$$subs.sed
21764rm -f conf$$subs.sed
21765cat >>$CONFIG_STATUS <<_ACEOF
21766CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021767_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021768
21769
21770ac_delim='%!_!# '
21771for ac_last_try in false false false false false :; do
21772 cat >conf$$subs.sed <<_ACEOF
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021773ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021774CLANGPATH!$CLANGPATH$ac_delim
21775CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021776ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021777OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021778EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21779BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021780CXX!$CXX$ac_delim
21781CXXFLAGS!$CXXFLAGS$ac_delim
21782ac_ct_CXX!$ac_ct_CXX$ac_delim
21783NM!$NM$ac_delim
21784ifGNUmake!$ifGNUmake$ac_delim
21785LN_S!$LN_S$ac_delim
21786CMP!$CMP$ac_delim
21787CP!$CP$ac_delim
21788DATE!$DATE$ac_delim
21789FIND!$FIND$ac_delim
21790MKDIR!$MKDIR$ac_delim
21791MV!$MV$ac_delim
21792RANLIB!$RANLIB$ac_delim
21793AR!$AR$ac_delim
21794RM!$RM$ac_delim
21795SED!$SED$ac_delim
21796TAR!$TAR$ac_delim
21797BINPWD!$BINPWD$ac_delim
21798GRAPHVIZ!$GRAPHVIZ$ac_delim
21799DOT!$DOT$ac_delim
21800FDP!$FDP$ac_delim
21801NEATO!$NEATO$ac_delim
21802TWOPI!$TWOPI$ac_delim
21803CIRCO!$CIRCO$ac_delim
21804GV!$GV$ac_delim
21805DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021806XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021807PERL!$PERL$ac_delim
21808HAVE_PERL!$HAVE_PERL$ac_delim
21809INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21810INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21811INSTALL_DATA!$INSTALL_DATA$ac_delim
21812BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021813CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021814DOXYGEN!$DOXYGEN$ac_delim
21815GROFF!$GROFF$ac_delim
21816GZIP!$GZIP$ac_delim
21817POD2HTML!$POD2HTML$ac_delim
21818POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021819PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021820RUNTEST!$RUNTEST$ac_delim
21821TCLSH!$TCLSH$ac_delim
21822ZIP!$ZIP$ac_delim
21823OCAMLC!$OCAMLC$ac_delim
21824OCAMLOPT!$OCAMLOPT$ac_delim
21825OCAMLDEP!$OCAMLDEP$ac_delim
21826OCAMLDOC!$OCAMLDOC$ac_delim
21827GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021828HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021829INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21830INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21831CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21832CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21833LIBADD_DL!$LIBADD_DL$ac_delim
21834LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21835LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21836LLVMGCC!$LLVMGCC$ac_delim
21837LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021838LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021839NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21840NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21841USE_UDIS86!$USE_UDIS86$ac_delim
21842USE_OPROFILE!$USE_OPROFILE$ac_delim
21843HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21844HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21845MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000021846LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021847LLVMCC1!$LLVMCC1$ac_delim
21848LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21849LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021850LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000021851LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
21852LLVMGCC_DISABLEOPT_FLAGS!$LLVMGCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021853SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021854SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021855LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21856LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21857LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21858LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21859LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21860LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21861LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21862LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21863LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21864LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21865BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21866ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21867OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21868ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21869RPATH!$RPATH$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021870_ACEOF
21871
Tobias Grossera84b5672010-11-10 16:31:34 +000021872 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021873 break
21874 elif $ac_last_try; then
21875 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21876echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21877 { (exit 1); exit 1; }; }
21878 else
21879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21880 fi
21881done
21882
21883ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21884if test -n "$ac_eof"; then
21885 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21886 ac_eof=`expr $ac_eof + 1`
21887fi
21888
21889cat >>$CONFIG_STATUS <<_ACEOF
21890cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021891/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021892_ACEOF
21893sed '
21894s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21895s/^/s,@/; s/!/@,|#_!!_#|/
21896:n
21897t n
21898s/'"$ac_delim"'$/,g/; t
21899s/$/\\/; p
21900N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21901' >>$CONFIG_STATUS <conf$$subs.sed
21902rm -f conf$$subs.sed
21903cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021904CEOF$ac_eof
21905_ACEOF
21906
21907
Tobias Grossera84b5672010-11-10 16:31:34 +000021908ac_delim='%!_!# '
21909for ac_last_try in false false false false false :; do
21910 cat >conf$$subs.sed <<_ACEOF
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021911RDYNAMIC!$RDYNAMIC$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000021912LIBOBJS!$LIBOBJS$ac_delim
21913LTLIBOBJS!$LTLIBOBJS$ac_delim
21914_ACEOF
21915
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021916 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
Tobias Grossera84b5672010-11-10 16:31:34 +000021917 break
21918 elif $ac_last_try; then
21919 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21920echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21921 { (exit 1); exit 1; }; }
21922 else
21923 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21924 fi
21925done
21926
21927ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21928if test -n "$ac_eof"; then
21929 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21930 ac_eof=`expr $ac_eof + 1`
21931fi
21932
21933cat >>$CONFIG_STATUS <<_ACEOF
21934cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
21935/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21936_ACEOF
21937sed '
21938s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21939s/^/s,@/; s/!/@,|#_!!_#|/
21940:n
21941t n
21942s/'"$ac_delim"'$/,g/; t
21943s/$/\\/; p
21944N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21945' >>$CONFIG_STATUS <conf$$subs.sed
21946rm -f conf$$subs.sed
21947cat >>$CONFIG_STATUS <<_ACEOF
21948:end
21949s/|#_!!_#|//g
21950CEOF$ac_eof
21951_ACEOF
21952
21953
Reid Spencera773bd52006-08-04 18:18:08 +000021954# VPATH may cause trouble with some makes, so we remove $(srcdir),
21955# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21956# trailing colons and then remove the whole line if VPATH becomes empty
21957# (actually we leave an empty line to preserve line numbers).
21958if test "x$srcdir" = x.; then
21959 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21960s/:*\$(srcdir):*/:/
21961s/:*\${srcdir}:*/:/
21962s/:*@srcdir@:*/:/
21963s/^\([^=]*=[ ]*\):*/\1/
21964s/:*$//
21965s/^[^=]*=[ ]*$//
21966}'
21967fi
21968
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021969cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021970fi # test -n "$CONFIG_FILES"
21971
Reid Spencera773bd52006-08-04 18:18:08 +000021972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021973for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021974do
21975 case $ac_tag in
21976 :[FHLC]) ac_mode=$ac_tag; continue;;
21977 esac
21978 case $ac_mode$ac_tag in
21979 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021980 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21981echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21982 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021983 :[FH]-) ac_tag=-:-;;
21984 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21985 esac
21986 ac_save_IFS=$IFS
21987 IFS=:
21988 set x $ac_tag
21989 IFS=$ac_save_IFS
21990 shift
21991 ac_file=$1
21992 shift
21993
21994 case $ac_mode in
21995 :L) ac_source=$1;;
21996 :[FH])
21997 ac_file_inputs=
21998 for ac_f
21999 do
22000 case $ac_f in
22001 -) ac_f="$tmp/stdin";;
22002 *) # Look for the file first in the build tree, then in the source tree
22003 # (if the path is not absolute). The absolute path cannot be DOS-style,
22004 # because $ac_f cannot contain `:'.
22005 test -f "$ac_f" ||
22006 case $ac_f in
22007 [\\/$]*) false;;
22008 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22009 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022010 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22011echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22012 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022013 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022014 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022015 done
22016
22017 # Let's still pretend it is `configure' which instantiates (i.e., don't
22018 # use $as_me), people would be surprised to read:
22019 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022020 configure_input="Generated from "`IFS=:
22021 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022022 if test x"$ac_file" != x-; then
22023 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022024 { echo "$as_me:$LINENO: creating $ac_file" >&5
22025echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022026 fi
22027
22028 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022029 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022030 esac
22031 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022032 esac
22033
Reid Spencera773bd52006-08-04 18:18:08 +000022034 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022035$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022036 X"$ac_file" : 'X\(//\)[^/]' \| \
22037 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022038 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022039echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22041 s//\1/
22042 q
22043 }
22044 /^X\(\/\/\)[^/].*/{
22045 s//\1/
22046 q
22047 }
22048 /^X\(\/\/\)$/{
22049 s//\1/
22050 q
22051 }
22052 /^X\(\/\).*/{
22053 s//\1/
22054 q
22055 }
22056 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022057 { as_dir="$ac_dir"
22058 case $as_dir in #(
22059 -*) as_dir=./$as_dir;;
22060 esac
22061 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22062 as_dirs=
22063 while :; do
22064 case $as_dir in #(
22065 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22066 *) as_qdir=$as_dir;;
22067 esac
22068 as_dirs="'$as_qdir' $as_dirs"
22069 as_dir=`$as_dirname -- "$as_dir" ||
22070$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22071 X"$as_dir" : 'X\(//\)[^/]' \| \
22072 X"$as_dir" : 'X\(//\)$' \| \
22073 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22074echo X"$as_dir" |
22075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22076 s//\1/
22077 q
22078 }
22079 /^X\(\/\/\)[^/].*/{
22080 s//\1/
22081 q
22082 }
22083 /^X\(\/\/\)$/{
22084 s//\1/
22085 q
22086 }
22087 /^X\(\/\).*/{
22088 s//\1/
22089 q
22090 }
22091 s/.*/./; q'`
22092 test -d "$as_dir" && break
22093 done
22094 test -z "$as_dirs" || eval "mkdir $as_dirs"
22095 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22096echo "$as_me: error: cannot create directory $as_dir" >&2;}
22097 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022098 ac_builddir=.
22099
Reid Spencera773bd52006-08-04 18:18:08 +000022100case "$ac_dir" in
22101.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22102*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022103 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022104 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022105 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022106 case $ac_top_builddir_sub in
22107 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22108 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22109 esac ;;
22110esac
22111ac_abs_top_builddir=$ac_pwd
22112ac_abs_builddir=$ac_pwd$ac_dir_suffix
22113# for backward compatibility:
22114ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022115
22116case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022117 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022118 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022119 ac_top_srcdir=$ac_top_builddir_sub
22120 ac_abs_top_srcdir=$ac_pwd ;;
22121 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022122 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022123 ac_top_srcdir=$srcdir
22124 ac_abs_top_srcdir=$srcdir ;;
22125 *) # Relative name.
22126 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22127 ac_top_srcdir=$ac_top_build_prefix$srcdir
22128 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022129esac
Reid Spencera773bd52006-08-04 18:18:08 +000022130ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022131
John Criswell7a73b802003-06-30 21:59:07 +000022132
Reid Spencera773bd52006-08-04 18:18:08 +000022133 case $ac_mode in
22134 :F)
22135 #
22136 # CONFIG_FILE
22137 #
John Criswell7a73b802003-06-30 21:59:07 +000022138
22139 case $INSTALL in
22140 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022141 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022142 esac
John Criswell7a73b802003-06-30 21:59:07 +000022143_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022145cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022146# If the template does not know about datarootdir, expand it.
22147# FIXME: This hack should be removed a few years after 2.60.
22148ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022149
22150case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022151 p
22152 q
22153}
22154/@datadir@/p
22155/@docdir@/p
22156/@infodir@/p
22157/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022158/@mandir@/p
22159' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022160*datarootdir*) ac_datarootdir_seen=yes;;
22161*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022162 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22163echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022164_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022165cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022166 ac_datarootdir_hack='
22167 s&@datadir@&$datadir&g
22168 s&@docdir@&$docdir&g
22169 s&@infodir@&$infodir&g
22170 s&@localedir@&$localedir&g
22171 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022172 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022173esac
22174_ACEOF
22175
22176# Neutralize VPATH when `$srcdir' = `.'.
22177# Shell code in configure.ac might set extrasub.
22178# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022179cat >>$CONFIG_STATUS <<_ACEOF
22180 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022181$extrasub
22182_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022183cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022184:t
22185/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022186s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022187s&@top_builddir@&$ac_top_builddir_sub&;t t
22188s&@srcdir@&$ac_srcdir&;t t
22189s&@abs_srcdir@&$ac_abs_srcdir&;t t
22190s&@top_srcdir@&$ac_top_srcdir&;t t
22191s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22192s&@builddir@&$ac_builddir&;t t
22193s&@abs_builddir@&$ac_abs_builddir&;t t
22194s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22195s&@INSTALL@&$ac_INSTALL&;t t
22196$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000022197" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022198
Reid Spencera773bd52006-08-04 18:18:08 +000022199test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22200 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22201 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022202 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022203which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022204echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022205which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022206
Reid Spencera773bd52006-08-04 18:18:08 +000022207 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022208 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022209 -) cat "$tmp/out"; rm -f "$tmp/out";;
22210 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22211 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022212 ;;
22213 :H)
22214 #
22215 # CONFIG_HEADER
22216 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022217_ACEOF
22218
22219# Transform confdefs.h into a sed script `conftest.defines', that
22220# substitutes the proper values into config.h.in to produce config.h.
22221rm -f conftest.defines conftest.tail
22222# First, append a space to every undef/define line, to ease matching.
22223echo 's/$/ /' >conftest.defines
22224# Then, protect against being on the right side of a sed subst, or in
22225# an unquoted here document, in config.status. If some macros were
22226# called several times there might be several #defines for the same
22227# symbol, which is useless. But do not sort them, since the last
22228# AC_DEFINE must be honored.
22229ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22230# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22231# NAME is the cpp macro being defined, VALUE is the value it is being given.
22232# PARAMS is the parameter list in the macro definition--in most cases, it's
22233# just an empty string.
22234ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22235ac_dB='\\)[ (].*,\\1define\\2'
22236ac_dC=' '
22237ac_dD=' ,'
22238
22239uniq confdefs.h |
22240 sed -n '
22241 t rset
22242 :rset
22243 s/^[ ]*#[ ]*define[ ][ ]*//
22244 t ok
22245 d
22246 :ok
22247 s/[\\&,]/\\&/g
22248 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22249 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22250 ' >>conftest.defines
22251
22252# Remove the space that was appended to ease matching.
22253# Then replace #undef with comments. This is necessary, for
22254# example, in the case of _POSIX_SOURCE, which is predefined and required
22255# on some systems where configure will not decide to define it.
22256# (The regexp can be short, since the line contains either #define or #undef.)
22257echo 's/ $//
22258s,^[ #]*u.*,/* & */,' >>conftest.defines
22259
22260# Break up conftest.defines:
22261ac_max_sed_lines=50
22262
22263# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22264# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22265# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22266# et cetera.
22267ac_in='$ac_file_inputs'
22268ac_out='"$tmp/out1"'
22269ac_nxt='"$tmp/out2"'
22270
22271while :
22272do
22273 # Write a here document:
22274 cat >>$CONFIG_STATUS <<_ACEOF
22275 # First, check the format of the line:
22276 cat >"\$tmp/defines.sed" <<\\CEOF
22277/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22278/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22279b
22280:def
22281_ACEOF
22282 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22283 echo 'CEOF
22284 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22285 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22286 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22287 grep . conftest.tail >/dev/null || break
22288 rm -f conftest.defines
22289 mv conftest.tail conftest.defines
22290done
22291rm -f conftest.defines conftest.tail
22292
22293echo "ac_result=$ac_in" >>$CONFIG_STATUS
22294cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022295 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022296 echo "/* $configure_input */" >"$tmp/config.h"
22297 cat "$ac_result" >>"$tmp/config.h"
22298 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22299 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22300echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022301 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022302 rm -f $ac_file
22303 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022304 fi
22305 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022306 echo "/* $configure_input */"
22307 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022308 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022309 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022310 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022312 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22313echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022314 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022315 esac
John Criswell7a73b802003-06-30 21:59:07 +000022316
Reid Spencera773bd52006-08-04 18:18:08 +000022317
22318 case $ac_file$ac_mode in
22319 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022320 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022321 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022322 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022323 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022324 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022325 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022326 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022327 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022328 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022329 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022330 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022331 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022332 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022333 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022334 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022335 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022336 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022337 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022338 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022339 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022340 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022341 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022342 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022343 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022344 ${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 +000022345
22346 esac
22347done # for ac_tag
22348
John Criswell7a73b802003-06-30 21:59:07 +000022349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022350{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022351_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022352chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022353ac_clean_files=$ac_clean_files_save
22354
22355
22356# configure is writing to config.log, and then calls config.status.
22357# config.status does its own redirection, appending to config.log.
22358# Unfortunately, on DOS this fails, as config.log is still kept open
22359# by configure, so config.status won't be able to write to it; its
22360# output is simply discarded. So we exec the FD to /dev/null,
22361# effectively closing config.log, so it can be properly (re)opened and
22362# appended to by config.status. When coming back to configure, we
22363# need to make the FD available again.
22364if test "$no_create" != yes; then
22365 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022366 ac_config_status_args=
22367 test "$silent" = yes &&
22368 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022369 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022370 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022371 exec 5>>config.log
22372 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22373 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022374 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022375fi
22376
John Criswell12399a12003-09-30 15:55:44 +000022377#
22378# CONFIG_SUBDIRS section.
22379#
22380if test "$no_recursion" != yes; then
22381
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022382 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022383 ac_sub_configure_args=
22384 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022385 eval "set x $ac_configure_args"
22386 shift
22387 for ac_arg
22388 do
John Criswell12399a12003-09-30 15:55:44 +000022389 if test -n "$ac_prev"; then
22390 ac_prev=
22391 continue
22392 fi
22393 case $ac_arg in
22394 -cache-file | --cache-file | --cache-fil | --cache-fi \
22395 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22396 ac_prev=cache_file ;;
22397 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22398 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22399 | --c=*)
22400 ;;
22401 --config-cache | -C)
22402 ;;
22403 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22404 ac_prev=srcdir ;;
22405 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22406 ;;
22407 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22408 ac_prev=prefix ;;
22409 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22410 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022411 *)
22412 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022413 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022414 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022415 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022416 esac
22417 done
22418
22419 # Always prepend --prefix to ensure using the same prefix
22420 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022421 ac_arg="--prefix=$prefix"
22422 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022423 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022424 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022425 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022426
22427 ac_popdir=`pwd`
22428 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22429
22430 # Do not complain, so a configure script can configure whichever
22431 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022432 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022433
Reid Spencera773bd52006-08-04 18:18:08 +000022434 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022435 echo "$as_me:$LINENO: $ac_msg" >&5
22436 echo "$ac_msg" >&6
22437 { as_dir="$ac_dir"
22438 case $as_dir in #(
22439 -*) as_dir=./$as_dir;;
22440 esac
22441 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22442 as_dirs=
22443 while :; do
22444 case $as_dir in #(
22445 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22446 *) as_qdir=$as_dir;;
22447 esac
22448 as_dirs="'$as_qdir' $as_dirs"
22449 as_dir=`$as_dirname -- "$as_dir" ||
22450$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22451 X"$as_dir" : 'X\(//\)[^/]' \| \
22452 X"$as_dir" : 'X\(//\)$' \| \
22453 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22454echo X"$as_dir" |
22455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22456 s//\1/
22457 q
22458 }
22459 /^X\(\/\/\)[^/].*/{
22460 s//\1/
22461 q
22462 }
22463 /^X\(\/\/\)$/{
22464 s//\1/
22465 q
22466 }
22467 /^X\(\/\).*/{
22468 s//\1/
22469 q
22470 }
22471 s/.*/./; q'`
22472 test -d "$as_dir" && break
22473 done
22474 test -z "$as_dirs" || eval "mkdir $as_dirs"
22475 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22476echo "$as_me: error: cannot create directory $as_dir" >&2;}
22477 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022478 ac_builddir=.
22479
Reid Spencera773bd52006-08-04 18:18:08 +000022480case "$ac_dir" in
22481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22482*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022484 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022485 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022486 case $ac_top_builddir_sub in
22487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22489 esac ;;
22490esac
22491ac_abs_top_builddir=$ac_pwd
22492ac_abs_builddir=$ac_pwd$ac_dir_suffix
22493# for backward compatibility:
22494ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022495
22496case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022497 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022498 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022499 ac_top_srcdir=$ac_top_builddir_sub
22500 ac_abs_top_srcdir=$ac_pwd ;;
22501 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022502 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022503 ac_top_srcdir=$srcdir
22504 ac_abs_top_srcdir=$srcdir ;;
22505 *) # Relative name.
22506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22507 ac_top_srcdir=$ac_top_build_prefix$srcdir
22508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022509esac
Reid Spencera773bd52006-08-04 18:18:08 +000022510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022511
22512
Reid Spencera773bd52006-08-04 18:18:08 +000022513 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022514
22515 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022516 if test -f "$ac_srcdir/configure.gnu"; then
22517 ac_sub_configure=$ac_srcdir/configure.gnu
22518 elif test -f "$ac_srcdir/configure"; then
22519 ac_sub_configure=$ac_srcdir/configure
22520 elif test -f "$ac_srcdir/configure.in"; then
22521 # This should be Cygnus configure.
22522 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022523 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022524 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22525echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022526 ac_sub_configure=
22527 fi
22528
22529 # The recursion is here.
22530 if test -n "$ac_sub_configure"; then
22531 # Make the cache file name correct relative to the subdirectory.
22532 case $cache_file in
22533 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022534 *) # Relative name.
22535 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022536 esac
22537
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022538 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22539echo "$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 +000022540 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022541 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22542 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022543 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22544echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22545 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022546 fi
22547
Reid Spencera773bd52006-08-04 18:18:08 +000022548 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022549 done
22550fi
22551