blob: e9945224b5c6b28b74ee59ba2268baadade2cdab [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
691ENABLE_DOXYGEN
692ENABLE_THREADS
693ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000694ENABLE_SHARED
Daniel Dunbardd464df2010-05-10 20:11:56 +0000695ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000696TARGETS_TO_BUILD
697LLVM_ENUM_TARGETS
698LLVM_ENUM_ASM_PRINTERS
699LLVM_ENUM_ASM_PARSERS
700LLVM_ENUM_DISASSEMBLERS
701ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000702CLANGPATH
703CLANGXXPATH
704ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000705OPTIMIZE_OPTION
706EXTRA_OPTIONS
707BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000708CXX
709CXXFLAGS
710ac_ct_CXX
711NM
712ifGNUmake
713LN_S
714CMP
715CP
716DATE
717FIND
718MKDIR
719MV
720RANLIB
721AR
722RM
723SED
724TAR
725BINPWD
726GRAPHVIZ
727DOT
728FDP
729NEATO
730TWOPI
731CIRCO
732GV
733DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000734XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000735PERL
736HAVE_PERL
737INSTALL_PROGRAM
738INSTALL_SCRIPT
739INSTALL_DATA
740BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000741CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000742DOXYGEN
743GROFF
744GZIP
745POD2HTML
746POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000747PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000748RUNTEST
749TCLSH
750ZIP
751OCAMLC
752OCAMLOPT
753OCAMLDEP
754OCAMLDOC
755GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000756HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000757INSTALL_LTDL_TRUE
758INSTALL_LTDL_FALSE
759CONVENIENCE_LTDL_TRUE
760CONVENIENCE_LTDL_FALSE
761LIBADD_DL
762LLVMGCCCOMMAND
763LLVMGXXCOMMAND
764LLVMGCC
765LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000766LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000767NO_VARIADIC_MACROS
768NO_MISSING_FIELD_INITIALIZERS
769USE_UDIS86
770USE_OPROFILE
771HAVE_PTHREAD
772HUGE_VAL_SANITY
773MMAP_FILE
774LLVMCC1
775LLVMCC1PLUS
776LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000777LLVMGCC_LANGS
778SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000779SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000780LLVM_PREFIX
781LLVM_BINDIR
782LLVM_LIBDIR
783LLVM_DATADIR
784LLVM_DOCSDIR
785LLVM_ETCDIR
786LLVM_INCLUDEDIR
787LLVM_INFODIR
788LLVM_MANDIR
789LLVM_CONFIGTIME
790BINDINGS_TO_BUILD
791ALL_BINDINGS
792OCAML_LIBDIR
793ENABLE_VISIBILITY_INLINES_HIDDEN
794RPATH
795RDYNAMIC
796LIBOBJS
797LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000798ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000799 ac_precious_vars='build_alias
800host_alias
801target_alias
802CC
803CFLAGS
804LDFLAGS
805CPPFLAGS
806CPP
807CXX
808CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000809CCC'
John Criswell0157f502010-03-19 21:31:39 +0000810ac_subdirs_all='projects/llvm-gcc
811projects/test-suite
812projects/llvm-test
813projects/poolalloc
814projects/llvm-poolalloc
815projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000817projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000818projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000819projects/llvm-java
820projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000821projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000822projects/llvm-kernel
823tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000824
825# Initialize some variables set by options.
826ac_init_help=
827ac_init_version=false
828# The variables have the same names as the options, with
829# dashes changed to underlines.
830cache_file=/dev/null
831exec_prefix=NONE
832no_create=
833no_recursion=
834prefix=NONE
835program_prefix=NONE
836program_suffix=NONE
837program_transform_name=s,x,x,
838silent=
839site=
840srcdir=
841verbose=
842x_includes=NONE
843x_libraries=NONE
844
845# Installation directory options.
846# These are left unexpanded so users can "make install exec_prefix=/foo"
847# and all the variables that are supposed to be based on exec_prefix
848# by default will actually change.
849# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000850# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000851bindir='${exec_prefix}/bin'
852sbindir='${exec_prefix}/sbin'
853libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000854datarootdir='${prefix}/share'
855datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000856sysconfdir='${prefix}/etc'
857sharedstatedir='${prefix}/com'
858localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000859includedir='${prefix}/include'
860oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000861docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862infodir='${datarootdir}/info'
863htmldir='${docdir}'
864dvidir='${docdir}'
865pdfdir='${docdir}'
866psdir='${docdir}'
867libdir='${exec_prefix}/lib'
868localedir='${datarootdir}/locale'
869mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000870
871ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000872ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000873for ac_option
874do
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000877 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000878 ac_prev=
879 continue
880 fi
881
Reid Spencera773bd52006-08-04 18:18:08 +0000882 case $ac_option in
883 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *) ac_optarg=yes ;;
885 esac
John Criswell7a73b802003-06-30 21:59:07 +0000886
887 # Accept the important Cygnus configure options, so we can diagnose typos.
888
Reid Spencera773bd52006-08-04 18:18:08 +0000889 case $ac_dashdash$ac_option in
890 --)
891 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000892
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
897
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
902
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
909
910 --config-cache | -C)
911 cache_file=config.cache ;;
912
Reid Spencera773bd52006-08-04 18:18:08 +0000913 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000914 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000916 datadir=$ac_optarg ;;
917
Reid Spencera773bd52006-08-04 18:18:08 +0000918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
924
John Criswell7a73b802003-06-30 21:59:07 +0000925 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000926 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000927 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000928 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930 { (exit 1); exit 1; }; }
931 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000933
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
938
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000943
944 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000945 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000946 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000947 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
948 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
949 { (exit 1); exit 1; }; }
950 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
951 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000952
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
961
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
964 with_gas=yes ;;
965
966 -help | --help | --hel | --he | -h)
967 ac_init_help=long ;;
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
972
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
977
Reid Spencera773bd52006-08-04 18:18:08 +0000978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 ac_prev=htmldir ;;
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 | --ht=*)
982 htmldir=$ac_optarg ;;
983
John Criswell7a73b802003-06-30 21:59:07 +0000984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
990
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 ac_prev=infodir ;;
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
995
996 -libdir | --libdir | --libdi | --libd)
997 ac_prev=libdir ;;
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 libdir=$ac_optarg ;;
1000
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1007
Reid Spencera773bd52006-08-04 18:18:08 +00001008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1012
John Criswell7a73b802003-06-30 21:59:07 +00001013 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001014 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001018 localstatedir=$ac_optarg ;;
1019
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 ac_prev=mandir ;;
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1024
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1027 with_fp=no ;;
1028
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1031 no_create=yes ;;
1032
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 no_recursion=yes ;;
1036
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1045
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 ac_prev=prefix ;;
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1050
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1057
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1064
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1081
Reid Spencera773bd52006-08-04 18:18:08 +00001082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 ac_prev=pdfdir ;;
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1086
1087 -psdir | --psdir | --psdi | --psd | --ps)
1088 ac_prev=psdir ;;
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 psdir=$ac_optarg ;;
1091
John Criswell7a73b802003-06-30 21:59:07 +00001092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 silent=yes ;;
1095
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 ac_prev=sbindir ;;
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 | --sbi=* | --sb=*)
1100 sbindir=$ac_optarg ;;
1101
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1105 | --sha | --sh)
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 | --sha=* | --sh=*)
1111 sharedstatedir=$ac_optarg ;;
1112
1113 -site | --site | --sit)
1114 ac_prev=site ;;
1115 -site=* | --site=* | --sit=*)
1116 site=$ac_optarg ;;
1117
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 ac_prev=srcdir ;;
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1122
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1129
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1134
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 verbose=yes ;;
1137
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1140
1141 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001142 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001143 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001144 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid package name: $ac_package" >&2
1146 { (exit 1); exit 1; }; }
1147 ac_package=`echo $ac_package| sed 's/-/_/g'`
1148 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001149
1150 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001151 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001152 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid package name: $ac_package" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_package=`echo $ac_package | sed 's/-/_/g'`
1157 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001158
1159 --x)
1160 # Obsolete; use --with-x.
1161 with_x=yes ;;
1162
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1169
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001177 -*) { echo "$as_me: error: unrecognized option: $ac_option
1178Try \`$0 --help' for more information." >&2
1179 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001180 ;;
1181
1182 *=*)
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001185 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1186 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1187 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001188 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001189 export $ac_envvar ;;
1190
1191 *)
1192 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001193 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001195 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001196 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 ;;
1198
1199 esac
1200done
1201
1202if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001204 { echo "$as_me: error: missing argument to $ac_option" >&2
1205 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001206fi
1207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001208# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001209for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001213do
Reid Spencera773bd52006-08-04 18:18:08 +00001214 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001215 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001218 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001219 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1220 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001221done
1222
1223# There might be people who depend on the old broken behavior: `$host'
1224# used to hold the argument of --host etc.
1225# FIXME: To remove some day.
1226build=$build_alias
1227host=$host_alias
1228target=$target_alias
1229
1230# FIXME: To remove some day.
1231if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001234 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239fi
1240
1241ac_tool_prefix=
1242test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244test "$silent" = yes && exec 6>/dev/null
1245
1246
Reid Spencera773bd52006-08-04 18:18:08 +00001247ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248ac_ls_di=`ls -di .` &&
1249ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001250 { echo "$as_me: error: Working directory cannot be determined" >&2
1251 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001252test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001253 { echo "$as_me: error: pwd does not report name of working directory" >&2
1254 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001255
1256
John Criswell7a73b802003-06-30 21:59:07 +00001257# Find the source files, if location was not specified.
1258if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001260 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001261 ac_confdir=`$as_dirname -- "$0" ||
1262$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$0" : 'X\(//\)[^/]' \| \
1264 X"$0" : 'X\(//\)$' \| \
1265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1266echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001284 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001285 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001286 srcdir=..
1287 fi
1288else
1289 ac_srcdir_defaulted=no
1290fi
Reid Spencera773bd52006-08-04 18:18:08 +00001291if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001293 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1294 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001295fi
Reid Spencera773bd52006-08-04 18:18:08 +00001296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001298 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1299 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001300 pwd)`
1301# When building in place, set srcdir=.
1302if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1304fi
1305# Remove unnecessary trailing slashes from srcdir.
1306# Double slashes in file names in object file debugging info
1307# mess up M-x gdb in Emacs.
1308case $srcdir in
1309*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310esac
1311for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316done
John Criswell7a73b802003-06-30 21:59:07 +00001317
1318#
1319# Report the --help message.
1320#
1321if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001325\`configure' configures llvm 2.9svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001326
1327Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330VAR=VALUE. See below for descriptions of some of the useful variables.
1331
1332Defaults for the options are specified in brackets.
1333
1334Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344
John Criswell7a73b802003-06-30 21:59:07 +00001345Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001347 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001349 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001350
1351By default, \`make install' will install all the files in
1352\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354for instance \`--prefix=\$HOME'.
1355
1356For better control, use the options below.
1357
1358Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001378_ACEOF
1379
1380 cat <<\_ACEOF
1381
1382System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 --target=TARGET configure for building compilers for TARGET [HOST]
1386_ACEOF
1387fi
1388
1389if test -n "$ac_init_help"; then
1390 case $ac_init_help in
Eric Christopherb26697c2010-09-06 18:47:10 +00001391 short | recursive ) echo "Configuration of llvm 2.9svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001392 esac
1393 cat <<\_ACEOF
1394
1395Optional Features:
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001398 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001399 --enable-optimized Compile with optimizations enabled (default is NO)
1400 --enable-profiling Compile with profiling enabled (default is NO)
1401 --enable-assertions Compile with assertion checks enabled (default is
1402 YES)
David Greenea696d242007-06-28 19:36:08 +00001403 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001404 Compile with expensive debug checks enabled (default
1405 is NO)
1406 --enable-debug-runtime Build runtime libs with debug symbols (default is
1407 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001408 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1409 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001410 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001411 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001412 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001413 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001414 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001415 --enable-shared Build a shared library and link tools against it
1416 (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001417 --enable-timestamps Enable embedding timestamp information in build
1418 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
1421 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001422 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1423 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001424 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1425 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001426 --enable-bindings Build specific language bindings:
1427 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001428 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001429 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001430
1431Optional Packages:
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001434 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1435 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001436 --with-llvmgcc Specify location of llvm-gcc driver (default
1437 searches PATH)
1438 --with-llvmgxx Specify location of llvm-g++ driver (default
1439 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001440 --with-clang Specify location of clang compiler (default is
1441 --with-built-clang)
1442 --with-built-clang Use the compiled Clang as the LLVM compiler
1443 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001444 --with-optimize-option Select the compiler options to use for optimized
1445 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001446 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001447 --with-ocaml-libdir Specify install location for ocaml bindings (default
1448 is stdlib)
Chandler Carruth6b241162010-10-19 08:21:25 +00001449 --with-clang-resource-dir
1450 Relative directory from the Clang binary for
1451 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001452 --with-c-include-dirs Colon separated list of directories clang will
1453 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001454 --with-cxx-include-root Directory with the libstdc++ headers.
1455 --with-cxx-include-arch Architecture of the libstdc++ headers.
1456 --with-cxx-include-32bit-dir
1457 32 bit multilib dir.
1458 --with-cxx-include-64bit-dir
1459 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001460 --with-binutils-include Specify path to binutils/include/ containing
1461 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001462 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001463 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1464 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001465 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001466 --with-oprofile=<prefix>
1467 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001468
1469Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001470 CC C compiler command
1471 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001472 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1473 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001474 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001475 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001476 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001477 CXX C++ compiler command
1478 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001479
1480Use these variables to override the choices made by `configure' or to help
1481it to find libraries and programs with nonstandard names/locations.
1482
1483Report bugs to <llvmbugs@cs.uiuc.edu>.
1484_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001485ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001486fi
1487
1488if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001491 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001492 ac_builddir=.
1493
Reid Spencera773bd52006-08-04 18:18:08 +00001494case "$ac_dir" in
1495.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001497 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001498 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001499 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 esac ;;
1504esac
1505ac_abs_top_builddir=$ac_pwd
1506ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507# for backward compatibility:
1508ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001509
1510case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001511 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001512 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001516 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1519 *) # Relative name.
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001523esac
Reid Spencera773bd52006-08-04 18:18:08 +00001524ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001525
Reid Spencera773bd52006-08-04 18:18:08 +00001526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001534 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001535 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001538 done
1539fi
1540
Reid Spencera773bd52006-08-04 18:18:08 +00001541test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001542if $ac_init_version; then
1543 cat <<\_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001544llvm configure 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001545generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001547Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15482002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001549This configure script is free software; the Free Software Foundation
1550gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001551
John Criswell5a129712010-03-19 21:04:16 +00001552Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001553_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001554 exit
John Criswell7a73b802003-06-30 21:59:07 +00001555fi
Reid Spencera773bd52006-08-04 18:18:08 +00001556cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001557This file contains any messages produced by compilers while
1558running configure, to aid debugging if configure makes a mistake.
1559
Eric Christopherb26697c2010-09-06 18:47:10 +00001560It was created by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001561generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001562
1563 $ $0 $@
1564
1565_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001566exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001567{
1568cat <<_ASUNAME
1569## --------- ##
1570## Platform. ##
1571## --------- ##
1572
1573hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1574uname -m = `(uname -m) 2>/dev/null || echo unknown`
1575uname -r = `(uname -r) 2>/dev/null || echo unknown`
1576uname -s = `(uname -s) 2>/dev/null || echo unknown`
1577uname -v = `(uname -v) 2>/dev/null || echo unknown`
1578
1579/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1580/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1581
1582/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1583/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1584/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001585/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001586/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1587/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1588/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1589
1590_ASUNAME
1591
1592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593for as_dir in $PATH
1594do
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001597 echo "PATH: $as_dir"
1598done
Reid Spencera773bd52006-08-04 18:18:08 +00001599IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001600
1601} >&5
1602
1603cat >&5 <<_ACEOF
1604
1605
1606## ----------- ##
1607## Core tests. ##
1608## ----------- ##
1609
1610_ACEOF
1611
1612
1613# Keep a trace of the command line.
1614# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001615# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001616# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001617# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001618ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001619ac_configure_args0=
1620ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001621ac_must_keep_next=false
1622for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001623do
John Criswell0c38eaf2003-09-10 15:17:25 +00001624 for ac_arg
1625 do
1626 case $ac_arg in
1627 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1628 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1629 | -silent | --silent | --silen | --sile | --sil)
1630 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001631 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001632 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001633 esac
1634 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001635 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001636 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001637 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001639 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001641 case $ac_arg in
1642 *=* | --config-cache | -C | -disable-* | --disable-* \
1643 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1644 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1645 | -with-* | --with-* | -without-* | --without-* | --x)
1646 case "$ac_configure_args0 " in
1647 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1648 esac
1649 ;;
1650 -* ) ac_must_keep_next=true ;;
1651 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001653 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001654 ;;
1655 esac
1656 done
John Criswell7a73b802003-06-30 21:59:07 +00001657done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001658$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1659$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 +00001660
1661# When interrupted or exit'd, cleanup temporary files, and complete
1662# config.log. We remove comments because anyway the quotes in there
1663# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001664# WARNING: Use '\'' to represent an apostrophe within the trap.
1665# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001666trap 'exit_status=$?
1667 # Save into config.log some information that might help in debugging.
1668 {
1669 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001670
John Criswell7a73b802003-06-30 21:59:07 +00001671 cat <<\_ASBOX
1672## ---------------- ##
1673## Cache variables. ##
1674## ---------------- ##
1675_ASBOX
1676 echo
1677 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001678(
1679 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1680 eval ac_val=\$$ac_var
1681 case $ac_val in #(
1682 *${as_nl}*)
1683 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001684 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1685echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001686 esac
1687 case $ac_var in #(
1688 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001689 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001690 esac ;;
1691 esac
1692 done
John Criswell7a73b802003-06-30 21:59:07 +00001693 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001694 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1695 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001696 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001697 "s/'\''/'\''\\\\'\'''\''/g;
1698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1699 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001700 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001701 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001702 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001703 esac |
1704 sort
1705)
John Criswell7a73b802003-06-30 21:59:07 +00001706 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001707
1708 cat <<\_ASBOX
1709## ----------------- ##
1710## Output variables. ##
1711## ----------------- ##
1712_ASBOX
1713 echo
1714 for ac_var in $ac_subst_vars
1715 do
Reid Spencera773bd52006-08-04 18:18:08 +00001716 eval ac_val=\$$ac_var
1717 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001718 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001719 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001720 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001721 done | sort
1722 echo
1723
1724 if test -n "$ac_subst_files"; then
1725 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001726## ------------------- ##
1727## File substitutions. ##
1728## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001729_ASBOX
1730 echo
1731 for ac_var in $ac_subst_files
1732 do
Reid Spencera773bd52006-08-04 18:18:08 +00001733 eval ac_val=\$$ac_var
1734 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001735 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001736 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001737 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001738 done | sort
1739 echo
1740 fi
1741
John Criswell7a73b802003-06-30 21:59:07 +00001742 if test -s confdefs.h; then
1743 cat <<\_ASBOX
1744## ----------- ##
1745## confdefs.h. ##
1746## ----------- ##
1747_ASBOX
1748 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001749 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001750 echo
1751 fi
1752 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001753 echo "$as_me: caught signal $ac_signal"
1754 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001755 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001756 rm -f core *.core core.conftest.* &&
1757 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001758 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001759' 0
John Criswell7a73b802003-06-30 21:59:07 +00001760for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001761 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001762done
1763ac_signal=0
1764
1765# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001766rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001767
1768# Predefined preprocessor variables.
1769
1770cat >>confdefs.h <<_ACEOF
1771#define PACKAGE_NAME "$PACKAGE_NAME"
1772_ACEOF
1773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001774
John Criswell7a73b802003-06-30 21:59:07 +00001775cat >>confdefs.h <<_ACEOF
1776#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
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_VERSION "$PACKAGE_VERSION"
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_STRING "$PACKAGE_STRING"
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_BUGREPORT "$PACKAGE_BUGREPORT"
1792_ACEOF
1793
1794
1795# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001797if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001799elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001801else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001802 set x "$ac_default_prefix/share/config.site" \
1803 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001804fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805shift
1806for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001807do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001808 if test -r "$ac_site_file"; then
1809 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1810echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001811 sed 's/^/| /' "$ac_site_file" >&5
1812 . "$ac_site_file"
1813 fi
1814done
1815
1816if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001817 # Some versions of bash will fail to source /dev/null (special
1818 # files actually), so we avoid doing that.
1819 if test -f "$cache_file"; then
1820 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1821echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001822 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001823 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1824 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001825 esac
1826 fi
1827else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001828 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1829echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001830 >$cache_file
1831fi
1832
1833# Check that the precious variables saved in the cache have kept the same
1834# value.
1835ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001836for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001837 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1838 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001839 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1840 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001841 case $ac_old_set,$ac_new_set in
1842 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001843 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1844echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001845 ac_cache_corrupted=: ;;
1846 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001847 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1848echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001849 ac_cache_corrupted=: ;;
1850 ,);;
1851 *)
1852 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001853 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1854echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1855 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1856echo "$as_me: former value: $ac_old_val" >&2;}
1857 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1858echo "$as_me: current value: $ac_new_val" >&2;}
1859 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001860 fi;;
1861 esac
1862 # Pass precious variables to config.status.
1863 if test "$ac_new_set" = set; then
1864 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001865 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001866 *) ac_arg=$ac_var=$ac_new_val ;;
1867 esac
1868 case " $ac_configure_args " in
1869 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001870 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001871 esac
1872 fi
1873done
1874if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001875 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1876echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1877 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1878echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1879 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001880fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
Reid Spencera773bd52006-08-04 18:18:08 +00001905
John Criswell7a73b802003-06-30 21:59:07 +00001906ac_ext=c
1907ac_cpp='$CPP $CPPFLAGS'
1908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911
1912
1913
John Criswell5a129712010-03-19 21:04:16 +00001914LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001915
1916
1917
1918
1919
1920
1921
John Criswell7a73b802003-06-30 21:59:07 +00001922ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001923for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001924 if test -f "$ac_dir/install-sh"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/install-sh -c"
1927 break
1928 elif test -f "$ac_dir/install.sh"; then
1929 ac_aux_dir=$ac_dir
1930 ac_install_sh="$ac_aux_dir/install.sh -c"
1931 break
1932 elif test -f "$ac_dir/shtool"; then
1933 ac_aux_dir=$ac_dir
1934 ac_install_sh="$ac_aux_dir/shtool install -c"
1935 break
1936 fi
John Criswell7a73b802003-06-30 21:59:07 +00001937done
1938if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001939 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1940echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1941 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001942fi
Reid Spencera773bd52006-08-04 18:18:08 +00001943
1944# These three variables are undocumented and unsupported,
1945# and are intended to be withdrawn in a future Autoconf release.
1946# They can cause serious problems if a builder's source tree is in a directory
1947# whose full name contains unusual characters.
1948ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1949ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1950ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1951
John Criswell7a73b802003-06-30 21:59:07 +00001952
John Criswell392aaa32003-07-22 19:18:09 +00001953
Reid Spencer2706f8c2004-09-19 23:53:36 +00001954if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001955 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001956 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1957echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1958 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001959 fi
John Criswell93e1c722003-09-15 17:04:06 +00001960fi
1961
John Criswell0157f502010-03-19 21:31:39 +00001962
1963
1964if test -d ${srcdir}/projects/llvm-gcc ; then
1965 subdirs="$subdirs projects/llvm-gcc"
1966
1967fi
1968
1969if test -d ${srcdir}/projects/test-suite ; then
1970 subdirs="$subdirs projects/test-suite"
1971
1972fi
1973
1974if test -d ${srcdir}/projects/llvm-test ; then
1975 subdirs="$subdirs projects/llvm-test"
1976
1977fi
1978
1979if test -d ${srcdir}/projects/poolalloc ; then
1980 subdirs="$subdirs projects/poolalloc"
1981
1982fi
1983
1984if test -d ${srcdir}/projects/llvm-poolalloc ; then
1985 subdirs="$subdirs projects/llvm-poolalloc"
1986
1987fi
1988
John Criswell33a911a2003-11-25 20:36:46 +00001989for i in `ls ${srcdir}/projects`
1990do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001991 if test -d ${srcdir}/projects/${i} ; then
1992 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001993 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001994 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001995 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001996 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001997 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001998 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001999 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002000;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002001 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002002 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002003 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002004 ;;
John Criswell7def2932010-02-25 22:57:19 +00002005 safecode) subdirs="$subdirs projects/safecode"
2006 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002007 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002008 ;;
John Criswell52c02862010-03-25 13:59:09 +00002009 llvm-gcc) ;;
2010 test-suite) ;;
2011 llvm-test) ;;
2012 poolalloc) ;;
2013 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002014 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002015 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2016echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002017 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002018 esac
John Criswell33a911a2003-11-25 20:36:46 +00002019 fi
2020done
John Criswell559a6c12003-09-30 16:31:48 +00002021
Tobias Grosserbaaadb22010-10-30 00:54:26 +00002022# Check whether --enable-polly was given.
2023if test "${enable_polly+set}" = set; then
2024 enableval=$enable_polly;
2025else
2026 enableval=default
2027fi
2028
2029case "$enableval" in
2030 yes) ENABLE_POLLY=1
2031 ;;
2032 no) ENABLE_POLLY=0
2033 ;;
2034 default) ENABLE_POLLY=1
2035 ;;
2036 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2037echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2038 { (exit 1); exit 1; }; } ;;
2039esac
2040
2041
2042if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2043 LLVM_HAS_POLLY=1
2044
2045 subdirs="$subdirs tools/polly"
2046
2047fi
2048
John Criswell7a73b802003-06-30 21:59:07 +00002049
2050# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002051$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002052 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2053echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2054 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002056{ echo "$as_me:$LINENO: checking build system type" >&5
2057echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2058if test "${ac_cv_build+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002060else
Reid Spencera773bd52006-08-04 18:18:08 +00002061 ac_build_alias=$build_alias
2062test "x$ac_build_alias" = x &&
2063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2064test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002065 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2066echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2067 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002068ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002069 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2070echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2071 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002072
2073fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002074{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2075echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002076case $ac_cv_build in
2077*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002078*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2079echo "$as_me: error: invalid value of canonical build" >&2;}
2080 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002081esac
John Criswell7a73b802003-06-30 21:59:07 +00002082build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002083ac_save_IFS=$IFS; IFS='-'
2084set x $ac_cv_build
2085shift
2086build_cpu=$1
2087build_vendor=$2
2088shift; shift
2089# Remember, the first character of IFS is used to create $*,
2090# except with old shells:
2091build_os=$*
2092IFS=$ac_save_IFS
2093case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002094
2095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002096{ echo "$as_me:$LINENO: checking host system type" >&5
2097echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2098if test "${ac_cv_host+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002100else
Reid Spencera773bd52006-08-04 18:18:08 +00002101 if test "x$host_alias" = x; then
2102 ac_cv_host=$ac_cv_build
2103else
2104 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002105 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2106echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2107 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002108fi
John Criswell7a73b802003-06-30 21:59:07 +00002109
2110fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002111{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2112echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002113case $ac_cv_host in
2114*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002115*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2116echo "$as_me: error: invalid value of canonical host" >&2;}
2117 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002118esac
John Criswell7a73b802003-06-30 21:59:07 +00002119host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002120ac_save_IFS=$IFS; IFS='-'
2121set x $ac_cv_host
2122shift
2123host_cpu=$1
2124host_vendor=$2
2125shift; shift
2126# Remember, the first character of IFS is used to create $*,
2127# except with old shells:
2128host_os=$*
2129IFS=$ac_save_IFS
2130case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002131
2132
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002133{ echo "$as_me:$LINENO: checking target system type" >&5
2134echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2135if test "${ac_cv_target+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002137else
Reid Spencera773bd52006-08-04 18:18:08 +00002138 if test "x$target_alias" = x; then
2139 ac_cv_target=$ac_cv_host
2140else
2141 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002142 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2143echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2144 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002145fi
John Criswell7a73b802003-06-30 21:59:07 +00002146
2147fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002148{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2149echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002150case $ac_cv_target in
2151*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002152*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2153echo "$as_me: error: invalid value of canonical target" >&2;}
2154 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002155esac
John Criswell7a73b802003-06-30 21:59:07 +00002156target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002157ac_save_IFS=$IFS; IFS='-'
2158set x $ac_cv_target
2159shift
2160target_cpu=$1
2161target_vendor=$2
2162shift; shift
2163# Remember, the first character of IFS is used to create $*,
2164# except with old shells:
2165target_os=$*
2166IFS=$ac_save_IFS
2167case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002168
2169
2170# The aliases save the names the user supplied, while $host etc.
2171# will get canonicalized.
2172test -n "$target_alias" &&
2173 test "$program_prefix$program_suffix$program_transform_name" = \
2174 NONENONEs,x,x, &&
2175 program_prefix=${target_alias}-
2176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002177{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2178echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2179if test "${llvm_cv_os_type+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002181else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002182 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002183 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002184 llvm_cv_link_all_option="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002186 llvm_cv_os_type="AIX"
2187 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002188 *-*-irix*)
2189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191 llvm_cv_os_type="IRIX"
2192 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002193 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002196 llvm_cv_os_type="Cygwin"
2197 llvm_cv_platform_type="Unix" ;;
2198 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002199 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002200 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002201 llvm_cv_os_type="Darwin"
2202 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002203 *-*-minix*)
2204 llvm_cv_link_all_option="-Wl,-all_load"
2205 llvm_cv_no_link_all_option="-Wl,-noall_load"
2206 llvm_cv_os_type="Minix"
2207 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002208 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002209 llvm_cv_link_all_option="-Wl,--whole-archive"
2210 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002211 llvm_cv_os_type="FreeBSD"
2212 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002213 *-*-openbsd*)
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 Spencer1014ab42006-04-19 23:47:16 +00002216 llvm_cv_os_type="OpenBSD"
2217 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002218 *-*-netbsd*)
2219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2221 llvm_cv_os_type="NetBSD"
2222 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002223 *-*-dragonfly*)
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="DragonFly"
2227 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002228 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002231 llvm_cv_os_type="HP-UX"
2232 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002233 *-*-interix*)
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"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002236 llvm_cv_os_type="Interix"
2237 llvm_cv_platform_type="Unix" ;;
2238 *-*-linux*)
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="Linux"
2242 llvm_cv_platform_type="Unix" ;;
2243 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002244 llvm_cv_link_all_option="-Wl,-z,allextract"
2245 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246 llvm_cv_os_type="SunOS"
2247 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002248 *-*-auroraux*)
2249 llvm_cv_link_all_option="-Wl,-z,allextract"
2250 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2251 llvm_cv_os_type="AuroraUX"
2252 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002256 llvm_cv_os_type="Win32"
2257 llvm_cv_platform_type="Win32" ;;
2258 *-*-mingw*)
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="MingW"
2262 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002263 *-*-haiku*)
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="Haiku"
2267 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002268 *-unknown-eabi*)
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="Freestanding"
2272 llvm_cv_platform_type="Unix" ;;
2273 *-unknown-elf*)
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" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002278 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002279 llvm_cv_link_all_option=""
2280 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002281 llvm_cv_os_type="Unknown"
2282 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002283esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002284fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002285{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2286echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002288{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2289echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2290if test "${llvm_cv_target_os_type+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002292else
2293 case $target in
2294 *-*-aix*)
2295 llvm_cv_target_os_type="AIX" ;;
2296 *-*-irix*)
2297 llvm_cv_target_os_type="IRIX" ;;
2298 *-*-cygwin*)
2299 llvm_cv_target_os_type="Cygwin" ;;
2300 *-*-darwin*)
2301 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002302 *-*-minix*)
2303 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002304 *-*-freebsd*)
2305 llvm_cv_target_os_type="FreeBSD" ;;
2306 *-*-openbsd*)
2307 llvm_cv_target_os_type="OpenBSD" ;;
2308 *-*-netbsd*)
2309 llvm_cv_target_os_type="NetBSD" ;;
2310 *-*-dragonfly*)
2311 llvm_cv_target_os_type="DragonFly" ;;
2312 *-*-hpux*)
2313 llvm_cv_target_os_type="HP-UX" ;;
2314 *-*-interix*)
2315 llvm_cv_target_os_type="Interix" ;;
2316 *-*-linux*)
2317 llvm_cv_target_os_type="Linux" ;;
2318 *-*-solaris*)
2319 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002320 *-*-auroraux*)
2321 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002322 *-*-win32*)
2323 llvm_cv_target_os_type="Win32" ;;
2324 *-*-mingw*)
2325 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002326 *-*-haiku*)
2327 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002328 *-unknown-eabi*)
2329 llvm_cv_target_os_type="Freestanding" ;;
2330 *)
2331 llvm_cv_target_os_type="Unknown" ;;
2332esac
2333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002334{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2335echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002336
Reid Spencer7b3e8512004-12-24 06:29:05 +00002337if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002338 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2339echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2340 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002341fi
2342
Reid Spencer7b3e8512004-12-24 06:29:05 +00002343OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002344
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002345HOST_OS=$llvm_cv_os_type
2346
2347TARGET_OS=$llvm_cv_target_os_type
2348
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002349
Reid Spencera773bd52006-08-04 18:18:08 +00002350LINKALL=$llvm_cv_link_all_option
2351
2352NOLINKALL=$llvm_cv_no_link_all_option
2353
2354
Reid Spencer7b3e8512004-12-24 06:29:05 +00002355case $llvm_cv_platform_type in
2356 Unix)
2357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002358cat >>confdefs.h <<\_ACEOF
2359#define LLVM_ON_UNIX 1
2360_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002361
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002362 LLVM_ON_UNIX=1
2363
2364 LLVM_ON_WIN32=0
2365
Reid Spencer7b3e8512004-12-24 06:29:05 +00002366 ;;
2367 Win32)
2368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002369cat >>confdefs.h <<\_ACEOF
2370#define LLVM_ON_WIN32 1
2371_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002372
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002373 LLVM_ON_UNIX=0
2374
2375 LLVM_ON_WIN32=1
2376
Reid Spencer7b3e8512004-12-24 06:29:05 +00002377 ;;
2378esac
2379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002380{ echo "$as_me:$LINENO: checking target architecture" >&5
2381echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2382if test "${llvm_cv_target_arch+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002384else
2385 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002386 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002387 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002388 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2389 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002390 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002391 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002392 mips-*) llvm_cv_target_arch="Mips" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002393 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002394 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002395 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002396 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002397 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002398 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002399 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002400esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002402{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2403echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002404
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002405if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002406 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2407echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408fi
John Criswell76595452003-07-01 22:07:39 +00002409
Nick Lewycky83fc4472009-09-29 05:48:51 +00002410# Determine the LLVM native architecture for the target
2411case "$llvm_cv_target_arch" in
2412 x86) LLVM_NATIVE_ARCH="X86" ;;
2413 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2414 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2415esac
2416
2417ARCH=$llvm_cv_target_arch
2418
2419
2420ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421ac_cpp='$CPP $CPPFLAGS'
2422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002425if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2427set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002428{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430if test "${ac_cv_prog_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002432else
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2435else
2436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437for as_dir in $PATH
2438do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 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 +00002443 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002445 break 2
2446 fi
2447done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002448done
Reid Spencera773bd52006-08-04 18:18:08 +00002449IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450
2451fi
2452fi
2453CC=$ac_cv_prog_CC
2454if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002455 { echo "$as_me:$LINENO: result: $CC" >&5
2456echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002457else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002458 { echo "$as_me:$LINENO: result: no" >&5
2459echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460fi
2461
Reid Spencera773bd52006-08-04 18:18:08 +00002462
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002463fi
2464if test -z "$ac_cv_prog_CC"; then
2465 ac_ct_CC=$CC
2466 # Extract the first word of "gcc", so it can be a program name with args.
2467set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002472else
2473 if test -n "$ac_ct_CC"; then
2474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2475else
2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477for as_dir in $PATH
2478do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 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 +00002483 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002485 break 2
2486 fi
2487done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002488done
Reid Spencera773bd52006-08-04 18:18:08 +00002489IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002490
2491fi
2492fi
2493ac_ct_CC=$ac_cv_prog_ac_ct_CC
2494if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002495 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2496echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002498 { echo "$as_me:$LINENO: result: no" >&5
2499echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500fi
2501
Reid Spencera773bd52006-08-04 18:18:08 +00002502 if test "x$ac_ct_CC" = x; then
2503 CC=""
2504 else
2505 case $cross_compiling:$ac_tool_warned in
2506yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002507{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2508whose name does not start with the host triplet. If you think this
2509configuration is useful to you, please write to autoconf@gnu.org." >&5
2510echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2511whose name does not start with the host triplet. If you think this
2512configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002513ac_tool_warned=yes ;;
2514esac
2515 CC=$ac_ct_CC
2516 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002517else
2518 CC="$ac_cv_prog_CC"
2519fi
2520
2521if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002522 if test -n "$ac_tool_prefix"; then
2523 # 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 +00002524set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002525{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527if test "${ac_cv_prog_CC+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002529else
2530 if test -n "$CC"; then
2531 ac_cv_prog_CC="$CC" # Let the user override the test.
2532else
2533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534for as_dir in $PATH
2535do
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002540 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002542 break 2
2543 fi
2544done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002545done
Reid Spencera773bd52006-08-04 18:18:08 +00002546IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547
2548fi
2549fi
2550CC=$ac_cv_prog_CC
2551if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002552 { echo "$as_me:$LINENO: result: $CC" >&5
2553echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002554else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002555 { echo "$as_me:$LINENO: result: no" >&5
2556echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557fi
2558
Reid Spencera773bd52006-08-04 18:18:08 +00002559
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002560 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002561fi
2562if test -z "$CC"; then
2563 # Extract the first word of "cc", so it can be a program name with args.
2564set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567if test "${ac_cv_prog_CC+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002569else
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2572else
2573 ac_prog_rejected=no
2574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575for as_dir in $PATH
2576do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 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 +00002581 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2582 ac_prog_rejected=yes
2583 continue
2584 fi
2585 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002587 break 2
2588 fi
2589done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002590done
Reid Spencera773bd52006-08-04 18:18:08 +00002591IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002592
2593if test $ac_prog_rejected = yes; then
2594 # We found a bogon in the path, so make sure we never use it.
2595 set dummy $ac_cv_prog_CC
2596 shift
2597 if test $# != 0; then
2598 # We chose a different compiler from the bogus one.
2599 # However, it has the same basename, so the bogon will be chosen
2600 # first if we set CC to just the basename; use the full file name.
2601 shift
2602 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2603 fi
2604fi
2605fi
2606fi
2607CC=$ac_cv_prog_CC
2608if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002609 { echo "$as_me:$LINENO: result: $CC" >&5
2610echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002611else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002612 { echo "$as_me:$LINENO: result: no" >&5
2613echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614fi
2615
Reid Spencera773bd52006-08-04 18:18:08 +00002616
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617fi
2618if test -z "$CC"; then
2619 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002620 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002621 do
2622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2623set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2626if test "${ac_cv_prog_CC+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002628else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629 if test -n "$CC"; then
2630 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002631else
2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633for as_dir in $PATH
2634do
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 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 +00002639 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002641 break 2
2642 fi
2643done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002644done
Reid Spencera773bd52006-08-04 18:18:08 +00002645IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002646
2647fi
2648fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649CC=$ac_cv_prog_CC
2650if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002651 { echo "$as_me:$LINENO: result: $CC" >&5
2652echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002653else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002654 { echo "$as_me:$LINENO: result: no" >&5
2655echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002656fi
2657
Reid Spencera773bd52006-08-04 18:18:08 +00002658
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002659 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002660 done
2661fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002662if test -z "$CC"; then
2663 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002664 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002665do
2666 # Extract the first word of "$ac_prog", so it can be a program name with args.
2667set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2670if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002672else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002673 if test -n "$ac_ct_CC"; then
2674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002675else
2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 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 +00002683 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002685 break 2
2686 fi
2687done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002688done
Reid Spencera773bd52006-08-04 18:18:08 +00002689IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002690
2691fi
2692fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002693ac_ct_CC=$ac_cv_prog_ac_ct_CC
2694if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002695 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2696echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002697else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002698 { echo "$as_me:$LINENO: result: no" >&5
2699echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002700fi
2701
Reid Spencera773bd52006-08-04 18:18:08 +00002702
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002703 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002704done
John Criswell7a73b802003-06-30 21:59:07 +00002705
Reid Spencera773bd52006-08-04 18:18:08 +00002706 if test "x$ac_ct_CC" = x; then
2707 CC=""
2708 else
2709 case $cross_compiling:$ac_tool_warned in
2710yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002711{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2712whose name does not start with the host triplet. If you think this
2713configuration is useful to you, please write to autoconf@gnu.org." >&5
2714echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2715whose name does not start with the host triplet. If you think this
2716configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002717ac_tool_warned=yes ;;
2718esac
2719 CC=$ac_ct_CC
2720 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002721fi
2722
John Criswell7a73b802003-06-30 21:59:07 +00002723fi
2724
2725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002726test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2727See \`config.log' for more details." >&5
2728echo "$as_me: error: no acceptable C compiler found in \$PATH
2729See \`config.log' for more details." >&2;}
2730 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002731
John Criswell7a73b802003-06-30 21:59:07 +00002732# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002733echo "$as_me:$LINENO: checking for C compiler version" >&5
2734ac_compiler=`set X $ac_compile; echo $2`
2735{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002736case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002742 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }
2745{ (ac_try="$ac_compiler -v >&5"
2746case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749esac
2750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compiler -v >&5") 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2755{ (ac_try="$ac_compiler -V >&5"
2756case "(($ac_try" in
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2759esac
2760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compiler -V >&5") 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002766cat >conftest.$ac_ext <<_ACEOF
2767/* confdefs.h. */
2768_ACEOF
2769cat confdefs.h >>conftest.$ac_ext
2770cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002771/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002772
John Criswell7a73b802003-06-30 21:59:07 +00002773int
2774main ()
2775{
2776
2777 ;
2778 return 0;
2779}
2780_ACEOF
2781ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002782ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002783# Try to create an executable without -o first, disregard a.out.
2784# It will help us diagnose broken compilers, and finding out an intuition
2785# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002786{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2787echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2788ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2789#
2790# List of possible output files, starting from the most likely.
2791# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2792# only as a last resort. b.out is created by i960 compilers.
2793ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2794#
2795# The IRIX 6 linker writes into existing files which may not be
2796# executable, retaining their permissions. Remove them first so a
2797# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002798ac_rmfiles=
2799for ac_file in $ac_files
2800do
2801 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002803 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2804 esac
2805done
2806rm -f $ac_rmfiles
2807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002808if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002809case "(($ac_try" in
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811 *) ac_try_echo=$ac_try;;
2812esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002814 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002815 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002818 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2819# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2820# in a Makefile. We should not override ac_cv_exeext if it was cached,
2821# so that the user can short-circuit this test for compilers unknown to
2822# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002823for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002824do
2825 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002826 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002828 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002829 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002830 # We found the default executable, but exeext='' is most
2831 # certainly right.
2832 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002833 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002834 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002835 then :; else
2836 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2837 fi
2838 # We set ac_cv_exeext here because the later test for it is not
2839 # safe: cross compilers may not add the suffix if given an `-o'
2840 # argument, so we may need to know it at that point already.
2841 # Even if this section looks crufty: it has the advantage of
2842 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002843 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002844 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002845 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002846 esac
2847done
Reid Spencera773bd52006-08-04 18:18:08 +00002848test "$ac_cv_exeext" = no && ac_cv_exeext=
2849
John Criswell7a73b802003-06-30 21:59:07 +00002850else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002851 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002852sed 's/^/| /' conftest.$ac_ext >&5
2853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002854{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2855See \`config.log' for more details." >&5
2856echo "$as_me: error: C compiler cannot create executables
2857See \`config.log' for more details." >&2;}
2858 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002859fi
John Criswell7a73b802003-06-30 21:59:07 +00002860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002861ac_exeext=$ac_cv_exeext
2862{ echo "$as_me:$LINENO: result: $ac_file" >&5
2863echo "${ECHO_T}$ac_file" >&6; }
2864
2865# Check that the compiler produces executables we can run. If not, either
2866# the compiler is broken, or we cross compile.
2867{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2868echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2869# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2870# If not cross compiling, check that we can run a simple program.
2871if test "$cross_compiling" != yes; then
2872 if { ac_try='./$ac_file'
2873 { (case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876esac
2877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_try") 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 cross_compiling=no
2883 else
2884 if test "$cross_compiling" = maybe; then
2885 cross_compiling=yes
2886 else
2887 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2888If you meant to cross compile, use \`--host'.
2889See \`config.log' for more details." >&5
2890echo "$as_me: error: cannot run C compiled programs.
2891If you meant to cross compile, use \`--host'.
2892See \`config.log' for more details." >&2;}
2893 { (exit 1); exit 1; }; }
2894 fi
2895 fi
2896fi
2897{ echo "$as_me:$LINENO: result: yes" >&5
2898echo "${ECHO_T}yes" >&6; }
2899
2900rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002901ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002902# Check that the compiler produces executables we can run. If not, either
2903# the compiler is broken, or we cross compile.
2904{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2905echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2906{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2907echo "${ECHO_T}$cross_compiling" >&6; }
2908
2909{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2910echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2911if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002917 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002918 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002921 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2922# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2923# work properly (i.e., refer to `conftest.exe'), while it won't with
2924# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002925for ac_file in conftest.exe conftest conftest.*; do
2926 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002927 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002929 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002930 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002931 * ) break;;
2932 esac
2933done
2934else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002935 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2936See \`config.log' for more details." >&5
2937echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2938See \`config.log' for more details." >&2;}
2939 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002940fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002941
2942rm -f conftest$ac_cv_exeext
2943{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2944echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002945
2946rm -f conftest.$ac_ext
2947EXEEXT=$ac_cv_exeext
2948ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002949{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2950echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2951if test "${ac_cv_objext+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002953else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002954 cat >conftest.$ac_ext <<_ACEOF
2955/* confdefs.h. */
2956_ACEOF
2957cat confdefs.h >>conftest.$ac_ext
2958cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002959/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002960
John Criswell7a73b802003-06-30 21:59:07 +00002961int
2962main ()
2963{
2964
2965 ;
2966 return 0;
2967}
2968_ACEOF
2969rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002970if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002971case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002976 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002977 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002980 for ac_file in conftest.o conftest.obj conftest.*; do
2981 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002982 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002984 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2985 break;;
2986 esac
2987done
2988else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002989 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002990sed 's/^/| /' conftest.$ac_ext >&5
2991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002992{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2993See \`config.log' for more details." >&5
2994echo "$as_me: error: cannot compute suffix of object files: cannot compile
2995See \`config.log' for more details." >&2;}
2996 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002997fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002998
John Criswell7a73b802003-06-30 21:59:07 +00002999rm -f conftest.$ac_cv_objext conftest.$ac_ext
3000fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003001{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3002echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003003OBJEXT=$ac_cv_objext
3004ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003005{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3006echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3007if test "${ac_cv_c_compiler_gnu+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003009else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003010 cat >conftest.$ac_ext <<_ACEOF
3011/* confdefs.h. */
3012_ACEOF
3013cat confdefs.h >>conftest.$ac_ext
3014cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003015/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003016
John Criswell7a73b802003-06-30 21:59:07 +00003017int
3018main ()
3019{
3020#ifndef __GNUC__
3021 choke me
3022#endif
3023
3024 ;
3025 return 0;
3026}
3027_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003028rm -f conftest.$ac_objext
3029if { (ac_try="$ac_compile"
3030case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_compile") 2>conftest.er1
3036 ac_status=$?
3037 grep -v '^ *+' conftest.er1 >conftest.err
3038 rm -f conftest.er1
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } &&
3042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3043 { (case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046esac
3047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_try") 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; } &&
3052 { ac_try='test -s conftest.$ac_objext'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003062 ac_compiler_gnu=yes
3063else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003064 echo "$as_me: failed program was:" >&5
3065sed 's/^/| /' conftest.$ac_ext >&5
3066
3067 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003069
Reid Spencera773bd52006-08-04 18:18:08 +00003070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003071ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003072
3073fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003074{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3075echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3076GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003077ac_test_CFLAGS=${CFLAGS+set}
3078ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003079{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3080echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3081if test "${ac_cv_prog_cc_g+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003083else
Reid Spencera773bd52006-08-04 18:18:08 +00003084 ac_save_c_werror_flag=$ac_c_werror_flag
3085 ac_c_werror_flag=yes
3086 ac_cv_prog_cc_g=no
3087 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003088 cat >conftest.$ac_ext <<_ACEOF
3089/* confdefs.h. */
3090_ACEOF
3091cat confdefs.h >>conftest.$ac_ext
3092cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003093/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003094
John Criswell7a73b802003-06-30 21:59:07 +00003095int
3096main ()
3097{
3098
3099 ;
3100 return 0;
3101}
3102_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003103rm -f conftest.$ac_objext
3104if { (ac_try="$ac_compile"
3105case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_compile") 2>conftest.er1
3111 ac_status=$?
3112 grep -v '^ *+' conftest.er1 >conftest.err
3113 rm -f conftest.er1
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } &&
3117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3118 { (case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121esac
3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_try") 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; } &&
3127 { ac_try='test -s conftest.$ac_objext'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003137 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003138else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003139 echo "$as_me: failed program was:" >&5
3140sed 's/^/| /' conftest.$ac_ext >&5
3141
3142 CFLAGS=""
3143 cat >conftest.$ac_ext <<_ACEOF
3144/* confdefs.h. */
3145_ACEOF
3146cat confdefs.h >>conftest.$ac_ext
3147cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003148/* end confdefs.h. */
3149
3150int
3151main ()
3152{
3153
3154 ;
3155 return 0;
3156}
3157_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003158rm -f conftest.$ac_objext
3159if { (ac_try="$ac_compile"
3160case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163esac
3164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_compile") 2>conftest.er1
3166 ac_status=$?
3167 grep -v '^ *+' conftest.er1 >conftest.err
3168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } &&
3172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3173 { (case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176esac
3177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_try") 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; } &&
3182 { ac_try='test -s conftest.$ac_objext'
3183 { (case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 :
Torok Edwin871384f2010-01-26 08:50:50 +00003193else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003194 echo "$as_me: failed program was:" >&5
3195sed 's/^/| /' conftest.$ac_ext >&5
3196
3197 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003198 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003199 cat >conftest.$ac_ext <<_ACEOF
3200/* confdefs.h. */
3201_ACEOF
3202cat confdefs.h >>conftest.$ac_ext
3203cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003204/* end confdefs.h. */
3205
3206int
3207main ()
3208{
3209
3210 ;
3211 return 0;
3212}
3213_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003214rm -f conftest.$ac_objext
3215if { (ac_try="$ac_compile"
3216case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219esac
3220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_compile") 2>conftest.er1
3222 ac_status=$?
3223 grep -v '^ *+' conftest.er1 >conftest.err
3224 rm -f conftest.er1
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
3228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3229 { (case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232esac
3233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_try") 2>&5
3235 ac_status=$?
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; } &&
3238 { ac_try='test -s conftest.$ac_objext'
3239 { (case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242esac
3243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_try") 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003248 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003249else
3250 echo "$as_me: failed program was:" >&5
3251sed 's/^/| /' conftest.$ac_ext >&5
3252
3253
John Criswell7a73b802003-06-30 21:59:07 +00003254fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003255
Reid Spencera773bd52006-08-04 18:18:08 +00003256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003258
Reid Spencera773bd52006-08-04 18:18:08 +00003259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003261
Reid Spencera773bd52006-08-04 18:18:08 +00003262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 ac_c_werror_flag=$ac_save_c_werror_flag
3264fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003265{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3266echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003267if test "$ac_test_CFLAGS" = set; then
3268 CFLAGS=$ac_save_CFLAGS
3269elif test $ac_cv_prog_cc_g = yes; then
3270 if test "$GCC" = yes; then
3271 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003272 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003273 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003274 fi
3275else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003276 if test "$GCC" = yes; then
3277 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003278 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003279 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003280 fi
3281fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003282{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3283echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3284if test "${ac_cv_prog_cc_c89+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003286else
Reid Spencera773bd52006-08-04 18:18:08 +00003287 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003288ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003289cat >conftest.$ac_ext <<_ACEOF
3290/* confdefs.h. */
3291_ACEOF
3292cat confdefs.h >>conftest.$ac_ext
3293cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003294/* end confdefs.h. */
3295#include <stdarg.h>
3296#include <stdio.h>
3297#include <sys/types.h>
3298#include <sys/stat.h>
3299/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3300struct buf { int x; };
3301FILE * (*rcsopen) (struct buf *, struct stat *, int);
3302static char *e (p, i)
3303 char **p;
3304 int i;
3305{
3306 return p[i];
3307}
3308static char *f (char * (*g) (char **, int), char **p, ...)
3309{
3310 char *s;
3311 va_list v;
3312 va_start (v,p);
3313 s = g (p, va_arg (v,int));
3314 va_end (v);
3315 return s;
3316}
3317
3318/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3319 function prototypes and stuff, but not '\xHH' hex character constants.
3320 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003321 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003322 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3323 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003324 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003325int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3326
Reid Spencera773bd52006-08-04 18:18:08 +00003327/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3328 inside strings and character constants. */
3329#define FOO(x) 'x'
3330int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3331
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003332int test (int i, double x);
3333struct s1 {int (*f) (int a);};
3334struct s2 {int (*f) (double a);};
3335int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3336int argc;
3337char **argv;
3338int
3339main ()
3340{
3341return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3342 ;
3343 return 0;
3344}
3345_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003346for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3347 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003348do
3349 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003350 rm -f conftest.$ac_objext
3351if { (ac_try="$ac_compile"
3352case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355esac
3356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_compile") 2>conftest.er1
3358 ac_status=$?
3359 grep -v '^ *+' conftest.er1 >conftest.err
3360 rm -f conftest.er1
3361 cat conftest.err >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
3364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3365 { (case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368esac
3369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_try") 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; } &&
3374 { ac_try='test -s conftest.$ac_objext'
3375 { (case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378esac
3379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_try") 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003384 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003385else
3386 echo "$as_me: failed program was:" >&5
3387sed 's/^/| /' conftest.$ac_ext >&5
3388
3389
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003391
Reid Spencera773bd52006-08-04 18:18:08 +00003392rm -f core conftest.err conftest.$ac_objext
3393 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003394done
Reid Spencera773bd52006-08-04 18:18:08 +00003395rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396CC=$ac_save_CC
3397
3398fi
Reid Spencera773bd52006-08-04 18:18:08 +00003399# AC_CACHE_VAL
3400case "x$ac_cv_prog_cc_c89" in
3401 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003402 { echo "$as_me:$LINENO: result: none needed" >&5
3403echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003404 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003405 { echo "$as_me:$LINENO: result: unsupported" >&5
3406echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003407 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003408 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003409 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3410echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003411esac
3412
John Criswell0c38eaf2003-09-10 15:17:25 +00003413
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003414ac_ext=c
3415ac_cpp='$CPP $CPPFLAGS'
3416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419
3420
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003421ac_ext=c
3422ac_cpp='$CPP $CPPFLAGS'
3423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003426{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3427echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003428# On Suns, sometimes $CPP names a directory.
3429if test -n "$CPP" && test -d "$CPP"; then
3430 CPP=
3431fi
3432if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003433 if test "${ac_cv_prog_CPP+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003435else
3436 # Double quotes because CPP needs to be expanded
3437 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3438 do
3439 ac_preproc_ok=false
3440for ac_c_preproc_warn_flag in '' yes
3441do
3442 # Use a header file that comes with gcc, so configuring glibc
3443 # with a fresh cross-compiler works.
3444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3445 # <limits.h> exists even on freestanding compilers.
3446 # On the NeXT, cc -E runs the code through the compiler's parser,
3447 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003448 cat >conftest.$ac_ext <<_ACEOF
3449/* confdefs.h. */
3450_ACEOF
3451cat confdefs.h >>conftest.$ac_ext
3452cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003453/* end confdefs.h. */
3454#ifdef __STDC__
3455# include <limits.h>
3456#else
3457# include <assert.h>
3458#endif
3459 Syntax error
3460_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003461if { (ac_try="$ac_cpp conftest.$ac_ext"
3462case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465esac
3466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3468 ac_status=$?
3469 grep -v '^ *+' conftest.er1 >conftest.err
3470 rm -f conftest.er1
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } >/dev/null; then
3474 if test -s conftest.err; then
3475 ac_cpp_err=$ac_c_preproc_warn_flag
3476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3477 else
3478 ac_cpp_err=
3479 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003480else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003481 ac_cpp_err=yes
3482fi
3483if test -z "$ac_cpp_err"; then
3484 :
3485else
3486 echo "$as_me: failed program was:" >&5
3487sed 's/^/| /' conftest.$ac_ext >&5
3488
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003489 # Broken: fails on valid input.
3490continue
3491fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003492
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003493rm -f conftest.err conftest.$ac_ext
3494
Reid Spencera773bd52006-08-04 18:18:08 +00003495 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003496 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003497 cat >conftest.$ac_ext <<_ACEOF
3498/* confdefs.h. */
3499_ACEOF
3500cat confdefs.h >>conftest.$ac_ext
3501cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003502/* end confdefs.h. */
3503#include <ac_nonexistent.h>
3504_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003505if { (ac_try="$ac_cpp conftest.$ac_ext"
3506case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509esac
3510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3512 ac_status=$?
3513 grep -v '^ *+' conftest.er1 >conftest.err
3514 rm -f conftest.er1
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } >/dev/null; then
3518 if test -s conftest.err; then
3519 ac_cpp_err=$ac_c_preproc_warn_flag
3520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3521 else
3522 ac_cpp_err=
3523 fi
3524else
3525 ac_cpp_err=yes
3526fi
3527if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003528 # Broken: success on invalid input.
3529continue
3530else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003531 echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003534 # Passes both tests.
3535ac_preproc_ok=:
3536break
3537fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003538
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003539rm -f conftest.err conftest.$ac_ext
3540
3541done
3542# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3543rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003544if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003545 break
3546fi
3547
3548 done
3549 ac_cv_prog_CPP=$CPP
3550
3551fi
3552 CPP=$ac_cv_prog_CPP
3553else
3554 ac_cv_prog_CPP=$CPP
3555fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003556{ echo "$as_me:$LINENO: result: $CPP" >&5
3557echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003558ac_preproc_ok=false
3559for ac_c_preproc_warn_flag in '' yes
3560do
3561 # Use a header file that comes with gcc, so configuring glibc
3562 # with a fresh cross-compiler works.
3563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3564 # <limits.h> exists even on freestanding compilers.
3565 # On the NeXT, cc -E runs the code through the compiler's parser,
3566 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003567 cat >conftest.$ac_ext <<_ACEOF
3568/* confdefs.h. */
3569_ACEOF
3570cat confdefs.h >>conftest.$ac_ext
3571cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003572/* end confdefs.h. */
3573#ifdef __STDC__
3574# include <limits.h>
3575#else
3576# include <assert.h>
3577#endif
3578 Syntax error
3579_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003580if { (ac_try="$ac_cpp conftest.$ac_ext"
3581case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584esac
3585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3587 ac_status=$?
3588 grep -v '^ *+' conftest.er1 >conftest.err
3589 rm -f conftest.er1
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } >/dev/null; then
3593 if test -s conftest.err; then
3594 ac_cpp_err=$ac_c_preproc_warn_flag
3595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3596 else
3597 ac_cpp_err=
3598 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003599else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003600 ac_cpp_err=yes
3601fi
3602if test -z "$ac_cpp_err"; then
3603 :
3604else
3605 echo "$as_me: failed program was:" >&5
3606sed 's/^/| /' conftest.$ac_ext >&5
3607
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003608 # Broken: fails on valid input.
3609continue
3610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003611
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003612rm -f conftest.err conftest.$ac_ext
3613
Reid Spencera773bd52006-08-04 18:18:08 +00003614 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003615 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003616 cat >conftest.$ac_ext <<_ACEOF
3617/* confdefs.h. */
3618_ACEOF
3619cat confdefs.h >>conftest.$ac_ext
3620cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003621/* end confdefs.h. */
3622#include <ac_nonexistent.h>
3623_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003624if { (ac_try="$ac_cpp conftest.$ac_ext"
3625case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628esac
3629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } >/dev/null; then
3637 if test -s conftest.err; then
3638 ac_cpp_err=$ac_c_preproc_warn_flag
3639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3640 else
3641 ac_cpp_err=
3642 fi
3643else
3644 ac_cpp_err=yes
3645fi
3646if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003647 # Broken: success on invalid input.
3648continue
3649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003650 echo "$as_me: failed program was:" >&5
3651sed 's/^/| /' conftest.$ac_ext >&5
3652
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003653 # Passes both tests.
3654ac_preproc_ok=:
3655break
3656fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003657
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003658rm -f conftest.err conftest.$ac_ext
3659
3660done
3661# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3662rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003663if $ac_preproc_ok; then
3664 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003665else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003666 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3667See \`config.log' for more details." >&5
3668echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3669See \`config.log' for more details." >&2;}
3670 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003671fi
3672
John Criswell7a73b802003-06-30 21:59:07 +00003673ac_ext=c
3674ac_cpp='$CPP $CPPFLAGS'
3675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678
John Criswell7a73b802003-06-30 21:59:07 +00003679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003680{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3681echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3682if test "${ac_cv_path_GREP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003684else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003685 # Extract the first word of "grep ggrep" to use in msg output
3686if test -z "$GREP"; then
3687set dummy grep ggrep; ac_prog_name=$2
3688if test "${ac_cv_path_GREP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690else
Reid Spencera773bd52006-08-04 18:18:08 +00003691 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003692# Loop through the user's path and test for each of PROGNAME-LIST
3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003694for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003695do
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003698 for ac_prog in grep ggrep; do
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3701 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3702 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003703 # Check for GNU $ac_path_GREP
3704case `"$ac_path_GREP" --version 2>&1` in
3705*GNU*)
3706 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3707*)
3708 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003709 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003710 while :
3711 do
3712 cat "conftest.in" "conftest.in" >"conftest.tmp"
3713 mv "conftest.tmp" "conftest.in"
3714 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003715 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003716 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003718 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003719 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3720 # Best one so far, save it but keep looking for a better one
3721 ac_cv_path_GREP="$ac_path_GREP"
3722 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003723 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003724 # 10*(2^10) chars as input seems more than enough
3725 test $ac_count -gt 10 && break
3726 done
3727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3728esac
3729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003730
3731 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003732 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003733done
3734
3735done
Reid Spencera773bd52006-08-04 18:18:08 +00003736IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003737
3738
3739fi
3740
3741GREP="$ac_cv_path_GREP"
3742if test -z "$GREP"; then
3743 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3744echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3745 { (exit 1); exit 1; }; }
3746fi
3747
Reid Spencera773bd52006-08-04 18:18:08 +00003748else
3749 ac_cv_path_GREP=$GREP
3750fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003752
Reid Spencera773bd52006-08-04 18:18:08 +00003753fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003754{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3755echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003756 GREP="$ac_cv_path_GREP"
3757
3758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003759{ echo "$as_me:$LINENO: checking for egrep" >&5
3760echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3761if test "${ac_cv_path_EGREP+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003763else
3764 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3765 then ac_cv_path_EGREP="$GREP -E"
3766 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003767 # Extract the first word of "egrep" to use in msg output
3768if test -z "$EGREP"; then
3769set dummy egrep; ac_prog_name=$2
3770if test "${ac_cv_path_EGREP+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772else
Reid Spencera773bd52006-08-04 18:18:08 +00003773 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003774# Loop through the user's path and test for each of PROGNAME-LIST
3775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003776for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3777do
3778 IFS=$as_save_IFS
3779 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003780 for ac_prog in egrep; do
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3783 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3784 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003785 # Check for GNU $ac_path_EGREP
3786case `"$ac_path_EGREP" --version 2>&1` in
3787*GNU*)
3788 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3789*)
3790 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003791 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003792 while :
3793 do
3794 cat "conftest.in" "conftest.in" >"conftest.tmp"
3795 mv "conftest.tmp" "conftest.in"
3796 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003797 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003798 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3799 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003800 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003801 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3802 # Best one so far, save it but keep looking for a better one
3803 ac_cv_path_EGREP="$ac_path_EGREP"
3804 ac_path_EGREP_max=$ac_count
3805 fi
3806 # 10*(2^10) chars as input seems more than enough
3807 test $ac_count -gt 10 && break
3808 done
3809 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3810esac
3811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003812
3813 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003814 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003815done
3816
3817done
Reid Spencera773bd52006-08-04 18:18:08 +00003818IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003819
3820
3821fi
3822
3823EGREP="$ac_cv_path_EGREP"
3824if test -z "$EGREP"; then
3825 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3826echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3827 { (exit 1); exit 1; }; }
3828fi
3829
Reid Spencera773bd52006-08-04 18:18:08 +00003830else
3831 ac_cv_path_EGREP=$EGREP
3832fi
3833
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003834
Reid Spencera773bd52006-08-04 18:18:08 +00003835 fi
3836fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003837{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3838echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003839 EGREP="$ac_cv_path_EGREP"
3840
3841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003842{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3843echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3844if test "${ac_cv_header_stdc+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003846else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003847 cat >conftest.$ac_ext <<_ACEOF
3848/* confdefs.h. */
3849_ACEOF
3850cat confdefs.h >>conftest.$ac_ext
3851cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003852/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003853#include <stdlib.h>
3854#include <stdarg.h>
3855#include <string.h>
3856#include <float.h>
3857
John Criswell0c38eaf2003-09-10 15:17:25 +00003858int
3859main ()
3860{
3861
3862 ;
3863 return 0;
3864}
John Criswell7a73b802003-06-30 21:59:07 +00003865_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003866rm -f conftest.$ac_objext
3867if { (ac_try="$ac_compile"
3868case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871esac
3872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_compile") 2>conftest.er1
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3881 { (case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884esac
3885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_try") 2>&5
3887 ac_status=$?
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; } &&
3890 { ac_try='test -s conftest.$ac_objext'
3891 { (case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894esac
3895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_try") 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003900 ac_cv_header_stdc=yes
3901else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003902 echo "$as_me: failed program was:" >&5
3903sed 's/^/| /' conftest.$ac_ext >&5
3904
3905 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003906fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003907
Reid Spencera773bd52006-08-04 18:18:08 +00003908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003909
3910if test $ac_cv_header_stdc = yes; then
3911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003912 cat >conftest.$ac_ext <<_ACEOF
3913/* confdefs.h. */
3914_ACEOF
3915cat confdefs.h >>conftest.$ac_ext
3916cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003917/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003918#include <string.h>
3919
3920_ACEOF
3921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003922 $EGREP "memchr" >/dev/null 2>&1; then
3923 :
John Criswell7a73b802003-06-30 21:59:07 +00003924else
3925 ac_cv_header_stdc=no
3926fi
3927rm -f conftest*
3928
3929fi
3930
3931if test $ac_cv_header_stdc = yes; then
3932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003933 cat >conftest.$ac_ext <<_ACEOF
3934/* confdefs.h. */
3935_ACEOF
3936cat confdefs.h >>conftest.$ac_ext
3937cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003938/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003939#include <stdlib.h>
3940
3941_ACEOF
3942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003943 $EGREP "free" >/dev/null 2>&1; then
3944 :
John Criswell7a73b802003-06-30 21:59:07 +00003945else
3946 ac_cv_header_stdc=no
3947fi
3948rm -f conftest*
3949
3950fi
3951
3952if test $ac_cv_header_stdc = yes; then
3953 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003954 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003955 :
3956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003957 cat >conftest.$ac_ext <<_ACEOF
3958/* confdefs.h. */
3959_ACEOF
3960cat confdefs.h >>conftest.$ac_ext
3961cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003962/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003963#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003964#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003965#if ((' ' & 0x0FF) == 0x020)
3966# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3967# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3968#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003969# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003970 (('a' <= (c) && (c) <= 'i') \
3971 || ('j' <= (c) && (c) <= 'r') \
3972 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003973# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3974#endif
3975
3976#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3977int
3978main ()
3979{
3980 int i;
3981 for (i = 0; i < 256; i++)
3982 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003983 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003984 return 2;
3985 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003986}
3987_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003988rm -f conftest$ac_exeext
3989if { (ac_try="$ac_link"
3990case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993esac
3994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995 (eval "$ac_link") 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3999 { (case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002esac
4003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_try") 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 :
John Criswell7a73b802003-06-30 21:59:07 +00004009else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004010 echo "$as_me: program exited with status $ac_status" >&5
4011echo "$as_me: failed program was:" >&5
4012sed 's/^/| /' conftest.$ac_ext >&5
4013
4014( exit $ac_status )
4015ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004016fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004017rm -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 +00004018fi
4019
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004020
John Criswell7a73b802003-06-30 21:59:07 +00004021fi
4022fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004023{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4024echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004025if test $ac_cv_header_stdc = yes; then
4026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004027cat >>confdefs.h <<\_ACEOF
4028#define STDC_HEADERS 1
4029_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004030
4031fi
4032
Reid Spencera773bd52006-08-04 18:18:08 +00004033# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004034
4035
4036
4037
4038
4039
4040
4041
4042
Reid Spencera773bd52006-08-04 18:18:08 +00004043for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4044 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004045do
4046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4047{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051else
4052 cat >conftest.$ac_ext <<_ACEOF
4053/* confdefs.h. */
4054_ACEOF
4055cat confdefs.h >>conftest.$ac_ext
4056cat >>conftest.$ac_ext <<_ACEOF
4057/* end confdefs.h. */
4058$ac_includes_default
4059
4060#include <$ac_header>
4061_ACEOF
4062rm -f conftest.$ac_objext
4063if { (ac_try="$ac_compile"
4064case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067esac
4068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_compile") 2>conftest.er1
4070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4077 { (case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080esac
4081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_try") 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; } &&
4086 { ac_try='test -s conftest.$ac_objext'
4087 { (case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090esac
4091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; }; then
4096 eval "$as_ac_Header=yes"
4097else
4098 echo "$as_me: failed program was:" >&5
4099sed 's/^/| /' conftest.$ac_ext >&5
4100
4101 eval "$as_ac_Header=no"
4102fi
4103
4104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105fi
4106ac_res=`eval echo '${'$as_ac_Header'}'`
4107 { echo "$as_me:$LINENO: result: $ac_res" >&5
4108echo "${ECHO_T}$ac_res" >&6; }
4109if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004110 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004112_ACEOF
4113
4114fi
4115
4116done
4117
4118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004119{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4120echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4121if test "${ac_cv_c_bigendian+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004123else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004124 # See if sys/param.h defines the BYTE_ORDER macro.
4125cat >conftest.$ac_ext <<_ACEOF
4126/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004127_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004128cat confdefs.h >>conftest.$ac_ext
4129cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004130/* end confdefs.h. */
4131#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004132#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004133
4134int
4135main ()
4136{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004137#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4138 bogus endian macros
4139#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004140
4141 ;
4142 return 0;
4143}
4144_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004145rm -f conftest.$ac_objext
4146if { (ac_try="$ac_compile"
4147case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150esac
4151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_compile") 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160 { (case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163esac
4164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173esac
4174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004179 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004180cat >conftest.$ac_ext <<_ACEOF
4181/* confdefs.h. */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004185/* end confdefs.h. */
4186#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004187#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004188
4189int
4190main ()
4191{
4192#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004193 not big endian
4194#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004195
4196 ;
4197 return 0;
4198}
4199_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004200rm -f conftest.$ac_objext
4201if { (ac_try="$ac_compile"
4202case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205esac
4206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_compile") 2>conftest.er1
4208 ac_status=$?
4209 grep -v '^ *+' conftest.er1 >conftest.err
4210 rm -f conftest.er1
4211 cat conftest.err >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } &&
4214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4215 { (case "(($ac_try" in
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4218esac
4219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220 (eval "$ac_try") 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; } &&
4224 { ac_try='test -s conftest.$ac_objext'
4225 { (case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4228esac
4229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_try") 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004234 ac_cv_c_bigendian=yes
4235else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004236 echo "$as_me: failed program was:" >&5
4237sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004238
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004239 ac_cv_c_bigendian=no
4240fi
4241
4242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243else
4244 echo "$as_me: failed program was:" >&5
4245sed 's/^/| /' conftest.$ac_ext >&5
4246
4247 # It does not; compile a test program.
4248if test "$cross_compiling" = yes; then
4249 # try to guess the endianness by grepping values into an object file
4250 ac_cv_c_bigendian=unknown
4251 cat >conftest.$ac_ext <<_ACEOF
4252/* confdefs.h. */
4253_ACEOF
4254cat confdefs.h >>conftest.$ac_ext
4255cat >>conftest.$ac_ext <<_ACEOF
4256/* end confdefs.h. */
4257short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4258short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4259void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4260short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4261short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4262void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004263int
4264main ()
4265{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004266 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004267 ;
4268 return 0;
4269}
4270_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004271rm -f conftest.$ac_objext
4272if { (ac_try="$ac_compile"
4273case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276esac
4277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_compile") 2>conftest.er1
4279 ac_status=$?
4280 grep -v '^ *+' conftest.er1 >conftest.err
4281 rm -f conftest.er1
4282 cat conftest.err >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4286 { (case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289esac
4290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_try") 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; } &&
4295 { ac_try='test -s conftest.$ac_objext'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299esac
4300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004306 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004307fi
4308if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4309 if test "$ac_cv_c_bigendian" = unknown; then
4310 ac_cv_c_bigendian=no
4311 else
4312 # finding both strings is unlikely to happen, but who knows?
4313 ac_cv_c_bigendian=unknown
4314 fi
4315fi
Reid Spencera773bd52006-08-04 18:18:08 +00004316else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004317 echo "$as_me: failed program was:" >&5
4318sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004320
Torok Edwin871384f2010-01-26 08:50:50 +00004321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004322
Reid Spencera773bd52006-08-04 18:18:08 +00004323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004325 cat >conftest.$ac_ext <<_ACEOF
4326/* confdefs.h. */
4327_ACEOF
4328cat confdefs.h >>conftest.$ac_ext
4329cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004330/* end confdefs.h. */
4331$ac_includes_default
4332int
4333main ()
4334{
4335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004336 /* Are we little or big endian? From Harbison&Steele. */
4337 union
4338 {
4339 long int l;
4340 char c[sizeof (long int)];
4341 } u;
4342 u.l = 1;
4343 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004344
4345 ;
4346 return 0;
4347}
4348_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004349rm -f conftest$ac_exeext
4350if { (ac_try="$ac_link"
4351case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4354esac
4355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356 (eval "$ac_link") 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4360 { (case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363esac
4364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365 (eval "$ac_try") 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004369 ac_cv_c_bigendian=no
4370else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004371 echo "$as_me: program exited with status $ac_status" >&5
4372echo "$as_me: failed program was:" >&5
4373sed 's/^/| /' conftest.$ac_ext >&5
4374
4375( exit $ac_status )
4376ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004377fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004378rm -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 +00004379fi
4380
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004381
Reid Spencera773bd52006-08-04 18:18:08 +00004382fi
4383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385fi
4386{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4387echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4388case $ac_cv_c_bigendian in
4389 yes)
4390 ENDIAN=big
4391 ;;
4392 no)
4393 ENDIAN=little
4394 ;;
4395 *)
4396 { { echo "$as_me:$LINENO: error: unknown endianness
4397presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4398echo "$as_me: error: unknown endianness
4399presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4400 { (exit 1); exit 1; }; } ;;
4401esac
Reid Spencera773bd52006-08-04 18:18:08 +00004402
4403
4404if test "$cross_compiling" = yes; then
4405 LLVM_CROSS_COMPILING=1
4406
4407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004408{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4409echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4410if test "${ac_cv_build_exeext+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004412else
4413 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4414 ac_cv_build_exeext=.exe
4415else
4416 ac_build_prefix=${build_alias}-
4417
4418 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4419set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004420{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004424else
4425 if test -n "$BUILD_CC"; then
4426 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4427else
4428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429for as_dir in $PATH
4430do
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 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 +00004435 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004437 break 2
4438 fi
4439done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004440done
Reid Spencera773bd52006-08-04 18:18:08 +00004441IFS=$as_save_IFS
4442
4443fi
4444fi
4445BUILD_CC=$ac_cv_prog_BUILD_CC
4446if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004447 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4448echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004449else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004450 { echo "$as_me:$LINENO: result: no" >&5
4451echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004452fi
4453
4454
4455 if test -z "$BUILD_CC"; then
4456 # Extract the first word of "gcc", so it can be a program name with args.
4457set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4460if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004462else
4463 if test -n "$BUILD_CC"; then
4464 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4465else
4466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467for as_dir in $PATH
4468do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 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 +00004473 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004475 break 2
4476 fi
4477done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004478done
Reid Spencera773bd52006-08-04 18:18:08 +00004479IFS=$as_save_IFS
4480
4481fi
4482fi
4483BUILD_CC=$ac_cv_prog_BUILD_CC
4484if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004485 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4486echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004487else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004488 { echo "$as_me:$LINENO: result: no" >&5
4489echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004490fi
4491
4492
4493 if test -z "$BUILD_CC"; then
4494 # Extract the first word of "cc", so it can be a program name with args.
4495set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4498if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004500else
4501 if test -n "$BUILD_CC"; then
4502 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4503else
4504 ac_prog_rejected=no
4505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH
4507do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 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 +00004512 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4513 ac_prog_rejected=yes
4514 continue
4515 fi
4516 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004518 break 2
4519 fi
4520done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004521done
Reid Spencera773bd52006-08-04 18:18:08 +00004522IFS=$as_save_IFS
4523
4524if test $ac_prog_rejected = yes; then
4525 # We found a bogon in the path, so make sure we never use it.
4526 set dummy $ac_cv_prog_BUILD_CC
4527 shift
4528 if test $# != 0; then
4529 # We chose a different compiler from the bogus one.
4530 # However, it has the same basename, so the bogon will be chosen
4531 # first if we set BUILD_CC to just the basename; use the full file name.
4532 shift
4533 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4534 fi
4535fi
4536fi
4537fi
4538BUILD_CC=$ac_cv_prog_BUILD_CC
4539if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004540 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4541echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004542else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004543 { echo "$as_me:$LINENO: result: no" >&5
4544echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004545fi
4546
4547
4548 fi
4549 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004550 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4551echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4552 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004553 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4554 rm -f conftest*
4555 echo 'int main () { return 0; }' > conftest.$ac_ext
4556 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004557 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004558 (eval $ac_build_link) 2>&5
4559 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004562 for file in conftest.*; do
4563 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004564 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004565 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4566 esac
4567 done
4568 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004569 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4570echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4571 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004572 fi
4573 rm -f conftest*
4574 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4575fi
4576fi
4577
4578BUILD_EXEEXT=""
4579test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004580{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4581echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004582ac_build_exeext=$BUILD_EXEEXT
4583
Jim Grosbach673612e2008-10-02 22:56:44 +00004584 ac_build_prefix=${build_alias}-
4585 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4586set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4589if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004591else
4592 if test -n "$BUILD_CXX"; then
4593 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4594else
4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 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 +00004602 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004604 break 2
4605 fi
4606done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004607done
Jim Grosbach673612e2008-10-02 22:56:44 +00004608IFS=$as_save_IFS
4609
4610fi
4611fi
4612BUILD_CXX=$ac_cv_prog_BUILD_CXX
4613if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004614 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4615echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004616else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004617 { echo "$as_me:$LINENO: result: no" >&5
4618echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004619fi
4620
4621
4622 if test -z "$BUILD_CXX"; then
4623 # Extract the first word of "g++", so it can be a program name with args.
4624set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4627if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004629else
4630 if test -n "$BUILD_CXX"; then
4631 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4632else
4633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634for as_dir in $PATH
4635do
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 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 +00004640 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004642 break 2
4643 fi
4644done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004645done
Jim Grosbach673612e2008-10-02 22:56:44 +00004646IFS=$as_save_IFS
4647
4648fi
4649fi
4650BUILD_CXX=$ac_cv_prog_BUILD_CXX
4651if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004652 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4653echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004654else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655 { echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004657fi
4658
4659
4660 if test -z "$BUILD_CXX"; then
4661 # Extract the first word of "c++", so it can be a program name with args.
4662set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004667else
4668 if test -n "$BUILD_CXX"; then
4669 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4670else
4671 ac_prog_rejected=no
4672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673for as_dir in $PATH
4674do
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 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 +00004679 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4680 ac_prog_rejected=yes
4681 continue
4682 fi
4683 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004685 break 2
4686 fi
4687done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004688done
Jim Grosbach673612e2008-10-02 22:56:44 +00004689IFS=$as_save_IFS
4690
4691if test $ac_prog_rejected = yes; then
4692 # We found a bogon in the path, so make sure we never use it.
4693 set dummy $ac_cv_prog_BUILD_CXX
4694 shift
4695 if test $# != 0; then
4696 # We chose a different compiler from the bogus one.
4697 # However, it has the same basename, so the bogon will be chosen
4698 # first if we set BUILD_CXX to just the basename; use the full file name.
4699 shift
4700 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4701 fi
4702fi
4703fi
4704fi
4705BUILD_CXX=$ac_cv_prog_BUILD_CXX
4706if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004707 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4708echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004709else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004710 { echo "$as_me:$LINENO: result: no" >&5
4711echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004712fi
4713
4714
4715 fi
4716 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004717else
4718 LLVM_CROSS_COMPILING=0
4719
4720fi
4721
Dan Gohman56fb5f92010-08-04 16:25:01 +00004722if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004723 cvsbuild="yes"
4724 optimize="no"
4725 CVSBUILD=CVSBUILD=1
4726
4727else
4728 cvsbuild="no"
4729 optimize="yes"
4730fi
4731
4732
4733# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004734if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004735 enableval=$enable_optimized;
4736else
4737 enableval=$optimize
4738fi
4739
4740if test ${enableval} = "no" ; then
4741 ENABLE_OPTIMIZED=
4742
4743else
4744 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4745
4746fi
4747
David Greene2a5a12c2009-04-17 14:50:39 +00004748# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004749if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004750 enableval=$enable_profiling;
4751else
4752 enableval="no"
4753fi
4754
4755if test ${enableval} = "no" ; then
4756 ENABLE_PROFILING=
4757
4758else
4759 ENABLE_PROFILING=ENABLE_PROFILING=1
4760
4761fi
4762
Reid Spencera773bd52006-08-04 18:18:08 +00004763# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004764if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004765 enableval=$enable_assertions;
4766else
4767 enableval="yes"
4768fi
4769
4770if test ${enableval} = "yes" ; then
4771 DISABLE_ASSERTIONS=
4772
4773else
4774 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4775
4776fi
4777
David Greenea696d242007-06-28 19:36:08 +00004778# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004779if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004780 enableval=$enable_expensive_checks;
4781else
4782 enableval="no"
4783fi
4784
4785if test ${enableval} = "yes" ; then
4786 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4787
4788 EXPENSIVE_CHECKS=yes
4789
4790else
4791 ENABLE_EXPENSIVE_CHECKS=
4792
4793 EXPENSIVE_CHECKS=no
4794
4795fi
4796
Reid Spencer8b2e1412006-11-17 03:32:33 +00004797# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004798if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004799 enableval=$enable_debug_runtime;
4800else
4801 enableval=no
4802fi
4803
4804if test ${enableval} = "no" ; then
4805 DEBUG_RUNTIME=
4806
4807else
4808 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4809
4810fi
4811
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004812# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004813if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004814 enableval=$enable_debug_symbols;
4815else
4816 enableval=no
4817fi
4818
4819if test ${enableval} = "no" ; then
4820 DEBUG_SYMBOLS=
4821
4822else
4823 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4824
4825fi
4826
Reid Spencera773bd52006-08-04 18:18:08 +00004827# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004828if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004829 enableval=$enable_jit;
4830else
4831 enableval=default
4832fi
4833
4834if test ${enableval} = "no"
4835then
4836 JIT=
4837
4838else
4839 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004840 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004841 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004842 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004843 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004844 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004845 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004846 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004847 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004848 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004849 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004850 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004851 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004852 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004853 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004854 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004855 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004856 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004857 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004858 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004859 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004860 Blackfin) TARGET_HAS_JIT=0
4861 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004862 MBlaze) TARGET_HAS_JIT=0
4863 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004864 PTX) TARGET_HAS_JIT=0
4865 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004866 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004867 ;;
4868 esac
4869fi
4870
4871# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004872if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004873 enableval=$enable_doxygen;
4874else
4875 enableval=default
4876fi
4877
4878case "$enableval" in
4879 yes) ENABLE_DOXYGEN=1
4880 ;;
4881 no) ENABLE_DOXYGEN=0
4882 ;;
4883 default) ENABLE_DOXYGEN=0
4884 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004885 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4886echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4887 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004888esac
4889
4890# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004891if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004892 enableval=$enable_threads;
4893else
Reid Spencer65c5d752006-11-05 17:08:18 +00004894 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004895fi
4896
4897case "$enableval" in
4898 yes) ENABLE_THREADS=1
4899 ;;
4900 no) ENABLE_THREADS=0
4901 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004902 default) ENABLE_THREADS=1
4903 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004904 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4905echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4906 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004907esac
4908
Owen Andersona8603702009-05-19 22:18:56 +00004909cat >>confdefs.h <<_ACEOF
4910#define ENABLE_THREADS $ENABLE_THREADS
4911_ACEOF
4912
4913
Reid Spencer89b0d992006-12-16 22:07:52 +00004914# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004915if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004916 enableval=$enable_pic;
4917else
4918 enableval=default
4919fi
4920
4921case "$enableval" in
4922 yes) ENABLE_PIC=1
4923 ;;
4924 no) ENABLE_PIC=0
4925 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004926 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004927 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004928 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4929echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4930 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004931esac
4932
4933cat >>confdefs.h <<_ACEOF
4934#define ENABLE_PIC $ENABLE_PIC
4935_ACEOF
4936
4937
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004938# Check whether --enable-shared was given.
4939if test "${enable_shared+set}" = set; then
4940 enableval=$enable_shared;
4941else
4942 enableval=default
4943fi
4944
4945case "$enableval" in
4946 yes) ENABLE_SHARED=1
4947 ;;
4948 no) ENABLE_SHARED=0
4949 ;;
4950 default) ENABLE_SHARED=0
4951 ;;
4952 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4953echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4954 { (exit 1); exit 1; }; } ;;
4955esac
4956
Daniel Dunbardd464df2010-05-10 20:11:56 +00004957# Check whether --enable-timestamps was given.
4958if test "${enable_timestamps+set}" = set; then
4959 enableval=$enable_timestamps;
4960else
4961 enableval=default
4962fi
4963
4964case "$enableval" in
4965 yes) ENABLE_TIMESTAMPS=1
4966 ;;
4967 no) ENABLE_TIMESTAMPS=0
4968 ;;
4969 default) ENABLE_TIMESTAMPS=1
4970 ;;
4971 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4972echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4973 { (exit 1); exit 1; }; } ;;
4974esac
4975
4976cat >>confdefs.h <<_ACEOF
4977#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4978_ACEOF
4979
4980
Reid Spencera773bd52006-08-04 18:18:08 +00004981TARGETS_TO_BUILD=""
4982# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004983if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004984 enableval=$enable_targets;
4985else
4986 enableval=all
4987fi
4988
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004989if test "$enableval" = host-only ; then
4990 enableval=host
4991fi
Reid Spencera773bd52006-08-04 18:18:08 +00004992case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00004993 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 +00004994 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4995 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004996 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4997 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4998 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4999 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5000 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5001 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5002 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5003 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005004 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5005 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5006 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5007 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5008 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005009 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005010 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005011 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005012 host) case "$llvm_cv_target_arch" in
5013 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5014 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5015 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5016 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5017 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5018 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5019 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005020 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005021 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005022 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5023 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005024 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005025 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005026 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005027 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5028echo "$as_me: error: Can not set target to build" >&2;}
5029 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005030 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005031 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5032echo "$as_me: error: Unrecognized target $a_target" >&2;}
5033 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005034 esac
5035 done
5036 ;;
5037esac
Reid Spencera773bd52006-08-04 18:18:08 +00005038TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5039
5040
Douglas Gregor0711c302009-06-17 00:43:20 +00005041# Determine whether we are building LLVM support for the native architecture.
5042# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5043for a_target in $TARGETS_TO_BUILD; do
5044 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5045
5046cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005047#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5048_ACEOF
5049
5050 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5051 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5052 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5053
5054cat >>confdefs.h <<_ACEOF
5055#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005056_ACEOF
5057
5058
5059cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005060#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5061_ACEOF
5062
5063
5064cat >>confdefs.h <<_ACEOF
5065#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005066_ACEOF
5067
5068 fi
5069done
5070
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005071# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5072# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005073LLVM_ENUM_TARGETS=""
5074LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005075LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005076LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005077for target_to_build in $TARGETS_TO_BUILD; do
5078 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5079 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5080 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5081 fi
Jim Grosbach7ac16092010-10-01 22:39:28 +00005082 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5083 if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5084 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5085 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005086 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5087 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5088 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005089 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5090 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5091 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005092done
5093
5094
5095
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005096
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005097
Reid Spencer65c5d752006-11-05 17:08:18 +00005098# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005099if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005100 enableval=$enable_cbe_printf_a;
5101else
5102 enableval=default
5103fi
5104
5105case "$enableval" in
5106 yes) ENABLE_CBE_PRINTF_A=1
5107 ;;
5108 no) ENABLE_CBE_PRINTF_A=0
5109 ;;
5110 default) ENABLE_CBE_PRINTF_A=1
5111 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005112 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5113echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5114 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005115esac
5116
5117cat >>confdefs.h <<_ACEOF
5118#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5119_ACEOF
5120
5121
Reid Spencera773bd52006-08-04 18:18:08 +00005122
5123# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005124if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005125 withval=$with_llvmgccdir;
5126else
5127 withval=default
5128fi
5129
5130case "$withval" in
5131 default) WITH_LLVMGCCDIR=default ;;
5132 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005133 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5134echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5135 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005136esac
5137
5138
Devang Patel5d28b882007-12-04 22:54:47 +00005139# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005140if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005141 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5142 WITH_LLVMGCCDIR=""
5143fi
5144
5145
5146
5147# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005148if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005149 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5150 WITH_LLVMGCCDIR=""
5151fi
5152
Douglas Gregor01746742009-05-11 18:05:52 +00005153
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005154if test -n "$LLVMGCC"; then
5155 LLVMGCCCOMMAND="$LLVMGCC"
5156fi
5157
5158if test -n "$LLVMGXX"; then
5159 LLVMGXXCOMMAND="$LLVMGXX"
5160fi
Devang Patel5d28b882007-12-04 22:54:47 +00005161
5162if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005163 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5164echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5165 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005166fi
5167
5168if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005169 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5170echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5171 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005172fi
5173
5174
Daniel Dunbar98515672010-02-23 10:00:49 +00005175# Check whether --with-clang was given.
5176if test "${with_clang+set}" = set; then
5177 withval=$with_clang;
5178else
5179 with_clang=default
5180fi
5181
5182
5183
5184# Check whether --with-built-clang was given.
5185if test "${with_built_clang+set}" = set; then
5186 withval=$with_built_clang;
5187else
5188 with_built_clang=check
5189fi
5190
5191
5192{ echo "$as_me:$LINENO: checking clang compiler" >&5
5193echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5194WITH_CLANGPATH=""
5195WITH_BUILT_CLANG=0
5196if test "$with_clang" != "default"; then
5197 WITH_CLANGPATH="$with_clang"
5198 if ! test -x "$WITH_CLANGPATH"; then
5199 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5200echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5201 { (exit 1); exit 1; }; }
5202 fi
5203elif test "$with_built_clang" = "yes"; then
5204 WITH_BUILT_CLANG=1
5205elif test "$with_built_clang" = "no"; then
5206 WITH_BUILT_CLANG=0
5207else
5208 if test "$with_built_clang" != "check"; then
5209 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5210echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5211 { (exit 1); exit 1; }; }
5212 fi
5213
5214 if test -f ${srcdir}/tools/clang/README.txt; then
5215 WITH_BUILT_CLANG=1
5216 fi
5217fi
5218
5219if ! test -z "$WITH_CLANGPATH"; then
5220 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5221echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5222 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5223elif test "$WITH_BUILT_CLANG" = "1"; then
5224 { echo "$as_me:$LINENO: result: built" >&5
5225echo "${ECHO_T}built" >&6; }
5226else
5227 { echo "$as_me:$LINENO: result: none" >&5
5228echo "${ECHO_T}none" >&6; }
5229fi
5230CLANGPATH=$WITH_CLANGPATH
5231
5232CLANGXXPATH=$WITH_CLANGXXPATH
5233
5234ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5235
5236
5237
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005238# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005239if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005240 withval=$with_optimize_option;
5241else
5242 withval=default
5243fi
5244
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005245{ echo "$as_me:$LINENO: checking optimization flags" >&5
5246echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005247case "$withval" in
5248 default)
5249 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005250 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005251 MingW) optimize_option=-O2 ;;
5252 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005253 esac ;;
5254 *) optimize_option="$withval" ;;
5255esac
5256OPTIMIZE_OPTION=$optimize_option
5257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005258{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5259echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005260
5261
Reid Spencera773bd52006-08-04 18:18:08 +00005262# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005263if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005264 withval=$with_extra_options;
5265else
5266 withval=default
5267fi
5268
5269case "$withval" in
5270 default) EXTRA_OPTIONS= ;;
5271 *) EXTRA_OPTIONS=$withval ;;
5272esac
5273EXTRA_OPTIONS=$EXTRA_OPTIONS
5274
5275
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005276# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005277if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005278 enableval=$enable_bindings;
5279else
5280 enableval=default
5281fi
5282
5283BINDINGS_TO_BUILD=""
5284case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005285 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005286 all ) BINDINGS_TO_BUILD="ocaml" ;;
5287 none | no) BINDINGS_TO_BUILD="" ;;
5288 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5289 case "$a_binding" in
5290 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005291 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5292echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5293 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005294 esac
5295 done
5296 ;;
5297esac
5298
Reid Spencera773bd52006-08-04 18:18:08 +00005299
Gordon Henriksenf0915682007-10-02 16:42:22 +00005300# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005301if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005302 withval=$with_ocaml_libdir;
5303else
5304 withval=auto
5305fi
5306
5307case "$withval" in
5308 auto) with_ocaml_libdir="$withval" ;;
5309 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005310 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5311echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5312 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005313esac
5314
5315
Chandler Carruth6b241162010-10-19 08:21:25 +00005316# Check whether --with-clang-resource-dir was given.
5317if test "${with_clang_resource_dir+set}" = set; then
5318 withval=$with_clang_resource_dir;
5319else
5320 withval=""
5321fi
5322
5323
5324cat >>confdefs.h <<_ACEOF
5325#define CLANG_RESOURCE_DIR "$withval"
5326_ACEOF
5327
5328
5329
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005330# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005331if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005332 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005333else
5334 withval=""
5335fi
5336
5337
5338cat >>confdefs.h <<_ACEOF
5339#define C_INCLUDE_DIRS "$withval"
5340_ACEOF
5341
5342
5343
Rafael Espindola420d23c2009-11-16 19:46:55 +00005344# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005345if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005346 withval=$with_cxx_include_root;
5347else
5348 withval=""
5349fi
5350
5351
5352cat >>confdefs.h <<_ACEOF
5353#define CXX_INCLUDE_ROOT "$withval"
5354_ACEOF
5355
5356
5357
5358# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005359if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005360 withval=$with_cxx_include_arch;
5361else
5362 withval=""
5363fi
5364
5365
5366cat >>confdefs.h <<_ACEOF
5367#define CXX_INCLUDE_ARCH "$withval"
5368_ACEOF
5369
5370
5371
5372# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005373if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005374 withval=$with_cxx_include_32bit_dir;
5375else
5376 withval=""
5377fi
5378
5379
5380cat >>confdefs.h <<_ACEOF
5381#define CXX_INCLUDE_32BIT_DIR "$withval"
5382_ACEOF
5383
5384
5385
5386# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005387if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005388 withval=$with_cxx_include_64bit_dir;
5389else
5390 withval=""
5391fi
5392
5393
5394cat >>confdefs.h <<_ACEOF
5395#define CXX_INCLUDE_64BIT_DIR "$withval"
5396_ACEOF
5397
5398
5399
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005400# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005401if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005402 withval=$with_binutils_include;
5403else
5404 withval=default
5405fi
5406
5407case "$withval" in
5408 default) WITH_BINUTILS_INCDIR=default ;;
5409 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005410 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5411echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5412 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005413esac
5414if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5415 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5416
5417 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5418 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005419 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5420echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5421 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005422 fi
5423fi
5424
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005425# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005426if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005427 enableval=$enable_libffi; case "$enableval" in
5428 yes) llvm_cv_enable_libffi="yes" ;;
5429 no) llvm_cv_enable_libffi="no" ;;
5430 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005431echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5432 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005433 esac
5434else
5435 llvm_cv_enable_libffi=no
5436fi
5437
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005438
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005439
Reid Spencera773bd52006-08-04 18:18:08 +00005440ac_ext=c
5441ac_cpp='$CPP $CPPFLAGS'
5442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5444ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005445{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5446echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005447# On Suns, sometimes $CPP names a directory.
5448if test -n "$CPP" && test -d "$CPP"; then
5449 CPP=
5450fi
5451if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005452 if test "${ac_cv_prog_CPP+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005454else
5455 # Double quotes because CPP needs to be expanded
5456 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5457 do
5458 ac_preproc_ok=false
5459for ac_c_preproc_warn_flag in '' yes
5460do
5461 # Use a header file that comes with gcc, so configuring glibc
5462 # with a fresh cross-compiler works.
5463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5464 # <limits.h> exists even on freestanding compilers.
5465 # On the NeXT, cc -E runs the code through the compiler's parser,
5466 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005467 cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h. */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005472/* end confdefs.h. */
5473#ifdef __STDC__
5474# include <limits.h>
5475#else
5476# include <assert.h>
5477#endif
5478 Syntax error
5479_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005480if { (ac_try="$ac_cpp conftest.$ac_ext"
5481case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5484esac
5485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5487 ac_status=$?
5488 grep -v '^ *+' conftest.er1 >conftest.err
5489 rm -f conftest.er1
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } >/dev/null; then
5493 if test -s conftest.err; then
5494 ac_cpp_err=$ac_c_preproc_warn_flag
5495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5496 else
5497 ac_cpp_err=
5498 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005499else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005500 ac_cpp_err=yes
5501fi
5502if test -z "$ac_cpp_err"; then
5503 :
5504else
5505 echo "$as_me: failed program was:" >&5
5506sed 's/^/| /' conftest.$ac_ext >&5
5507
Reid Spencera773bd52006-08-04 18:18:08 +00005508 # Broken: fails on valid input.
5509continue
5510fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005511
Reid Spencera773bd52006-08-04 18:18:08 +00005512rm -f conftest.err conftest.$ac_ext
5513
5514 # OK, works on sane cases. Now check whether nonexistent headers
5515 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005516 cat >conftest.$ac_ext <<_ACEOF
5517/* confdefs.h. */
5518_ACEOF
5519cat confdefs.h >>conftest.$ac_ext
5520cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005521/* end confdefs.h. */
5522#include <ac_nonexistent.h>
5523_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005524if { (ac_try="$ac_cpp conftest.$ac_ext"
5525case "(($ac_try" in
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5528esac
5529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5531 ac_status=$?
5532 grep -v '^ *+' conftest.er1 >conftest.err
5533 rm -f conftest.er1
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } >/dev/null; then
5537 if test -s conftest.err; then
5538 ac_cpp_err=$ac_c_preproc_warn_flag
5539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5540 else
5541 ac_cpp_err=
5542 fi
5543else
5544 ac_cpp_err=yes
5545fi
5546if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005547 # Broken: success on invalid input.
5548continue
5549else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005550 echo "$as_me: failed program was:" >&5
5551sed 's/^/| /' conftest.$ac_ext >&5
5552
Reid Spencera773bd52006-08-04 18:18:08 +00005553 # Passes both tests.
5554ac_preproc_ok=:
5555break
5556fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005557
Reid Spencera773bd52006-08-04 18:18:08 +00005558rm -f conftest.err conftest.$ac_ext
5559
5560done
5561# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5562rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005563if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005564 break
5565fi
5566
5567 done
5568 ac_cv_prog_CPP=$CPP
5569
5570fi
5571 CPP=$ac_cv_prog_CPP
5572else
5573 ac_cv_prog_CPP=$CPP
5574fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005575{ echo "$as_me:$LINENO: result: $CPP" >&5
5576echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005577ac_preproc_ok=false
5578for ac_c_preproc_warn_flag in '' yes
5579do
5580 # Use a header file that comes with gcc, so configuring glibc
5581 # with a fresh cross-compiler works.
5582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5583 # <limits.h> exists even on freestanding compilers.
5584 # On the NeXT, cc -E runs the code through the compiler's parser,
5585 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005586 cat >conftest.$ac_ext <<_ACEOF
5587/* confdefs.h. */
5588_ACEOF
5589cat confdefs.h >>conftest.$ac_ext
5590cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005591/* end confdefs.h. */
5592#ifdef __STDC__
5593# include <limits.h>
5594#else
5595# include <assert.h>
5596#endif
5597 Syntax error
5598_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005599if { (ac_try="$ac_cpp conftest.$ac_ext"
5600case "(($ac_try" in
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5603esac
5604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } >/dev/null; then
5612 if test -s conftest.err; then
5613 ac_cpp_err=$ac_c_preproc_warn_flag
5614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5615 else
5616 ac_cpp_err=
5617 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005619 ac_cpp_err=yes
5620fi
5621if test -z "$ac_cpp_err"; then
5622 :
5623else
5624 echo "$as_me: failed program was:" >&5
5625sed 's/^/| /' conftest.$ac_ext >&5
5626
Reid Spencera773bd52006-08-04 18:18:08 +00005627 # Broken: fails on valid input.
5628continue
5629fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005630
Reid Spencera773bd52006-08-04 18:18:08 +00005631rm -f conftest.err conftest.$ac_ext
5632
5633 # OK, works on sane cases. Now check whether nonexistent headers
5634 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005635 cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h. */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005640/* end confdefs.h. */
5641#include <ac_nonexistent.h>
5642_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005643if { (ac_try="$ac_cpp conftest.$ac_ext"
5644case "(($ac_try" in
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5647esac
5648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5650 ac_status=$?
5651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } >/dev/null; then
5656 if test -s conftest.err; then
5657 ac_cpp_err=$ac_c_preproc_warn_flag
5658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5659 else
5660 ac_cpp_err=
5661 fi
5662else
5663 ac_cpp_err=yes
5664fi
5665if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005666 # Broken: success on invalid input.
5667continue
5668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005669 echo "$as_me: failed program was:" >&5
5670sed 's/^/| /' conftest.$ac_ext >&5
5671
Reid Spencera773bd52006-08-04 18:18:08 +00005672 # Passes both tests.
5673ac_preproc_ok=:
5674break
5675fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005676
Reid Spencera773bd52006-08-04 18:18:08 +00005677rm -f conftest.err conftest.$ac_ext
5678
5679done
5680# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5681rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005682if $ac_preproc_ok; then
5683 :
Reid Spencera773bd52006-08-04 18:18:08 +00005684else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005685 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5686See \`config.log' for more details." >&5
5687echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5688See \`config.log' for more details." >&2;}
5689 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005690fi
5691
5692ac_ext=c
5693ac_cpp='$CPP $CPPFLAGS'
5694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5696ac_compiler_gnu=$ac_cv_c_compiler_gnu
5697
5698ac_ext=c
5699ac_cpp='$CPP $CPPFLAGS'
5700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703if test -n "$ac_tool_prefix"; then
5704 for ac_prog in gcc
5705 do
5706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5707set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5710if test "${ac_cv_prog_CC+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005712else
5713 if test -n "$CC"; then
5714 ac_cv_prog_CC="$CC" # Let the user override the test.
5715else
5716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717for as_dir in $PATH
5718do
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 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 +00005723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005725 break 2
5726 fi
5727done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005728done
Reid Spencera773bd52006-08-04 18:18:08 +00005729IFS=$as_save_IFS
5730
5731fi
5732fi
5733CC=$ac_cv_prog_CC
5734if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005735 { echo "$as_me:$LINENO: result: $CC" >&5
5736echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005737else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005738 { echo "$as_me:$LINENO: result: no" >&5
5739echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005740fi
5741
5742
5743 test -n "$CC" && break
5744 done
5745fi
5746if test -z "$CC"; then
5747 ac_ct_CC=$CC
5748 for ac_prog in gcc
5749do
5750 # Extract the first word of "$ac_prog", so it can be a program name with args.
5751set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005752{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5754if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005756else
5757 if test -n "$ac_ct_CC"; then
5758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5759else
5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761for as_dir in $PATH
5762do
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 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 +00005767 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005769 break 2
5770 fi
5771done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005772done
Reid Spencera773bd52006-08-04 18:18:08 +00005773IFS=$as_save_IFS
5774
5775fi
5776fi
5777ac_ct_CC=$ac_cv_prog_ac_ct_CC
5778if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005779 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5780echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005782 { echo "$as_me:$LINENO: result: no" >&5
5783echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005784fi
5785
5786
5787 test -n "$ac_ct_CC" && break
5788done
5789
5790 if test "x$ac_ct_CC" = x; then
5791 CC=""
5792 else
5793 case $cross_compiling:$ac_tool_warned in
5794yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005795{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5796whose name does not start with the host triplet. If you think this
5797configuration is useful to you, please write to autoconf@gnu.org." >&5
5798echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5799whose name does not start with the host triplet. If you think this
5800configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005801ac_tool_warned=yes ;;
5802esac
5803 CC=$ac_ct_CC
5804 fi
5805fi
5806
5807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005808test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5809See \`config.log' for more details." >&5
5810echo "$as_me: error: no acceptable C compiler found in \$PATH
5811See \`config.log' for more details." >&2;}
5812 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005813
5814# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005815echo "$as_me:$LINENO: checking for C compiler version" >&5
5816ac_compiler=`set X $ac_compile; echo $2`
5817{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005818case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005824 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }
5827{ (ac_try="$ac_compiler -v >&5"
5828case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831esac
5832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_compiler -v >&5") 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }
5837{ (ac_try="$ac_compiler -V >&5"
5838case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_compiler -V >&5") 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005847
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005848{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5849echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5850if test "${ac_cv_c_compiler_gnu+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005852else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005853 cat >conftest.$ac_ext <<_ACEOF
5854/* confdefs.h. */
5855_ACEOF
5856cat confdefs.h >>conftest.$ac_ext
5857cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005858/* end confdefs.h. */
5859
5860int
5861main ()
5862{
5863#ifndef __GNUC__
5864 choke me
5865#endif
5866
5867 ;
5868 return 0;
5869}
5870_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005871rm -f conftest.$ac_objext
5872if { (ac_try="$ac_compile"
5873case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876esac
5877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_compile") 2>conftest.er1
5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
5885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5886 { (case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5889esac
5890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_try") 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899esac
5900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_try") 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005905 ac_compiler_gnu=yes
5906else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005907 echo "$as_me: failed program was:" >&5
5908sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005911fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005912
Reid Spencera773bd52006-08-04 18:18:08 +00005913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914ac_cv_c_compiler_gnu=$ac_compiler_gnu
5915
5916fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005917{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5918echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5919GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005920ac_test_CFLAGS=${CFLAGS+set}
5921ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005922{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5923echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5924if test "${ac_cv_prog_cc_g+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005926else
5927 ac_save_c_werror_flag=$ac_c_werror_flag
5928 ac_c_werror_flag=yes
5929 ac_cv_prog_cc_g=no
5930 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005931 cat >conftest.$ac_ext <<_ACEOF
5932/* confdefs.h. */
5933_ACEOF
5934cat confdefs.h >>conftest.$ac_ext
5935cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005936/* end confdefs.h. */
5937
5938int
5939main ()
5940{
5941
5942 ;
5943 return 0;
5944}
5945_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005946rm -f conftest.$ac_objext
5947if { (ac_try="$ac_compile"
5948case "(($ac_try" in
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5951esac
5952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_compile") 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } &&
5960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5961 { (case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5964esac
5965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_try") 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; } &&
5970 { ac_try='test -s conftest.$ac_objext'
5971 { (case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5974esac
5975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_try") 2>&5
5977 ac_status=$?
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005980 ac_cv_prog_cc_g=yes
5981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005982 echo "$as_me: failed program was:" >&5
5983sed 's/^/| /' conftest.$ac_ext >&5
5984
5985 CFLAGS=""
5986 cat >conftest.$ac_ext <<_ACEOF
5987/* confdefs.h. */
5988_ACEOF
5989cat confdefs.h >>conftest.$ac_ext
5990cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005991/* end confdefs.h. */
5992
5993int
5994main ()
5995{
5996
5997 ;
5998 return 0;
5999}
6000_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006001rm -f conftest.$ac_objext
6002if { (ac_try="$ac_compile"
6003case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compile") 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } &&
6015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6016 { (case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6019esac
6020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_try") 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; } &&
6025 { ac_try='test -s conftest.$ac_objext'
6026 { (case "(($ac_try" in
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6029esac
6030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031 (eval "$ac_try") 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 :
Torok Edwin871384f2010-01-26 08:50:50 +00006036else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006037 echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
6040 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006041 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006042 cat >conftest.$ac_ext <<_ACEOF
6043/* confdefs.h. */
6044_ACEOF
6045cat confdefs.h >>conftest.$ac_ext
6046cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006047/* end confdefs.h. */
6048
6049int
6050main ()
6051{
6052
6053 ;
6054 return 0;
6055}
6056_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006057rm -f conftest.$ac_objext
6058if { (ac_try="$ac_compile"
6059case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062esac
6063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_compile") 2>conftest.er1
6065 ac_status=$?
6066 grep -v '^ *+' conftest.er1 >conftest.err
6067 rm -f conftest.er1
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6072 { (case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075esac
6076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_try") 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085esac
6086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_try") 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006091 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006092else
6093 echo "$as_me: failed program was:" >&5
6094sed 's/^/| /' conftest.$ac_ext >&5
6095
6096
Reid Spencera773bd52006-08-04 18:18:08 +00006097fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006098
Reid Spencera773bd52006-08-04 18:18:08 +00006099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006101
Reid Spencera773bd52006-08-04 18:18:08 +00006102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006104
Reid Spencera773bd52006-08-04 18:18:08 +00006105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106 ac_c_werror_flag=$ac_save_c_werror_flag
6107fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006108{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6109echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006110if test "$ac_test_CFLAGS" = set; then
6111 CFLAGS=$ac_save_CFLAGS
6112elif test $ac_cv_prog_cc_g = yes; then
6113 if test "$GCC" = yes; then
6114 CFLAGS="-g -O2"
6115 else
6116 CFLAGS="-g"
6117 fi
6118else
6119 if test "$GCC" = yes; then
6120 CFLAGS="-O2"
6121 else
6122 CFLAGS=
6123 fi
6124fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006125{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6126echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6127if test "${ac_cv_prog_cc_c89+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006129else
6130 ac_cv_prog_cc_c89=no
6131ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006132cat >conftest.$ac_ext <<_ACEOF
6133/* confdefs.h. */
6134_ACEOF
6135cat confdefs.h >>conftest.$ac_ext
6136cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006137/* end confdefs.h. */
6138#include <stdarg.h>
6139#include <stdio.h>
6140#include <sys/types.h>
6141#include <sys/stat.h>
6142/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6143struct buf { int x; };
6144FILE * (*rcsopen) (struct buf *, struct stat *, int);
6145static char *e (p, i)
6146 char **p;
6147 int i;
6148{
6149 return p[i];
6150}
6151static char *f (char * (*g) (char **, int), char **p, ...)
6152{
6153 char *s;
6154 va_list v;
6155 va_start (v,p);
6156 s = g (p, va_arg (v,int));
6157 va_end (v);
6158 return s;
6159}
6160
6161/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6162 function prototypes and stuff, but not '\xHH' hex character constants.
6163 These don't provoke an error unfortunately, instead are silently treated
6164 as 'x'. The following induces an error, until -std is added to get
6165 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6166 array size at least. It's necessary to write '\x00'==0 to get something
6167 that's true only with -std. */
6168int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6169
6170/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6171 inside strings and character constants. */
6172#define FOO(x) 'x'
6173int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6174
6175int test (int i, double x);
6176struct s1 {int (*f) (int a);};
6177struct s2 {int (*f) (double a);};
6178int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6179int argc;
6180char **argv;
6181int
6182main ()
6183{
6184return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6185 ;
6186 return 0;
6187}
6188_ACEOF
6189for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6190 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6191do
6192 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006193 rm -f conftest.$ac_objext
6194if { (ac_try="$ac_compile"
6195case "(($ac_try" in
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6198esac
6199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_compile") 2>conftest.er1
6201 ac_status=$?
6202 grep -v '^ *+' conftest.er1 >conftest.err
6203 rm -f conftest.er1
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } &&
6207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6208 { (case "(($ac_try" in
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6211esac
6212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_try") 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; } &&
6217 { ac_try='test -s conftest.$ac_objext'
6218 { (case "(($ac_try" in
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6221esac
6222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223 (eval "$ac_try") 2>&5
6224 ac_status=$?
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006227 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006228else
6229 echo "$as_me: failed program was:" >&5
6230sed 's/^/| /' conftest.$ac_ext >&5
6231
6232
Reid Spencera773bd52006-08-04 18:18:08 +00006233fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006234
Reid Spencera773bd52006-08-04 18:18:08 +00006235rm -f core conftest.err conftest.$ac_objext
6236 test "x$ac_cv_prog_cc_c89" != "xno" && break
6237done
6238rm -f conftest.$ac_ext
6239CC=$ac_save_CC
6240
6241fi
6242# AC_CACHE_VAL
6243case "x$ac_cv_prog_cc_c89" in
6244 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006245 { echo "$as_me:$LINENO: result: none needed" >&5
6246echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006247 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006248 { echo "$as_me:$LINENO: result: unsupported" >&5
6249echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006250 *)
6251 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006252 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6253echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006254esac
6255
6256
6257ac_ext=c
6258ac_cpp='$CPP $CPPFLAGS'
6259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6261ac_compiler_gnu=$ac_cv_c_compiler_gnu
6262
6263ac_ext=cpp
6264ac_cpp='$CXXCPP $CPPFLAGS'
6265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6268if test -z "$CXX"; then
6269 if test -n "$CCC"; then
6270 CXX=$CCC
6271 else
6272 if test -n "$ac_tool_prefix"; then
6273 for ac_prog in g++
6274 do
6275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6276set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006277{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6279if test "${ac_cv_prog_CXX+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006281else
6282 if test -n "$CXX"; then
6283 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6284else
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 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 +00006292 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006294 break 2
6295 fi
6296done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006297done
Reid Spencera773bd52006-08-04 18:18:08 +00006298IFS=$as_save_IFS
6299
6300fi
6301fi
6302CXX=$ac_cv_prog_CXX
6303if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006304 { echo "$as_me:$LINENO: result: $CXX" >&5
6305echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006306else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006307 { echo "$as_me:$LINENO: result: no" >&5
6308echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006309fi
6310
6311
6312 test -n "$CXX" && break
6313 done
6314fi
6315if test -z "$CXX"; then
6316 ac_ct_CXX=$CXX
6317 for ac_prog in g++
6318do
6319 # Extract the first word of "$ac_prog", so it can be a program name with args.
6320set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006321{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6323if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006325else
6326 if test -n "$ac_ct_CXX"; then
6327 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6328else
6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330for as_dir in $PATH
6331do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 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 +00006336 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006338 break 2
6339 fi
6340done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006341done
Reid Spencera773bd52006-08-04 18:18:08 +00006342IFS=$as_save_IFS
6343
6344fi
6345fi
6346ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6347if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6349echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006350else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006351 { echo "$as_me:$LINENO: result: no" >&5
6352echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006353fi
6354
6355
6356 test -n "$ac_ct_CXX" && break
6357done
6358
6359 if test "x$ac_ct_CXX" = x; then
6360 CXX="g++"
6361 else
6362 case $cross_compiling:$ac_tool_warned in
6363yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006364{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6365whose name does not start with the host triplet. If you think this
6366configuration is useful to you, please write to autoconf@gnu.org." >&5
6367echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6368whose name does not start with the host triplet. If you think this
6369configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006370ac_tool_warned=yes ;;
6371esac
6372 CXX=$ac_ct_CXX
6373 fi
6374fi
6375
6376 fi
6377fi
6378# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006379echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6380ac_compiler=`set X $ac_compile; echo $2`
6381{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006382case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006388 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }
6391{ (ac_try="$ac_compiler -v >&5"
6392case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395esac
6396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_compiler -v >&5") 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }
6401{ (ac_try="$ac_compiler -V >&5"
6402case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6405esac
6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_compiler -V >&5") 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006411
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006412{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6413echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6414if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006417 cat >conftest.$ac_ext <<_ACEOF
6418/* confdefs.h. */
6419_ACEOF
6420cat confdefs.h >>conftest.$ac_ext
6421cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006422/* end confdefs.h. */
6423
6424int
6425main ()
6426{
6427#ifndef __GNUC__
6428 choke me
6429#endif
6430
6431 ;
6432 return 0;
6433}
6434_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006435rm -f conftest.$ac_objext
6436if { (ac_try="$ac_compile"
6437case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440esac
6441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_compile") 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6450 { (case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6453esac
6454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_try") 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; } &&
6459 { ac_try='test -s conftest.$ac_objext'
6460 { (case "(($ac_try" in
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6463esac
6464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_try") 2>&5
6466 ac_status=$?
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006469 ac_compiler_gnu=yes
6470else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006471 echo "$as_me: failed program was:" >&5
6472sed 's/^/| /' conftest.$ac_ext >&5
6473
6474 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006475fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006476
Reid Spencera773bd52006-08-04 18:18:08 +00006477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6479
6480fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006481{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6482echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6483GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006484ac_test_CXXFLAGS=${CXXFLAGS+set}
6485ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006486{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6487echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6488if test "${ac_cv_prog_cxx_g+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006490else
6491 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6492 ac_cxx_werror_flag=yes
6493 ac_cv_prog_cxx_g=no
6494 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006495 cat >conftest.$ac_ext <<_ACEOF
6496/* confdefs.h. */
6497_ACEOF
6498cat confdefs.h >>conftest.$ac_ext
6499cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006500/* end confdefs.h. */
6501
6502int
6503main ()
6504{
6505
6506 ;
6507 return 0;
6508}
6509_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006510rm -f conftest.$ac_objext
6511if { (ac_try="$ac_compile"
6512case "(($ac_try" in
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6515esac
6516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_compile") 2>conftest.er1
6518 ac_status=$?
6519 grep -v '^ *+' conftest.er1 >conftest.err
6520 rm -f conftest.er1
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6525 { (case "(($ac_try" in
6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6528esac
6529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_try") 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try='test -s conftest.$ac_objext'
6535 { (case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538esac
6539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_try") 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006544 ac_cv_prog_cxx_g=yes
6545else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006546 echo "$as_me: failed program was:" >&5
6547sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 CXXFLAGS=""
6550 cat >conftest.$ac_ext <<_ACEOF
6551/* confdefs.h. */
6552_ACEOF
6553cat confdefs.h >>conftest.$ac_ext
6554cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006555/* end confdefs.h. */
6556
6557int
6558main ()
6559{
6560
6561 ;
6562 return 0;
6563}
6564_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006565rm -f conftest.$ac_objext
6566if { (ac_try="$ac_compile"
6567case "(($ac_try" in
6568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569 *) ac_try_echo=$ac_try;;
6570esac
6571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6572 (eval "$ac_compile") 2>conftest.er1
6573 ac_status=$?
6574 grep -v '^ *+' conftest.er1 >conftest.err
6575 rm -f conftest.er1
6576 cat conftest.err >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6580 { (case "(($ac_try" in
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6583esac
6584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_try") 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; } &&
6589 { ac_try='test -s conftest.$ac_objext'
6590 { (case "(($ac_try" in
6591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6593esac
6594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595 (eval "$ac_try") 2>&5
6596 ac_status=$?
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); }; }; then
6599 :
Torok Edwin871384f2010-01-26 08:50:50 +00006600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006601 echo "$as_me: failed program was:" >&5
6602sed 's/^/| /' conftest.$ac_ext >&5
6603
6604 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006605 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006606 cat >conftest.$ac_ext <<_ACEOF
6607/* confdefs.h. */
6608_ACEOF
6609cat confdefs.h >>conftest.$ac_ext
6610cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006611/* end confdefs.h. */
6612
6613int
6614main ()
6615{
6616
6617 ;
6618 return 0;
6619}
6620_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006621rm -f conftest.$ac_objext
6622if { (ac_try="$ac_compile"
6623case "(($ac_try" in
6624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6625 *) ac_try_echo=$ac_try;;
6626esac
6627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628 (eval "$ac_compile") 2>conftest.er1
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6636 { (case "(($ac_try" in
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6639esac
6640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641 (eval "$ac_try") 2>&5
6642 ac_status=$?
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; } &&
6645 { ac_try='test -s conftest.$ac_objext'
6646 { (case "(($ac_try" in
6647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648 *) ac_try_echo=$ac_try;;
6649esac
6650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651 (eval "$ac_try") 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006655 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006656else
6657 echo "$as_me: failed program was:" >&5
6658sed 's/^/| /' conftest.$ac_ext >&5
6659
6660
Reid Spencera773bd52006-08-04 18:18:08 +00006661fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006662
Reid Spencera773bd52006-08-04 18:18:08 +00006663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006665
Reid Spencera773bd52006-08-04 18:18:08 +00006666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006668
Reid Spencera773bd52006-08-04 18:18:08 +00006669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6671fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006672{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6673echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006674if test "$ac_test_CXXFLAGS" = set; then
6675 CXXFLAGS=$ac_save_CXXFLAGS
6676elif test $ac_cv_prog_cxx_g = yes; then
6677 if test "$GXX" = yes; then
6678 CXXFLAGS="-g -O2"
6679 else
6680 CXXFLAGS="-g"
6681 fi
6682else
6683 if test "$GXX" = yes; then
6684 CXXFLAGS="-O2"
6685 else
6686 CXXFLAGS=
6687 fi
6688fi
6689ac_ext=c
6690ac_cpp='$CPP $CPPFLAGS'
6691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6693ac_compiler_gnu=$ac_cv_c_compiler_gnu
6694
Reid Spencera773bd52006-08-04 18:18:08 +00006695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006696{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6697echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6698if test "${lt_cv_path_NM+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006700else
6701 if test -n "$NM"; then
6702 # Let the user override the test.
6703 lt_cv_path_NM="$NM"
6704else
6705 lt_nm_to_check="${ac_tool_prefix}nm"
6706 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6707 lt_nm_to_check="$lt_nm_to_check nm"
6708 fi
6709 for lt_tmp_nm in $lt_nm_to_check; do
6710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6711 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6712 IFS="$lt_save_ifs"
6713 test -z "$ac_dir" && ac_dir=.
6714 tmp_nm="$ac_dir/$lt_tmp_nm"
6715 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6716 # Check to see if the nm accepts a BSD-compat flag.
6717 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6718 # nm: unknown option "B" ignored
6719 # Tru64's nm complains that /dev/null is an invalid object file
6720 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6721 */dev/null* | *'Invalid file or object type'*)
6722 lt_cv_path_NM="$tmp_nm -B"
6723 break
6724 ;;
6725 *)
6726 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6727 */dev/null*)
6728 lt_cv_path_NM="$tmp_nm -p"
6729 break
6730 ;;
6731 *)
6732 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6733 continue # so that we can try to find one that supports BSD flags
6734 ;;
6735 esac
6736 ;;
6737 esac
6738 fi
6739 done
6740 IFS="$lt_save_ifs"
6741 done
6742 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6743fi
6744fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006745{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6746echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006747NM="$lt_cv_path_NM"
6748
6749
6750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006751{ echo "$as_me:$LINENO: checking for GNU make" >&5
6752echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6753if test "${llvm_cv_gnu_make_command+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006755else
6756 llvm_cv_gnu_make_command=''
6757 for a in "$MAKE" make gmake gnumake ; do
6758 if test -z "$a" ; then continue ; fi ;
6759 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6760 then
6761 llvm_cv_gnu_make_command=$a ;
6762 break;
6763 fi
6764 done
6765fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006766{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6767echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006768 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6769 ifGNUmake='' ;
6770 else
6771 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006772 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6773echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006774 fi
6775
6776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006777{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6778echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006779LN_S=$as_ln_s
6780if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006781 { echo "$as_me:$LINENO: result: yes" >&5
6782echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006783else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006784 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6785echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006786fi
6787
6788# Extract the first word of "cmp", so it can be a program name with args.
6789set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006790{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792if test "${ac_cv_path_CMP+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006794else
6795 case $CMP in
6796 [\\/]* | ?:[\\/]*)
6797 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6798 ;;
6799 *)
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 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 +00006807 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006809 break 2
6810 fi
6811done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006812done
Reid Spencera773bd52006-08-04 18:18:08 +00006813IFS=$as_save_IFS
6814
6815 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6816 ;;
6817esac
6818fi
6819CMP=$ac_cv_path_CMP
6820if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006821 { echo "$as_me:$LINENO: result: $CMP" >&5
6822echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006823else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006824 { echo "$as_me:$LINENO: result: no" >&5
6825echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006826fi
6827
6828
6829# Extract the first word of "cp", so it can be a program name with args.
6830set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833if test "${ac_cv_path_CP+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006835else
6836 case $CP in
6837 [\\/]* | ?:[\\/]*)
6838 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6839 ;;
6840 *)
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
6843do
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 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 +00006848 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006850 break 2
6851 fi
6852done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006853done
Reid Spencera773bd52006-08-04 18:18:08 +00006854IFS=$as_save_IFS
6855
6856 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6857 ;;
6858esac
6859fi
6860CP=$ac_cv_path_CP
6861if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006862 { echo "$as_me:$LINENO: result: $CP" >&5
6863echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006864else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006865 { echo "$as_me:$LINENO: result: no" >&5
6866echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006867fi
6868
6869
6870# Extract the first word of "date", so it can be a program name with args.
6871set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874if test "${ac_cv_path_DATE+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006876else
6877 case $DATE in
6878 [\\/]* | ?:[\\/]*)
6879 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6880 ;;
6881 *)
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 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 +00006889 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006891 break 2
6892 fi
6893done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006894done
Reid Spencera773bd52006-08-04 18:18:08 +00006895IFS=$as_save_IFS
6896
6897 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6898 ;;
6899esac
6900fi
6901DATE=$ac_cv_path_DATE
6902if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006903 { echo "$as_me:$LINENO: result: $DATE" >&5
6904echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006905else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006906 { echo "$as_me:$LINENO: result: no" >&5
6907echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006908fi
6909
6910
6911# Extract the first word of "find", so it can be a program name with args.
6912set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006913{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915if test "${ac_cv_path_FIND+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006917else
6918 case $FIND in
6919 [\\/]* | ?:[\\/]*)
6920 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6921 ;;
6922 *)
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924for as_dir in $PATH
6925do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 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 +00006930 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006932 break 2
6933 fi
6934done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006935done
Reid Spencera773bd52006-08-04 18:18:08 +00006936IFS=$as_save_IFS
6937
6938 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6939 ;;
6940esac
6941fi
6942FIND=$ac_cv_path_FIND
6943if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006944 { echo "$as_me:$LINENO: result: $FIND" >&5
6945echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006946else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006947 { echo "$as_me:$LINENO: result: no" >&5
6948echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006949fi
6950
6951
6952# Extract the first word of "grep", so it can be a program name with args.
6953set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006954{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6956if test "${ac_cv_path_GREP+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006958else
6959 case $GREP in
6960 [\\/]* | ?:[\\/]*)
6961 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6962 ;;
6963 *)
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 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 +00006971 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006973 break 2
6974 fi
6975done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006976done
Reid Spencera773bd52006-08-04 18:18:08 +00006977IFS=$as_save_IFS
6978
6979 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6980 ;;
6981esac
6982fi
6983GREP=$ac_cv_path_GREP
6984if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006985 { echo "$as_me:$LINENO: result: $GREP" >&5
6986echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006987else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988 { echo "$as_me:$LINENO: result: no" >&5
6989echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006990fi
6991
6992
6993# Extract the first word of "mkdir", so it can be a program name with args.
6994set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997if test "${ac_cv_path_MKDIR+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006999else
7000 case $MKDIR in
7001 [\\/]* | ?:[\\/]*)
7002 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7003 ;;
7004 *)
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006for as_dir in $PATH
7007do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 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 +00007012 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007014 break 2
7015 fi
7016done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007017done
Reid Spencera773bd52006-08-04 18:18:08 +00007018IFS=$as_save_IFS
7019
7020 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7021 ;;
7022esac
7023fi
7024MKDIR=$ac_cv_path_MKDIR
7025if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007026 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7027echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007028else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007029 { echo "$as_me:$LINENO: result: no" >&5
7030echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007031fi
7032
7033
7034# Extract the first word of "mv", so it can be a program name with args.
7035set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038if test "${ac_cv_path_MV+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007040else
7041 case $MV in
7042 [\\/]* | ?:[\\/]*)
7043 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7044 ;;
7045 *)
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047for as_dir in $PATH
7048do
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 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 +00007053 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007055 break 2
7056 fi
7057done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007058done
Reid Spencera773bd52006-08-04 18:18:08 +00007059IFS=$as_save_IFS
7060
7061 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7062 ;;
7063esac
7064fi
7065MV=$ac_cv_path_MV
7066if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007067 { echo "$as_me:$LINENO: result: $MV" >&5
7068echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007069else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007070 { echo "$as_me:$LINENO: result: no" >&5
7071echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007072fi
7073
7074
7075if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7077set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007078{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7080if test "${ac_cv_prog_RANLIB+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007082else
7083 if test -n "$RANLIB"; then
7084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7085else
7086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087for as_dir in $PATH
7088do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 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 +00007093 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007095 break 2
7096 fi
7097done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007098done
Reid Spencera773bd52006-08-04 18:18:08 +00007099IFS=$as_save_IFS
7100
7101fi
7102fi
7103RANLIB=$ac_cv_prog_RANLIB
7104if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007105 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7106echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007107else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007108 { echo "$as_me:$LINENO: result: no" >&5
7109echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007110fi
7111
7112
7113fi
7114if test -z "$ac_cv_prog_RANLIB"; then
7115 ac_ct_RANLIB=$RANLIB
7116 # Extract the first word of "ranlib", so it can be a program name with args.
7117set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007118{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007122else
7123 if test -n "$ac_ct_RANLIB"; then
7124 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7125else
7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 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 +00007133 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007135 break 2
7136 fi
7137done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007138done
Reid Spencera773bd52006-08-04 18:18:08 +00007139IFS=$as_save_IFS
7140
7141fi
7142fi
7143ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7144if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007145 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7146echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007147else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007148 { echo "$as_me:$LINENO: result: no" >&5
7149echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007150fi
7151
7152 if test "x$ac_ct_RANLIB" = x; then
7153 RANLIB=":"
7154 else
7155 case $cross_compiling:$ac_tool_warned in
7156yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007157{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7158whose name does not start with the host triplet. If you think this
7159configuration is useful to you, please write to autoconf@gnu.org." >&5
7160echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7161whose name does not start with the host triplet. If you think this
7162configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007163ac_tool_warned=yes ;;
7164esac
7165 RANLIB=$ac_ct_RANLIB
7166 fi
7167else
7168 RANLIB="$ac_cv_prog_RANLIB"
7169fi
7170
Torok Edwin871384f2010-01-26 08:50:50 +00007171if test -n "$ac_tool_prefix"; then
7172 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7173set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176if test "${ac_cv_prog_AR+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007178else
7179 if test -n "$AR"; then
7180 ac_cv_prog_AR="$AR" # Let the user override the test.
7181else
7182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183for as_dir in $PATH
7184do
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 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 +00007189 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007191 break 2
7192 fi
7193done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007194done
Torok Edwin871384f2010-01-26 08:50:50 +00007195IFS=$as_save_IFS
7196
7197fi
7198fi
7199AR=$ac_cv_prog_AR
7200if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007201 { echo "$as_me:$LINENO: result: $AR" >&5
7202echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007203else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007204 { echo "$as_me:$LINENO: result: no" >&5
7205echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007206fi
7207
7208
7209fi
7210if test -z "$ac_cv_prog_AR"; then
7211 ac_ct_AR=$AR
7212 # Extract the first word of "ar", so it can be a program name with args.
7213set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007214{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007218else
7219 if test -n "$ac_ct_AR"; then
7220 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7221else
7222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223for as_dir in $PATH
7224do
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 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 +00007229 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007231 break 2
7232 fi
7233done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007234done
Torok Edwin871384f2010-01-26 08:50:50 +00007235IFS=$as_save_IFS
7236
7237fi
7238fi
7239ac_ct_AR=$ac_cv_prog_ac_ct_AR
7240if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007241 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7242echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007243else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007244 { echo "$as_me:$LINENO: result: no" >&5
7245echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007246fi
7247
7248 if test "x$ac_ct_AR" = x; then
7249 AR="false"
7250 else
7251 case $cross_compiling:$ac_tool_warned in
7252yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007253{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7254whose name does not start with the host triplet. If you think this
7255configuration is useful to you, please write to autoconf@gnu.org." >&5
7256echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7257whose name does not start with the host triplet. If you think this
7258configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007259ac_tool_warned=yes ;;
7260esac
7261 AR=$ac_ct_AR
7262 fi
7263else
7264 AR="$ac_cv_prog_AR"
7265fi
7266
Reid Spencera773bd52006-08-04 18:18:08 +00007267# Extract the first word of "rm", so it can be a program name with args.
7268set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007269{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7271if test "${ac_cv_path_RM+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007273else
7274 case $RM in
7275 [\\/]* | ?:[\\/]*)
7276 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7277 ;;
7278 *)
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280for as_dir in $PATH
7281do
7282 IFS=$as_save_IFS
7283 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 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 +00007286 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007288 break 2
7289 fi
7290done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007291done
Reid Spencera773bd52006-08-04 18:18:08 +00007292IFS=$as_save_IFS
7293
7294 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7295 ;;
7296esac
7297fi
7298RM=$ac_cv_path_RM
7299if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007300 { echo "$as_me:$LINENO: result: $RM" >&5
7301echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007302else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007303 { echo "$as_me:$LINENO: result: no" >&5
7304echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007305fi
7306
7307
7308# Extract the first word of "sed", so it can be a program name with args.
7309set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7312if test "${ac_cv_path_SED+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007314else
7315 case $SED in
7316 [\\/]* | ?:[\\/]*)
7317 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7318 ;;
7319 *)
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321for as_dir in $PATH
7322do
7323 IFS=$as_save_IFS
7324 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 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 +00007327 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007329 break 2
7330 fi
7331done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007332done
Reid Spencera773bd52006-08-04 18:18:08 +00007333IFS=$as_save_IFS
7334
7335 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7336 ;;
7337esac
7338fi
7339SED=$ac_cv_path_SED
7340if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007341 { echo "$as_me:$LINENO: result: $SED" >&5
7342echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007343else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007344 { echo "$as_me:$LINENO: result: no" >&5
7345echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007346fi
7347
7348
7349# Extract the first word of "tar", so it can be a program name with args.
7350set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7353if test "${ac_cv_path_TAR+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007355else
7356 case $TAR in
7357 [\\/]* | ?:[\\/]*)
7358 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7359 ;;
7360 *)
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH
7363do
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 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 +00007368 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007370 break 2
7371 fi
7372done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007373done
Reid Spencera773bd52006-08-04 18:18:08 +00007374IFS=$as_save_IFS
7375
7376 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7377 ;;
7378esac
7379fi
7380TAR=$ac_cv_path_TAR
7381if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007382 { echo "$as_me:$LINENO: result: $TAR" >&5
7383echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007384else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007385 { echo "$as_me:$LINENO: result: no" >&5
7386echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007387fi
7388
7389
7390# Extract the first word of "pwd", so it can be a program name with args.
7391set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394if test "${ac_cv_path_BINPWD+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007396else
7397 case $BINPWD in
7398 [\\/]* | ?:[\\/]*)
7399 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7400 ;;
7401 *)
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403for as_dir in $PATH
7404do
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 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 +00007409 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007411 break 2
7412 fi
7413done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414done
Reid Spencera773bd52006-08-04 18:18:08 +00007415IFS=$as_save_IFS
7416
7417 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7418 ;;
7419esac
7420fi
7421BINPWD=$ac_cv_path_BINPWD
7422if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007423 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7424echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007425else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426 { echo "$as_me:$LINENO: result: no" >&5
7427echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007428fi
7429
7430
7431
7432# Extract the first word of "Graphviz", so it can be a program name with args.
7433set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007438else
7439 case $GRAPHVIZ in
7440 [\\/]* | ?:[\\/]*)
7441 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7442 ;;
7443 *)
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 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 +00007451 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007453 break 2
7454 fi
7455done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007456done
Reid Spencera773bd52006-08-04 18:18:08 +00007457IFS=$as_save_IFS
7458
7459 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7460 ;;
7461esac
7462fi
7463GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7464if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007465 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7466echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007467else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007468 { echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007470fi
7471
7472
7473if test "$GRAPHVIZ" != "echo Graphviz" ; then
7474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007475cat >>confdefs.h <<\_ACEOF
7476#define HAVE_GRAPHVIZ 1
7477_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007478
Jeff Cohen28783c32007-01-12 18:22:38 +00007479 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007480 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7481 fi
7482
7483cat >>confdefs.h <<_ACEOF
7484#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7485_ACEOF
7486
7487fi
7488# Extract the first word of "dot", so it can be a program name with args.
7489set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492if test "${ac_cv_path_DOT+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007494else
7495 case $DOT in
7496 [\\/]* | ?:[\\/]*)
7497 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7498 ;;
7499 *)
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501for as_dir in $PATH
7502do
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 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 +00007507 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007509 break 2
7510 fi
7511done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007512done
Reid Spencera773bd52006-08-04 18:18:08 +00007513IFS=$as_save_IFS
7514
7515 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7516 ;;
7517esac
7518fi
7519DOT=$ac_cv_path_DOT
7520if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007521 { echo "$as_me:$LINENO: result: $DOT" >&5
7522echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007523else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007524 { echo "$as_me:$LINENO: result: no" >&5
7525echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007526fi
7527
7528
7529if test "$DOT" != "echo dot" ; then
7530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007531cat >>confdefs.h <<\_ACEOF
7532#define HAVE_DOT 1
7533_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007534
Jeff Cohen28783c32007-01-12 18:22:38 +00007535 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007536 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7537 fi
7538
7539cat >>confdefs.h <<_ACEOF
7540#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7541_ACEOF
7542
7543fi
David Greenef0b9eff2009-07-09 17:16:26 +00007544# Extract the first word of "fdp", so it can be a program name with args.
7545set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548if test "${ac_cv_path_FDP+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007550else
7551 case $FDP in
7552 [\\/]* | ?:[\\/]*)
7553 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7554 ;;
7555 *)
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 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 +00007563 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007565 break 2
7566 fi
7567done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007568done
David Greenef0b9eff2009-07-09 17:16:26 +00007569IFS=$as_save_IFS
7570
7571 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7572 ;;
7573esac
7574fi
7575FDP=$ac_cv_path_FDP
7576if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007577 { echo "$as_me:$LINENO: result: $FDP" >&5
7578echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007579else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007580 { echo "$as_me:$LINENO: result: no" >&5
7581echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007582fi
7583
7584
7585if test "$FDP" != "echo fdp" ; then
7586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007587cat >>confdefs.h <<\_ACEOF
7588#define HAVE_FDP 1
7589_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007590
7591 if test "$llvm_cv_os_type" = "MingW" ; then
7592 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7593 fi
7594
7595cat >>confdefs.h <<_ACEOF
7596#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7597_ACEOF
7598
7599fi
7600# Extract the first word of "neato", so it can be a program name with args.
7601set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7604if test "${ac_cv_path_NEATO+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007606else
7607 case $NEATO in
7608 [\\/]* | ?:[\\/]*)
7609 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7610 ;;
7611 *)
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 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 +00007619 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007621 break 2
7622 fi
7623done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007624done
David Greenef0b9eff2009-07-09 17:16:26 +00007625IFS=$as_save_IFS
7626
7627 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7628 ;;
7629esac
7630fi
7631NEATO=$ac_cv_path_NEATO
7632if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007633 { echo "$as_me:$LINENO: result: $NEATO" >&5
7634echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007635else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007636 { echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007638fi
7639
7640
7641if test "$NEATO" != "echo neato" ; then
7642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007643cat >>confdefs.h <<\_ACEOF
7644#define HAVE_NEATO 1
7645_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007646
7647 if test "$llvm_cv_os_type" = "MingW" ; then
7648 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7649 fi
7650
7651cat >>confdefs.h <<_ACEOF
7652#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7653_ACEOF
7654
7655fi
7656# Extract the first word of "twopi", so it can be a program name with args.
7657set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7660if test "${ac_cv_path_TWOPI+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007662else
7663 case $TWOPI in
7664 [\\/]* | ?:[\\/]*)
7665 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7666 ;;
7667 *)
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669for as_dir in $PATH
7670do
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 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 +00007675 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007677 break 2
7678 fi
7679done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007680done
David Greenef0b9eff2009-07-09 17:16:26 +00007681IFS=$as_save_IFS
7682
7683 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7684 ;;
7685esac
7686fi
7687TWOPI=$ac_cv_path_TWOPI
7688if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007689 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7690echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007691else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007692 { echo "$as_me:$LINENO: result: no" >&5
7693echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007694fi
7695
7696
7697if test "$TWOPI" != "echo twopi" ; then
7698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007699cat >>confdefs.h <<\_ACEOF
7700#define HAVE_TWOPI 1
7701_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007702
7703 if test "$llvm_cv_os_type" = "MingW" ; then
7704 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7705 fi
7706
7707cat >>confdefs.h <<_ACEOF
7708#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7709_ACEOF
7710
7711fi
7712# Extract the first word of "circo", so it can be a program name with args.
7713set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007714{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716if test "${ac_cv_path_CIRCO+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007718else
7719 case $CIRCO in
7720 [\\/]* | ?:[\\/]*)
7721 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7722 ;;
7723 *)
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 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 +00007731 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007733 break 2
7734 fi
7735done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007736done
David Greenef0b9eff2009-07-09 17:16:26 +00007737IFS=$as_save_IFS
7738
7739 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7740 ;;
7741esac
7742fi
7743CIRCO=$ac_cv_path_CIRCO
7744if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007745 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7746echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007747else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007748 { echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007750fi
7751
7752
7753if test "$CIRCO" != "echo circo" ; then
7754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007755cat >>confdefs.h <<\_ACEOF
7756#define HAVE_CIRCO 1
7757_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007758
7759 if test "$llvm_cv_os_type" = "MingW" ; then
7760 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7761 fi
7762
7763cat >>confdefs.h <<_ACEOF
7764#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7765_ACEOF
7766
7767fi
Reid Spencera773bd52006-08-04 18:18:08 +00007768for ac_prog in gv gsview32
7769do
7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
7771set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774if test "${ac_cv_path_GV+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007776else
7777 case $GV in
7778 [\\/]* | ?:[\\/]*)
7779 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7780 ;;
7781 *)
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 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 +00007789 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007791 break 2
7792 fi
7793done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007794done
Reid Spencera773bd52006-08-04 18:18:08 +00007795IFS=$as_save_IFS
7796
7797 ;;
7798esac
7799fi
7800GV=$ac_cv_path_GV
7801if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007802 { echo "$as_me:$LINENO: result: $GV" >&5
7803echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007804else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007805 { echo "$as_me:$LINENO: result: no" >&5
7806echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007807fi
7808
7809
7810 test -n "$GV" && break
7811done
7812test -n "$GV" || GV="echo gv"
7813
7814if test "$GV" != "echo gv" ; then
7815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007816cat >>confdefs.h <<\_ACEOF
7817#define HAVE_GV 1
7818_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007819
Jeff Cohen28783c32007-01-12 18:22:38 +00007820 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007821 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7822 fi
7823
7824cat >>confdefs.h <<_ACEOF
7825#define LLVM_PATH_GV "$GV${EXEEXT}"
7826_ACEOF
7827
7828fi
7829# Extract the first word of "dotty", so it can be a program name with args.
7830set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7833if test "${ac_cv_path_DOTTY+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007835else
7836 case $DOTTY in
7837 [\\/]* | ?:[\\/]*)
7838 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7839 ;;
7840 *)
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 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 +00007848 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007850 break 2
7851 fi
7852done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007853done
Reid Spencera773bd52006-08-04 18:18:08 +00007854IFS=$as_save_IFS
7855
7856 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7857 ;;
7858esac
7859fi
7860DOTTY=$ac_cv_path_DOTTY
7861if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007862 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7863echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007864else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007865 { echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007867fi
7868
7869
7870if test "$DOTTY" != "echo dotty" ; then
7871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007872cat >>confdefs.h <<\_ACEOF
7873#define HAVE_DOTTY 1
7874_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007875
Jeff Cohen28783c32007-01-12 18:22:38 +00007876 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007877 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7878 fi
7879
7880cat >>confdefs.h <<_ACEOF
7881#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7882_ACEOF
7883
7884fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007885# Extract the first word of "xdot.py", so it can be a program name with args.
7886set dummy xdot.py; ac_word=$2
7887{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7889if test "${ac_cv_path_XDOT_PY+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7891else
7892 case $XDOT_PY in
7893 [\\/]* | ?:[\\/]*)
7894 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7895 ;;
7896 *)
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898for as_dir in $PATH
7899do
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7904 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7907 fi
7908done
7909done
7910IFS=$as_save_IFS
7911
7912 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7913 ;;
7914esac
7915fi
7916XDOT_PY=$ac_cv_path_XDOT_PY
7917if test -n "$XDOT_PY"; then
7918 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7919echo "${ECHO_T}$XDOT_PY" >&6; }
7920else
7921 { echo "$as_me:$LINENO: result: no" >&5
7922echo "${ECHO_T}no" >&6; }
7923fi
7924
7925
7926if test "$XDOT_PY" != "echo xdot.py" ; then
7927
7928cat >>confdefs.h <<\_ACEOF
7929#define HAVE_XDOT_PY 1
7930_ACEOF
7931
7932 if test "$llvm_cv_os_type" = "MingW" ; then
7933 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7934 fi
7935
7936cat >>confdefs.h <<_ACEOF
7937#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7938_ACEOF
7939
7940fi
Reid Spencera773bd52006-08-04 18:18:08 +00007941
7942
7943# Extract the first word of "perl", so it can be a program name with args.
7944set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7947if test "${ac_cv_path_PERL+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007949else
7950 case $PERL in
7951 [\\/]* | ?:[\\/]*)
7952 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7953 ;;
7954 *)
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956for as_dir in $PATH
7957do
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 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 +00007962 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007964 break 2
7965 fi
7966done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007967done
Reid Spencera773bd52006-08-04 18:18:08 +00007968IFS=$as_save_IFS
7969
7970 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7971 ;;
7972esac
7973fi
7974PERL=$ac_cv_path_PERL
7975if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007976 { echo "$as_me:$LINENO: result: $PERL" >&5
7977echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007978else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007979 { echo "$as_me:$LINENO: result: no" >&5
7980echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007981fi
7982
7983
7984if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007985 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7986echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007987 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007988 { echo "$as_me:$LINENO: result: yes" >&5
7989echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007990 else
7991 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007992 { echo "$as_me:$LINENO: result: not found" >&5
7993echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007994 fi
7995fi
7996
7997
7998if test x"$PERL" = xnone; then
7999 HAVE_PERL=0
8000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008001 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8002echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8003 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008004else
8005 HAVE_PERL=1
8006
8007fi
8008
8009# Find a good install program. We prefer a C program (faster),
8010# so one script is as good as another. But avoid the broken or
8011# incompatible versions:
8012# SysV /etc/install, /usr/sbin/install
8013# SunOS /usr/etc/install
8014# IRIX /sbin/install
8015# AIX /bin/install
8016# AmigaOS /C/install, which installs bootblocks on floppy discs
8017# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8018# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8019# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8020# OS/2's system install, which has a completely different semantic
8021# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008022{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8023echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008024if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008025if test "${ac_cv_path_install+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008027else
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029for as_dir in $PATH
8030do
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008033 # Account for people who put trailing slashes in PATH elements.
8034case $as_dir/ in
8035 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008036 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008037 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008038 /usr/ucb/* ) ;;
8039 *)
8040 # OSF1 and SCO ODT 3.0 have their own names for install.
8041 # Don't use installbsd from OSF since it installs stuff as root
8042 # by default.
8043 for ac_prog in ginstall scoinst install; do
8044 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008045 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 +00008046 if test $ac_prog = install &&
8047 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8048 # AIX install. It has an incompatible calling convention.
8049 :
8050 elif test $ac_prog = install &&
8051 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8052 # program-specific install script used by HP pwplus--don't use.
8053 :
8054 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008055 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8056 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008057 fi
8058 fi
8059 done
8060 done
8061 ;;
8062esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008063done
Reid Spencera773bd52006-08-04 18:18:08 +00008064IFS=$as_save_IFS
8065
8066
8067fi
8068 if test "${ac_cv_path_install+set}" = set; then
8069 INSTALL=$ac_cv_path_install
8070 else
8071 # As a last resort, use the slow shell script. Don't cache a
8072 # value for INSTALL within a source directory, because that will
8073 # break other packages using the cache if that directory is
8074 # removed, or if the value is a relative name.
8075 INSTALL=$ac_install_sh
8076 fi
8077fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008078{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8079echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008080
8081# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8082# It thinks the first close brace ends the variable substitution.
8083test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8084
8085test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8086
8087test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8088
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008089case "$INSTALL" in
8090 [\\/$]* | ?:[\\/]* ) ;;
8091 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8092esac
Reid Spencera773bd52006-08-04 18:18:08 +00008093
8094# Extract the first word of "bzip2", so it can be a program name with args.
8095set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098if test "${ac_cv_path_BZIP2+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008100else
8101 case $BZIP2 in
8102 [\\/]* | ?:[\\/]*)
8103 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8104 ;;
8105 *)
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH
8108do
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 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 +00008113 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008115 break 2
8116 fi
8117done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008118done
Reid Spencera773bd52006-08-04 18:18:08 +00008119IFS=$as_save_IFS
8120
Reid Spencera773bd52006-08-04 18:18:08 +00008121 ;;
8122esac
8123fi
8124BZIP2=$ac_cv_path_BZIP2
8125if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008126 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8127echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008129 { echo "$as_me:$LINENO: result: no" >&5
8130echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008131fi
8132
8133
mike-m68cb3192010-05-06 23:45:43 +00008134# Extract the first word of "cat", so it can be a program name with args.
8135set dummy cat; ac_word=$2
8136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8138if test "${ac_cv_path_CAT+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8140else
8141 case $CAT in
8142 [\\/]* | ?:[\\/]*)
8143 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8144 ;;
8145 *)
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147for as_dir in $PATH
8148do
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8153 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 break 2
8156 fi
8157done
8158done
8159IFS=$as_save_IFS
8160
8161 ;;
8162esac
8163fi
8164CAT=$ac_cv_path_CAT
8165if test -n "$CAT"; then
8166 { echo "$as_me:$LINENO: result: $CAT" >&5
8167echo "${ECHO_T}$CAT" >&6; }
8168else
8169 { echo "$as_me:$LINENO: result: no" >&5
8170echo "${ECHO_T}no" >&6; }
8171fi
8172
8173
Reid Spencera773bd52006-08-04 18:18:08 +00008174# Extract the first word of "doxygen", so it can be a program name with args.
8175set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8178if test "${ac_cv_path_DOXYGEN+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008180else
8181 case $DOXYGEN in
8182 [\\/]* | ?:[\\/]*)
8183 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8184 ;;
8185 *)
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187for as_dir in $PATH
8188do
8189 IFS=$as_save_IFS
8190 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 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 +00008193 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008195 break 2
8196 fi
8197done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008198done
Reid Spencera773bd52006-08-04 18:18:08 +00008199IFS=$as_save_IFS
8200
Reid Spencera773bd52006-08-04 18:18:08 +00008201 ;;
8202esac
8203fi
8204DOXYGEN=$ac_cv_path_DOXYGEN
8205if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008206 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8207echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008208else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008209 { echo "$as_me:$LINENO: result: no" >&5
8210echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008211fi
8212
8213
Reid Spencera773bd52006-08-04 18:18:08 +00008214# Extract the first word of "groff", so it can be a program name with args.
8215set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008216{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8218if test "${ac_cv_path_GROFF+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008220else
8221 case $GROFF in
8222 [\\/]* | ?:[\\/]*)
8223 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8224 ;;
8225 *)
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227for as_dir in $PATH
8228do
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 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 +00008233 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008235 break 2
8236 fi
8237done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008238done
Reid Spencera773bd52006-08-04 18:18:08 +00008239IFS=$as_save_IFS
8240
Reid Spencera773bd52006-08-04 18:18:08 +00008241 ;;
8242esac
8243fi
8244GROFF=$ac_cv_path_GROFF
8245if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008246 { echo "$as_me:$LINENO: result: $GROFF" >&5
8247echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008248else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008249 { echo "$as_me:$LINENO: result: no" >&5
8250echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008251fi
8252
8253
8254# Extract the first word of "gzip", so it can be a program name with args.
8255set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008256{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8258if test "${ac_cv_path_GZIP+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008260else
8261 case $GZIP in
8262 [\\/]* | ?:[\\/]*)
8263 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8264 ;;
8265 *)
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267for as_dir in $PATH
8268do
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 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 +00008273 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008275 break 2
8276 fi
8277done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008278done
Reid Spencera773bd52006-08-04 18:18:08 +00008279IFS=$as_save_IFS
8280
Reid Spencera773bd52006-08-04 18:18:08 +00008281 ;;
8282esac
8283fi
8284GZIP=$ac_cv_path_GZIP
8285if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008286 { echo "$as_me:$LINENO: result: $GZIP" >&5
8287echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008288else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008289 { echo "$as_me:$LINENO: result: no" >&5
8290echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008291fi
8292
8293
8294# Extract the first word of "pod2html", so it can be a program name with args.
8295set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8298if test "${ac_cv_path_POD2HTML+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008300else
8301 case $POD2HTML in
8302 [\\/]* | ?:[\\/]*)
8303 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8304 ;;
8305 *)
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307for as_dir in $PATH
8308do
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 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 +00008313 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008315 break 2
8316 fi
8317done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008318done
Reid Spencera773bd52006-08-04 18:18:08 +00008319IFS=$as_save_IFS
8320
Reid Spencera773bd52006-08-04 18:18:08 +00008321 ;;
8322esac
8323fi
8324POD2HTML=$ac_cv_path_POD2HTML
8325if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008326 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8327echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008329 { echo "$as_me:$LINENO: result: no" >&5
8330echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008331fi
8332
8333
8334# Extract the first word of "pod2man", so it can be a program name with args.
8335set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8338if test "${ac_cv_path_POD2MAN+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008340else
8341 case $POD2MAN in
8342 [\\/]* | ?:[\\/]*)
8343 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8344 ;;
8345 *)
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347for as_dir in $PATH
8348do
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 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 +00008353 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008355 break 2
8356 fi
8357done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008358done
Reid Spencera773bd52006-08-04 18:18:08 +00008359IFS=$as_save_IFS
8360
Reid Spencera773bd52006-08-04 18:18:08 +00008361 ;;
8362esac
8363fi
8364POD2MAN=$ac_cv_path_POD2MAN
8365if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008366 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8367echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008368else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008369 { echo "$as_me:$LINENO: result: no" >&5
8370echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008371fi
8372
8373
mike-m68cb3192010-05-06 23:45:43 +00008374# Extract the first word of "pdfroff", so it can be a program name with args.
8375set dummy pdfroff; ac_word=$2
8376{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8378if test "${ac_cv_path_PDFROFF+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8380else
8381 case $PDFROFF in
8382 [\\/]* | ?:[\\/]*)
8383 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8384 ;;
8385 *)
8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387for as_dir in $PATH
8388do
8389 IFS=$as_save_IFS
8390 test -z "$as_dir" && as_dir=.
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8393 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8395 break 2
8396 fi
8397done
8398done
8399IFS=$as_save_IFS
8400
8401 ;;
8402esac
8403fi
8404PDFROFF=$ac_cv_path_PDFROFF
8405if test -n "$PDFROFF"; then
8406 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8407echo "${ECHO_T}$PDFROFF" >&6; }
8408else
8409 { echo "$as_me:$LINENO: result: no" >&5
8410echo "${ECHO_T}no" >&6; }
8411fi
8412
8413
Reid Spencera773bd52006-08-04 18:18:08 +00008414# Extract the first word of "runtest", so it can be a program name with args.
8415set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8418if test "${ac_cv_path_RUNTEST+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008420else
8421 case $RUNTEST in
8422 [\\/]* | ?:[\\/]*)
8423 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8424 ;;
8425 *)
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427for as_dir in $PATH
8428do
8429 IFS=$as_save_IFS
8430 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 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 +00008433 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008435 break 2
8436 fi
8437done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008438done
Reid Spencera773bd52006-08-04 18:18:08 +00008439IFS=$as_save_IFS
8440
Reid Spencera773bd52006-08-04 18:18:08 +00008441 ;;
8442esac
8443fi
8444RUNTEST=$ac_cv_path_RUNTEST
8445if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008446 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8447echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008448else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008449 { echo "$as_me:$LINENO: result: no" >&5
8450echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008451fi
8452
8453
8454
8455no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008456{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8457echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008458
8459# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008460if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008461 withval=$with_tclinclude; with_tclinclude=${withval}
8462else
8463 with_tclinclude=''
8464fi
8465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008466if test "${ac_cv_path_tclsh+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008468else
8469
8470if test x"${with_tclinclude}" != x ; then
8471 if test -f ${with_tclinclude}/tclsh ; then
8472 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8473 elif test -f ${with_tclinclude}/src/tclsh ; then
8474 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8475 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008476 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8477echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8478 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008479 fi
8480fi
Torok Edwin871384f2010-01-26 08:50:50 +00008481fi
8482
Reid Spencera773bd52006-08-04 18:18:08 +00008483
8484if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008485 { echo "$as_me:$LINENO: result: none" >&5
8486echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008487 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
8488do
8489 # Extract the first word of "$ac_prog", so it can be a program name with args.
8490set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8493if test "${ac_cv_path_TCLSH+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008495else
8496 case $TCLSH in
8497 [\\/]* | ?:[\\/]*)
8498 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8499 ;;
8500 *)
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502for as_dir in $PATH
8503do
8504 IFS=$as_save_IFS
8505 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008506 for ac_exec_ext in '' $ac_executable_extensions; do
8507 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 +00008508 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008510 break 2
8511 fi
8512done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008513done
Reid Spencera773bd52006-08-04 18:18:08 +00008514IFS=$as_save_IFS
8515
8516 ;;
8517esac
8518fi
8519TCLSH=$ac_cv_path_TCLSH
8520if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008521 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8522echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008523else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008524 { echo "$as_me:$LINENO: result: no" >&5
8525echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008526fi
8527
8528
8529 test -n "$TCLSH" && break
8530done
8531
8532 if test x"${TCLSH}" = x ; then
8533 ac_cv_path_tclsh='';
8534 else
8535 ac_cv_path_tclsh="${TCLSH}";
8536 fi
8537else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008538 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8539echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008540 TCLSH="${ac_cv_path_tclsh}"
8541
8542fi
8543
Reid Spencera773bd52006-08-04 18:18:08 +00008544# Extract the first word of "zip", so it can be a program name with args.
8545set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8548if test "${ac_cv_path_ZIP+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008550else
8551 case $ZIP in
8552 [\\/]* | ?:[\\/]*)
8553 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8554 ;;
8555 *)
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 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 +00008563 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008565 break 2
8566 fi
8567done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008568done
Reid Spencera773bd52006-08-04 18:18:08 +00008569IFS=$as_save_IFS
8570
Reid Spencera773bd52006-08-04 18:18:08 +00008571 ;;
8572esac
8573fi
8574ZIP=$ac_cv_path_ZIP
8575if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008576 { echo "$as_me:$LINENO: result: $ZIP" >&5
8577echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008578else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008579 { echo "$as_me:$LINENO: result: no" >&5
8580echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008581fi
8582
8583
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008584for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008585do
8586 # Extract the first word of "$ac_prog", so it can be a program name with args.
8587set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8590if test "${ac_cv_path_OCAMLC+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008592else
8593 case $OCAMLC in
8594 [\\/]* | ?:[\\/]*)
8595 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8596 ;;
8597 *)
8598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599for as_dir in $PATH
8600do
8601 IFS=$as_save_IFS
8602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008603 for ac_exec_ext in '' $ac_executable_extensions; do
8604 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 +00008605 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008607 break 2
8608 fi
8609done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008610done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008611IFS=$as_save_IFS
8612
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008613 ;;
8614esac
8615fi
8616OCAMLC=$ac_cv_path_OCAMLC
8617if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008618 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8619echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008621 { echo "$as_me:$LINENO: result: no" >&5
8622echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008623fi
8624
8625
Gordon Henriksene7072162008-03-07 18:20:01 +00008626 test -n "$OCAMLC" && break
8627done
8628
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008629for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008630do
8631 # Extract the first word of "$ac_prog", so it can be a program name with args.
8632set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8635if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008637else
8638 case $OCAMLOPT in
8639 [\\/]* | ?:[\\/]*)
8640 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8641 ;;
8642 *)
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644for as_dir in $PATH
8645do
8646 IFS=$as_save_IFS
8647 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 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 +00008650 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008652 break 2
8653 fi
8654done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008655done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008656IFS=$as_save_IFS
8657
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008658 ;;
8659esac
8660fi
8661OCAMLOPT=$ac_cv_path_OCAMLOPT
8662if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008663 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8664echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008665else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008666 { echo "$as_me:$LINENO: result: no" >&5
8667echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008668fi
8669
8670
Gordon Henriksene7072162008-03-07 18:20:01 +00008671 test -n "$OCAMLOPT" && break
8672done
8673
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008674for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008675do
8676 # Extract the first word of "$ac_prog", so it can be a program name with args.
8677set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8680if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008682else
8683 case $OCAMLDEP in
8684 [\\/]* | ?:[\\/]*)
8685 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8686 ;;
8687 *)
8688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689for as_dir in $PATH
8690do
8691 IFS=$as_save_IFS
8692 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008693 for ac_exec_ext in '' $ac_executable_extensions; do
8694 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 +00008695 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008697 break 2
8698 fi
8699done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008700done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008701IFS=$as_save_IFS
8702
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008703 ;;
8704esac
8705fi
8706OCAMLDEP=$ac_cv_path_OCAMLDEP
8707if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008708 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8709echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008710else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008711 { echo "$as_me:$LINENO: result: no" >&5
8712echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008713fi
8714
8715
Gordon Henriksene7072162008-03-07 18:20:01 +00008716 test -n "$OCAMLDEP" && break
8717done
8718
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008719for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008720do
8721 # Extract the first word of "$ac_prog", so it can be a program name with args.
8722set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008723{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8725if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008727else
8728 case $OCAMLDOC in
8729 [\\/]* | ?:[\\/]*)
8730 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8731 ;;
8732 *)
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734for as_dir in $PATH
8735do
8736 IFS=$as_save_IFS
8737 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008738 for ac_exec_ext in '' $ac_executable_extensions; do
8739 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 +00008740 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008742 break 2
8743 fi
8744done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008745done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008746IFS=$as_save_IFS
8747
8748 ;;
8749esac
8750fi
8751OCAMLDOC=$ac_cv_path_OCAMLDOC
8752if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008753 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8754echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008755else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008756 { echo "$as_me:$LINENO: result: no" >&5
8757echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008758fi
8759
8760
8761 test -n "$OCAMLDOC" && break
8762done
8763
Torok Edwincc499a42008-10-22 09:56:27 +00008764for ac_prog in gas as
8765do
8766 # Extract the first word of "$ac_prog", so it can be a program name with args.
8767set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8770if test "${ac_cv_path_GAS+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008772else
8773 case $GAS in
8774 [\\/]* | ?:[\\/]*)
8775 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8776 ;;
8777 *)
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779for as_dir in $PATH
8780do
8781 IFS=$as_save_IFS
8782 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 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 +00008785 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008787 break 2
8788 fi
8789done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008790done
Torok Edwincc499a42008-10-22 09:56:27 +00008791IFS=$as_save_IFS
8792
8793 ;;
8794esac
8795fi
8796GAS=$ac_cv_path_GAS
8797if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008798 { echo "$as_me:$LINENO: result: $GAS" >&5
8799echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008801 { echo "$as_me:$LINENO: result: no" >&5
8802echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008803fi
8804
8805
8806 test -n "$GAS" && break
8807done
8808
Reid Spencera773bd52006-08-04 18:18:08 +00008809
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008810{ echo "$as_me:$LINENO: checking for linker version" >&5
8811echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8812if test "${llvm_cv_link_version+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8814else
8815
8816 version_string="$(ld -v 2>&1 | head -1)"
8817
8818 # Check for ld64.
8819 if (echo "$version_string" | grep -q "ld64"); then
8820 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8821 else
8822 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8823 fi
8824
8825fi
8826{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8827echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8828
8829cat >>confdefs.h <<_ACEOF
8830#define HOST_LINK_VERSION "$llvm_cv_link_version"
8831_ACEOF
8832
8833
8834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008835{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8836echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8837if test "${llvm_cv_link_use_r+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008839else
8840 ac_ext=c
8841ac_cpp='$CPP $CPPFLAGS'
8842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8844ac_compiler_gnu=$ac_cv_c_compiler_gnu
8845
8846 oldcflags="$CFLAGS"
8847 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008848 cat >conftest.$ac_ext <<_ACEOF
8849/* confdefs.h. */
8850_ACEOF
8851cat confdefs.h >>conftest.$ac_ext
8852cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008853/* end confdefs.h. */
8854
8855int
8856main ()
8857{
Dan Gohman39ed6782010-04-25 00:12:20 +00008858
Reid Spencera773bd52006-08-04 18:18:08 +00008859 ;
8860 return 0;
8861}
8862_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008863rm -f conftest.$ac_objext conftest$ac_exeext
8864if { (ac_try="$ac_link"
8865case "(($ac_try" in
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8868esac
8869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_link") 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } &&
8877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8878 { (case "(($ac_try" in
8879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8880 *) ac_try_echo=$ac_try;;
8881esac
8882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8883 (eval "$ac_try") 2>&5
8884 ac_status=$?
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; } &&
8887 { ac_try='test -s conftest$ac_exeext'
8888 { (case "(($ac_try" in
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8891esac
8892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893 (eval "$ac_try") 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008897 llvm_cv_link_use_r=yes
8898else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008899 echo "$as_me: failed program was:" >&5
8900sed 's/^/| /' conftest.$ac_ext >&5
8901
8902 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008903fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008904
Bill Wendlingebcceee2009-04-18 11:20:33 +00008905rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008906 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008907 CFLAGS="$oldcflags"
8908 ac_ext=c
8909ac_cpp='$CPP $CPPFLAGS'
8910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8912ac_compiler_gnu=$ac_cv_c_compiler_gnu
8913
8914
8915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008916{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8917echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008918if test "$llvm_cv_link_use_r" = yes ; then
8919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008920cat >>confdefs.h <<\_ACEOF
8921#define HAVE_LINK_R 1
8922_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008923
8924 fi
8925
8926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008927{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8928echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8929if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008931else
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 oldcflags="$CFLAGS"
8939 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008940 cat >conftest.$ac_ext <<_ACEOF
8941/* confdefs.h. */
8942_ACEOF
8943cat confdefs.h >>conftest.$ac_ext
8944cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008945/* end confdefs.h. */
8946
8947int
8948main ()
8949{
Dan Gohman39ed6782010-04-25 00:12:20 +00008950
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008951 ;
8952 return 0;
8953}
8954_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008955rm -f conftest.$ac_objext conftest$ac_exeext
8956if { (ac_try="$ac_link"
8957case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960esac
8961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_link") 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8970 { (case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8973esac
8974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_try") 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest$ac_exeext'
8980 { (case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8983esac
8984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_try") 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008989 llvm_cv_link_use_export_dynamic=yes
8990else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008991 echo "$as_me: failed program was:" >&5
8992sed 's/^/| /' conftest.$ac_ext >&5
8993
8994 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008995fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008996
Bill Wendlingebcceee2009-04-18 11:20:33 +00008997rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008998 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008999 CFLAGS="$oldcflags"
9000 ac_ext=c
9001ac_cpp='$CPP $CPPFLAGS'
9002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9004ac_compiler_gnu=$ac_cv_c_compiler_gnu
9005
9006
9007fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009008{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9009echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009010if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009012cat >>confdefs.h <<\_ACEOF
9013#define HAVE_LINK_EXPORT_DYNAMIC 1
9014_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009015
9016 fi
9017
9018
Dan Gohmanda612d62010-06-01 14:56:56 +00009019{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9020echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9021if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00009022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023else
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 oldcflags="$CFLAGS"
9031
9032 # The following code is from the autoconf manual,
9033 # "11.13: Limitations of Usual Tools".
9034 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9035 # Use mktemp if possible; otherwise fall back on mkdir,
9036 # with $RANDOM to make collisions less likely.
9037 : ${TMPDIR=/tmp}
9038 {
9039 tmp=`
9040 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9041 ` &&
9042 test -n "$tmp" && test -d "$tmp"
9043 } || {
9044 tmp=$TMPDIR/foo$$-$RANDOM
9045 (umask 077 && mkdir "$tmp")
9046 } || exit $?
9047
Dan Gohmanda612d62010-06-01 14:56:56 +00009048 echo "{" > "$tmp/export.map"
9049 echo " global: main;" >> "$tmp/export.map"
9050 echo " local: *;" >> "$tmp/export.map"
9051 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009052
Dan Gohmanda612d62010-06-01 14:56:56 +00009053 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009054 cat >conftest.$ac_ext <<_ACEOF
9055/* confdefs.h. */
9056_ACEOF
9057cat confdefs.h >>conftest.$ac_ext
9058cat >>conftest.$ac_ext <<_ACEOF
9059/* end confdefs.h. */
9060
9061int
9062main ()
9063{
Dan Gohman39ed6782010-04-25 00:12:20 +00009064
Dan Gohman391569c2010-04-16 22:59:06 +00009065 ;
9066 return 0;
9067}
9068_ACEOF
9069rm -f conftest.$ac_objext conftest$ac_exeext
9070if { (ac_try="$ac_link"
9071case "(($ac_try" in
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9074esac
9075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_link") 2>conftest.er1
9077 ac_status=$?
9078 grep -v '^ *+' conftest.er1 >conftest.err
9079 rm -f conftest.er1
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } &&
9083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9084 { (case "(($ac_try" in
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9087esac
9088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_try") 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; } &&
9093 { ac_try='test -s conftest$ac_exeext'
9094 { (case "(($ac_try" in
9095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096 *) ac_try_echo=$ac_try;;
9097esac
9098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9099 (eval "$ac_try") 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009103 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009104else
9105 echo "$as_me: failed program was:" >&5
9106sed 's/^/| /' conftest.$ac_ext >&5
9107
Dan Gohman943005e2010-06-01 16:22:27 +00009108 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009109fi
9110
9111rm -f core conftest.err conftest.$ac_objext \
9112 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009113 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009114 rmdir "$tmp"
9115 CFLAGS="$oldcflags"
9116 ac_ext=c
9117ac_cpp='$CPP $CPPFLAGS'
9118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9120ac_compiler_gnu=$ac_cv_c_compiler_gnu
9121
9122
9123fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009124{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9125echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9126if test "$llvm_cv_link_use_version_script" = yes ; then
9127 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009128
9129 fi
9130
9131
Reid Spencera773bd52006-08-04 18:18:08 +00009132
9133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009134{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9135echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9136if test "${ac_cv_c_const+set}" = set; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009138else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009139 cat >conftest.$ac_ext <<_ACEOF
9140/* confdefs.h. */
9141_ACEOF
9142cat confdefs.h >>conftest.$ac_ext
9143cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009144/* end confdefs.h. */
9145
9146int
9147main ()
9148{
9149/* FIXME: Include the comments suggested by Paul. */
9150#ifndef __cplusplus
9151 /* Ultrix mips cc rejects this. */
9152 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009153 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009154 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009155 char const *const *ccp;
9156 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009157 /* NEC SVR4.0.2 mips cc rejects this. */
9158 struct point {int x, y;};
9159 static struct point const zero = {0,0};
9160 /* AIX XL C 1.02.0.0 rejects this.
9161 It does not let you subtract one const X* pointer from another in
9162 an arm of an if-expression whose if-part is not a constant
9163 expression */
9164 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009165 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009166 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009167 ++ccp;
9168 p = (char**) ccp;
9169 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009170 { /* SCO 3.2v4 cc rejects this. */
9171 char *t;
9172 char const *s = 0 ? (char *) 0 : (char const *) 0;
9173
9174 *t++ = 0;
9175 if (s) return 0;
9176 }
9177 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9178 int x[] = {25, 17};
9179 const int *foo = &x[0];
9180 ++foo;
9181 }
9182 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9183 typedef const int *iptr;
9184 iptr p = 0;
9185 ++p;
9186 }
9187 { /* AIX XL C 1.02.0.0 rejects this saying
9188 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9189 struct s { int j; const int *ap[3]; };
9190 struct s *b; b->j = 5;
9191 }
9192 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9193 const int foo = 10;
9194 if (!foo) return 0;
9195 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009196 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009197#endif
9198
9199 ;
9200 return 0;
9201}
9202_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009203rm -f conftest.$ac_objext
9204if { (ac_try="$ac_compile"
9205case "(($ac_try" in
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9208esac
9209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210 (eval "$ac_compile") 2>conftest.er1
9211 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err
9213 rm -f conftest.er1
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9218 { (case "(($ac_try" in
9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9221esac
9222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223 (eval "$ac_try") 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9231esac
9232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_try") 2>&5
9234 ac_status=$?
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009237 ac_cv_c_const=yes
9238else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009239 echo "$as_me: failed program was:" >&5
9240sed 's/^/| /' conftest.$ac_ext >&5
9241
9242 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009243fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009244
Reid Spencera773bd52006-08-04 18:18:08 +00009245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009247{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9248echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009249if test $ac_cv_c_const = no; then
9250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009251cat >>confdefs.h <<\_ACEOF
9252#define const
9253_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009254
9255fi
9256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009257
9258
9259
9260
9261
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009262ac_header_dirent=no
9263for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009264 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9265{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9266echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009269else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009270 cat >conftest.$ac_ext <<_ACEOF
9271/* confdefs.h. */
9272_ACEOF
9273cat confdefs.h >>conftest.$ac_ext
9274cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009275/* end confdefs.h. */
9276#include <sys/types.h>
9277#include <$ac_hdr>
9278
9279int
9280main ()
9281{
9282if ((DIR *) 0)
9283return 0;
9284 ;
9285 return 0;
9286}
9287_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009288rm -f conftest.$ac_objext
9289if { (ac_try="$ac_compile"
9290case "(($ac_try" in
9291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9292 *) ac_try_echo=$ac_try;;
9293esac
9294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9295 (eval "$ac_compile") 2>conftest.er1
9296 ac_status=$?
9297 grep -v '^ *+' conftest.er1 >conftest.err
9298 rm -f conftest.er1
9299 cat conftest.err >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
9302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9303 { (case "(($ac_try" in
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9306esac
9307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_try") 2>&5
9309 ac_status=$?
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); }; } &&
9312 { ac_try='test -s conftest.$ac_objext'
9313 { (case "(($ac_try" in
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9316esac
9317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_try") 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009322 eval "$as_ac_Header=yes"
9323else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009324 echo "$as_me: failed program was:" >&5
9325sed 's/^/| /' conftest.$ac_ext >&5
9326
9327 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009328fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009329
Reid Spencera773bd52006-08-04 18:18:08 +00009330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009332ac_res=`eval echo '${'$as_ac_Header'}'`
9333 { echo "$as_me:$LINENO: result: $ac_res" >&5
9334echo "${ECHO_T}$ac_res" >&6; }
9335if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009336 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009337#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009338_ACEOF
9339
9340ac_header_dirent=$ac_hdr; break
9341fi
9342
9343done
9344# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9345if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009346 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9347echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9348if test "${ac_cv_search_opendir+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009350else
9351 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009352cat >conftest.$ac_ext <<_ACEOF
9353/* confdefs.h. */
9354_ACEOF
9355cat confdefs.h >>conftest.$ac_ext
9356cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009357/* end confdefs.h. */
9358
Reid Spencera773bd52006-08-04 18:18:08 +00009359/* Override any GCC internal prototype to avoid an error.
9360 Use char because int might match the return type of a GCC
9361 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009362#ifdef __cplusplus
9363extern "C"
9364#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009365char opendir ();
9366int
9367main ()
9368{
Reid Spencera773bd52006-08-04 18:18:08 +00009369return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009370 ;
9371 return 0;
9372}
9373_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009374for ac_lib in '' dir; do
9375 if test -z "$ac_lib"; then
9376 ac_res="none required"
9377 else
9378 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009380 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009381 rm -f conftest.$ac_objext conftest$ac_exeext
9382if { (ac_try="$ac_link"
9383case "(($ac_try" in
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9386esac
9387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_link") 2>conftest.er1
9389 ac_status=$?
9390 grep -v '^ *+' conftest.er1 >conftest.err
9391 rm -f conftest.er1
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } &&
9395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9396 { (case "(($ac_try" in
9397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398 *) ac_try_echo=$ac_try;;
9399esac
9400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401 (eval "$ac_try") 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } &&
9405 { ac_try='test -s conftest$ac_exeext'
9406 { (case "(($ac_try" in
9407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9408 *) ac_try_echo=$ac_try;;
9409esac
9410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9411 (eval "$ac_try") 2>&5
9412 ac_status=$?
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009415 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009416else
9417 echo "$as_me: failed program was:" >&5
9418sed 's/^/| /' conftest.$ac_ext >&5
9419
9420
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009421fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009422
Bill Wendlingebcceee2009-04-18 11:20:33 +00009423rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009424 conftest$ac_exeext
9425 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009426 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009427fi
John Criswell7a73b802003-06-30 21:59:07 +00009428done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009429if test "${ac_cv_search_opendir+set}" = set; then
9430 :
Reid Spencera773bd52006-08-04 18:18:08 +00009431else
9432 ac_cv_search_opendir=no
9433fi
9434rm conftest.$ac_ext
9435LIBS=$ac_func_search_save_LIBS
9436fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009437{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9438echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009439ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009440if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009442
Reid Spencera773bd52006-08-04 18:18:08 +00009443fi
9444
9445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009446 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9447echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9448if test "${ac_cv_search_opendir+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009450else
9451 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009452cat >conftest.$ac_ext <<_ACEOF
9453/* confdefs.h. */
9454_ACEOF
9455cat confdefs.h >>conftest.$ac_ext
9456cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009457/* end confdefs.h. */
9458
9459/* Override any GCC internal prototype to avoid an error.
9460 Use char because int might match the return type of a GCC
9461 builtin and then its argument prototype would still apply. */
9462#ifdef __cplusplus
9463extern "C"
9464#endif
9465char opendir ();
9466int
9467main ()
9468{
9469return opendir ();
9470 ;
9471 return 0;
9472}
9473_ACEOF
9474for ac_lib in '' x; do
9475 if test -z "$ac_lib"; then
9476 ac_res="none required"
9477 else
9478 ac_res=-l$ac_lib
9479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9480 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009481 rm -f conftest.$ac_objext conftest$ac_exeext
9482if { (ac_try="$ac_link"
9483case "(($ac_try" in
9484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485 *) ac_try_echo=$ac_try;;
9486esac
9487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9488 (eval "$ac_link") 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9496 { (case "(($ac_try" in
9497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498 *) ac_try_echo=$ac_try;;
9499esac
9500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501 (eval "$ac_try") 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; } &&
9505 { ac_try='test -s conftest$ac_exeext'
9506 { (case "(($ac_try" in
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9509esac
9510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_try") 2>&5
9512 ac_status=$?
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009515 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009516else
9517 echo "$as_me: failed program was:" >&5
9518sed 's/^/| /' conftest.$ac_ext >&5
9519
9520
Reid Spencera773bd52006-08-04 18:18:08 +00009521fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009522
Bill Wendlingebcceee2009-04-18 11:20:33 +00009523rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009524 conftest$ac_exeext
9525 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009526 break
9527fi
9528done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009529if test "${ac_cv_search_opendir+set}" = set; then
9530 :
Reid Spencera773bd52006-08-04 18:18:08 +00009531else
9532 ac_cv_search_opendir=no
9533fi
9534rm conftest.$ac_ext
9535LIBS=$ac_func_search_save_LIBS
9536fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009537{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9538echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009539ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009540if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9542
9543fi
9544
9545fi
John Criswell7a73b802003-06-30 21:59:07 +00009546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009547
John Criswell7a73b802003-06-30 21:59:07 +00009548for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009549do
9550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556fi
9557ac_res=`eval echo '${'$as_ac_Header'}'`
9558 { echo "$as_me:$LINENO: result: $ac_res" >&5
9559echo "${ECHO_T}$ac_res" >&6; }
9560else
9561 # Is the header compilable?
9562{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9564cat >conftest.$ac_ext <<_ACEOF
9565/* confdefs.h. */
9566_ACEOF
9567cat confdefs.h >>conftest.$ac_ext
9568cat >>conftest.$ac_ext <<_ACEOF
9569/* end confdefs.h. */
9570$ac_includes_default
9571#include <$ac_header>
9572_ACEOF
9573rm -f conftest.$ac_objext
9574if { (ac_try="$ac_compile"
9575case "(($ac_try" in
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9578esac
9579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_compile") 2>conftest.er1
9581 ac_status=$?
9582 grep -v '^ *+' conftest.er1 >conftest.err
9583 rm -f conftest.er1
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9588 { (case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9591esac
9592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_try") 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest.$ac_objext'
9598 { (case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9601esac
9602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_try") 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_header_compiler=yes
9608else
9609 echo "$as_me: failed program was:" >&5
9610sed 's/^/| /' conftest.$ac_ext >&5
9611
9612 ac_header_compiler=no
9613fi
9614
9615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9616{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9617echo "${ECHO_T}$ac_header_compiler" >&6; }
9618
9619# Is the header present?
9620{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9622cat >conftest.$ac_ext <<_ACEOF
9623/* confdefs.h. */
9624_ACEOF
9625cat confdefs.h >>conftest.$ac_ext
9626cat >>conftest.$ac_ext <<_ACEOF
9627/* end confdefs.h. */
9628#include <$ac_header>
9629_ACEOF
9630if { (ac_try="$ac_cpp conftest.$ac_ext"
9631case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634esac
9635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9637 ac_status=$?
9638 grep -v '^ *+' conftest.er1 >conftest.err
9639 rm -f conftest.er1
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } >/dev/null; then
9643 if test -s conftest.err; then
9644 ac_cpp_err=$ac_c_preproc_warn_flag
9645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9646 else
9647 ac_cpp_err=
9648 fi
9649else
9650 ac_cpp_err=yes
9651fi
9652if test -z "$ac_cpp_err"; then
9653 ac_header_preproc=yes
9654else
9655 echo "$as_me: failed program was:" >&5
9656sed 's/^/| /' conftest.$ac_ext >&5
9657
9658 ac_header_preproc=no
9659fi
9660
9661rm -f conftest.err conftest.$ac_ext
9662{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9663echo "${ECHO_T}$ac_header_preproc" >&6; }
9664
9665# So? What about this header?
9666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9667 yes:no: )
9668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9672 ac_header_preproc=yes
9673 ;;
9674 no:yes:* )
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9687 ( cat <<\_ASBOX
9688## ----------------------------------- ##
9689## Report this to llvmbugs@cs.uiuc.edu ##
9690## ----------------------------------- ##
9691_ASBOX
9692 ) | sed "s/^/$as_me: WARNING: /" >&2
9693 ;;
9694esac
9695{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9699else
9700 eval "$as_ac_Header=\$ac_header_preproc"
9701fi
9702ac_res=`eval echo '${'$as_ac_Header'}'`
9703 { echo "$as_me:$LINENO: result: $ac_res" >&5
9704echo "${ECHO_T}$ac_res" >&6; }
9705
9706fi
9707if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009708 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009710_ACEOF
9711
9712fi
9713
9714done
9715
Reid Spencera773bd52006-08-04 18:18:08 +00009716# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009717if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009718 enableval=$enable_ltdl_install;
9719fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009720
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009722
9723
9724if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009725 INSTALL_LTDL_TRUE=
9726 INSTALL_LTDL_FALSE='#'
9727else
9728 INSTALL_LTDL_TRUE='#'
9729 INSTALL_LTDL_FALSE=
9730fi
9731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009732
9733
9734if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009735 CONVENIENCE_LTDL_TRUE=
9736 CONVENIENCE_LTDL_FALSE='#'
9737else
9738 CONVENIENCE_LTDL_TRUE='#'
9739 CONVENIENCE_LTDL_FALSE=
9740fi
9741
9742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009743{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9744echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745library_names_spec=
9746libname_spec='lib$name'
9747soname_spec=
9748shrext_cmds=".so"
9749postinstall_cmds=
9750postuninstall_cmds=
9751finish_cmds=
9752finish_eval=
9753shlibpath_var=
9754shlibpath_overrides_runpath=unknown
9755version_type=none
9756dynamic_linker="$host_os ld.so"
9757sys_lib_dlsearch_path_spec="/lib /usr/lib"
9758if test "$GCC" = yes; then
9759 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9760 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9761 # if the path contains ";" then we assume it to be the separator
9762 # otherwise default to the standard path separator (i.e. ":") - it is
9763 # assumed that no part of a normal pathname contains ";" but that should
9764 # okay in the real world where ";" in dirpaths is itself problematic.
9765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9766 else
9767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9768 fi
9769else
9770 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9771fi
9772need_lib_prefix=unknown
9773hardcode_into_libs=no
9774
9775# when you set need_version to no, make sure it does not cause -set_version
9776# flags to be left without arguments
9777need_version=unknown
9778
9779case $host_os in
9780aix3*)
9781 version_type=linux
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9783 shlibpath_var=LIBPATH
9784
9785 # AIX 3 has no versioning support, so we append a major version to the name.
9786 soname_spec='${libname}${release}${shared_ext}$major'
9787 ;;
9788
9789aix4* | aix5*)
9790 version_type=linux
9791 need_lib_prefix=no
9792 need_version=no
9793 hardcode_into_libs=yes
9794 if test "$host_cpu" = ia64; then
9795 # AIX 5 supports IA64
9796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9797 shlibpath_var=LD_LIBRARY_PATH
9798 else
9799 # With GCC up to 2.95.x, collect2 would create an import file
9800 # for dependence libraries. The import file would start with
9801 # the line `#! .'. This would cause the generated library to
9802 # depend on `.', always an invalid library. This was fixed in
9803 # development snapshots of GCC prior to 3.0.
9804 case $host_os in
9805 aix4 | aix4.[01] | aix4.[01].*)
9806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9807 echo ' yes '
9808 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9809 :
9810 else
9811 can_build_shared=no
9812 fi
9813 ;;
9814 esac
9815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9816 # soname into executable. Probably we can add versioning support to
9817 # collect2, so additional links can be useful in future.
9818 if test "$aix_use_runtimelinking" = yes; then
9819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9820 # instead of lib<name>.a to let people know that these are not
9821 # typical AIX shared libraries.
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9823 else
9824 # We preserve .a as extension for shared libraries through AIX4.2
9825 # and later when we are not doing run time linking.
9826 library_names_spec='${libname}${release}.a $libname.a'
9827 soname_spec='${libname}${release}${shared_ext}$major'
9828 fi
9829 shlibpath_var=LIBPATH
9830 fi
9831 ;;
9832
9833amigaos*)
9834 library_names_spec='$libname.ixlibrary $libname.a'
9835 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9836 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'
9837 ;;
9838
9839beos*)
9840 library_names_spec='${libname}${shared_ext}'
9841 dynamic_linker="$host_os ld.so"
9842 shlibpath_var=LIBRARY_PATH
9843 ;;
9844
9845bsdi[45]*)
9846 version_type=linux
9847 need_version=no
9848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849 soname_spec='${libname}${release}${shared_ext}$major'
9850 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9851 shlibpath_var=LD_LIBRARY_PATH
9852 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9853 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9854 # the default ld.so.conf also contains /usr/contrib/lib and
9855 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9856 # libtool to hard-code these into programs
9857 ;;
9858
9859cygwin* | mingw* | pw32*)
9860 version_type=windows
9861 shrext_cmds=".dll"
9862 need_version=no
9863 need_lib_prefix=no
9864
9865 case $GCC,$host_os in
9866 yes,cygwin* | yes,mingw* | yes,pw32*)
9867 library_names_spec='$libname.dll.a'
9868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9869 postinstall_cmds='base_file=`basename \${file}`~
9870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9871 dldir=$destdir/`dirname \$dlpath`~
9872 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009873 $install_prog $dir/$dlname \$dldir/$dlname~
9874 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9876 dlpath=$dir/\$dldll~
9877 $rm \$dlpath'
9878 shlibpath_overrides_runpath=yes
9879
9880 case $host_os in
9881 cygwin*)
9882 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9883 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9884 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9885 ;;
9886 mingw*)
9887 # MinGW DLLs use traditional 'lib' prefix
9888 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9889 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9890 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9891 # It is most probably a Windows format PATH printed by
9892 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9893 # path with ; separators, and with drive letters. We can handle the
9894 # drive letters (cygwin fileutils understands them), so leave them,
9895 # especially as we might pass files found there to a mingw objdump,
9896 # which wouldn't understand a cygwinified path. Ahh.
9897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9898 else
9899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9900 fi
9901 ;;
9902 pw32*)
9903 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009904 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 +00009905 ;;
9906 esac
9907 ;;
9908
9909 *)
9910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9911 ;;
9912 esac
9913 dynamic_linker='Win32 ld.exe'
9914 # FIXME: first we should search . and the directory the executable is in
9915 shlibpath_var=PATH
9916 ;;
9917
9918darwin* | rhapsody*)
9919 dynamic_linker="$host_os dyld"
9920 version_type=darwin
9921 need_lib_prefix=no
9922 need_version=no
9923 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9924 soname_spec='${libname}${release}${major}$shared_ext'
9925 shlibpath_overrides_runpath=yes
9926 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009927 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009928 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9929 if test "$GCC" = yes; then
9930 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"`
9931 else
9932 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9933 fi
9934 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9935 ;;
9936
9937dgux*)
9938 version_type=linux
9939 need_lib_prefix=no
9940 need_version=no
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9942 soname_spec='${libname}${release}${shared_ext}$major'
9943 shlibpath_var=LD_LIBRARY_PATH
9944 ;;
9945
9946freebsd1*)
9947 dynamic_linker=no
9948 ;;
9949
9950kfreebsd*-gnu)
9951 version_type=linux
9952 need_lib_prefix=no
9953 need_version=no
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 shlibpath_var=LD_LIBRARY_PATH
9957 shlibpath_overrides_runpath=no
9958 hardcode_into_libs=yes
9959 dynamic_linker='GNU ld.so'
9960 ;;
9961
Reid Spencera773bd52006-08-04 18:18:08 +00009962freebsd* | dragonfly*)
9963 # DragonFly does not have aout. When/if they implement a new
9964 # versioning mechanism, adjust this.
9965 if test -x /usr/bin/objformat; then
9966 objformat=`/usr/bin/objformat`
9967 else
9968 case $host_os in
9969 freebsd[123]*) objformat=aout ;;
9970 *) objformat=elf ;;
9971 esac
9972 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009973 version_type=freebsd-$objformat
9974 case $version_type in
9975 freebsd-elf*)
9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9977 need_version=no
9978 need_lib_prefix=no
9979 ;;
9980 freebsd-*)
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9982 need_version=yes
9983 ;;
9984 esac
9985 shlibpath_var=LD_LIBRARY_PATH
9986 case $host_os in
9987 freebsd2*)
9988 shlibpath_overrides_runpath=yes
9989 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009990 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991 shlibpath_overrides_runpath=yes
9992 hardcode_into_libs=yes
9993 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009994 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9995 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009996 shlibpath_overrides_runpath=no
9997 hardcode_into_libs=yes
9998 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009999 freebsd*) # from 4.6 on
10000 shlibpath_overrides_runpath=yes
10001 hardcode_into_libs=yes
10002 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010003 esac
10004 ;;
10005
10006gnu*)
10007 version_type=linux
10008 need_lib_prefix=no
10009 need_version=no
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10011 soname_spec='${libname}${release}${shared_ext}$major'
10012 shlibpath_var=LD_LIBRARY_PATH
10013 hardcode_into_libs=yes
10014 ;;
10015
10016hpux9* | hpux10* | hpux11*)
10017 # Give a soname corresponding to the major version so that dld.sl refuses to
10018 # link against other versions.
10019 version_type=sunos
10020 need_lib_prefix=no
10021 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000010022 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010023 ia64*)
10024 shrext_cmds='.so'
10025 hardcode_into_libs=yes
10026 dynamic_linker="$host_os dld.so"
10027 shlibpath_var=LD_LIBRARY_PATH
10028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 if test "X$HPUX_IA64_MODE" = X32; then
10032 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10033 else
10034 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10035 fi
10036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10037 ;;
10038 hppa*64*)
10039 shrext_cmds='.sl'
10040 hardcode_into_libs=yes
10041 dynamic_linker="$host_os dld.sl"
10042 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10048 ;;
10049 *)
10050 shrext_cmds='.sl'
10051 dynamic_linker="$host_os dld.sl"
10052 shlibpath_var=SHLIB_PATH
10053 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 ;;
10057 esac
10058 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10059 postinstall_cmds='chmod 555 $lib'
10060 ;;
10061
Reid Spencera773bd52006-08-04 18:18:08 +000010062interix3*)
10063 version_type=linux
10064 need_lib_prefix=no
10065 need_version=no
10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10067 soname_spec='${libname}${release}${shared_ext}$major'
10068 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10069 shlibpath_var=LD_LIBRARY_PATH
10070 shlibpath_overrides_runpath=no
10071 hardcode_into_libs=yes
10072 ;;
10073
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010074irix5* | irix6* | nonstopux*)
10075 case $host_os in
10076 nonstopux*) version_type=nonstopux ;;
10077 *)
10078 if test "$lt_cv_prog_gnu_ld" = yes; then
10079 version_type=linux
10080 else
10081 version_type=irix
10082 fi ;;
10083 esac
10084 need_lib_prefix=no
10085 need_version=no
10086 soname_spec='${libname}${release}${shared_ext}$major'
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10088 case $host_os in
10089 irix5* | nonstopux*)
10090 libsuff= shlibsuff=
10091 ;;
10092 *)
10093 case $LD in # libtool.m4 will add one of these switches to LD
10094 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10095 libsuff= shlibsuff= libmagic=32-bit;;
10096 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10097 libsuff=32 shlibsuff=N32 libmagic=N32;;
10098 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10099 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10100 *) libsuff= shlibsuff= libmagic=never-match;;
10101 esac
10102 ;;
10103 esac
10104 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10105 shlibpath_overrides_runpath=no
10106 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10107 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10108 hardcode_into_libs=yes
10109 ;;
10110
10111# No shared lib support for Linux oldld, aout, or coff.
10112linux*oldld* | linux*aout* | linux*coff*)
10113 dynamic_linker=no
10114 ;;
10115
10116# This must be Linux ELF.
10117linux*)
10118 version_type=linux
10119 need_lib_prefix=no
10120 need_version=no
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122 soname_spec='${libname}${release}${shared_ext}$major'
10123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10124 shlibpath_var=LD_LIBRARY_PATH
10125 shlibpath_overrides_runpath=no
10126 # This implies no fast_install, which is unacceptable.
10127 # Some rework will be needed to allow for fast_install
10128 # before this can be enabled.
10129 hardcode_into_libs=yes
10130
10131 # Append ld.so.conf contents to the search path
10132 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010133 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 +000010134 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10135 fi
10136
10137 # We used to test for /lib/ld.so.1 and disable shared libraries on
10138 # powerpc, because MkLinux only supported shared libraries with the
10139 # GNU dynamic linker. Since this was broken with cross compilers,
10140 # most powerpc-linux boxes support dynamic linking these days and
10141 # people can always --disable-shared, the test was removed, and we
10142 # assume the GNU/Linux dynamic linker is in use.
10143 dynamic_linker='GNU/Linux ld.so'
10144 ;;
10145
10146knetbsd*-gnu)
10147 version_type=linux
10148 need_lib_prefix=no
10149 need_version=no
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10151 soname_spec='${libname}${release}${shared_ext}$major'
10152 shlibpath_var=LD_LIBRARY_PATH
10153 shlibpath_overrides_runpath=no
10154 hardcode_into_libs=yes
10155 dynamic_linker='GNU ld.so'
10156 ;;
10157
10158netbsd*)
10159 version_type=sunos
10160 need_lib_prefix=no
10161 need_version=no
10162 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10165 dynamic_linker='NetBSD (a.out) ld.so'
10166 else
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10168 soname_spec='${libname}${release}${shared_ext}$major'
10169 dynamic_linker='NetBSD ld.elf_so'
10170 fi
10171 shlibpath_var=LD_LIBRARY_PATH
10172 shlibpath_overrides_runpath=yes
10173 hardcode_into_libs=yes
10174 ;;
10175
10176newsos6)
10177 version_type=linux
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 shlibpath_overrides_runpath=yes
10181 ;;
10182
10183nto-qnx*)
10184 version_type=linux
10185 need_lib_prefix=no
10186 need_version=no
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 shlibpath_var=LD_LIBRARY_PATH
10190 shlibpath_overrides_runpath=yes
10191 ;;
10192
10193openbsd*)
10194 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010195 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010196 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10198 case $host_os in
10199 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10200 *) need_version=no ;;
10201 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10206 case $host_os in
10207 openbsd2.[89] | openbsd2.[89].*)
10208 shlibpath_overrides_runpath=no
10209 ;;
10210 *)
10211 shlibpath_overrides_runpath=yes
10212 ;;
10213 esac
10214 else
10215 shlibpath_overrides_runpath=yes
10216 fi
10217 ;;
10218
10219os2*)
10220 libname_spec='$name'
10221 shrext_cmds=".dll"
10222 need_lib_prefix=no
10223 library_names_spec='$libname${shared_ext} $libname.a'
10224 dynamic_linker='OS/2 ld.exe'
10225 shlibpath_var=LIBPATH
10226 ;;
10227
10228osf3* | osf4* | osf5*)
10229 version_type=osf
10230 need_lib_prefix=no
10231 need_version=no
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234 shlibpath_var=LD_LIBRARY_PATH
10235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10237 ;;
10238
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010239solaris*)
10240 version_type=linux
10241 need_lib_prefix=no
10242 need_version=no
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 shlibpath_overrides_runpath=yes
10247 hardcode_into_libs=yes
10248 # ldd complains unless libraries are executable
10249 postinstall_cmds='chmod +x $lib'
10250 ;;
10251
10252sunos4*)
10253 version_type=sunos
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10255 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 shlibpath_overrides_runpath=yes
10258 if test "$with_gnu_ld" = yes; then
10259 need_lib_prefix=no
10260 fi
10261 need_version=yes
10262 ;;
10263
Reid Spencera773bd52006-08-04 18:18:08 +000010264sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010265 version_type=linux
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 case $host_vendor in
10270 sni)
10271 shlibpath_overrides_runpath=no
10272 need_lib_prefix=no
10273 export_dynamic_flag_spec='${wl}-Blargedynsym'
10274 runpath_var=LD_RUN_PATH
10275 ;;
10276 siemens)
10277 need_lib_prefix=no
10278 ;;
10279 motorola)
10280 need_lib_prefix=no
10281 need_version=no
10282 shlibpath_overrides_runpath=no
10283 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10284 ;;
10285 esac
10286 ;;
10287
10288sysv4*MP*)
10289 if test -d /usr/nec ;then
10290 version_type=linux
10291 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10292 soname_spec='$libname${shared_ext}.$major'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 fi
10295 ;;
10296
Reid Spencera773bd52006-08-04 18:18:08 +000010297sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10298 version_type=freebsd-elf
10299 need_lib_prefix=no
10300 need_version=no
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10302 soname_spec='${libname}${release}${shared_ext}$major'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 hardcode_into_libs=yes
10305 if test "$with_gnu_ld" = yes; then
10306 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10307 shlibpath_overrides_runpath=no
10308 else
10309 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10310 shlibpath_overrides_runpath=yes
10311 case $host_os in
10312 sco3.2v5*)
10313 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10314 ;;
10315 esac
10316 fi
10317 sys_lib_dlsearch_path_spec='/usr/lib'
10318 ;;
10319
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010320uts4*)
10321 version_type=linux
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 ;;
10326
10327*)
10328 dynamic_linker=no
10329 ;;
10330esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010331{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10332echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010333test "$dynamic_linker" = no && can_build_shared=no
10334
Reid Spencera773bd52006-08-04 18:18:08 +000010335variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10336if test "$GCC" = yes; then
10337 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10338fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010339
Reid Spencera773bd52006-08-04 18:18:08 +000010340
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010341{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10342echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10343if test "${libltdl_cv_shlibext+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010345else
10346
10347module=yes
10348eval libltdl_cv_shlibext=$shrext_cmds
10349
10350fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010351{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10352echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353if test -n "$libltdl_cv_shlibext"; then
10354
10355cat >>confdefs.h <<_ACEOF
10356#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10357_ACEOF
10358
10359fi
10360
10361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010362{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10363echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10364if test "${libltdl_cv_shlibpath_var+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010366else
10367 libltdl_cv_shlibpath_var="$shlibpath_var"
10368fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010369{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10370echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010371if test -n "$libltdl_cv_shlibpath_var"; then
10372
10373cat >>confdefs.h <<_ACEOF
10374#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10375_ACEOF
10376
10377fi
10378
10379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010380{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10381echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10382if test "${libltdl_cv_sys_search_path+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010384else
10385 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10386fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010387{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10388echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010389if test -n "$libltdl_cv_sys_search_path"; then
10390 sys_search_path=
10391 for dir in $libltdl_cv_sys_search_path; do
10392 if test -z "$sys_search_path"; then
10393 sys_search_path="$dir"
10394 else
10395 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10396 fi
10397 done
10398
10399cat >>confdefs.h <<_ACEOF
10400#define LTDL_SYSSEARCHPATH "$sys_search_path"
10401_ACEOF
10402
10403fi
10404
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010405{ echo "$as_me:$LINENO: checking for objdir" >&5
10406echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10407if test "${libltdl_cv_objdir+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010409else
10410 libltdl_cv_objdir="$objdir"
10411 if test -n "$objdir"; then
10412 :
10413 else
10414 rm -f .libs 2>/dev/null
10415 mkdir .libs 2>/dev/null
10416 if test -d .libs; then
10417 libltdl_cv_objdir=.libs
10418 else
10419 # MS-DOS does not allow filenames that begin with a dot.
10420 libltdl_cv_objdir=_libs
10421 fi
10422 rmdir .libs 2>/dev/null
10423 fi
10424
10425fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010426{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10427echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010428
10429cat >>confdefs.h <<_ACEOF
10430#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10431_ACEOF
10432
10433
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434
10435
10436
10437
10438# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010439{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10440echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10441if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010443else
10444
10445# These are sane defaults that work on at least a few old systems.
10446# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10447
10448# Character class describing NM global symbol codes.
10449symcode='[BCDEGRST]'
10450
10451# Regexp to match symbols that can be accessed directly from C.
10452sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10453
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010454# Transform an extracted symbol line into a proper C declaration
10455lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10456
10457# Transform an extracted symbol line into symbol name and symbol address
10458lt_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'"
10459
10460# Define system-specific variables.
10461case $host_os in
10462aix*)
10463 symcode='[BCDT]'
10464 ;;
10465cygwin* | mingw* | pw32*)
10466 symcode='[ABCDGISTW]'
10467 ;;
10468hpux*) # Its linker distinguishes data from code symbols
10469 if test "$host_cpu" = ia64; then
10470 symcode='[ABCDEGRST]'
10471 fi
10472 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10473 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'"
10474 ;;
10475linux*)
10476 if test "$host_cpu" = ia64; then
10477 symcode='[ABCDGIRSTW]'
10478 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10479 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'"
10480 fi
10481 ;;
10482irix* | nonstopux*)
10483 symcode='[BCDEGRST]'
10484 ;;
10485osf*)
10486 symcode='[BCDEGQRST]'
10487 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010488solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010489 symcode='[BDRT]'
10490 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010491sco3.2v5*)
10492 symcode='[DT]'
10493 ;;
10494sysv4.2uw2*)
10495 symcode='[DT]'
10496 ;;
10497sysv5* | sco5v6* | unixware* | OpenUNIX*)
10498 symcode='[ABDT]'
10499 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010500sysv4)
10501 symcode='[DFNSTU]'
10502 ;;
10503esac
10504
10505# Handle CRLF in mingw tool chain
10506opt_cr=
10507case $build_os in
10508mingw*)
10509 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10510 ;;
10511esac
10512
10513# If we're using GNU nm, then use its standard symbol codes.
10514case `$NM -V 2>&1` in
10515*GNU* | *'with BFD'*)
10516 symcode='[ABCDGIRSTW]' ;;
10517esac
10518
10519# Try without a prefix undercore, then with it.
10520for ac_symprfx in "" "_"; do
10521
Reid Spencera773bd52006-08-04 18:18:08 +000010522 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10523 symxfrm="\\1 $ac_symprfx\\2 \\2"
10524
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010525 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010526 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 +000010527
10528 # Check to see that the pipe works correctly.
10529 pipe_works=no
10530
10531 rm -f conftest*
10532 cat > conftest.$ac_ext <<EOF
10533#ifdef __cplusplus
10534extern "C" {
10535#endif
10536char nm_test_var;
10537void nm_test_func(){}
10538#ifdef __cplusplus
10539}
10540#endif
10541int main(){nm_test_var='a';nm_test_func();return(0);}
10542EOF
10543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010545 (eval $ac_compile) 2>&5
10546 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010549 # Now try to grab the symbols.
10550 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010551 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 +000010552 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10553 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010556 # Try sorting and uniquifying the output.
10557 if sort "$nlist" | uniq > "$nlist"T; then
10558 mv -f "$nlist"T "$nlist"
10559 else
10560 rm -f "$nlist"T
10561 fi
10562
10563 # Make sure that we snagged all the symbols we need.
10564 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10565 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10566 cat <<EOF > conftest.$ac_ext
10567#ifdef __cplusplus
10568extern "C" {
10569#endif
10570
10571EOF
10572 # Now generate the symbol file.
10573 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10574
10575 cat <<EOF >> conftest.$ac_ext
10576#if defined (__STDC__) && __STDC__
10577# define lt_ptr_t void *
10578#else
10579# define lt_ptr_t char *
10580# define const
10581#endif
10582
10583/* The mapping between symbol names and symbols. */
10584const struct {
10585 const char *name;
10586 lt_ptr_t address;
10587}
10588lt_preloaded_symbols[] =
10589{
10590EOF
10591 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10592 cat <<\EOF >> conftest.$ac_ext
10593 {0, (lt_ptr_t) 0}
10594};
10595
10596#ifdef __cplusplus
10597}
10598#endif
10599EOF
10600 # Now try linking the two files.
10601 mv conftest.$ac_objext conftstm.$ac_objext
10602 lt_save_LIBS="$LIBS"
10603 lt_save_CFLAGS="$CFLAGS"
10604 LIBS="conftstm.$ac_objext"
10605 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010607 (eval $ac_link) 2>&5
10608 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010611 pipe_works=yes
10612 fi
10613 LIBS="$lt_save_LIBS"
10614 CFLAGS="$lt_save_CFLAGS"
10615 else
10616 echo "cannot find nm_test_func in $nlist" >&5
10617 fi
10618 else
10619 echo "cannot find nm_test_var in $nlist" >&5
10620 fi
10621 else
10622 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10623 fi
10624 else
10625 echo "$progname: failed program was:" >&5
10626 cat conftest.$ac_ext >&5
10627 fi
10628 rm -f conftest* conftst*
10629
10630 # Do not use the global_symbol_pipe unless it works.
10631 if test "$pipe_works" = yes; then
10632 break
10633 else
10634 lt_cv_sys_global_symbol_pipe=
10635 fi
10636done
10637
10638fi
10639
10640if test -z "$lt_cv_sys_global_symbol_pipe"; then
10641 lt_cv_sys_global_symbol_to_cdecl=
10642fi
10643if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010644 { echo "$as_me:$LINENO: result: failed" >&5
10645echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010646else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010647 { echo "$as_me:$LINENO: result: ok" >&5
10648echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649fi
10650
10651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010652{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10653echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10654if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010656else
10657 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10658 libltdl_cv_preloaded_symbols=yes
10659 else
10660 libltdl_cv_preloaded_symbols=no
10661 fi
10662
10663fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010664{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10665echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010666if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010668cat >>confdefs.h <<\_ACEOF
10669#define HAVE_PRELOADED_SYMBOLS 1
10670_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010671
10672fi
10673
10674LIBADD_DL=
10675
10676ac_ext=c
10677ac_cpp='$CPP $CPPFLAGS'
10678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10680ac_compiler_gnu=$ac_cv_c_compiler_gnu
10681
10682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010683{ echo "$as_me:$LINENO: checking for shl_load" >&5
10684echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10685if test "${ac_cv_func_shl_load+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687else
10688 cat >conftest.$ac_ext <<_ACEOF
10689/* confdefs.h. */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h. */
10694/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10696#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010698/* System header to define __stub macros and hopefully few prototypes,
10699 which can conflict with char shl_load (); below.
10700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10701 <limits.h> exists even on freestanding compilers. */
10702
10703#ifdef __STDC__
10704# include <limits.h>
10705#else
10706# include <assert.h>
10707#endif
10708
10709#undef shl_load
10710
10711/* Override any GCC internal prototype to avoid an error.
10712 Use char because int might match the return type of a GCC
10713 builtin and then its argument prototype would still apply. */
10714#ifdef __cplusplus
10715extern "C"
10716#endif
10717char shl_load ();
10718/* The GNU C library defines this for functions which it implements
10719 to always fail with ENOSYS. Some functions are actually named
10720 something starting with __ and the normal name is an alias. */
10721#if defined __stub_shl_load || defined __stub___shl_load
10722choke me
10723#endif
10724
10725int
10726main ()
10727{
10728return shl_load ();
10729 ;
10730 return 0;
10731}
10732_ACEOF
10733rm -f conftest.$ac_objext conftest$ac_exeext
10734if { (ac_try="$ac_link"
10735case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10738esac
10739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_link") 2>conftest.er1
10741 ac_status=$?
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
10747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10748 { (case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10751esac
10752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753 (eval "$ac_try") 2>&5
10754 ac_status=$?
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; } &&
10757 { ac_try='test -s conftest$ac_exeext'
10758 { (case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10761esac
10762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_try") 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 ac_cv_func_shl_load=yes
10768else
10769 echo "$as_me: failed program was:" >&5
10770sed 's/^/| /' conftest.$ac_ext >&5
10771
10772 ac_cv_func_shl_load=no
10773fi
10774
10775rm -f core conftest.err conftest.$ac_objext \
10776 conftest$ac_exeext conftest.$ac_ext
10777fi
10778{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10779echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10780if test $ac_cv_func_shl_load = yes; then
10781
10782cat >>confdefs.h <<\_ACEOF
10783#define HAVE_SHL_LOAD 1
10784_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010785
10786else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010787 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10788echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10789if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010791else
10792 ac_check_lib_save_LIBS=$LIBS
10793LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010794cat >conftest.$ac_ext <<_ACEOF
10795/* confdefs.h. */
10796_ACEOF
10797cat confdefs.h >>conftest.$ac_ext
10798cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010799/* end confdefs.h. */
10800
Reid Spencera773bd52006-08-04 18:18:08 +000010801/* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010804#ifdef __cplusplus
10805extern "C"
10806#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010807char shl_load ();
10808int
10809main ()
10810{
Reid Spencera773bd52006-08-04 18:18:08 +000010811return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010812 ;
10813 return 0;
10814}
10815_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010816rm -f conftest.$ac_objext conftest$ac_exeext
10817if { (ac_try="$ac_link"
10818case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10821esac
10822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_link") 2>conftest.er1
10824 ac_status=$?
10825 grep -v '^ *+' conftest.er1 >conftest.err
10826 rm -f conftest.er1
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } &&
10830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10831 { (case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10834esac
10835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_try") 2>&5
10837 ac_status=$?
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; } &&
10840 { ac_try='test -s conftest$ac_exeext'
10841 { (case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10844esac
10845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_try") 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010850 ac_cv_lib_dld_shl_load=yes
10851else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010852 echo "$as_me: failed program was:" >&5
10853sed 's/^/| /' conftest.$ac_ext >&5
10854
10855 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010856fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010857
Bill Wendlingebcceee2009-04-18 11:20:33 +000010858rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010859 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010860LIBS=$ac_check_lib_save_LIBS
10861fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010862{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10863echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10864if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010866cat >>confdefs.h <<\_ACEOF
10867#define HAVE_SHL_LOAD 1
10868_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010869
10870 LIBADD_DL="$LIBADD_DL -ldld"
10871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010872 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10873echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10874if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010876else
10877 ac_check_lib_save_LIBS=$LIBS
10878LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010879cat >conftest.$ac_ext <<_ACEOF
10880/* confdefs.h. */
10881_ACEOF
10882cat confdefs.h >>conftest.$ac_ext
10883cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010884/* end confdefs.h. */
10885
Reid Spencera773bd52006-08-04 18:18:08 +000010886/* Override any GCC internal prototype to avoid an error.
10887 Use char because int might match the return type of a GCC
10888 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010889#ifdef __cplusplus
10890extern "C"
10891#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892char dlopen ();
10893int
10894main ()
10895{
Reid Spencera773bd52006-08-04 18:18:08 +000010896return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010897 ;
10898 return 0;
10899}
10900_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010901rm -f conftest.$ac_objext conftest$ac_exeext
10902if { (ac_try="$ac_link"
10903case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10906esac
10907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908 (eval "$ac_link") 2>conftest.er1
10909 ac_status=$?
10910 grep -v '^ *+' conftest.er1 >conftest.err
10911 rm -f conftest.er1
10912 cat conftest.err >&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); } &&
10915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10916 { (case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10919esac
10920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921 (eval "$ac_try") 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; } &&
10925 { ac_try='test -s conftest$ac_exeext'
10926 { (case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10929esac
10930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_try") 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010935 ac_cv_lib_dl_dlopen=yes
10936else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010937 echo "$as_me: failed program was:" >&5
10938sed 's/^/| /' conftest.$ac_ext >&5
10939
10940 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010941fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010942
Bill Wendlingebcceee2009-04-18 11:20:33 +000010943rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010944 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010945LIBS=$ac_check_lib_save_LIBS
10946fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010947{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10948echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10949if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010951cat >>confdefs.h <<\_ACEOF
10952#define HAVE_LIBDL 1
10953_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010954
10955 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010957 cat >conftest.$ac_ext <<_ACEOF
10958/* confdefs.h. */
10959_ACEOF
10960cat confdefs.h >>conftest.$ac_ext
10961cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010962/* end confdefs.h. */
10963#if HAVE_DLFCN_H
10964# include <dlfcn.h>
10965#endif
10966
10967int
10968main ()
10969{
10970dlopen(0, 0);
10971 ;
10972 return 0;
10973}
10974_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010975rm -f conftest.$ac_objext conftest$ac_exeext
10976if { (ac_try="$ac_link"
10977case "(($ac_try" in
10978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979 *) ac_try_echo=$ac_try;;
10980esac
10981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982 (eval "$ac_link") 2>conftest.er1
10983 ac_status=$?
10984 grep -v '^ *+' conftest.er1 >conftest.err
10985 rm -f conftest.er1
10986 cat conftest.err >&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } &&
10989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10990 { (case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10993esac
10994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_try") 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; } &&
10999 { ac_try='test -s conftest$ac_exeext'
11000 { (case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11003esac
11004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_try") 2>&5
11006 ac_status=$?
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011010cat >>confdefs.h <<\_ACEOF
11011#define HAVE_LIBDL 1
11012_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011013 libltdl_cv_func_dlopen="yes"
11014else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011015 echo "$as_me: failed program was:" >&5
11016sed 's/^/| /' conftest.$ac_ext >&5
11017
11018 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11019echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11020if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011022else
11023 ac_check_lib_save_LIBS=$LIBS
11024LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011025cat >conftest.$ac_ext <<_ACEOF
11026/* confdefs.h. */
11027_ACEOF
11028cat confdefs.h >>conftest.$ac_ext
11029cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011030/* end confdefs.h. */
11031
Reid Spencera773bd52006-08-04 18:18:08 +000011032/* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011035#ifdef __cplusplus
11036extern "C"
11037#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011038char dlopen ();
11039int
11040main ()
11041{
Reid Spencera773bd52006-08-04 18:18:08 +000011042return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011043 ;
11044 return 0;
11045}
11046_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011047rm -f conftest.$ac_objext conftest$ac_exeext
11048if { (ac_try="$ac_link"
11049case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11052esac
11053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054 (eval "$ac_link") 2>conftest.er1
11055 ac_status=$?
11056 grep -v '^ *+' conftest.er1 >conftest.err
11057 rm -f conftest.er1
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11062 { (case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065esac
11066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_try") 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try='test -s conftest$ac_exeext'
11072 { (case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11075esac
11076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_try") 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011081 ac_cv_lib_svld_dlopen=yes
11082else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011083 echo "$as_me: failed program was:" >&5
11084sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011087fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011088
Bill Wendlingebcceee2009-04-18 11:20:33 +000011089rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011090 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011091LIBS=$ac_check_lib_save_LIBS
11092fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011093{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11094echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11095if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011096
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011097cat >>confdefs.h <<\_ACEOF
11098#define HAVE_LIBDL 1
11099_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011100
11101 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11102else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011103 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11104echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11105if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011107else
11108 ac_check_lib_save_LIBS=$LIBS
11109LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011110cat >conftest.$ac_ext <<_ACEOF
11111/* confdefs.h. */
11112_ACEOF
11113cat confdefs.h >>conftest.$ac_ext
11114cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011115/* end confdefs.h. */
11116
Reid Spencera773bd52006-08-04 18:18:08 +000011117/* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011120#ifdef __cplusplus
11121extern "C"
11122#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011123char dld_link ();
11124int
11125main ()
11126{
Reid Spencera773bd52006-08-04 18:18:08 +000011127return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011128 ;
11129 return 0;
11130}
11131_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011132rm -f conftest.$ac_objext conftest$ac_exeext
11133if { (ac_try="$ac_link"
11134case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11137esac
11138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_link") 2>conftest.er1
11140 ac_status=$?
11141 grep -v '^ *+' conftest.er1 >conftest.err
11142 rm -f conftest.er1
11143 cat conftest.err >&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } &&
11146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11147 { (case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11150esac
11151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_try") 2>&5
11153 ac_status=$?
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; } &&
11156 { ac_try='test -s conftest$ac_exeext'
11157 { (case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11160esac
11161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162 (eval "$ac_try") 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011166 ac_cv_lib_dld_dld_link=yes
11167else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011168 echo "$as_me: failed program was:" >&5
11169sed 's/^/| /' conftest.$ac_ext >&5
11170
11171 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011173
Bill Wendlingebcceee2009-04-18 11:20:33 +000011174rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011175 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011176LIBS=$ac_check_lib_save_LIBS
11177fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011178{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11179echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11180if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011182cat >>confdefs.h <<\_ACEOF
11183#define HAVE_DLD 1
11184_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011185
11186 LIBADD_DL="$LIBADD_DL -ldld"
11187else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011188 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11189echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11190if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11192else
11193 cat >conftest.$ac_ext <<_ACEOF
11194/* confdefs.h. */
11195_ACEOF
11196cat confdefs.h >>conftest.$ac_ext
11197cat >>conftest.$ac_ext <<_ACEOF
11198/* end confdefs.h. */
11199/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11201#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011203/* System header to define __stub macros and hopefully few prototypes,
11204 which can conflict with char _dyld_func_lookup (); below.
11205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11206 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011208#ifdef __STDC__
11209# include <limits.h>
11210#else
11211# include <assert.h>
11212#endif
11213
11214#undef _dyld_func_lookup
11215
11216/* Override any GCC internal prototype to avoid an error.
11217 Use char because int might match the return type of a GCC
11218 builtin and then its argument prototype would still apply. */
11219#ifdef __cplusplus
11220extern "C"
11221#endif
11222char _dyld_func_lookup ();
11223/* The GNU C library defines this for functions which it implements
11224 to always fail with ENOSYS. Some functions are actually named
11225 something starting with __ and the normal name is an alias. */
11226#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11227choke me
11228#endif
11229
11230int
11231main ()
11232{
11233return _dyld_func_lookup ();
11234 ;
11235 return 0;
11236}
11237_ACEOF
11238rm -f conftest.$ac_objext conftest$ac_exeext
11239if { (ac_try="$ac_link"
11240case "(($ac_try" in
11241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11242 *) ac_try_echo=$ac_try;;
11243esac
11244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11245 (eval "$ac_link") 2>conftest.er1
11246 ac_status=$?
11247 grep -v '^ *+' conftest.er1 >conftest.err
11248 rm -f conftest.er1
11249 cat conftest.err >&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
11252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11253 { (case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11256esac
11257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_try") 2>&5
11259 ac_status=$?
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; } &&
11262 { ac_try='test -s conftest$ac_exeext'
11263 { (case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11266esac
11267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_try") 2>&5
11269 ac_status=$?
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; }; then
11272 ac_cv_func__dyld_func_lookup=yes
11273else
11274 echo "$as_me: failed program was:" >&5
11275sed 's/^/| /' conftest.$ac_ext >&5
11276
11277 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011278fi
Reid Spencera773bd52006-08-04 18:18:08 +000011279
Bill Wendlingebcceee2009-04-18 11:20:33 +000011280rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011281 conftest$ac_exeext conftest.$ac_ext
11282fi
11283{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11284echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11285if test $ac_cv_func__dyld_func_lookup = yes; then
11286
11287cat >>confdefs.h <<\_ACEOF
11288#define HAVE_DYLD 1
11289_ACEOF
11290
11291fi
11292
11293
11294fi
11295
11296
11297fi
11298
11299
11300fi
11301
11302rm -f core conftest.err conftest.$ac_objext \
11303 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011304
11305fi
11306
11307
11308fi
11309
11310
11311fi
11312
11313
11314if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11315then
11316 lt_save_LIBS="$LIBS"
11317 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011318
11319for ac_func in dlerror
11320do
11321as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11322{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11323echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11324if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11326else
11327 cat >conftest.$ac_ext <<_ACEOF
11328/* confdefs.h. */
11329_ACEOF
11330cat confdefs.h >>conftest.$ac_ext
11331cat >>conftest.$ac_ext <<_ACEOF
11332/* end confdefs.h. */
11333/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11335#define $ac_func innocuous_$ac_func
11336
11337/* System header to define __stub macros and hopefully few prototypes,
11338 which can conflict with char $ac_func (); below.
11339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11340 <limits.h> exists even on freestanding compilers. */
11341
11342#ifdef __STDC__
11343# include <limits.h>
11344#else
11345# include <assert.h>
11346#endif
11347
11348#undef $ac_func
11349
11350/* Override any GCC internal prototype to avoid an error.
11351 Use char because int might match the return type of a GCC
11352 builtin and then its argument prototype would still apply. */
11353#ifdef __cplusplus
11354extern "C"
11355#endif
11356char $ac_func ();
11357/* The GNU C library defines this for functions which it implements
11358 to always fail with ENOSYS. Some functions are actually named
11359 something starting with __ and the normal name is an alias. */
11360#if defined __stub_$ac_func || defined __stub___$ac_func
11361choke me
11362#endif
11363
11364int
11365main ()
11366{
11367return $ac_func ();
11368 ;
11369 return 0;
11370}
11371_ACEOF
11372rm -f conftest.$ac_objext conftest$ac_exeext
11373if { (ac_try="$ac_link"
11374case "(($ac_try" in
11375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376 *) ac_try_echo=$ac_try;;
11377esac
11378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379 (eval "$ac_link") 2>conftest.er1
11380 ac_status=$?
11381 grep -v '^ *+' conftest.er1 >conftest.err
11382 rm -f conftest.er1
11383 cat conftest.err >&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } &&
11386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11387 { (case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11390esac
11391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_try") 2>&5
11393 ac_status=$?
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; } &&
11396 { ac_try='test -s conftest$ac_exeext'
11397 { (case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11400esac
11401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_try") 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 eval "$as_ac_var=yes"
11407else
11408 echo "$as_me: failed program was:" >&5
11409sed 's/^/| /' conftest.$ac_ext >&5
11410
11411 eval "$as_ac_var=no"
11412fi
11413
11414rm -f core conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11416fi
11417ac_res=`eval echo '${'$as_ac_var'}'`
11418 { echo "$as_me:$LINENO: result: $ac_res" >&5
11419echo "${ECHO_T}$ac_res" >&6; }
11420if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011421 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011423_ACEOF
11424
11425fi
11426done
11427
11428 LIBS="$lt_save_LIBS"
11429fi
11430ac_ext=c
11431ac_cpp='$CPP $CPPFLAGS'
11432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11434ac_compiler_gnu=$ac_cv_c_compiler_gnu
11435
11436
11437
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011438{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11439echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11440if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011442else
11443 ac_cv_sys_symbol_underscore=no
11444 cat > conftest.$ac_ext <<EOF
11445void nm_test_func(){}
11446int main(){nm_test_func;return 0;}
11447EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449 (eval $ac_compile) 2>&5
11450 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011453 # Now try to grab the symbols.
11454 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011455 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 +000011456 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11457 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011460 # See whether the symbols have a leading underscore.
11461 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11462 ac_cv_sys_symbol_underscore=yes
11463 else
11464 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11465 :
11466 else
11467 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11468 fi
11469 fi
11470 else
11471 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11472 fi
11473 else
11474 echo "configure: failed program was:" >&5
11475 cat conftest.c >&5
11476 fi
11477 rm -rf conftest*
11478
11479fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011480{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11481echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011482
11483
11484if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11485 if test x"$libltdl_cv_func_dlopen" = xyes ||
11486 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011487 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11488echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11489if test "${libltdl_cv_need_uscore+set}" = set; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011491else
11492 libltdl_cv_need_uscore=unknown
11493 save_LIBS="$LIBS"
11494 LIBS="$LIBS $LIBADD_DL"
11495 if test "$cross_compiling" = yes; then :
11496 libltdl_cv_need_uscore=cross
11497else
11498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11499 lt_status=$lt_dlunknown
11500 cat > conftest.$ac_ext <<EOF
Tobias Grosserbaaadb22010-10-30 00:54:26 +000011501#line 11501 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011502#include "confdefs.h"
11503
11504#if HAVE_DLFCN_H
11505#include <dlfcn.h>
11506#endif
11507
11508#include <stdio.h>
11509
11510#ifdef RTLD_GLOBAL
11511# define LT_DLGLOBAL RTLD_GLOBAL
11512#else
11513# ifdef DL_GLOBAL
11514# define LT_DLGLOBAL DL_GLOBAL
11515# else
11516# define LT_DLGLOBAL 0
11517# endif
11518#endif
11519
11520/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11521 find out it does not work in some platform. */
11522#ifndef LT_DLLAZY_OR_NOW
11523# ifdef RTLD_LAZY
11524# define LT_DLLAZY_OR_NOW RTLD_LAZY
11525# else
11526# ifdef DL_LAZY
11527# define LT_DLLAZY_OR_NOW DL_LAZY
11528# else
11529# ifdef RTLD_NOW
11530# define LT_DLLAZY_OR_NOW RTLD_NOW
11531# else
11532# ifdef DL_NOW
11533# define LT_DLLAZY_OR_NOW DL_NOW
11534# else
11535# define LT_DLLAZY_OR_NOW 0
11536# endif
11537# endif
11538# endif
11539# endif
11540#endif
11541
11542#ifdef __cplusplus
11543extern "C" void exit (int);
11544#endif
11545
11546void fnord() { int i=42;}
11547int main ()
11548{
11549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11550 int status = $lt_dlunknown;
11551
11552 if (self)
11553 {
11554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11555 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11556 /* dlclose (self); */
11557 }
Reid Spencera773bd52006-08-04 18:18:08 +000011558 else
11559 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011560
11561 exit (status);
11562}
11563EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011565 (eval $ac_link) 2>&5
11566 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011569 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011570 lt_status=$?
11571 case x$lt_status in
11572 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11573 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011574 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011575 esac
11576 else :
11577 # compilation failed
11578
11579 fi
11580fi
11581rm -fr conftest*
11582
11583 LIBS="$save_LIBS"
11584
11585fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011586{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11587echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011588 fi
11589fi
11590
11591if test x"$libltdl_cv_need_uscore" = xyes; then
11592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011593cat >>confdefs.h <<\_ACEOF
11594#define NEED_USCORE 1
11595_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011596
11597fi
11598
11599
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011600{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11601echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11602if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011604else
11605 # PORTME does your system automatically load deplibs for dlopen?
11606 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11607 # For now, we just catch OSes we know something about -- in the
11608 # future, we'll try test this programmatically.
11609 libltdl_cv_sys_dlopen_deplibs=unknown
11610 case "$host_os" in
11611 aix3*|aix4.1.*|aix4.2.*)
11612 # Unknown whether this is true for these versions of AIX, but
11613 # we want this `case' here to explicitly catch those versions.
11614 libltdl_cv_sys_dlopen_deplibs=unknown
11615 ;;
11616 aix[45]*)
11617 libltdl_cv_sys_dlopen_deplibs=yes
11618 ;;
11619 darwin*)
11620 # Assuming the user has installed a libdl from somewhere, this is true
11621 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11622 libltdl_cv_sys_dlopen_deplibs=yes
11623 ;;
11624 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11625 # GNU and its variants, using gnu ld.so (Glibc)
11626 libltdl_cv_sys_dlopen_deplibs=yes
11627 ;;
11628 hpux10*|hpux11*)
11629 libltdl_cv_sys_dlopen_deplibs=yes
11630 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011631 interix*)
11632 libltdl_cv_sys_dlopen_deplibs=yes
11633 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011634 irix[12345]*|irix6.[01]*)
11635 # Catch all versions of IRIX before 6.2, and indicate that we don't
11636 # know how it worked for any of those versions.
11637 libltdl_cv_sys_dlopen_deplibs=unknown
11638 ;;
11639 irix*)
11640 # The case above catches anything before 6.2, and it's known that
11641 # at 6.2 and later dlopen does load deplibs.
11642 libltdl_cv_sys_dlopen_deplibs=yes
11643 ;;
11644 netbsd*)
11645 libltdl_cv_sys_dlopen_deplibs=yes
11646 ;;
11647 openbsd*)
11648 libltdl_cv_sys_dlopen_deplibs=yes
11649 ;;
11650 osf[1234]*)
11651 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11652 # it did *not* use an RPATH in a shared library to find objects the
11653 # library depends on, so we explictly say `no'.
11654 libltdl_cv_sys_dlopen_deplibs=no
11655 ;;
11656 osf5.0|osf5.0a|osf5.1)
11657 # dlopen *does* load deplibs and with the right loader patch applied
11658 # it even uses RPATH in a shared library to search for shared objects
11659 # that the library depends on, but there's no easy way to know if that
11660 # patch is installed. Since this is the case, all we can really
11661 # say is unknown -- it depends on the patch being installed. If
11662 # it is, this changes to `yes'. Without it, it would be `no'.
11663 libltdl_cv_sys_dlopen_deplibs=unknown
11664 ;;
11665 osf*)
11666 # the two cases above should catch all versions of osf <= 5.1. Read
11667 # the comments above for what we know about them.
11668 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11669 # is used to find them so we can finally say `yes'.
11670 libltdl_cv_sys_dlopen_deplibs=yes
11671 ;;
11672 solaris*)
11673 libltdl_cv_sys_dlopen_deplibs=yes
11674 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11676 libltdl_cv_sys_dlopen_deplibs=yes
11677 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011678 esac
11679
11680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011681{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11682echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011683if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011685cat >>confdefs.h <<\_ACEOF
11686#define LTDL_DLOPEN_DEPLIBS 1
11687_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011688
11689fi
11690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011691
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011692for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011693do
11694as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11700fi
11701ac_res=`eval echo '${'$as_ac_Header'}'`
11702 { echo "$as_me:$LINENO: result: $ac_res" >&5
11703echo "${ECHO_T}$ac_res" >&6; }
11704else
11705 # Is the header compilable?
11706{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11707echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11708cat >conftest.$ac_ext <<_ACEOF
11709/* confdefs.h. */
11710_ACEOF
11711cat confdefs.h >>conftest.$ac_ext
11712cat >>conftest.$ac_ext <<_ACEOF
11713/* end confdefs.h. */
11714$ac_includes_default
11715#include <$ac_header>
11716_ACEOF
11717rm -f conftest.$ac_objext
11718if { (ac_try="$ac_compile"
11719case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11722esac
11723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_compile") 2>conftest.er1
11725 ac_status=$?
11726 grep -v '^ *+' conftest.er1 >conftest.err
11727 rm -f conftest.er1
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
11731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11732 { (case "(($ac_try" in
11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11735esac
11736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737 (eval "$ac_try") 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try='test -s conftest.$ac_objext'
11742 { (case "(($ac_try" in
11743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11745esac
11746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747 (eval "$ac_try") 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 ac_header_compiler=yes
11752else
11753 echo "$as_me: failed program was:" >&5
11754sed 's/^/| /' conftest.$ac_ext >&5
11755
11756 ac_header_compiler=no
11757fi
11758
11759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11760{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11761echo "${ECHO_T}$ac_header_compiler" >&6; }
11762
11763# Is the header present?
11764{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11765echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11766cat >conftest.$ac_ext <<_ACEOF
11767/* confdefs.h. */
11768_ACEOF
11769cat confdefs.h >>conftest.$ac_ext
11770cat >>conftest.$ac_ext <<_ACEOF
11771/* end confdefs.h. */
11772#include <$ac_header>
11773_ACEOF
11774if { (ac_try="$ac_cpp conftest.$ac_ext"
11775case "(($ac_try" in
11776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11778esac
11779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11781 ac_status=$?
11782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } >/dev/null; then
11787 if test -s conftest.err; then
11788 ac_cpp_err=$ac_c_preproc_warn_flag
11789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11790 else
11791 ac_cpp_err=
11792 fi
11793else
11794 ac_cpp_err=yes
11795fi
11796if test -z "$ac_cpp_err"; then
11797 ac_header_preproc=yes
11798else
11799 echo "$as_me: failed program was:" >&5
11800sed 's/^/| /' conftest.$ac_ext >&5
11801
11802 ac_header_preproc=no
11803fi
11804
11805rm -f conftest.err conftest.$ac_ext
11806{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11807echo "${ECHO_T}$ac_header_preproc" >&6; }
11808
11809# So? What about this header?
11810case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11811 yes:no: )
11812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11813echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11815echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11816 ac_header_preproc=yes
11817 ;;
11818 no:yes:* )
11819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11820echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11822echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11824echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11826echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11828echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11830echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11831 ( cat <<\_ASBOX
11832## ----------------------------------- ##
11833## Report this to llvmbugs@cs.uiuc.edu ##
11834## ----------------------------------- ##
11835_ASBOX
11836 ) | sed "s/^/$as_me: WARNING: /" >&2
11837 ;;
11838esac
11839{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843else
11844 eval "$as_ac_Header=\$ac_header_preproc"
11845fi
11846ac_res=`eval echo '${'$as_ac_Header'}'`
11847 { echo "$as_me:$LINENO: result: $ac_res" >&5
11848echo "${ECHO_T}$ac_res" >&6; }
11849
11850fi
11851if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011852 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011853#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011854_ACEOF
11855
11856fi
11857
11858done
11859
11860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011861{ echo "$as_me:$LINENO: checking for error_t" >&5
11862echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11863if test "${ac_cv_type_error_t+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11865else
11866 cat >conftest.$ac_ext <<_ACEOF
11867/* confdefs.h. */
11868_ACEOF
11869cat confdefs.h >>conftest.$ac_ext
11870cat >>conftest.$ac_ext <<_ACEOF
11871/* end confdefs.h. */
11872#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011873# include <argz.h>
11874#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011875
11876typedef error_t ac__type_new_;
11877int
11878main ()
11879{
11880if ((ac__type_new_ *) 0)
11881 return 0;
11882if (sizeof (ac__type_new_))
11883 return 0;
11884 ;
11885 return 0;
11886}
11887_ACEOF
11888rm -f conftest.$ac_objext
11889if { (ac_try="$ac_compile"
11890case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11893esac
11894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_compile") 2>conftest.er1
11896 ac_status=$?
11897 grep -v '^ *+' conftest.er1 >conftest.err
11898 rm -f conftest.er1
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11903 { (case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11906esac
11907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_try") 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; } &&
11912 { ac_try='test -s conftest.$ac_objext'
11913 { (case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916esac
11917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_try") 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 ac_cv_type_error_t=yes
11923else
11924 echo "$as_me: failed program was:" >&5
11925sed 's/^/| /' conftest.$ac_ext >&5
11926
11927 ac_cv_type_error_t=no
11928fi
11929
11930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931fi
11932{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11933echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11934if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011935
11936cat >>confdefs.h <<_ACEOF
11937#define HAVE_ERROR_T 1
11938_ACEOF
11939
11940
11941else
11942
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011943cat >>confdefs.h <<\_ACEOF
11944#define error_t int
11945_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011946
11947fi
11948
11949
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011950
11951
11952
11953
11954
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011955for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011956do
11957as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11958{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11959echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11960if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11962else
11963 cat >conftest.$ac_ext <<_ACEOF
11964/* confdefs.h. */
11965_ACEOF
11966cat confdefs.h >>conftest.$ac_ext
11967cat >>conftest.$ac_ext <<_ACEOF
11968/* end confdefs.h. */
11969/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11971#define $ac_func innocuous_$ac_func
11972
11973/* System header to define __stub macros and hopefully few prototypes,
11974 which can conflict with char $ac_func (); below.
11975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11976 <limits.h> exists even on freestanding compilers. */
11977
11978#ifdef __STDC__
11979# include <limits.h>
11980#else
11981# include <assert.h>
11982#endif
11983
11984#undef $ac_func
11985
11986/* Override any GCC internal prototype to avoid an error.
11987 Use char because int might match the return type of a GCC
11988 builtin and then its argument prototype would still apply. */
11989#ifdef __cplusplus
11990extern "C"
11991#endif
11992char $ac_func ();
11993/* The GNU C library defines this for functions which it implements
11994 to always fail with ENOSYS. Some functions are actually named
11995 something starting with __ and the normal name is an alias. */
11996#if defined __stub_$ac_func || defined __stub___$ac_func
11997choke me
11998#endif
11999
12000int
12001main ()
12002{
12003return $ac_func ();
12004 ;
12005 return 0;
12006}
12007_ACEOF
12008rm -f conftest.$ac_objext conftest$ac_exeext
12009if { (ac_try="$ac_link"
12010case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013esac
12014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_link") 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12023 { (case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12026esac
12027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_try") 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; } &&
12032 { ac_try='test -s conftest$ac_exeext'
12033 { (case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12036esac
12037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_try") 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 eval "$as_ac_var=yes"
12043else
12044 echo "$as_me: failed program was:" >&5
12045sed 's/^/| /' conftest.$ac_ext >&5
12046
12047 eval "$as_ac_var=no"
12048fi
12049
12050rm -f core conftest.err conftest.$ac_objext \
12051 conftest$ac_exeext conftest.$ac_ext
12052fi
12053ac_res=`eval echo '${'$as_ac_var'}'`
12054 { echo "$as_me:$LINENO: result: $ac_res" >&5
12055echo "${ECHO_T}$ac_res" >&6; }
12056if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012057 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012058#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012059_ACEOF
12060
12061fi
12062done
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012083
12084
12085
12086
12087
12088
12089
12090
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012091for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12092 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012093do
12094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100fi
12101ac_res=`eval echo '${'$as_ac_Header'}'`
12102 { echo "$as_me:$LINENO: result: $ac_res" >&5
12103echo "${ECHO_T}$ac_res" >&6; }
12104else
12105 # Is the header compilable?
12106{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12108cat >conftest.$ac_ext <<_ACEOF
12109/* confdefs.h. */
12110_ACEOF
12111cat confdefs.h >>conftest.$ac_ext
12112cat >>conftest.$ac_ext <<_ACEOF
12113/* end confdefs.h. */
12114$ac_includes_default
12115#include <$ac_header>
12116_ACEOF
12117rm -f conftest.$ac_objext
12118if { (ac_try="$ac_compile"
12119case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12122esac
12123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_compile") 2>conftest.er1
12125 ac_status=$?
12126 grep -v '^ *+' conftest.er1 >conftest.err
12127 rm -f conftest.er1
12128 cat conftest.err >&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } &&
12131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12132 { (case "(($ac_try" in
12133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134 *) ac_try_echo=$ac_try;;
12135esac
12136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137 (eval "$ac_try") 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; } &&
12141 { ac_try='test -s conftest.$ac_objext'
12142 { (case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12145esac
12146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147 (eval "$ac_try") 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; }; then
12151 ac_header_compiler=yes
12152else
12153 echo "$as_me: failed program was:" >&5
12154sed 's/^/| /' conftest.$ac_ext >&5
12155
12156 ac_header_compiler=no
12157fi
12158
12159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12160{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12161echo "${ECHO_T}$ac_header_compiler" >&6; }
12162
12163# Is the header present?
12164{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12165echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12166cat >conftest.$ac_ext <<_ACEOF
12167/* confdefs.h. */
12168_ACEOF
12169cat confdefs.h >>conftest.$ac_ext
12170cat >>conftest.$ac_ext <<_ACEOF
12171/* end confdefs.h. */
12172#include <$ac_header>
12173_ACEOF
12174if { (ac_try="$ac_cpp conftest.$ac_ext"
12175case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178esac
12179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } >/dev/null; then
12187 if test -s conftest.err; then
12188 ac_cpp_err=$ac_c_preproc_warn_flag
12189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12190 else
12191 ac_cpp_err=
12192 fi
12193else
12194 ac_cpp_err=yes
12195fi
12196if test -z "$ac_cpp_err"; then
12197 ac_header_preproc=yes
12198else
12199 echo "$as_me: failed program was:" >&5
12200sed 's/^/| /' conftest.$ac_ext >&5
12201
12202 ac_header_preproc=no
12203fi
12204
12205rm -f conftest.err conftest.$ac_ext
12206{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12207echo "${ECHO_T}$ac_header_preproc" >&6; }
12208
12209# So? What about this header?
12210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12211 yes:no: )
12212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12216 ac_header_preproc=yes
12217 ;;
12218 no:yes:* )
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12226echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12231 ( cat <<\_ASBOX
12232## ----------------------------------- ##
12233## Report this to llvmbugs@cs.uiuc.edu ##
12234## ----------------------------------- ##
12235_ASBOX
12236 ) | sed "s/^/$as_me: WARNING: /" >&2
12237 ;;
12238esac
12239{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243else
12244 eval "$as_ac_Header=\$ac_header_preproc"
12245fi
12246ac_res=`eval echo '${'$as_ac_Header'}'`
12247 { echo "$as_me:$LINENO: result: $ac_res" >&5
12248echo "${ECHO_T}$ac_res" >&6; }
12249
12250fi
12251if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012252 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012254_ACEOF
12255
12256fi
12257
12258done
12259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012260
12261
12262
12263
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012264for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012265do
12266as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12272fi
12273ac_res=`eval echo '${'$as_ac_Header'}'`
12274 { echo "$as_me:$LINENO: result: $ac_res" >&5
12275echo "${ECHO_T}$ac_res" >&6; }
12276else
12277 # Is the header compilable?
12278{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12279echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12280cat >conftest.$ac_ext <<_ACEOF
12281/* confdefs.h. */
12282_ACEOF
12283cat confdefs.h >>conftest.$ac_ext
12284cat >>conftest.$ac_ext <<_ACEOF
12285/* end confdefs.h. */
12286$ac_includes_default
12287#include <$ac_header>
12288_ACEOF
12289rm -f conftest.$ac_objext
12290if { (ac_try="$ac_compile"
12291case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12294esac
12295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12304 { (case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12307esac
12308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_try") 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest.$ac_objext'
12314 { (case "(($ac_try" in
12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316 *) ac_try_echo=$ac_try;;
12317esac
12318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319 (eval "$ac_try") 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
12323 ac_header_compiler=yes
12324else
12325 echo "$as_me: failed program was:" >&5
12326sed 's/^/| /' conftest.$ac_ext >&5
12327
12328 ac_header_compiler=no
12329fi
12330
12331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12333echo "${ECHO_T}$ac_header_compiler" >&6; }
12334
12335# Is the header present?
12336{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12337echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12338cat >conftest.$ac_ext <<_ACEOF
12339/* confdefs.h. */
12340_ACEOF
12341cat confdefs.h >>conftest.$ac_ext
12342cat >>conftest.$ac_ext <<_ACEOF
12343/* end confdefs.h. */
12344#include <$ac_header>
12345_ACEOF
12346if { (ac_try="$ac_cpp conftest.$ac_ext"
12347case "(($ac_try" in
12348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12349 *) ac_try_echo=$ac_try;;
12350esac
12351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } >/dev/null; then
12359 if test -s conftest.err; then
12360 ac_cpp_err=$ac_c_preproc_warn_flag
12361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12362 else
12363 ac_cpp_err=
12364 fi
12365else
12366 ac_cpp_err=yes
12367fi
12368if test -z "$ac_cpp_err"; then
12369 ac_header_preproc=yes
12370else
12371 echo "$as_me: failed program was:" >&5
12372sed 's/^/| /' conftest.$ac_ext >&5
12373
12374 ac_header_preproc=no
12375fi
12376
12377rm -f conftest.err conftest.$ac_ext
12378{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12379echo "${ECHO_T}$ac_header_preproc" >&6; }
12380
12381# So? What about this header?
12382case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12383 yes:no: )
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12385echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12387echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12388 ac_header_preproc=yes
12389 ;;
12390 no:yes:* )
12391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12392echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12394echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12396echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12398echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12400echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12402echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12403 ( cat <<\_ASBOX
12404## ----------------------------------- ##
12405## Report this to llvmbugs@cs.uiuc.edu ##
12406## ----------------------------------- ##
12407_ASBOX
12408 ) | sed "s/^/$as_me: WARNING: /" >&2
12409 ;;
12410esac
12411{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12415else
12416 eval "$as_ac_Header=\$ac_header_preproc"
12417fi
12418ac_res=`eval echo '${'$as_ac_Header'}'`
12419 { echo "$as_me:$LINENO: result: $ac_res" >&5
12420echo "${ECHO_T}$ac_res" >&6; }
12421
12422fi
12423if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012424 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012425#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012426_ACEOF
12427
12428fi
12429
12430done
12431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012432
12433
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012434for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012435do
12436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12442fi
12443ac_res=`eval echo '${'$as_ac_Header'}'`
12444 { echo "$as_me:$LINENO: result: $ac_res" >&5
12445echo "${ECHO_T}$ac_res" >&6; }
12446else
12447 # Is the header compilable?
12448{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12449echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12450cat >conftest.$ac_ext <<_ACEOF
12451/* confdefs.h. */
12452_ACEOF
12453cat confdefs.h >>conftest.$ac_ext
12454cat >>conftest.$ac_ext <<_ACEOF
12455/* end confdefs.h. */
12456$ac_includes_default
12457#include <$ac_header>
12458_ACEOF
12459rm -f conftest.$ac_objext
12460if { (ac_try="$ac_compile"
12461case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12464esac
12465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466 (eval "$ac_compile") 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
12473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12474 { (case "(($ac_try" in
12475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476 *) ac_try_echo=$ac_try;;
12477esac
12478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479 (eval "$ac_try") 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; } &&
12483 { ac_try='test -s conftest.$ac_objext'
12484 { (case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12487esac
12488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_try") 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12493 ac_header_compiler=yes
12494else
12495 echo "$as_me: failed program was:" >&5
12496sed 's/^/| /' conftest.$ac_ext >&5
12497
12498 ac_header_compiler=no
12499fi
12500
12501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12502{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12503echo "${ECHO_T}$ac_header_compiler" >&6; }
12504
12505# Is the header present?
12506{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12508cat >conftest.$ac_ext <<_ACEOF
12509/* confdefs.h. */
12510_ACEOF
12511cat confdefs.h >>conftest.$ac_ext
12512cat >>conftest.$ac_ext <<_ACEOF
12513/* end confdefs.h. */
12514#include <$ac_header>
12515_ACEOF
12516if { (ac_try="$ac_cpp conftest.$ac_ext"
12517case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12520esac
12521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12523 ac_status=$?
12524 grep -v '^ *+' conftest.er1 >conftest.err
12525 rm -f conftest.er1
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } >/dev/null; then
12529 if test -s conftest.err; then
12530 ac_cpp_err=$ac_c_preproc_warn_flag
12531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12532 else
12533 ac_cpp_err=
12534 fi
12535else
12536 ac_cpp_err=yes
12537fi
12538if test -z "$ac_cpp_err"; then
12539 ac_header_preproc=yes
12540else
12541 echo "$as_me: failed program was:" >&5
12542sed 's/^/| /' conftest.$ac_ext >&5
12543
12544 ac_header_preproc=no
12545fi
12546
12547rm -f conftest.err conftest.$ac_ext
12548{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12549echo "${ECHO_T}$ac_header_preproc" >&6; }
12550
12551# So? What about this header?
12552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12553 yes:no: )
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12555echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12557echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12558 ac_header_preproc=yes
12559 ;;
12560 no:yes:* )
12561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12564echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12566echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12568echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12570echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12572echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12573 ( cat <<\_ASBOX
12574## ----------------------------------- ##
12575## Report this to llvmbugs@cs.uiuc.edu ##
12576## ----------------------------------- ##
12577_ASBOX
12578 ) | sed "s/^/$as_me: WARNING: /" >&2
12579 ;;
12580esac
12581{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12585else
12586 eval "$as_ac_Header=\$ac_header_preproc"
12587fi
12588ac_res=`eval echo '${'$as_ac_Header'}'`
12589 { echo "$as_me:$LINENO: result: $ac_res" >&5
12590echo "${ECHO_T}$ac_res" >&6; }
12591
12592fi
12593if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012594 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012596_ACEOF
12597 break
12598fi
12599
12600done
12601
12602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012603
12604
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012605for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012606do
12607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12608{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12610if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12612else
12613 cat >conftest.$ac_ext <<_ACEOF
12614/* confdefs.h. */
12615_ACEOF
12616cat confdefs.h >>conftest.$ac_ext
12617cat >>conftest.$ac_ext <<_ACEOF
12618/* end confdefs.h. */
12619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12621#define $ac_func innocuous_$ac_func
12622
12623/* System header to define __stub macros and hopefully few prototypes,
12624 which can conflict with char $ac_func (); below.
12625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12626 <limits.h> exists even on freestanding compilers. */
12627
12628#ifdef __STDC__
12629# include <limits.h>
12630#else
12631# include <assert.h>
12632#endif
12633
12634#undef $ac_func
12635
12636/* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
12639#ifdef __cplusplus
12640extern "C"
12641#endif
12642char $ac_func ();
12643/* The GNU C library defines this for functions which it implements
12644 to always fail with ENOSYS. Some functions are actually named
12645 something starting with __ and the normal name is an alias. */
12646#if defined __stub_$ac_func || defined __stub___$ac_func
12647choke me
12648#endif
12649
12650int
12651main ()
12652{
12653return $ac_func ();
12654 ;
12655 return 0;
12656}
12657_ACEOF
12658rm -f conftest.$ac_objext conftest$ac_exeext
12659if { (ac_try="$ac_link"
12660case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12663esac
12664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665 (eval "$ac_link") 2>conftest.er1
12666 ac_status=$?
12667 grep -v '^ *+' conftest.er1 >conftest.err
12668 rm -f conftest.er1
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12673 { (case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12676esac
12677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_try") 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest$ac_exeext'
12683 { (case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12686esac
12687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_try") 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 eval "$as_ac_var=yes"
12693else
12694 echo "$as_me: failed program was:" >&5
12695sed 's/^/| /' conftest.$ac_ext >&5
12696
12697 eval "$as_ac_var=no"
12698fi
12699
12700rm -f core conftest.err conftest.$ac_objext \
12701 conftest$ac_exeext conftest.$ac_ext
12702fi
12703ac_res=`eval echo '${'$as_ac_var'}'`
12704 { echo "$as_me:$LINENO: result: $ac_res" >&5
12705echo "${ECHO_T}$ac_res" >&6; }
12706if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012707 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012709_ACEOF
12710 break
12711fi
12712done
12713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012714
12715
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012716for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012717do
12718as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12719{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12720echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12721if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12723else
12724 cat >conftest.$ac_ext <<_ACEOF
12725/* confdefs.h. */
12726_ACEOF
12727cat confdefs.h >>conftest.$ac_ext
12728cat >>conftest.$ac_ext <<_ACEOF
12729/* end confdefs.h. */
12730/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12732#define $ac_func innocuous_$ac_func
12733
12734/* System header to define __stub macros and hopefully few prototypes,
12735 which can conflict with char $ac_func (); below.
12736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12737 <limits.h> exists even on freestanding compilers. */
12738
12739#ifdef __STDC__
12740# include <limits.h>
12741#else
12742# include <assert.h>
12743#endif
12744
12745#undef $ac_func
12746
12747/* Override any GCC internal prototype to avoid an error.
12748 Use char because int might match the return type of a GCC
12749 builtin and then its argument prototype would still apply. */
12750#ifdef __cplusplus
12751extern "C"
12752#endif
12753char $ac_func ();
12754/* The GNU C library defines this for functions which it implements
12755 to always fail with ENOSYS. Some functions are actually named
12756 something starting with __ and the normal name is an alias. */
12757#if defined __stub_$ac_func || defined __stub___$ac_func
12758choke me
12759#endif
12760
12761int
12762main ()
12763{
12764return $ac_func ();
12765 ;
12766 return 0;
12767}
12768_ACEOF
12769rm -f conftest.$ac_objext conftest$ac_exeext
12770if { (ac_try="$ac_link"
12771case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774esac
12775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_link") 2>conftest.er1
12777 ac_status=$?
12778 grep -v '^ *+' conftest.er1 >conftest.err
12779 rm -f conftest.er1
12780 cat conftest.err >&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } &&
12783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12784 { (case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12787esac
12788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789 (eval "$ac_try") 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; } &&
12793 { ac_try='test -s conftest$ac_exeext'
12794 { (case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12797esac
12798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_try") 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; }; then
12803 eval "$as_ac_var=yes"
12804else
12805 echo "$as_me: failed program was:" >&5
12806sed 's/^/| /' conftest.$ac_ext >&5
12807
12808 eval "$as_ac_var=no"
12809fi
12810
12811rm -f core conftest.err conftest.$ac_objext \
12812 conftest$ac_exeext conftest.$ac_ext
12813fi
12814ac_res=`eval echo '${'$as_ac_var'}'`
12815 { echo "$as_me:$LINENO: result: $ac_res" >&5
12816echo "${ECHO_T}$ac_res" >&6; }
12817if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012818 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012819#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012820_ACEOF
12821 break
12822fi
12823done
12824
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012825
12826
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012827for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012828do
12829as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12830{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12831echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12832if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12834else
12835 cat >conftest.$ac_ext <<_ACEOF
12836/* confdefs.h. */
12837_ACEOF
12838cat confdefs.h >>conftest.$ac_ext
12839cat >>conftest.$ac_ext <<_ACEOF
12840/* end confdefs.h. */
12841/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12843#define $ac_func innocuous_$ac_func
12844
12845/* System header to define __stub macros and hopefully few prototypes,
12846 which can conflict with char $ac_func (); below.
12847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12848 <limits.h> exists even on freestanding compilers. */
12849
12850#ifdef __STDC__
12851# include <limits.h>
12852#else
12853# include <assert.h>
12854#endif
12855
12856#undef $ac_func
12857
12858/* Override any GCC internal prototype to avoid an error.
12859 Use char because int might match the return type of a GCC
12860 builtin and then its argument prototype would still apply. */
12861#ifdef __cplusplus
12862extern "C"
12863#endif
12864char $ac_func ();
12865/* The GNU C library defines this for functions which it implements
12866 to always fail with ENOSYS. Some functions are actually named
12867 something starting with __ and the normal name is an alias. */
12868#if defined __stub_$ac_func || defined __stub___$ac_func
12869choke me
12870#endif
12871
12872int
12873main ()
12874{
12875return $ac_func ();
12876 ;
12877 return 0;
12878}
12879_ACEOF
12880rm -f conftest.$ac_objext conftest$ac_exeext
12881if { (ac_try="$ac_link"
12882case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885esac
12886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_link") 2>conftest.er1
12888 ac_status=$?
12889 grep -v '^ *+' conftest.er1 >conftest.err
12890 rm -f conftest.er1
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895 { (case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898esac
12899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_try") 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; } &&
12904 { ac_try='test -s conftest$ac_exeext'
12905 { (case "(($ac_try" in
12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 *) ac_try_echo=$ac_try;;
12908esac
12909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910 (eval "$ac_try") 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 eval "$as_ac_var=yes"
12915else
12916 echo "$as_me: failed program was:" >&5
12917sed 's/^/| /' conftest.$ac_ext >&5
12918
12919 eval "$as_ac_var=no"
12920fi
12921
12922rm -f core conftest.err conftest.$ac_objext \
12923 conftest$ac_exeext conftest.$ac_ext
12924fi
12925ac_res=`eval echo '${'$as_ac_var'}'`
12926 { echo "$as_me:$LINENO: result: $ac_res" >&5
12927echo "${ECHO_T}$ac_res" >&6; }
12928if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012929 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012930#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012931_ACEOF
12932 break
12933fi
12934done
12935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012936
12937
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012938for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012939do
12940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12941{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12943if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12944 echo $ECHO_N "(cached) $ECHO_C" >&6
12945else
12946 cat >conftest.$ac_ext <<_ACEOF
12947/* confdefs.h. */
12948_ACEOF
12949cat confdefs.h >>conftest.$ac_ext
12950cat >>conftest.$ac_ext <<_ACEOF
12951/* end confdefs.h. */
12952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12954#define $ac_func innocuous_$ac_func
12955
12956/* System header to define __stub macros and hopefully few prototypes,
12957 which can conflict with char $ac_func (); below.
12958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12959 <limits.h> exists even on freestanding compilers. */
12960
12961#ifdef __STDC__
12962# include <limits.h>
12963#else
12964# include <assert.h>
12965#endif
12966
12967#undef $ac_func
12968
12969/* Override any GCC internal prototype to avoid an error.
12970 Use char because int might match the return type of a GCC
12971 builtin and then its argument prototype would still apply. */
12972#ifdef __cplusplus
12973extern "C"
12974#endif
12975char $ac_func ();
12976/* The GNU C library defines this for functions which it implements
12977 to always fail with ENOSYS. Some functions are actually named
12978 something starting with __ and the normal name is an alias. */
12979#if defined __stub_$ac_func || defined __stub___$ac_func
12980choke me
12981#endif
12982
12983int
12984main ()
12985{
12986return $ac_func ();
12987 ;
12988 return 0;
12989}
12990_ACEOF
12991rm -f conftest.$ac_objext conftest$ac_exeext
12992if { (ac_try="$ac_link"
12993case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12996esac
12997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_link") 2>conftest.er1
12999 ac_status=$?
13000 grep -v '^ *+' conftest.er1 >conftest.err
13001 rm -f conftest.er1
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13006 { (case "(($ac_try" in
13007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008 *) ac_try_echo=$ac_try;;
13009esac
13010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011 (eval "$ac_try") 2>&5
13012 ac_status=$?
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; } &&
13015 { ac_try='test -s conftest$ac_exeext'
13016 { (case "(($ac_try" in
13017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018 *) ac_try_echo=$ac_try;;
13019esac
13020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021 (eval "$ac_try") 2>&5
13022 ac_status=$?
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; }; then
13025 eval "$as_ac_var=yes"
13026else
13027 echo "$as_me: failed program was:" >&5
13028sed 's/^/| /' conftest.$ac_ext >&5
13029
13030 eval "$as_ac_var=no"
13031fi
13032
13033rm -f core conftest.err conftest.$ac_objext \
13034 conftest$ac_exeext conftest.$ac_ext
13035fi
13036ac_res=`eval echo '${'$as_ac_var'}'`
13037 { echo "$as_me:$LINENO: result: $ac_res" >&5
13038echo "${ECHO_T}$ac_res" >&6; }
13039if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013040 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013042_ACEOF
13043
13044fi
13045done
13046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013047
13048
13049
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013050for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013051do
13052as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13053{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13054echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13055if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13057else
13058 cat >conftest.$ac_ext <<_ACEOF
13059/* confdefs.h. */
13060_ACEOF
13061cat confdefs.h >>conftest.$ac_ext
13062cat >>conftest.$ac_ext <<_ACEOF
13063/* end confdefs.h. */
13064/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13066#define $ac_func innocuous_$ac_func
13067
13068/* System header to define __stub macros and hopefully few prototypes,
13069 which can conflict with char $ac_func (); below.
13070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13071 <limits.h> exists even on freestanding compilers. */
13072
13073#ifdef __STDC__
13074# include <limits.h>
13075#else
13076# include <assert.h>
13077#endif
13078
13079#undef $ac_func
13080
13081/* Override any GCC internal prototype to avoid an error.
13082 Use char because int might match the return type of a GCC
13083 builtin and then its argument prototype would still apply. */
13084#ifdef __cplusplus
13085extern "C"
13086#endif
13087char $ac_func ();
13088/* The GNU C library defines this for functions which it implements
13089 to always fail with ENOSYS. Some functions are actually named
13090 something starting with __ and the normal name is an alias. */
13091#if defined __stub_$ac_func || defined __stub___$ac_func
13092choke me
13093#endif
13094
13095int
13096main ()
13097{
13098return $ac_func ();
13099 ;
13100 return 0;
13101}
13102_ACEOF
13103rm -f conftest.$ac_objext conftest$ac_exeext
13104if { (ac_try="$ac_link"
13105case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13108esac
13109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110 (eval "$ac_link") 2>conftest.er1
13111 ac_status=$?
13112 grep -v '^ *+' conftest.er1 >conftest.err
13113 rm -f conftest.er1
13114 cat conftest.err >&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13118 { (case "(($ac_try" in
13119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13121esac
13122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123 (eval "$ac_try") 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; } &&
13127 { ac_try='test -s conftest$ac_exeext'
13128 { (case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131esac
13132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_try") 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; }; then
13137 eval "$as_ac_var=yes"
13138else
13139 echo "$as_me: failed program was:" >&5
13140sed 's/^/| /' conftest.$ac_ext >&5
13141
13142 eval "$as_ac_var=no"
13143fi
13144
13145rm -f core conftest.err conftest.$ac_objext \
13146 conftest$ac_exeext conftest.$ac_ext
13147fi
13148ac_res=`eval echo '${'$as_ac_var'}'`
13149 { echo "$as_me:$LINENO: result: $ac_res" >&5
13150echo "${ECHO_T}$ac_res" >&6; }
13151if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013152 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013154_ACEOF
13155
13156fi
13157done
13158
13159
Douglas Gregor01746742009-05-11 18:05:52 +000013160
Reid Spencer7931a782004-12-27 06:15:02 +000013161if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013162 LLVMGCC="llvm-gcc${EXEEXT}"
13163 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013164 LLVMGCCCOMMAND="$LLVMGCC"
13165 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013166 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13167
13168 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13169
Reid Spencerc84492c2005-06-02 22:34:49 +000013170 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13171set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13174if test "${ac_cv_path_LLVMGCC+set}" = set; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013176else
13177 case $LLVMGCC in
13178 [\\/]* | ?:[\\/]*)
13179 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13180 ;;
13181 *)
13182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183for as_dir in $PATH
13184do
13185 IFS=$as_save_IFS
13186 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013187 for ac_exec_ext in '' $ac_executable_extensions; do
13188 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 +000013189 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013191 break 2
13192 fi
13193done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013194done
Reid Spencera773bd52006-08-04 18:18:08 +000013195IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013196
Reid Spencer59473af2004-12-25 07:31:29 +000013197 ;;
13198esac
13199fi
13200LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013201if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013202 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13203echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013204else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013205 { echo "$as_me:$LINENO: result: no" >&5
13206echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013207fi
13208
Reid Spencera773bd52006-08-04 18:18:08 +000013209
Reid Spencerc84492c2005-06-02 22:34:49 +000013210 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13211set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13214if test "${ac_cv_path_LLVMGXX+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013216else
13217 case $LLVMGXX in
13218 [\\/]* | ?:[\\/]*)
13219 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13220 ;;
13221 *)
13222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223for as_dir in $PATH
13224do
13225 IFS=$as_save_IFS
13226 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013227 for ac_exec_ext in '' $ac_executable_extensions; do
13228 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 +000013229 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013231 break 2
13232 fi
13233done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013234done
Reid Spencera773bd52006-08-04 18:18:08 +000013235IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013236
Reid Spencer59473af2004-12-25 07:31:29 +000013237 ;;
13238esac
13239fi
13240LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013241if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013242 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13243echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013244else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013245 { echo "$as_me:$LINENO: result: no" >&5
13246echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013247fi
13248
Reid Spencera773bd52006-08-04 18:18:08 +000013249
Reid Spencer59473af2004-12-25 07:31:29 +000013250else
Devang Patel5d28b882007-12-04 22:54:47 +000013251 if test -z "$LLVMGCC"; then
13252 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013253 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013254 fi
13255 if test -z "$LLVMGXX"; then
13256 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013257 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013258 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013259
Reid Spencer59473af2004-12-25 07:31:29 +000013260 LLVMGCC=$LLVMGCC
13261
13262 LLVMGXX=$LLVMGXX
13263
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013264 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13265
13266 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13267
Reid Spencer59473af2004-12-25 07:31:29 +000013268fi
13269
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013270
Daniel Dunbar98515672010-02-23 10:00:49 +000013271# Check whether --with-llvmcc was given.
13272if test "${with_llvmcc+set}" = set; then
13273 withval=$with_llvmcc;
13274else
13275 with_llvmcc=check
13276fi
13277
13278{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13279echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13280if test "$with_llvmcc" != "check"; then
13281 if (test "$with_llvmcc" != "llvm-gcc" &&
13282 test "$with_llvmcc" != "clang" &&
13283 test "$with_llvmcc" != "none"); then
13284 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13285echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13286 { (exit 1); exit 1; }; }
13287 fi
13288 WITH_LLVMCC="$with_llvmcc"
13289elif test -n "$LLVMGCC"; then
13290 WITH_LLVMCC=llvm-gcc
13291elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13292 WITH_LLVMCC=clang
13293else
13294 WITH_LLVMCC=none
13295fi
13296{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13297echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13298LLVMCC_OPTION=$WITH_LLVMCC
13299
13300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013301{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13302echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013303
Reid Spencer86901802004-12-08 23:07:27 +000013304ICC=no
13305IXX=no
13306case $CC in
13307 icc*|icpc*)
13308 ICC=yes
13309 IXX=yes
13310 ;;
13311 *)
13312 ;;
13313esac
13314
Duraid Madina937c60a2006-02-15 07:57:42 +000013315if test "$GCC" != "yes" && test "$ICC" != "yes"
13316then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013317 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13318echo "$as_me: error: gcc|icc required but not found" >&2;}
13319 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013320fi
13321
13322if test "$GXX" != "yes" && test "$IXX" != "yes"
13323then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013324 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13325echo "$as_me: error: g++|icc required but not found" >&2;}
13326 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013327fi
13328
Reid Spencer86901802004-12-08 23:07:27 +000013329if test "$GCC" = "yes"
13330then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013331 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013332#if !defined(__GNUC__) || __GNUC__ < 3
13333#error Unsupported GCC version
13334#endif
13335
13336_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013337rm -f conftest.$ac_objext
13338if { (ac_try="$ac_compile"
13339case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13342esac
13343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_compile") 2>conftest.er1
13345 ac_status=$?
13346 grep -v '^ *+' conftest.er1 >conftest.err
13347 rm -f conftest.er1
13348 cat conftest.err >&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } &&
13351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13352 { (case "(($ac_try" in
13353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354 *) ac_try_echo=$ac_try;;
13355esac
13356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13357 (eval "$ac_try") 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; } &&
13361 { ac_try='test -s conftest.$ac_objext'
13362 { (case "(($ac_try" in
13363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364 *) ac_try_echo=$ac_try;;
13365esac
13366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13367 (eval "$ac_try") 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013372else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013373 echo "$as_me: failed program was:" >&5
13374sed 's/^/| /' conftest.$ac_ext >&5
13375
13376 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13377echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13378 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013379fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013380
Chris Lattner399c7c72008-02-05 19:43:53 +000013381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013382fi
13383
13384if test -z "$llvm_cv_gnu_make_command"
13385then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013386 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13387echo "$as_me: error: GNU Make required but not found" >&2;}
13388 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013389fi
13390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013391{ echo "$as_me:$LINENO: result: ok" >&5
13392echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013394{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13395echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013396NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13397
13398NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013400{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13401echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013402
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013404
13405{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13406echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13407if test "${ac_cv_lib_m_sin+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013409else
13410 ac_check_lib_save_LIBS=$LIBS
13411LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013412cat >conftest.$ac_ext <<_ACEOF
13413/* confdefs.h. */
13414_ACEOF
13415cat confdefs.h >>conftest.$ac_ext
13416cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013417/* end confdefs.h. */
13418
Reid Spencera773bd52006-08-04 18:18:08 +000013419/* Override any GCC internal prototype to avoid an error.
13420 Use char because int might match the return type of a GCC
13421 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013422#ifdef __cplusplus
13423extern "C"
13424#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013425char sin ();
13426int
13427main ()
13428{
Reid Spencera773bd52006-08-04 18:18:08 +000013429return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013430 ;
13431 return 0;
13432}
13433_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013434rm -f conftest.$ac_objext conftest$ac_exeext
13435if { (ac_try="$ac_link"
13436case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439esac
13440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_link") 2>conftest.er1
13442 ac_status=$?
13443 grep -v '^ *+' conftest.er1 >conftest.err
13444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13449 { (case "(($ac_try" in
13450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451 *) ac_try_echo=$ac_try;;
13452esac
13453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454 (eval "$ac_try") 2>&5
13455 ac_status=$?
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; } &&
13458 { ac_try='test -s conftest$ac_exeext'
13459 { (case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13462esac
13463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_try") 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013468 ac_cv_lib_m_sin=yes
13469else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013470 echo "$as_me: failed program was:" >&5
13471sed 's/^/| /' conftest.$ac_ext >&5
13472
13473 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013474fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013475
Bill Wendlingebcceee2009-04-18 11:20:33 +000013476rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013477 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013478LIBS=$ac_check_lib_save_LIBS
13479fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013480{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13481echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13482if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013483 cat >>confdefs.h <<_ACEOF
13484#define HAVE_LIBM 1
13485_ACEOF
13486
13487 LIBS="-lm $LIBS"
13488
13489fi
13490
Jeff Cohen28783c32007-01-12 18:22:38 +000013491if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013492
13493{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13494echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13495if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013497else
13498 ac_check_lib_save_LIBS=$LIBS
13499LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013500cat >conftest.$ac_ext <<_ACEOF
13501/* confdefs.h. */
13502_ACEOF
13503cat confdefs.h >>conftest.$ac_ext
13504cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013505/* end confdefs.h. */
13506
Reid Spencer48fdf912006-06-01 19:03:21 +000013507
Reid Spencer484fc8e2006-06-01 16:55:59 +000013508int
13509main ()
13510{
Reid Spencera773bd52006-08-04 18:18:08 +000013511return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013512 ;
13513 return 0;
13514}
13515_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013516rm -f conftest.$ac_objext conftest$ac_exeext
13517if { (ac_try="$ac_link"
13518case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13521esac
13522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_link") 2>conftest.er1
13524 ac_status=$?
13525 grep -v '^ *+' conftest.er1 >conftest.err
13526 rm -f conftest.er1
13527 cat conftest.err >&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13531 { (case "(($ac_try" in
13532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533 *) ac_try_echo=$ac_try;;
13534esac
13535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13536 (eval "$ac_try") 2>&5
13537 ac_status=$?
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; } &&
13540 { ac_try='test -s conftest$ac_exeext'
13541 { (case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13544esac
13545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_try") 2>&5
13547 ac_status=$?
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013550 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013552 echo "$as_me: failed program was:" >&5
13553sed 's/^/| /' conftest.$ac_ext >&5
13554
13555 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013556fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013557
Bill Wendlingebcceee2009-04-18 11:20:33 +000013558rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013559 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013560LIBS=$ac_check_lib_save_LIBS
13561fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013562{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13563echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13564if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013565 cat >>confdefs.h <<_ACEOF
13566#define HAVE_LIBIMAGEHLP 1
13567_ACEOF
13568
13569 LIBS="-limagehlp $LIBS"
13570
13571fi
13572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013573
13574{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13575echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13576if test "${ac_cv_lib_psapi_main+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013578else
13579 ac_check_lib_save_LIBS=$LIBS
13580LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013581cat >conftest.$ac_ext <<_ACEOF
13582/* confdefs.h. */
13583_ACEOF
13584cat confdefs.h >>conftest.$ac_ext
13585cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013586/* end confdefs.h. */
13587
Reid Spencer48fdf912006-06-01 19:03:21 +000013588
Reid Spencer484fc8e2006-06-01 16:55:59 +000013589int
13590main ()
13591{
Reid Spencera773bd52006-08-04 18:18:08 +000013592return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013593 ;
13594 return 0;
13595}
13596_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013597rm -f conftest.$ac_objext conftest$ac_exeext
13598if { (ac_try="$ac_link"
13599case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13602esac
13603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_link") 2>conftest.er1
13605 ac_status=$?
13606 grep -v '^ *+' conftest.er1 >conftest.err
13607 rm -f conftest.er1
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13612 { (case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13615esac
13616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_try") 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; } &&
13621 { ac_try='test -s conftest$ac_exeext'
13622 { (case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13625esac
13626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_try") 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013631 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013632else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013633 echo "$as_me: failed program was:" >&5
13634sed 's/^/| /' conftest.$ac_ext >&5
13635
13636 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013637fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013638
Bill Wendlingebcceee2009-04-18 11:20:33 +000013639rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013640 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013641LIBS=$ac_check_lib_save_LIBS
13642fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013643{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13644echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13645if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013646 cat >>confdefs.h <<_ACEOF
13647#define HAVE_LIBPSAPI 1
13648_ACEOF
13649
13650 LIBS="-lpsapi $LIBS"
13651
13652fi
13653
13654fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013656{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13657echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13658if test "${ac_cv_search_dlopen+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013660else
13661 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013662cat >conftest.$ac_ext <<_ACEOF
13663/* confdefs.h. */
13664_ACEOF
13665cat confdefs.h >>conftest.$ac_ext
13666cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013667/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013668
Reid Spencera773bd52006-08-04 18:18:08 +000013669/* Override any GCC internal prototype to avoid an error.
13670 Use char because int might match the return type of a GCC
13671 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013672#ifdef __cplusplus
13673extern "C"
13674#endif
John Criswell7a73b802003-06-30 21:59:07 +000013675char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013676int
13677main ()
13678{
Reid Spencera773bd52006-08-04 18:18:08 +000013679return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013680 ;
13681 return 0;
13682}
13683_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013684for ac_lib in '' dl; do
13685 if test -z "$ac_lib"; then
13686 ac_res="none required"
13687 else
13688 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013690 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013691 rm -f conftest.$ac_objext conftest$ac_exeext
13692if { (ac_try="$ac_link"
13693case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13696esac
13697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_link") 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13706 { (case "(($ac_try" in
13707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708 *) ac_try_echo=$ac_try;;
13709esac
13710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711 (eval "$ac_try") 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; } &&
13715 { ac_try='test -s conftest$ac_exeext'
13716 { (case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13719esac
13720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_try") 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013725 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013726else
13727 echo "$as_me: failed program was:" >&5
13728sed 's/^/| /' conftest.$ac_ext >&5
13729
13730
John Criswell7a73b802003-06-30 21:59:07 +000013731fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013732
Bill Wendlingebcceee2009-04-18 11:20:33 +000013733rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013734 conftest$ac_exeext
13735 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013736 break
John Criswell7a73b802003-06-30 21:59:07 +000013737fi
Reid Spencera773bd52006-08-04 18:18:08 +000013738done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013739if test "${ac_cv_search_dlopen+set}" = set; then
13740 :
Reid Spencera773bd52006-08-04 18:18:08 +000013741else
13742 ac_cv_search_dlopen=no
13743fi
13744rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013745LIBS=$ac_func_search_save_LIBS
13746fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013747{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13748echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013749ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013750if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013751 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013753cat >>confdefs.h <<\_ACEOF
13754#define HAVE_DLOPEN 1
13755_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013756
13757else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013758 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13759echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013760fi
13761
13762
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013763if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013764 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13765echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13766if test "${ac_cv_search_ffi_call+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013768else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013769 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013770cat >conftest.$ac_ext <<_ACEOF
13771/* confdefs.h. */
13772_ACEOF
13773cat confdefs.h >>conftest.$ac_ext
13774cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013775/* end confdefs.h. */
13776
13777/* Override any GCC internal prototype to avoid an error.
13778 Use char because int might match the return type of a GCC
13779 builtin and then its argument prototype would still apply. */
13780#ifdef __cplusplus
13781extern "C"
13782#endif
13783char ffi_call ();
13784int
13785main ()
13786{
13787return ffi_call ();
13788 ;
13789 return 0;
13790}
13791_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013792for ac_lib in '' ffi; do
13793 if test -z "$ac_lib"; then
13794 ac_res="none required"
13795 else
13796 ac_res=-l$ac_lib
13797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13798 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013799 rm -f conftest.$ac_objext conftest$ac_exeext
13800if { (ac_try="$ac_link"
13801case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13804esac
13805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_link") 2>conftest.er1
13807 ac_status=$?
13808 grep -v '^ *+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
13813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13814 { (case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13817esac
13818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_try") 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; } &&
13823 { ac_try='test -s conftest$ac_exeext'
13824 { (case "(($ac_try" in
13825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826 *) ac_try_echo=$ac_try;;
13827esac
13828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829 (eval "$ac_try") 2>&5
13830 ac_status=$?
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013833 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013834else
13835 echo "$as_me: failed program was:" >&5
13836sed 's/^/| /' conftest.$ac_ext >&5
13837
13838
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013839fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013840
Bill Wendlingebcceee2009-04-18 11:20:33 +000013841rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013842 conftest$ac_exeext
13843 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013844 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013845fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013846done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013847if test "${ac_cv_search_ffi_call+set}" = set; then
13848 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013849else
13850 ac_cv_search_ffi_call=no
13851fi
13852rm conftest.$ac_ext
13853LIBS=$ac_func_search_save_LIBS
13854fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013855{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13856echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013857ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013858if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013861cat >>confdefs.h <<\_ACEOF
13862#define HAVE_FFI_CALL 1
13863_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013864
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013865else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013866 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13867echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13868 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013869fi
13870
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013871fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013873{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13874echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13875if test "${ac_cv_search_mallinfo+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013877else
13878 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013879cat >conftest.$ac_ext <<_ACEOF
13880/* confdefs.h. */
13881_ACEOF
13882cat confdefs.h >>conftest.$ac_ext
13883cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013884/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013885
Reid Spencera773bd52006-08-04 18:18:08 +000013886/* Override any GCC internal prototype to avoid an error.
13887 Use char because int might match the return type of a GCC
13888 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013889#ifdef __cplusplus
13890extern "C"
13891#endif
John Criswell7a73b802003-06-30 21:59:07 +000013892char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013893int
13894main ()
13895{
Reid Spencera773bd52006-08-04 18:18:08 +000013896return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013897 ;
13898 return 0;
13899}
13900_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013901for ac_lib in '' malloc; do
13902 if test -z "$ac_lib"; then
13903 ac_res="none required"
13904 else
13905 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013907 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013908 rm -f conftest.$ac_objext conftest$ac_exeext
13909if { (ac_try="$ac_link"
13910case "(($ac_try" in
13911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912 *) ac_try_echo=$ac_try;;
13913esac
13914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915 (eval "$ac_link") 2>conftest.er1
13916 ac_status=$?
13917 grep -v '^ *+' conftest.er1 >conftest.err
13918 rm -f conftest.er1
13919 cat conftest.err >&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } &&
13922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13923 { (case "(($ac_try" in
13924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925 *) ac_try_echo=$ac_try;;
13926esac
13927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928 (eval "$ac_try") 2>&5
13929 ac_status=$?
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; } &&
13932 { ac_try='test -s conftest$ac_exeext'
13933 { (case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13936esac
13937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_try") 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013942 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013943else
13944 echo "$as_me: failed program was:" >&5
13945sed 's/^/| /' conftest.$ac_ext >&5
13946
13947
John Criswell7a73b802003-06-30 21:59:07 +000013948fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013949
Bill Wendlingebcceee2009-04-18 11:20:33 +000013950rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013951 conftest$ac_exeext
13952 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013953 break
John Criswell7a73b802003-06-30 21:59:07 +000013954fi
Reid Spencera773bd52006-08-04 18:18:08 +000013955done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013956if test "${ac_cv_search_mallinfo+set}" = set; then
13957 :
Reid Spencera773bd52006-08-04 18:18:08 +000013958else
13959 ac_cv_search_mallinfo=no
13960fi
13961rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013962LIBS=$ac_func_search_save_LIBS
13963fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013964{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13965echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013966ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013967if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013970cat >>confdefs.h <<\_ACEOF
13971#define HAVE_MALLINFO 1
13972_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013973
13974fi
13975
13976
Reid Spencer0a262ba2005-08-24 10:07:20 +000013977if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013978
13979{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13980echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13981if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013983else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013984 ac_check_lib_save_LIBS=$LIBS
13985LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013986cat >conftest.$ac_ext <<_ACEOF
13987/* confdefs.h. */
13988_ACEOF
13989cat confdefs.h >>conftest.$ac_ext
13990cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013991/* end confdefs.h. */
13992
Reid Spencera773bd52006-08-04 18:18:08 +000013993/* Override any GCC internal prototype to avoid an error.
13994 Use char because int might match the return type of a GCC
13995 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013996#ifdef __cplusplus
13997extern "C"
13998#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013999char pthread_mutex_init ();
14000int
14001main ()
14002{
Reid Spencera773bd52006-08-04 18:18:08 +000014003return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000014004 ;
14005 return 0;
14006}
14007_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014008rm -f conftest.$ac_objext conftest$ac_exeext
14009if { (ac_try="$ac_link"
14010case "(($ac_try" in
14011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14012 *) ac_try_echo=$ac_try;;
14013esac
14014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14015 (eval "$ac_link") 2>conftest.er1
14016 ac_status=$?
14017 grep -v '^ *+' conftest.er1 >conftest.err
14018 rm -f conftest.er1
14019 cat conftest.err >&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } &&
14022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14023 { (case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14026esac
14027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_try") 2>&5
14029 ac_status=$?
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; } &&
14032 { ac_try='test -s conftest$ac_exeext'
14033 { (case "(($ac_try" in
14034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035 *) ac_try_echo=$ac_try;;
14036esac
14037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038 (eval "$ac_try") 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014042 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014043else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014044 echo "$as_me: failed program was:" >&5
14045sed 's/^/| /' conftest.$ac_ext >&5
14046
14047 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014048fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014049
Bill Wendlingebcceee2009-04-18 11:20:33 +000014050rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014051 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014052LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014054{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14055echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14056if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014057 cat >>confdefs.h <<_ACEOF
14058#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014059_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014060
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014061 LIBS="-lpthread $LIBS"
14062
Reid Spencer22177fe2005-07-12 15:24:20 +000014063fi
14064
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014065 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14066echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14067if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014069else
14070 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014071cat >conftest.$ac_ext <<_ACEOF
14072/* confdefs.h. */
14073_ACEOF
14074cat confdefs.h >>conftest.$ac_ext
14075cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014076/* end confdefs.h. */
14077
Reid Spencera773bd52006-08-04 18:18:08 +000014078/* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014081#ifdef __cplusplus
14082extern "C"
14083#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014084char pthread_mutex_lock ();
14085int
14086main ()
14087{
Reid Spencera773bd52006-08-04 18:18:08 +000014088return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014089 ;
14090 return 0;
14091}
14092_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014093for ac_lib in '' pthread; do
14094 if test -z "$ac_lib"; then
14095 ac_res="none required"
14096 else
14097 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014099 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014100 rm -f conftest.$ac_objext conftest$ac_exeext
14101if { (ac_try="$ac_link"
14102case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14105esac
14106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_link") 2>conftest.er1
14108 ac_status=$?
14109 grep -v '^ *+' conftest.er1 >conftest.err
14110 rm -f conftest.er1
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } &&
14114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14115 { (case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14118esac
14119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120 (eval "$ac_try") 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest$ac_exeext'
14125 { (case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14128esac
14129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_try") 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014134 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014135else
14136 echo "$as_me: failed program was:" >&5
14137sed 's/^/| /' conftest.$ac_ext >&5
14138
14139
Brian Gaeke5f268f72003-12-05 19:29:01 +000014140fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014141
Bill Wendlingebcceee2009-04-18 11:20:33 +000014142rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014143 conftest$ac_exeext
14144 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014145 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014146fi
Reid Spencera773bd52006-08-04 18:18:08 +000014147done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014148if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14149 :
Reid Spencera773bd52006-08-04 18:18:08 +000014150else
14151 ac_cv_search_pthread_mutex_lock=no
14152fi
14153rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014154LIBS=$ac_func_search_save_LIBS
14155fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014156{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14157echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014158ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014159if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014162cat >>confdefs.h <<\_ACEOF
14163#define HAVE_PTHREAD_MUTEX_LOCK 1
14164_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014165
14166fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014167
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014168 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14169echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14170if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014172else
14173 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014174cat >conftest.$ac_ext <<_ACEOF
14175/* confdefs.h. */
14176_ACEOF
14177cat confdefs.h >>conftest.$ac_ext
14178cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014179/* end confdefs.h. */
14180
14181/* Override any GCC internal prototype to avoid an error.
14182 Use char because int might match the return type of a GCC
14183 builtin and then its argument prototype would still apply. */
14184#ifdef __cplusplus
14185extern "C"
14186#endif
14187char pthread_rwlock_init ();
14188int
14189main ()
14190{
14191return pthread_rwlock_init ();
14192 ;
14193 return 0;
14194}
14195_ACEOF
14196for ac_lib in '' pthread; do
14197 if test -z "$ac_lib"; then
14198 ac_res="none required"
14199 else
14200 ac_res=-l$ac_lib
14201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14202 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014203 rm -f conftest.$ac_objext conftest$ac_exeext
14204if { (ac_try="$ac_link"
14205case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14208esac
14209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_link") 2>conftest.er1
14211 ac_status=$?
14212 grep -v '^ *+' conftest.er1 >conftest.err
14213 rm -f conftest.er1
14214 cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } &&
14217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14218 { (case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14221esac
14222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_try") 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; } &&
14227 { ac_try='test -s conftest$ac_exeext'
14228 { (case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14231esac
14232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_try") 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014237 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014238else
14239 echo "$as_me: failed program was:" >&5
14240sed 's/^/| /' conftest.$ac_ext >&5
14241
14242
Owen Andersonde8aed22009-06-16 18:20:20 +000014243fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014244
Owen Andersonde8aed22009-06-16 18:20:20 +000014245rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014246 conftest$ac_exeext
14247 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014248 break
14249fi
14250done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014251if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14252 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014253else
14254 ac_cv_search_pthread_rwlock_init=no
14255fi
14256rm conftest.$ac_ext
14257LIBS=$ac_func_search_save_LIBS
14258fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014259{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14260echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014261ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014262if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14264
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014265cat >>confdefs.h <<\_ACEOF
14266#define HAVE_PTHREAD_RWLOCK_INIT 1
14267_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014268
14269fi
14270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014271 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14272echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14273if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014275else
14276 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014277cat >conftest.$ac_ext <<_ACEOF
14278/* confdefs.h. */
14279_ACEOF
14280cat confdefs.h >>conftest.$ac_ext
14281cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014282/* end confdefs.h. */
14283
14284/* Override any GCC internal prototype to avoid an error.
14285 Use char because int might match the return type of a GCC
14286 builtin and then its argument prototype would still apply. */
14287#ifdef __cplusplus
14288extern "C"
14289#endif
14290char pthread_getspecific ();
14291int
14292main ()
14293{
14294return pthread_getspecific ();
14295 ;
14296 return 0;
14297}
14298_ACEOF
14299for ac_lib in '' pthread; do
14300 if test -z "$ac_lib"; then
14301 ac_res="none required"
14302 else
14303 ac_res=-l$ac_lib
14304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14305 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014306 rm -f conftest.$ac_objext conftest$ac_exeext
14307if { (ac_try="$ac_link"
14308case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14311esac
14312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_link") 2>conftest.er1
14314 ac_status=$?
14315 grep -v '^ *+' conftest.er1 >conftest.err
14316 rm -f conftest.er1
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14321 { (case "(($ac_try" in
14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323 *) ac_try_echo=$ac_try;;
14324esac
14325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_try") 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; } &&
14330 { ac_try='test -s conftest$ac_exeext'
14331 { (case "(($ac_try" in
14332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14333 *) ac_try_echo=$ac_try;;
14334esac
14335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14336 (eval "$ac_try") 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014340 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014341else
14342 echo "$as_me: failed program was:" >&5
14343sed 's/^/| /' conftest.$ac_ext >&5
14344
14345
Owen Anderson27fcfe12009-06-25 23:10:26 +000014346fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014347
Owen Anderson27fcfe12009-06-25 23:10:26 +000014348rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014349 conftest$ac_exeext
14350 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014351 break
14352fi
14353done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014354if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14355 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014356else
14357 ac_cv_search_pthread_getspecific=no
14358fi
14359rm conftest.$ac_ext
14360LIBS=$ac_func_search_save_LIBS
14361fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014362{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14363echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014364ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014365if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14367
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014368cat >>confdefs.h <<\_ACEOF
14369#define HAVE_PTHREAD_GETSPECIFIC 1
14370_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014371
14372fi
14373
Reid Spencer0a262ba2005-08-24 10:07:20 +000014374fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014375
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014376
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014377# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014378if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014379 withval=$with_udis86;
14380 USE_UDIS86=1
14381
14382 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014383 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014384 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14385 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014386
14387{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14388echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14389if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014391else
14392 ac_check_lib_save_LIBS=$LIBS
14393LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014394cat >conftest.$ac_ext <<_ACEOF
14395/* confdefs.h. */
14396_ACEOF
14397cat confdefs.h >>conftest.$ac_ext
14398cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014399/* end confdefs.h. */
14400
14401/* Override any GCC internal prototype to avoid an error.
14402 Use char because int might match the return type of a GCC
14403 builtin and then its argument prototype would still apply. */
14404#ifdef __cplusplus
14405extern "C"
14406#endif
14407char ud_init ();
14408int
14409main ()
14410{
14411return ud_init ();
14412 ;
14413 return 0;
14414}
14415_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014416rm -f conftest.$ac_objext conftest$ac_exeext
14417if { (ac_try="$ac_link"
14418case "(($ac_try" in
14419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420 *) ac_try_echo=$ac_try;;
14421esac
14422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423 (eval "$ac_link") 2>conftest.er1
14424 ac_status=$?
14425 grep -v '^ *+' conftest.er1 >conftest.err
14426 rm -f conftest.er1
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
14430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14431 { (case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14434esac
14435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_try") 2>&5
14437 ac_status=$?
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; } &&
14440 { ac_try='test -s conftest$ac_exeext'
14441 { (case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14444esac
14445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_try") 2>&5
14447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014450 ac_cv_lib_udis86_ud_init=yes
14451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014452 echo "$as_me: failed program was:" >&5
14453sed 's/^/| /' conftest.$ac_ext >&5
14454
14455 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014456fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014457
Bill Wendlingebcceee2009-04-18 11:20:33 +000014458rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014459 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014460LIBS=$ac_check_lib_save_LIBS
14461fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014462{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14463echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14464if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014465 cat >>confdefs.h <<_ACEOF
14466#define HAVE_LIBUDIS86 1
14467_ACEOF
14468
14469 LIBS="-ludis86 $LIBS"
14470
14471else
14472
14473 echo "Error! You need to have libudis86 around."
14474 exit -1
14475
14476fi
14477
14478
14479else
14480 USE_UDIS86=0
14481
14482fi
14483
14484
14485cat >>confdefs.h <<_ACEOF
14486#define USE_UDIS86 $USE_UDIS86
14487_ACEOF
14488
14489
14490
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014491# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014492if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014493 withval=$with_oprofile;
14494 USE_OPROFILE=1
14495
14496 case "$withval" in
14497 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014498 no) llvm_cv_oppath=
14499 USE_OPROFILE=0
14500 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014501 *) llvm_cv_oppath="${withval}/lib/oprofile"
14502 CPPFLAGS="-I${withval}/include";;
14503 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014504 if test -n "$llvm_cv_oppath" ; then
14505 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014506 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14507echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14508if test "${ac_cv_search_bfd_init+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014510else
14511 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014512cat >conftest.$ac_ext <<_ACEOF
14513/* confdefs.h. */
14514_ACEOF
14515cat confdefs.h >>conftest.$ac_ext
14516cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014517/* end confdefs.h. */
14518
14519/* Override any GCC internal prototype to avoid an error.
14520 Use char because int might match the return type of a GCC
14521 builtin and then its argument prototype would still apply. */
14522#ifdef __cplusplus
14523extern "C"
14524#endif
14525char bfd_init ();
14526int
14527main ()
14528{
14529return bfd_init ();
14530 ;
14531 return 0;
14532}
14533_ACEOF
14534for ac_lib in '' bfd; do
14535 if test -z "$ac_lib"; then
14536 ac_res="none required"
14537 else
14538 ac_res=-l$ac_lib
14539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14540 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014541 rm -f conftest.$ac_objext conftest$ac_exeext
14542if { (ac_try="$ac_link"
14543case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14546esac
14547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_link") 2>conftest.er1
14549 ac_status=$?
14550 grep -v '^ *+' conftest.er1 >conftest.err
14551 rm -f conftest.er1
14552 cat conftest.err >&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } &&
14555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14556 { (case "(($ac_try" in
14557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558 *) ac_try_echo=$ac_try;;
14559esac
14560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561 (eval "$ac_try") 2>&5
14562 ac_status=$?
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; } &&
14565 { ac_try='test -s conftest$ac_exeext'
14566 { (case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14569esac
14570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_try") 2>&5
14572 ac_status=$?
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014575 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014576else
14577 echo "$as_me: failed program was:" >&5
14578sed 's/^/| /' conftest.$ac_ext >&5
14579
14580
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014581fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014582
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014583rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014584 conftest$ac_exeext
14585 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014586 break
14587fi
14588done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014589if test "${ac_cv_search_bfd_init+set}" = set; then
14590 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014591else
14592 ac_cv_search_bfd_init=no
14593fi
14594rm conftest.$ac_ext
14595LIBS=$ac_func_search_save_LIBS
14596fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014597{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14598echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014599ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014600if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14602
14603fi
14604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014605 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14606echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14607if test "${ac_cv_search_op_open_agent+set}" = set; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014609else
14610 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014611cat >conftest.$ac_ext <<_ACEOF
14612/* confdefs.h. */
14613_ACEOF
14614cat confdefs.h >>conftest.$ac_ext
14615cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014616/* end confdefs.h. */
14617
14618/* Override any GCC internal prototype to avoid an error.
14619 Use char because int might match the return type of a GCC
14620 builtin and then its argument prototype would still apply. */
14621#ifdef __cplusplus
14622extern "C"
14623#endif
14624char op_open_agent ();
14625int
14626main ()
14627{
14628return op_open_agent ();
14629 ;
14630 return 0;
14631}
14632_ACEOF
14633for ac_lib in '' opagent; do
14634 if test -z "$ac_lib"; then
14635 ac_res="none required"
14636 else
14637 ac_res=-l$ac_lib
14638 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14639 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014640 rm -f conftest.$ac_objext conftest$ac_exeext
14641if { (ac_try="$ac_link"
14642case "(($ac_try" in
14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14645esac
14646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_link") 2>conftest.er1
14648 ac_status=$?
14649 grep -v '^ *+' conftest.er1 >conftest.err
14650 rm -f conftest.er1
14651 cat conftest.err >&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } &&
14654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14655 { (case "(($ac_try" in
14656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657 *) ac_try_echo=$ac_try;;
14658esac
14659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660 (eval "$ac_try") 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; } &&
14664 { ac_try='test -s conftest$ac_exeext'
14665 { (case "(($ac_try" in
14666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667 *) ac_try_echo=$ac_try;;
14668esac
14669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14670 (eval "$ac_try") 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014674 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014675else
14676 echo "$as_me: failed program was:" >&5
14677sed 's/^/| /' conftest.$ac_ext >&5
14678
14679
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014681
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014682rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014683 conftest$ac_exeext
14684 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014685 break
14686fi
14687done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014688if test "${ac_cv_search_op_open_agent+set}" = set; then
14689 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014690else
14691 ac_cv_search_op_open_agent=no
14692fi
14693rm conftest.$ac_ext
14694LIBS=$ac_func_search_save_LIBS
14695fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014696{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14697echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014698ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014699if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14701
14702else
14703
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014704 echo "Error! You need to have libopagent around."
14705 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014706
14707fi
14708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014709 if test "${ac_cv_header_opagent_h+set}" = set; then
14710 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14711echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14712if test "${ac_cv_header_opagent_h+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14714fi
14715{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14716echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14717else
14718 # Is the header compilable?
14719{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14720echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14721cat >conftest.$ac_ext <<_ACEOF
14722/* confdefs.h. */
14723_ACEOF
14724cat confdefs.h >>conftest.$ac_ext
14725cat >>conftest.$ac_ext <<_ACEOF
14726/* end confdefs.h. */
14727$ac_includes_default
14728#include <opagent.h>
14729_ACEOF
14730rm -f conftest.$ac_objext
14731if { (ac_try="$ac_compile"
14732case "(($ac_try" in
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14735esac
14736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14737 (eval "$ac_compile") 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14745 { (case "(($ac_try" in
14746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747 *) ac_try_echo=$ac_try;;
14748esac
14749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750 (eval "$ac_try") 2>&5
14751 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; } &&
14754 { ac_try='test -s conftest.$ac_objext'
14755 { (case "(($ac_try" in
14756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14757 *) ac_try_echo=$ac_try;;
14758esac
14759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14760 (eval "$ac_try") 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_header_compiler=yes
14765else
14766 echo "$as_me: failed program was:" >&5
14767sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014769 ac_header_compiler=no
14770fi
14771
14772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14773{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14774echo "${ECHO_T}$ac_header_compiler" >&6; }
14775
14776# Is the header present?
14777{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14778echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14779cat >conftest.$ac_ext <<_ACEOF
14780/* confdefs.h. */
14781_ACEOF
14782cat confdefs.h >>conftest.$ac_ext
14783cat >>conftest.$ac_ext <<_ACEOF
14784/* end confdefs.h. */
14785#include <opagent.h>
14786_ACEOF
14787if { (ac_try="$ac_cpp conftest.$ac_ext"
14788case "(($ac_try" in
14789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790 *) ac_try_echo=$ac_try;;
14791esac
14792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14794 ac_status=$?
14795 grep -v '^ *+' conftest.er1 >conftest.err
14796 rm -f conftest.er1
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } >/dev/null; then
14800 if test -s conftest.err; then
14801 ac_cpp_err=$ac_c_preproc_warn_flag
14802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14803 else
14804 ac_cpp_err=
14805 fi
14806else
14807 ac_cpp_err=yes
14808fi
14809if test -z "$ac_cpp_err"; then
14810 ac_header_preproc=yes
14811else
14812 echo "$as_me: failed program was:" >&5
14813sed 's/^/| /' conftest.$ac_ext >&5
14814
14815 ac_header_preproc=no
14816fi
14817
14818rm -f conftest.err conftest.$ac_ext
14819{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14820echo "${ECHO_T}$ac_header_preproc" >&6; }
14821
14822# So? What about this header?
14823case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14824 yes:no: )
14825 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14826echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14828echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14829 ac_header_preproc=yes
14830 ;;
14831 no:yes:* )
14832 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14833echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14835echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14837echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14839echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14841echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14842 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14843echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14844 ( cat <<\_ASBOX
14845## ----------------------------------- ##
14846## Report this to llvmbugs@cs.uiuc.edu ##
14847## ----------------------------------- ##
14848_ASBOX
14849 ) | sed "s/^/$as_me: WARNING: /" >&2
14850 ;;
14851esac
14852{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14853echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14854if test "${ac_cv_header_opagent_h+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14856else
14857 ac_cv_header_opagent_h=$ac_header_preproc
14858fi
14859{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14860echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14861
14862fi
14863if test $ac_cv_header_opagent_h = yes; then
14864 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014865else
14866
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014867 echo "Error! You need to have opagent.h around."
14868 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014869
14870fi
14871
14872
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014873 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014874
14875else
14876
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014877 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014878
14879
14880fi
14881
14882
14883cat >>confdefs.h <<_ACEOF
14884#define USE_OPROFILE $USE_OPROFILE
14885_ACEOF
14886
14887
14888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014889
14890
14891
14892
14893
Reid Spencer59473af2004-12-25 07:31:29 +000014894ac_header_dirent=no
14895for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014896 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14897{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14898echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14900 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014901else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014902 cat >conftest.$ac_ext <<_ACEOF
14903/* confdefs.h. */
14904_ACEOF
14905cat confdefs.h >>conftest.$ac_ext
14906cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014907/* end confdefs.h. */
14908#include <sys/types.h>
14909#include <$ac_hdr>
14910
14911int
14912main ()
14913{
14914if ((DIR *) 0)
14915return 0;
14916 ;
14917 return 0;
14918}
14919_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014920rm -f conftest.$ac_objext
14921if { (ac_try="$ac_compile"
14922case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14925esac
14926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_compile") 2>conftest.er1
14928 ac_status=$?
14929 grep -v '^ *+' conftest.er1 >conftest.err
14930 rm -f conftest.er1
14931 cat conftest.err >&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } &&
14934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14935 { (case "(($ac_try" in
14936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937 *) ac_try_echo=$ac_try;;
14938esac
14939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_try") 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; } &&
14944 { ac_try='test -s conftest.$ac_objext'
14945 { (case "(($ac_try" in
14946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14948esac
14949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950 (eval "$ac_try") 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014954 eval "$as_ac_Header=yes"
14955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014956 echo "$as_me: failed program was:" >&5
14957sed 's/^/| /' conftest.$ac_ext >&5
14958
14959 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014960fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014961
Reid Spencera773bd52006-08-04 18:18:08 +000014962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014963fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014964ac_res=`eval echo '${'$as_ac_Header'}'`
14965 { echo "$as_me:$LINENO: result: $ac_res" >&5
14966echo "${ECHO_T}$ac_res" >&6; }
14967if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014968 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014969#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014970_ACEOF
14971
14972ac_header_dirent=$ac_hdr; break
14973fi
14974
14975done
14976# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14977if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014978 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14979echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14980if test "${ac_cv_search_opendir+set}" = set; then
14981 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014982else
14983 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014984cat >conftest.$ac_ext <<_ACEOF
14985/* confdefs.h. */
14986_ACEOF
14987cat confdefs.h >>conftest.$ac_ext
14988cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014989/* end confdefs.h. */
14990
Reid Spencera773bd52006-08-04 18:18:08 +000014991/* Override any GCC internal prototype to avoid an error.
14992 Use char because int might match the return type of a GCC
14993 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014994#ifdef __cplusplus
14995extern "C"
14996#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014997char opendir ();
14998int
14999main ()
15000{
Reid Spencera773bd52006-08-04 18:18:08 +000015001return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015002 ;
15003 return 0;
15004}
15005_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015006for ac_lib in '' dir; do
15007 if test -z "$ac_lib"; then
15008 ac_res="none required"
15009 else
15010 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015012 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015013 rm -f conftest.$ac_objext conftest$ac_exeext
15014if { (ac_try="$ac_link"
15015case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15018esac
15019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_link") 2>conftest.er1
15021 ac_status=$?
15022 grep -v '^ *+' conftest.er1 >conftest.err
15023 rm -f conftest.er1
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15028 { (case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15031esac
15032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_try") 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; } &&
15037 { ac_try='test -s conftest$ac_exeext'
15038 { (case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15041esac
15042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_try") 2>&5
15044 ac_status=$?
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015047 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015048else
15049 echo "$as_me: failed program was:" >&5
15050sed 's/^/| /' conftest.$ac_ext >&5
15051
15052
Reid Spencer59473af2004-12-25 07:31:29 +000015053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015054
Bill Wendlingebcceee2009-04-18 11:20:33 +000015055rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015056 conftest$ac_exeext
15057 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015058 break
Reid Spencer59473af2004-12-25 07:31:29 +000015059fi
Reid Spencera773bd52006-08-04 18:18:08 +000015060done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015061if test "${ac_cv_search_opendir+set}" = set; then
15062 :
Reid Spencera773bd52006-08-04 18:18:08 +000015063else
15064 ac_cv_search_opendir=no
15065fi
15066rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015067LIBS=$ac_func_search_save_LIBS
15068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015069{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15070echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015071ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015072if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015074
15075fi
15076
15077else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015078 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15079echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15080if test "${ac_cv_search_opendir+set}" = set; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015082else
15083 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015084cat >conftest.$ac_ext <<_ACEOF
15085/* confdefs.h. */
15086_ACEOF
15087cat confdefs.h >>conftest.$ac_ext
15088cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015089/* end confdefs.h. */
15090
Reid Spencera773bd52006-08-04 18:18:08 +000015091/* Override any GCC internal prototype to avoid an error.
15092 Use char because int might match the return type of a GCC
15093 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015094#ifdef __cplusplus
15095extern "C"
15096#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015097char opendir ();
15098int
15099main ()
15100{
Reid Spencera773bd52006-08-04 18:18:08 +000015101return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015102 ;
15103 return 0;
15104}
15105_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015106for ac_lib in '' x; do
15107 if test -z "$ac_lib"; then
15108 ac_res="none required"
15109 else
15110 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015113 rm -f conftest.$ac_objext conftest$ac_exeext
15114if { (ac_try="$ac_link"
15115case "(($ac_try" in
15116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117 *) ac_try_echo=$ac_try;;
15118esac
15119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120 (eval "$ac_link") 2>conftest.er1
15121 ac_status=$?
15122 grep -v '^ *+' conftest.er1 >conftest.err
15123 rm -f conftest.er1
15124 cat conftest.err >&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } &&
15127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15128 { (case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131esac
15132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_try") 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; } &&
15137 { ac_try='test -s conftest$ac_exeext'
15138 { (case "(($ac_try" in
15139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140 *) ac_try_echo=$ac_try;;
15141esac
15142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143 (eval "$ac_try") 2>&5
15144 ac_status=$?
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015147 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015148else
15149 echo "$as_me: failed program was:" >&5
15150sed 's/^/| /' conftest.$ac_ext >&5
15151
15152
Reid Spencer59473af2004-12-25 07:31:29 +000015153fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015154
Bill Wendlingebcceee2009-04-18 11:20:33 +000015155rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015156 conftest$ac_exeext
15157 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015158 break
Reid Spencer59473af2004-12-25 07:31:29 +000015159fi
Reid Spencera773bd52006-08-04 18:18:08 +000015160done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015161if test "${ac_cv_search_opendir+set}" = set; then
15162 :
Reid Spencera773bd52006-08-04 18:18:08 +000015163else
15164 ac_cv_search_opendir=no
15165fi
15166rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015167LIBS=$ac_func_search_save_LIBS
15168fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015169{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15170echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015171ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015172if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015174
15175fi
15176
15177fi
15178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015179{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15180echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15181if test "${ac_cv_header_mmap_anon+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015183else
15184 ac_ext=c
15185ac_cpp='$CPP $CPPFLAGS'
15186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15188ac_compiler_gnu=$ac_cv_c_compiler_gnu
15189
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015190 cat >conftest.$ac_ext <<_ACEOF
15191/* confdefs.h. */
15192_ACEOF
15193cat confdefs.h >>conftest.$ac_ext
15194cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015195/* end confdefs.h. */
15196#include <sys/mman.h>
15197#include <unistd.h>
15198#include <fcntl.h>
15199int
15200main ()
15201{
15202mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15203 ;
15204 return 0;
15205}
15206_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015207rm -f conftest.$ac_objext
15208if { (ac_try="$ac_compile"
15209case "(($ac_try" in
15210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15211 *) ac_try_echo=$ac_try;;
15212esac
15213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15214 (eval "$ac_compile") 2>conftest.er1
15215 ac_status=$?
15216 grep -v '^ *+' conftest.er1 >conftest.err
15217 rm -f conftest.er1
15218 cat conftest.err >&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } &&
15221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15222 { (case "(($ac_try" in
15223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224 *) ac_try_echo=$ac_try;;
15225esac
15226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227 (eval "$ac_try") 2>&5
15228 ac_status=$?
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; } &&
15231 { ac_try='test -s conftest.$ac_objext'
15232 { (case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15235esac
15236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_try") 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015241 ac_cv_header_mmap_anon=yes
15242else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015243 echo "$as_me: failed program was:" >&5
15244sed 's/^/| /' conftest.$ac_ext >&5
15245
15246 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015247fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015248
Reid Spencera773bd52006-08-04 18:18:08 +000015249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015250 ac_ext=c
15251ac_cpp='$CPP $CPPFLAGS'
15252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15254ac_compiler_gnu=$ac_cv_c_compiler_gnu
15255
15256
15257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015258{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15259echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015260if test "$ac_cv_header_mmap_anon" = yes; then
15261
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015262cat >>confdefs.h <<\_ACEOF
15263#define HAVE_MMAP_ANONYMOUS 1
15264_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015265
15266fi
15267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015268{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15269echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15270if test "${ac_cv_header_stat_broken+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015272else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015273 cat >conftest.$ac_ext <<_ACEOF
15274/* confdefs.h. */
15275_ACEOF
15276cat confdefs.h >>conftest.$ac_ext
15277cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015278/* end confdefs.h. */
15279#include <sys/types.h>
15280#include <sys/stat.h>
15281
Reid Spencera773bd52006-08-04 18:18:08 +000015282#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015283# if S_ISBLK (S_IFDIR)
15284You lose.
15285# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015286#endif
15287
Reid Spencera773bd52006-08-04 18:18:08 +000015288#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015289# if S_ISBLK (S_IFCHR)
15290You lose.
15291# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015292#endif
15293
Reid Spencera773bd52006-08-04 18:18:08 +000015294#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015295# if S_ISLNK (S_IFREG)
15296You lose.
15297# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015298#endif
15299
Reid Spencera773bd52006-08-04 18:18:08 +000015300#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015301# if S_ISSOCK (S_IFREG)
15302You lose.
15303# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015304#endif
15305
15306_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15308 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015309 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015310else
15311 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015313rm -f conftest*
15314
Reid Spencer59473af2004-12-25 07:31:29 +000015315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015316{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15317echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015318if test $ac_cv_header_stat_broken = yes; then
15319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015320cat >>confdefs.h <<\_ACEOF
15321#define STAT_MACROS_BROKEN 1
15322_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015323
15324fi
15325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015326{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15327echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15328if test "${ac_cv_header_stdc+set}" = set; then
15329 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015330else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015331 cat >conftest.$ac_ext <<_ACEOF
15332/* confdefs.h. */
15333_ACEOF
15334cat confdefs.h >>conftest.$ac_ext
15335cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015336/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015337#include <stdlib.h>
15338#include <stdarg.h>
15339#include <string.h>
15340#include <float.h>
15341
John Criswell0c38eaf2003-09-10 15:17:25 +000015342int
15343main ()
15344{
15345
15346 ;
15347 return 0;
15348}
John Criswell7a73b802003-06-30 21:59:07 +000015349_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015350rm -f conftest.$ac_objext
15351if { (ac_try="$ac_compile"
15352case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355esac
15356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_compile") 2>conftest.er1
15358 ac_status=$?
15359 grep -v '^ *+' conftest.er1 >conftest.err
15360 rm -f conftest.er1
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15365 { (case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15368esac
15369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_try") 2>&5
15371 ac_status=$?
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; } &&
15374 { ac_try='test -s conftest.$ac_objext'
15375 { (case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15378esac
15379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_try") 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015384 ac_cv_header_stdc=yes
15385else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015386 echo "$as_me: failed program was:" >&5
15387sed 's/^/| /' conftest.$ac_ext >&5
15388
15389 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015390fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015391
Reid Spencera773bd52006-08-04 18:18:08 +000015392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015393
15394if test $ac_cv_header_stdc = yes; then
15395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015396 cat >conftest.$ac_ext <<_ACEOF
15397/* confdefs.h. */
15398_ACEOF
15399cat confdefs.h >>conftest.$ac_ext
15400cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015401/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015402#include <string.h>
15403
15404_ACEOF
15405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015406 $EGREP "memchr" >/dev/null 2>&1; then
15407 :
John Criswell7a73b802003-06-30 21:59:07 +000015408else
15409 ac_cv_header_stdc=no
15410fi
15411rm -f conftest*
15412
15413fi
15414
15415if test $ac_cv_header_stdc = yes; then
15416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015417 cat >conftest.$ac_ext <<_ACEOF
15418/* confdefs.h. */
15419_ACEOF
15420cat confdefs.h >>conftest.$ac_ext
15421cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015422/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015423#include <stdlib.h>
15424
15425_ACEOF
15426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015427 $EGREP "free" >/dev/null 2>&1; then
15428 :
John Criswell7a73b802003-06-30 21:59:07 +000015429else
15430 ac_cv_header_stdc=no
15431fi
15432rm -f conftest*
15433
15434fi
15435
15436if test $ac_cv_header_stdc = yes; then
15437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015438 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015439 :
15440else
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 <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015448#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015449#if ((' ' & 0x0FF) == 0x020)
15450# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15451# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15452#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015453# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015454 (('a' <= (c) && (c) <= 'i') \
15455 || ('j' <= (c) && (c) <= 'r') \
15456 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015457# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15458#endif
15459
15460#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15461int
15462main ()
15463{
15464 int i;
15465 for (i = 0; i < 256; i++)
15466 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015467 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015468 return 2;
15469 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015470}
15471_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015472rm -f conftest$ac_exeext
15473if { (ac_try="$ac_link"
15474case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15477esac
15478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479 (eval "$ac_link") 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15483 { (case "(($ac_try" in
15484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485 *) ac_try_echo=$ac_try;;
15486esac
15487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488 (eval "$ac_try") 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }; then
15492 :
John Criswell7a73b802003-06-30 21:59:07 +000015493else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015494 echo "$as_me: program exited with status $ac_status" >&5
15495echo "$as_me: failed program was:" >&5
15496sed 's/^/| /' conftest.$ac_ext >&5
15497
15498( exit $ac_status )
15499ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015500fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015501rm -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 +000015502fi
15503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015504
John Criswell7a73b802003-06-30 21:59:07 +000015505fi
15506fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015507{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15508echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015509if test $ac_cv_header_stdc = yes; then
15510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015511cat >>confdefs.h <<\_ACEOF
15512#define STDC_HEADERS 1
15513_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015514
15515fi
15516
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015517{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15518echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15519if test "${ac_cv_header_sys_wait_h+set}" = set; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015521else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015522 cat >conftest.$ac_ext <<_ACEOF
15523/* confdefs.h. */
15524_ACEOF
15525cat confdefs.h >>conftest.$ac_ext
15526cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015527/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015528#include <sys/types.h>
15529#include <sys/wait.h>
15530#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015531# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015532#endif
15533#ifndef WIFEXITED
15534# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15535#endif
15536
John Criswell7a73b802003-06-30 21:59:07 +000015537int
15538main ()
15539{
15540 int s;
15541 wait (&s);
15542 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15543 ;
15544 return 0;
15545}
15546_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015547rm -f conftest.$ac_objext
15548if { (ac_try="$ac_compile"
15549case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15552esac
15553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_compile") 2>conftest.er1
15555 ac_status=$?
15556 grep -v '^ *+' conftest.er1 >conftest.err
15557 rm -f conftest.er1
15558 cat conftest.err >&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } &&
15561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15562 { (case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15565esac
15566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_try") 2>&5
15568 ac_status=$?
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; } &&
15571 { ac_try='test -s conftest.$ac_objext'
15572 { (case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15575esac
15576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577 (eval "$ac_try") 2>&5
15578 ac_status=$?
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015581 ac_cv_header_sys_wait_h=yes
15582else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015583 echo "$as_me: failed program was:" >&5
15584sed 's/^/| /' conftest.$ac_ext >&5
15585
15586 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015587fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015588
Reid Spencera773bd52006-08-04 18:18:08 +000015589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015590fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015591{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15592echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015593if test $ac_cv_header_sys_wait_h = yes; then
15594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015595cat >>confdefs.h <<\_ACEOF
15596#define HAVE_SYS_WAIT_H 1
15597_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015598
15599fi
15600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015601{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15602echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15603if test "${ac_cv_header_time+set}" = set; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015605else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015606 cat >conftest.$ac_ext <<_ACEOF
15607/* confdefs.h. */
15608_ACEOF
15609cat confdefs.h >>conftest.$ac_ext
15610cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015611/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015612#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015613#include <sys/time.h>
15614#include <time.h>
15615
15616int
15617main ()
15618{
15619if ((struct tm *) 0)
15620return 0;
15621 ;
15622 return 0;
15623}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015624_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015625rm -f conftest.$ac_objext
15626if { (ac_try="$ac_compile"
15627case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15630esac
15631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_compile") 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15640 { (case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15643esac
15644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645 (eval "$ac_try") 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; } &&
15649 { ac_try='test -s conftest.$ac_objext'
15650 { (case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15653esac
15654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_try") 2>&5
15656 ac_status=$?
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015659 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015660else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015661 echo "$as_me: failed program was:" >&5
15662sed 's/^/| /' conftest.$ac_ext >&5
15663
15664 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015665fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015666
Reid Spencera773bd52006-08-04 18:18:08 +000015667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015668fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015669{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15670echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015671if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015672
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015673cat >>confdefs.h <<\_ACEOF
15674#define TIME_WITH_SYS_TIME 1
15675_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015676
15677fi
15678
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015680
15681
15682
15683
15684
15685
Reid Spencer59473af2004-12-25 07:31:29 +000015686for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015687do
15688as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15694fi
15695ac_res=`eval echo '${'$as_ac_Header'}'`
15696 { echo "$as_me:$LINENO: result: $ac_res" >&5
15697echo "${ECHO_T}$ac_res" >&6; }
15698else
15699 # Is the header compilable?
15700{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15701echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15702cat >conftest.$ac_ext <<_ACEOF
15703/* confdefs.h. */
15704_ACEOF
15705cat confdefs.h >>conftest.$ac_ext
15706cat >>conftest.$ac_ext <<_ACEOF
15707/* end confdefs.h. */
15708$ac_includes_default
15709#include <$ac_header>
15710_ACEOF
15711rm -f conftest.$ac_objext
15712if { (ac_try="$ac_compile"
15713case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716esac
15717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_compile") 2>conftest.er1
15719 ac_status=$?
15720 grep -v '^ *+' conftest.er1 >conftest.err
15721 rm -f conftest.er1
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } &&
15725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15726 { (case "(($ac_try" in
15727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728 *) ac_try_echo=$ac_try;;
15729esac
15730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_try") 2>&5
15732 ac_status=$?
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; } &&
15735 { ac_try='test -s conftest.$ac_objext'
15736 { (case "(($ac_try" in
15737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738 *) ac_try_echo=$ac_try;;
15739esac
15740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741 (eval "$ac_try") 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_header_compiler=yes
15746else
15747 echo "$as_me: failed program was:" >&5
15748sed 's/^/| /' conftest.$ac_ext >&5
15749
15750 ac_header_compiler=no
15751fi
15752
15753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15754{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15755echo "${ECHO_T}$ac_header_compiler" >&6; }
15756
15757# Is the header present?
15758{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15760cat >conftest.$ac_ext <<_ACEOF
15761/* confdefs.h. */
15762_ACEOF
15763cat confdefs.h >>conftest.$ac_ext
15764cat >>conftest.$ac_ext <<_ACEOF
15765/* end confdefs.h. */
15766#include <$ac_header>
15767_ACEOF
15768if { (ac_try="$ac_cpp conftest.$ac_ext"
15769case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15772esac
15773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15775 ac_status=$?
15776 grep -v '^ *+' conftest.er1 >conftest.err
15777 rm -f conftest.er1
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } >/dev/null; then
15781 if test -s conftest.err; then
15782 ac_cpp_err=$ac_c_preproc_warn_flag
15783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15784 else
15785 ac_cpp_err=
15786 fi
15787else
15788 ac_cpp_err=yes
15789fi
15790if test -z "$ac_cpp_err"; then
15791 ac_header_preproc=yes
15792else
15793 echo "$as_me: failed program was:" >&5
15794sed 's/^/| /' conftest.$ac_ext >&5
15795
15796 ac_header_preproc=no
15797fi
15798
15799rm -f conftest.err conftest.$ac_ext
15800{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15801echo "${ECHO_T}$ac_header_preproc" >&6; }
15802
15803# So? What about this header?
15804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15805 yes:no: )
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15807echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15809echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15810 ac_header_preproc=yes
15811 ;;
15812 no:yes:* )
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15814echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15816echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15818echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15820echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15822echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15824echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15825 ( cat <<\_ASBOX
15826## ----------------------------------- ##
15827## Report this to llvmbugs@cs.uiuc.edu ##
15828## ----------------------------------- ##
15829_ASBOX
15830 ) | sed "s/^/$as_me: WARNING: /" >&2
15831 ;;
15832esac
15833{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15837else
15838 eval "$as_ac_Header=\$ac_header_preproc"
15839fi
15840ac_res=`eval echo '${'$as_ac_Header'}'`
15841 { echo "$as_me:$LINENO: result: $ac_res" >&5
15842echo "${ECHO_T}$ac_res" >&6; }
15843
15844fi
15845if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015846 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015847#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015848_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015849
15850fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015851
Reid Spencer59473af2004-12-25 07:31:29 +000015852done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015854
15855
15856
15857
15858
15859
Douglas Gregor071d73d2009-05-18 17:21:34 +000015860for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015861do
15862as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15863if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15868fi
15869ac_res=`eval echo '${'$as_ac_Header'}'`
15870 { echo "$as_me:$LINENO: result: $ac_res" >&5
15871echo "${ECHO_T}$ac_res" >&6; }
15872else
15873 # Is the header compilable?
15874{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15875echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15876cat >conftest.$ac_ext <<_ACEOF
15877/* confdefs.h. */
15878_ACEOF
15879cat confdefs.h >>conftest.$ac_ext
15880cat >>conftest.$ac_ext <<_ACEOF
15881/* end confdefs.h. */
15882$ac_includes_default
15883#include <$ac_header>
15884_ACEOF
15885rm -f conftest.$ac_objext
15886if { (ac_try="$ac_compile"
15887case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15890esac
15891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_compile") 2>conftest.er1
15893 ac_status=$?
15894 grep -v '^ *+' conftest.er1 >conftest.err
15895 rm -f conftest.er1
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15900 { (case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15903esac
15904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_try") 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; } &&
15909 { ac_try='test -s conftest.$ac_objext'
15910 { (case "(($ac_try" in
15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15913esac
15914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915 (eval "$ac_try") 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 ac_header_compiler=yes
15920else
15921 echo "$as_me: failed program was:" >&5
15922sed 's/^/| /' conftest.$ac_ext >&5
15923
15924 ac_header_compiler=no
15925fi
15926
15927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15929echo "${ECHO_T}$ac_header_compiler" >&6; }
15930
15931# Is the header present?
15932{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15933echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15934cat >conftest.$ac_ext <<_ACEOF
15935/* confdefs.h. */
15936_ACEOF
15937cat confdefs.h >>conftest.$ac_ext
15938cat >>conftest.$ac_ext <<_ACEOF
15939/* end confdefs.h. */
15940#include <$ac_header>
15941_ACEOF
15942if { (ac_try="$ac_cpp conftest.$ac_ext"
15943case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15946esac
15947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } >/dev/null; then
15955 if test -s conftest.err; then
15956 ac_cpp_err=$ac_c_preproc_warn_flag
15957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15958 else
15959 ac_cpp_err=
15960 fi
15961else
15962 ac_cpp_err=yes
15963fi
15964if test -z "$ac_cpp_err"; then
15965 ac_header_preproc=yes
15966else
15967 echo "$as_me: failed program was:" >&5
15968sed 's/^/| /' conftest.$ac_ext >&5
15969
15970 ac_header_preproc=no
15971fi
15972
15973rm -f conftest.err conftest.$ac_ext
15974{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15975echo "${ECHO_T}$ac_header_preproc" >&6; }
15976
15977# So? What about this header?
15978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15979 yes:no: )
15980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15981echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15983echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15984 ac_header_preproc=yes
15985 ;;
15986 no:yes:* )
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15988echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15990echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15992echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15994echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15998echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15999 ( cat <<\_ASBOX
16000## ----------------------------------- ##
16001## Report this to llvmbugs@cs.uiuc.edu ##
16002## ----------------------------------- ##
16003_ASBOX
16004 ) | sed "s/^/$as_me: WARNING: /" >&2
16005 ;;
16006esac
16007{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16010 echo $ECHO_N "(cached) $ECHO_C" >&6
16011else
16012 eval "$as_ac_Header=\$ac_header_preproc"
16013fi
16014ac_res=`eval echo '${'$as_ac_Header'}'`
16015 { echo "$as_me:$LINENO: result: $ac_res" >&5
16016echo "${ECHO_T}$ac_res" >&6; }
16017
16018fi
16019if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000016020 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016021#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000016022_ACEOF
16023
16024fi
16025
16026done
16027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016028
16029
Douglas Gregor071d73d2009-05-18 17:21:34 +000016030for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016031do
16032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16038fi
16039ac_res=`eval echo '${'$as_ac_Header'}'`
16040 { echo "$as_me:$LINENO: result: $ac_res" >&5
16041echo "${ECHO_T}$ac_res" >&6; }
16042else
16043 # Is the header compilable?
16044{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16046cat >conftest.$ac_ext <<_ACEOF
16047/* confdefs.h. */
16048_ACEOF
16049cat confdefs.h >>conftest.$ac_ext
16050cat >>conftest.$ac_ext <<_ACEOF
16051/* end confdefs.h. */
16052$ac_includes_default
16053#include <$ac_header>
16054_ACEOF
16055rm -f conftest.$ac_objext
16056if { (ac_try="$ac_compile"
16057case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16060esac
16061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_compile") 2>conftest.er1
16063 ac_status=$?
16064 grep -v '^ *+' conftest.er1 >conftest.err
16065 rm -f conftest.er1
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } &&
16069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16073esac
16074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; } &&
16079 { ac_try='test -s conftest.$ac_objext'
16080 { (case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16083esac
16084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_try") 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_header_compiler=yes
16090else
16091 echo "$as_me: failed program was:" >&5
16092sed 's/^/| /' conftest.$ac_ext >&5
16093
16094 ac_header_compiler=no
16095fi
16096
16097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16098{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16099echo "${ECHO_T}$ac_header_compiler" >&6; }
16100
16101# Is the header present?
16102{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16103echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16104cat >conftest.$ac_ext <<_ACEOF
16105/* confdefs.h. */
16106_ACEOF
16107cat confdefs.h >>conftest.$ac_ext
16108cat >>conftest.$ac_ext <<_ACEOF
16109/* end confdefs.h. */
16110#include <$ac_header>
16111_ACEOF
16112if { (ac_try="$ac_cpp conftest.$ac_ext"
16113case "(($ac_try" in
16114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115 *) ac_try_echo=$ac_try;;
16116esac
16117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16119 ac_status=$?
16120 grep -v '^ *+' conftest.er1 >conftest.err
16121 rm -f conftest.er1
16122 cat conftest.err >&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } >/dev/null; then
16125 if test -s conftest.err; then
16126 ac_cpp_err=$ac_c_preproc_warn_flag
16127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16128 else
16129 ac_cpp_err=
16130 fi
16131else
16132 ac_cpp_err=yes
16133fi
16134if test -z "$ac_cpp_err"; then
16135 ac_header_preproc=yes
16136else
16137 echo "$as_me: failed program was:" >&5
16138sed 's/^/| /' conftest.$ac_ext >&5
16139
16140 ac_header_preproc=no
16141fi
16142
16143rm -f conftest.err conftest.$ac_ext
16144{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16145echo "${ECHO_T}$ac_header_preproc" >&6; }
16146
16147# So? What about this header?
16148case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16149 yes:no: )
16150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16151echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16153echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16154 ac_header_preproc=yes
16155 ;;
16156 no:yes:* )
16157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16158echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16160echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16162echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16164echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16166echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16168echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16169 ( cat <<\_ASBOX
16170## ----------------------------------- ##
16171## Report this to llvmbugs@cs.uiuc.edu ##
16172## ----------------------------------- ##
16173_ASBOX
16174 ) | sed "s/^/$as_me: WARNING: /" >&2
16175 ;;
16176esac
16177{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16181else
16182 eval "$as_ac_Header=\$ac_header_preproc"
16183fi
16184ac_res=`eval echo '${'$as_ac_Header'}'`
16185 { echo "$as_me:$LINENO: result: $ac_res" >&5
16186echo "${ECHO_T}$ac_res" >&6; }
16187
16188fi
16189if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016190 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016191#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016192_ACEOF
16193
16194fi
16195
16196done
Reid Spencer59473af2004-12-25 07:31:29 +000016197
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016198
16199
16200
16201
Reid Spencerbe3e4192007-08-17 05:45:26 +000016202for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016203do
16204as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16209 echo $ECHO_N "(cached) $ECHO_C" >&6
16210fi
16211ac_res=`eval echo '${'$as_ac_Header'}'`
16212 { echo "$as_me:$LINENO: result: $ac_res" >&5
16213echo "${ECHO_T}$ac_res" >&6; }
16214else
16215 # Is the header compilable?
16216{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16217echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16218cat >conftest.$ac_ext <<_ACEOF
16219/* confdefs.h. */
16220_ACEOF
16221cat confdefs.h >>conftest.$ac_ext
16222cat >>conftest.$ac_ext <<_ACEOF
16223/* end confdefs.h. */
16224$ac_includes_default
16225#include <$ac_header>
16226_ACEOF
16227rm -f conftest.$ac_objext
16228if { (ac_try="$ac_compile"
16229case "(($ac_try" in
16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231 *) ac_try_echo=$ac_try;;
16232esac
16233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234 (eval "$ac_compile") 2>conftest.er1
16235 ac_status=$?
16236 grep -v '^ *+' conftest.er1 >conftest.err
16237 rm -f conftest.er1
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } &&
16241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16242 { (case "(($ac_try" in
16243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244 *) ac_try_echo=$ac_try;;
16245esac
16246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16247 (eval "$ac_try") 2>&5
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; } &&
16251 { ac_try='test -s conftest.$ac_objext'
16252 { (case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16255esac
16256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257 (eval "$ac_try") 2>&5
16258 ac_status=$?
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; }; then
16261 ac_header_compiler=yes
16262else
16263 echo "$as_me: failed program was:" >&5
16264sed 's/^/| /' conftest.$ac_ext >&5
16265
16266 ac_header_compiler=no
16267fi
16268
16269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16270{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16271echo "${ECHO_T}$ac_header_compiler" >&6; }
16272
16273# Is the header present?
16274{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16275echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16276cat >conftest.$ac_ext <<_ACEOF
16277/* confdefs.h. */
16278_ACEOF
16279cat confdefs.h >>conftest.$ac_ext
16280cat >>conftest.$ac_ext <<_ACEOF
16281/* end confdefs.h. */
16282#include <$ac_header>
16283_ACEOF
16284if { (ac_try="$ac_cpp conftest.$ac_ext"
16285case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16288esac
16289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16291 ac_status=$?
16292 grep -v '^ *+' conftest.er1 >conftest.err
16293 rm -f conftest.er1
16294 cat conftest.err >&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } >/dev/null; then
16297 if test -s conftest.err; then
16298 ac_cpp_err=$ac_c_preproc_warn_flag
16299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16300 else
16301 ac_cpp_err=
16302 fi
16303else
16304 ac_cpp_err=yes
16305fi
16306if test -z "$ac_cpp_err"; then
16307 ac_header_preproc=yes
16308else
16309 echo "$as_me: failed program was:" >&5
16310sed 's/^/| /' conftest.$ac_ext >&5
16311
16312 ac_header_preproc=no
16313fi
16314
16315rm -f conftest.err conftest.$ac_ext
16316{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16317echo "${ECHO_T}$ac_header_preproc" >&6; }
16318
16319# So? What about this header?
16320case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16321 yes:no: )
16322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16323echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16325echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16326 ac_header_preproc=yes
16327 ;;
16328 no:yes:* )
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16330echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16332echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16334echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16336echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16338echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16340echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16341 ( cat <<\_ASBOX
16342## ----------------------------------- ##
16343## Report this to llvmbugs@cs.uiuc.edu ##
16344## ----------------------------------- ##
16345_ASBOX
16346 ) | sed "s/^/$as_me: WARNING: /" >&2
16347 ;;
16348esac
16349{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16353else
16354 eval "$as_ac_Header=\$ac_header_preproc"
16355fi
16356ac_res=`eval echo '${'$as_ac_Header'}'`
16357 { echo "$as_me:$LINENO: result: $ac_res" >&5
16358echo "${ECHO_T}$ac_res" >&6; }
16359
16360fi
16361if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016362 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016363#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016364_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016365
16366fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016367
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016368done
16369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016370
16371
16372
16373
Douglas Gregor01746742009-05-11 18:05:52 +000016374for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016375do
16376as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16380if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16382fi
16383ac_res=`eval echo '${'$as_ac_Header'}'`
16384 { echo "$as_me:$LINENO: result: $ac_res" >&5
16385echo "${ECHO_T}$ac_res" >&6; }
16386else
16387 # Is the header compilable?
16388{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16389echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16390cat >conftest.$ac_ext <<_ACEOF
16391/* confdefs.h. */
16392_ACEOF
16393cat confdefs.h >>conftest.$ac_ext
16394cat >>conftest.$ac_ext <<_ACEOF
16395/* end confdefs.h. */
16396$ac_includes_default
16397#include <$ac_header>
16398_ACEOF
16399rm -f conftest.$ac_objext
16400if { (ac_try="$ac_compile"
16401case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16404esac
16405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_compile") 2>conftest.er1
16407 ac_status=$?
16408 grep -v '^ *+' conftest.er1 >conftest.err
16409 rm -f conftest.er1
16410 cat conftest.err >&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } &&
16413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16414 { (case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16417esac
16418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_try") 2>&5
16420 ac_status=$?
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; } &&
16423 { ac_try='test -s conftest.$ac_objext'
16424 { (case "(($ac_try" in
16425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16427esac
16428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429 (eval "$ac_try") 2>&5
16430 ac_status=$?
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); }; }; then
16433 ac_header_compiler=yes
16434else
16435 echo "$as_me: failed program was:" >&5
16436sed 's/^/| /' conftest.$ac_ext >&5
16437
16438 ac_header_compiler=no
16439fi
16440
16441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16442{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16443echo "${ECHO_T}$ac_header_compiler" >&6; }
16444
16445# Is the header present?
16446{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16447echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16448cat >conftest.$ac_ext <<_ACEOF
16449/* confdefs.h. */
16450_ACEOF
16451cat confdefs.h >>conftest.$ac_ext
16452cat >>conftest.$ac_ext <<_ACEOF
16453/* end confdefs.h. */
16454#include <$ac_header>
16455_ACEOF
16456if { (ac_try="$ac_cpp conftest.$ac_ext"
16457case "(($ac_try" in
16458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459 *) ac_try_echo=$ac_try;;
16460esac
16461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16463 ac_status=$?
16464 grep -v '^ *+' conftest.er1 >conftest.err
16465 rm -f conftest.er1
16466 cat conftest.err >&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); } >/dev/null; then
16469 if test -s conftest.err; then
16470 ac_cpp_err=$ac_c_preproc_warn_flag
16471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16472 else
16473 ac_cpp_err=
16474 fi
16475else
16476 ac_cpp_err=yes
16477fi
16478if test -z "$ac_cpp_err"; then
16479 ac_header_preproc=yes
16480else
16481 echo "$as_me: failed program was:" >&5
16482sed 's/^/| /' conftest.$ac_ext >&5
16483
16484 ac_header_preproc=no
16485fi
16486
16487rm -f conftest.err conftest.$ac_ext
16488{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16489echo "${ECHO_T}$ac_header_preproc" >&6; }
16490
16491# So? What about this header?
16492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16493 yes:no: )
16494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16495echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16497echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16498 ac_header_preproc=yes
16499 ;;
16500 no:yes:* )
16501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16502echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16504echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16506echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16508echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16512echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16513 ( cat <<\_ASBOX
16514## ----------------------------------- ##
16515## Report this to llvmbugs@cs.uiuc.edu ##
16516## ----------------------------------- ##
16517_ASBOX
16518 ) | sed "s/^/$as_me: WARNING: /" >&2
16519 ;;
16520esac
16521{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16525else
16526 eval "$as_ac_Header=\$ac_header_preproc"
16527fi
16528ac_res=`eval echo '${'$as_ac_Header'}'`
16529 { echo "$as_me:$LINENO: result: $ac_res" >&5
16530echo "${ECHO_T}$ac_res" >&6; }
16531
16532fi
16533if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016534 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016535#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016536_ACEOF
16537
16538fi
16539
16540done
16541
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016542
16543for ac_header in valgrind/valgrind.h
16544do
16545as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16551fi
16552ac_res=`eval echo '${'$as_ac_Header'}'`
16553 { echo "$as_me:$LINENO: result: $ac_res" >&5
16554echo "${ECHO_T}$ac_res" >&6; }
16555else
16556 # Is the header compilable?
16557{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16558echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16559cat >conftest.$ac_ext <<_ACEOF
16560/* confdefs.h. */
16561_ACEOF
16562cat confdefs.h >>conftest.$ac_ext
16563cat >>conftest.$ac_ext <<_ACEOF
16564/* end confdefs.h. */
16565$ac_includes_default
16566#include <$ac_header>
16567_ACEOF
16568rm -f conftest.$ac_objext
16569if { (ac_try="$ac_compile"
16570case "(($ac_try" in
16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572 *) ac_try_echo=$ac_try;;
16573esac
16574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575 (eval "$ac_compile") 2>conftest.er1
16576 ac_status=$?
16577 grep -v '^ *+' conftest.er1 >conftest.err
16578 rm -f conftest.er1
16579 cat conftest.err >&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } &&
16582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16583 { (case "(($ac_try" in
16584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585 *) ac_try_echo=$ac_try;;
16586esac
16587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588 (eval "$ac_try") 2>&5
16589 ac_status=$?
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; } &&
16592 { ac_try='test -s conftest.$ac_objext'
16593 { (case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16596esac
16597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_try") 2>&5
16599 ac_status=$?
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; }; then
16602 ac_header_compiler=yes
16603else
16604 echo "$as_me: failed program was:" >&5
16605sed 's/^/| /' conftest.$ac_ext >&5
16606
16607 ac_header_compiler=no
16608fi
16609
16610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16611{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16612echo "${ECHO_T}$ac_header_compiler" >&6; }
16613
16614# Is the header present?
16615{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16616echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16617cat >conftest.$ac_ext <<_ACEOF
16618/* confdefs.h. */
16619_ACEOF
16620cat confdefs.h >>conftest.$ac_ext
16621cat >>conftest.$ac_ext <<_ACEOF
16622/* end confdefs.h. */
16623#include <$ac_header>
16624_ACEOF
16625if { (ac_try="$ac_cpp conftest.$ac_ext"
16626case "(($ac_try" in
16627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628 *) ac_try_echo=$ac_try;;
16629esac
16630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16632 ac_status=$?
16633 grep -v '^ *+' conftest.er1 >conftest.err
16634 rm -f conftest.er1
16635 cat conftest.err >&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } >/dev/null; then
16638 if test -s conftest.err; then
16639 ac_cpp_err=$ac_c_preproc_warn_flag
16640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16641 else
16642 ac_cpp_err=
16643 fi
16644else
16645 ac_cpp_err=yes
16646fi
16647if test -z "$ac_cpp_err"; then
16648 ac_header_preproc=yes
16649else
16650 echo "$as_me: failed program was:" >&5
16651sed 's/^/| /' conftest.$ac_ext >&5
16652
16653 ac_header_preproc=no
16654fi
16655
16656rm -f conftest.err conftest.$ac_ext
16657{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16658echo "${ECHO_T}$ac_header_preproc" >&6; }
16659
16660# So? What about this header?
16661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16662 yes:no: )
16663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16666echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16667 ac_header_preproc=yes
16668 ;;
16669 no:yes:* )
16670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16671echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16673echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16675echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16677echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16681echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16682 ( cat <<\_ASBOX
16683## ----------------------------------- ##
16684## Report this to llvmbugs@cs.uiuc.edu ##
16685## ----------------------------------- ##
16686_ASBOX
16687 ) | sed "s/^/$as_me: WARNING: /" >&2
16688 ;;
16689esac
16690{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16694else
16695 eval "$as_ac_Header=\$ac_header_preproc"
16696fi
16697ac_res=`eval echo '${'$as_ac_Header'}'`
16698 { echo "$as_me:$LINENO: result: $ac_res" >&5
16699echo "${ECHO_T}$ac_res" >&6; }
16700
16701fi
16702if test `eval echo '${'$as_ac_Header'}'` = yes; then
16703 cat >>confdefs.h <<_ACEOF
16704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16705_ACEOF
16706
16707fi
16708
16709done
16710
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016711
16712for ac_header in fenv.h
16713do
16714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16720fi
16721ac_res=`eval echo '${'$as_ac_Header'}'`
16722 { echo "$as_me:$LINENO: result: $ac_res" >&5
16723echo "${ECHO_T}$ac_res" >&6; }
16724else
16725 # Is the header compilable?
16726{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16727echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16728cat >conftest.$ac_ext <<_ACEOF
16729/* confdefs.h. */
16730_ACEOF
16731cat confdefs.h >>conftest.$ac_ext
16732cat >>conftest.$ac_ext <<_ACEOF
16733/* end confdefs.h. */
16734$ac_includes_default
16735#include <$ac_header>
16736_ACEOF
16737rm -f conftest.$ac_objext
16738if { (ac_try="$ac_compile"
16739case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16742esac
16743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_compile") 2>conftest.er1
16745 ac_status=$?
16746 grep -v '^ *+' conftest.er1 >conftest.err
16747 rm -f conftest.er1
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
16751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16752 { (case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16755esac
16756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757 (eval "$ac_try") 2>&5
16758 ac_status=$?
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; } &&
16761 { ac_try='test -s conftest.$ac_objext'
16762 { (case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16765esac
16766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_try") 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 ac_header_compiler=yes
16772else
16773 echo "$as_me: failed program was:" >&5
16774sed 's/^/| /' conftest.$ac_ext >&5
16775
16776 ac_header_compiler=no
16777fi
16778
16779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16781echo "${ECHO_T}$ac_header_compiler" >&6; }
16782
16783# Is the header present?
16784{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16785echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16786cat >conftest.$ac_ext <<_ACEOF
16787/* confdefs.h. */
16788_ACEOF
16789cat confdefs.h >>conftest.$ac_ext
16790cat >>conftest.$ac_ext <<_ACEOF
16791/* end confdefs.h. */
16792#include <$ac_header>
16793_ACEOF
16794if { (ac_try="$ac_cpp conftest.$ac_ext"
16795case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16798esac
16799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16801 ac_status=$?
16802 grep -v '^ *+' conftest.er1 >conftest.err
16803 rm -f conftest.er1
16804 cat conftest.err >&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } >/dev/null; then
16807 if test -s conftest.err; then
16808 ac_cpp_err=$ac_c_preproc_warn_flag
16809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16810 else
16811 ac_cpp_err=
16812 fi
16813else
16814 ac_cpp_err=yes
16815fi
16816if test -z "$ac_cpp_err"; then
16817 ac_header_preproc=yes
16818else
16819 echo "$as_me: failed program was:" >&5
16820sed 's/^/| /' conftest.$ac_ext >&5
16821
16822 ac_header_preproc=no
16823fi
16824
16825rm -f conftest.err conftest.$ac_ext
16826{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16827echo "${ECHO_T}$ac_header_preproc" >&6; }
16828
16829# So? What about this header?
16830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16831 yes:no: )
16832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16836 ac_header_preproc=yes
16837 ;;
16838 no:yes:* )
16839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16842echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16846echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16851 ( cat <<\_ASBOX
16852## ----------------------------------- ##
16853## Report this to llvmbugs@cs.uiuc.edu ##
16854## ----------------------------------- ##
16855_ASBOX
16856 ) | sed "s/^/$as_me: WARNING: /" >&2
16857 ;;
16858esac
16859{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16861if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16863else
16864 eval "$as_ac_Header=\$ac_header_preproc"
16865fi
16866ac_res=`eval echo '${'$as_ac_Header'}'`
16867 { echo "$as_me:$LINENO: result: $ac_res" >&5
16868echo "${ECHO_T}$ac_res" >&6; }
16869
16870fi
16871if test `eval echo '${'$as_ac_Header'}'` = yes; then
16872 cat >>confdefs.h <<_ACEOF
16873#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16874_ACEOF
16875
16876fi
16877
16878done
16879
Reid Spencer0a262ba2005-08-24 10:07:20 +000016880if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016881
16882for ac_header in pthread.h
16883do
16884as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16885if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16890fi
16891ac_res=`eval echo '${'$as_ac_Header'}'`
16892 { echo "$as_me:$LINENO: result: $ac_res" >&5
16893echo "${ECHO_T}$ac_res" >&6; }
16894else
16895 # Is the header compilable?
16896{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16897echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16898cat >conftest.$ac_ext <<_ACEOF
16899/* confdefs.h. */
16900_ACEOF
16901cat confdefs.h >>conftest.$ac_ext
16902cat >>conftest.$ac_ext <<_ACEOF
16903/* end confdefs.h. */
16904$ac_includes_default
16905#include <$ac_header>
16906_ACEOF
16907rm -f conftest.$ac_objext
16908if { (ac_try="$ac_compile"
16909case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16912esac
16913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_compile") 2>conftest.er1
16915 ac_status=$?
16916 grep -v '^ *+' conftest.er1 >conftest.err
16917 rm -f conftest.er1
16918 cat conftest.err >&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925esac
16926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; } &&
16931 { ac_try='test -s conftest.$ac_objext'
16932 { (case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16935esac
16936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_try") 2>&5
16938 ac_status=$?
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 ac_header_compiler=yes
16942else
16943 echo "$as_me: failed program was:" >&5
16944sed 's/^/| /' conftest.$ac_ext >&5
16945
16946 ac_header_compiler=no
16947fi
16948
16949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16951echo "${ECHO_T}$ac_header_compiler" >&6; }
16952
16953# Is the header present?
16954{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16955echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16956cat >conftest.$ac_ext <<_ACEOF
16957/* confdefs.h. */
16958_ACEOF
16959cat confdefs.h >>conftest.$ac_ext
16960cat >>conftest.$ac_ext <<_ACEOF
16961/* end confdefs.h. */
16962#include <$ac_header>
16963_ACEOF
16964if { (ac_try="$ac_cpp conftest.$ac_ext"
16965case "(($ac_try" in
16966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967 *) ac_try_echo=$ac_try;;
16968esac
16969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16971 ac_status=$?
16972 grep -v '^ *+' conftest.er1 >conftest.err
16973 rm -f conftest.er1
16974 cat conftest.err >&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } >/dev/null; then
16977 if test -s conftest.err; then
16978 ac_cpp_err=$ac_c_preproc_warn_flag
16979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16980 else
16981 ac_cpp_err=
16982 fi
16983else
16984 ac_cpp_err=yes
16985fi
16986if test -z "$ac_cpp_err"; then
16987 ac_header_preproc=yes
16988else
16989 echo "$as_me: failed program was:" >&5
16990sed 's/^/| /' conftest.$ac_ext >&5
16991
16992 ac_header_preproc=no
16993fi
16994
16995rm -f conftest.err conftest.$ac_ext
16996{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16997echo "${ECHO_T}$ac_header_preproc" >&6; }
16998
16999# So? What about this header?
17000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17001 yes:no: )
17002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17003echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17005echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17006 ac_header_preproc=yes
17007 ;;
17008 no:yes:* )
17009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17010echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17012echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17014echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17016echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17018echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17020echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17021 ( cat <<\_ASBOX
17022## ----------------------------------- ##
17023## Report this to llvmbugs@cs.uiuc.edu ##
17024## ----------------------------------- ##
17025_ASBOX
17026 ) | sed "s/^/$as_me: WARNING: /" >&2
17027 ;;
17028esac
17029{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033else
17034 eval "$as_ac_Header=\$ac_header_preproc"
17035fi
17036ac_res=`eval echo '${'$as_ac_Header'}'`
17037 { echo "$as_me:$LINENO: result: $ac_res" >&5
17038echo "${ECHO_T}$ac_res" >&6; }
17039
17040fi
17041if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017042 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017044_ACEOF
17045 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017046
17047else
17048 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017049
17050fi
17051
Reid Spencerbe3e4192007-08-17 05:45:26 +000017052done
Reid Spencer1000b732006-12-01 00:37:14 +000017053
17054else
17055 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017056
17057fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017058
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017059if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017060
17061
17062for ac_header in ffi.h ffi/ffi.h
17063do
17064as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17066 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17070fi
17071ac_res=`eval echo '${'$as_ac_Header'}'`
17072 { echo "$as_me:$LINENO: result: $ac_res" >&5
17073echo "${ECHO_T}$ac_res" >&6; }
17074else
17075 # Is the header compilable?
17076{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17077echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17078cat >conftest.$ac_ext <<_ACEOF
17079/* confdefs.h. */
17080_ACEOF
17081cat confdefs.h >>conftest.$ac_ext
17082cat >>conftest.$ac_ext <<_ACEOF
17083/* end confdefs.h. */
17084$ac_includes_default
17085#include <$ac_header>
17086_ACEOF
17087rm -f conftest.$ac_objext
17088if { (ac_try="$ac_compile"
17089case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17092esac
17093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_compile") 2>conftest.er1
17095 ac_status=$?
17096 grep -v '^ *+' conftest.er1 >conftest.err
17097 rm -f conftest.er1
17098 cat conftest.err >&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } &&
17101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17102 { (case "(($ac_try" in
17103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17105esac
17106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107 (eval "$ac_try") 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; } &&
17111 { ac_try='test -s conftest.$ac_objext'
17112 { (case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17115esac
17116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_try") 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; }; then
17121 ac_header_compiler=yes
17122else
17123 echo "$as_me: failed program was:" >&5
17124sed 's/^/| /' conftest.$ac_ext >&5
17125
17126 ac_header_compiler=no
17127fi
17128
17129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17130{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17131echo "${ECHO_T}$ac_header_compiler" >&6; }
17132
17133# Is the header present?
17134{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17135echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17136cat >conftest.$ac_ext <<_ACEOF
17137/* confdefs.h. */
17138_ACEOF
17139cat confdefs.h >>conftest.$ac_ext
17140cat >>conftest.$ac_ext <<_ACEOF
17141/* end confdefs.h. */
17142#include <$ac_header>
17143_ACEOF
17144if { (ac_try="$ac_cpp conftest.$ac_ext"
17145case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17148esac
17149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17151 ac_status=$?
17152 grep -v '^ *+' conftest.er1 >conftest.err
17153 rm -f conftest.er1
17154 cat conftest.err >&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } >/dev/null; then
17157 if test -s conftest.err; then
17158 ac_cpp_err=$ac_c_preproc_warn_flag
17159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17160 else
17161 ac_cpp_err=
17162 fi
17163else
17164 ac_cpp_err=yes
17165fi
17166if test -z "$ac_cpp_err"; then
17167 ac_header_preproc=yes
17168else
17169 echo "$as_me: failed program was:" >&5
17170sed 's/^/| /' conftest.$ac_ext >&5
17171
17172 ac_header_preproc=no
17173fi
17174
17175rm -f conftest.err conftest.$ac_ext
17176{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17177echo "${ECHO_T}$ac_header_preproc" >&6; }
17178
17179# So? What about this header?
17180case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17181 yes:no: )
17182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17183echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17185echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17186 ac_header_preproc=yes
17187 ;;
17188 no:yes:* )
17189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17190echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17192echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17194echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17196echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17198echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17200echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17201 ( cat <<\_ASBOX
17202## ----------------------------------- ##
17203## Report this to llvmbugs@cs.uiuc.edu ##
17204## ----------------------------------- ##
17205_ASBOX
17206 ) | sed "s/^/$as_me: WARNING: /" >&2
17207 ;;
17208esac
17209{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17213else
17214 eval "$as_ac_Header=\$ac_header_preproc"
17215fi
17216ac_res=`eval echo '${'$as_ac_Header'}'`
17217 { echo "$as_me:$LINENO: result: $ac_res" >&5
17218echo "${ECHO_T}$ac_res" >&6; }
17219
17220fi
17221if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017222 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017224_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017225
17226fi
17227
17228done
17229
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017230fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017231
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017232
Eric Christopher654dee42010-06-22 21:01:04 +000017233for ac_header in CrashReporterClient.h
17234do
17235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17240 echo $ECHO_N "(cached) $ECHO_C" >&6
17241fi
17242ac_res=`eval echo '${'$as_ac_Header'}'`
17243 { echo "$as_me:$LINENO: result: $ac_res" >&5
17244echo "${ECHO_T}$ac_res" >&6; }
17245else
17246 # Is the header compilable?
17247{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17249cat >conftest.$ac_ext <<_ACEOF
17250/* confdefs.h. */
17251_ACEOF
17252cat confdefs.h >>conftest.$ac_ext
17253cat >>conftest.$ac_ext <<_ACEOF
17254/* end confdefs.h. */
17255$ac_includes_default
17256#include <$ac_header>
17257_ACEOF
17258rm -f conftest.$ac_objext
17259if { (ac_try="$ac_compile"
17260case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17263esac
17264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_compile") 2>conftest.er1
17266 ac_status=$?
17267 grep -v '^ *+' conftest.er1 >conftest.err
17268 rm -f conftest.er1
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } &&
17272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17273 { (case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17276esac
17277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_try") 2>&5
17279 ac_status=$?
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; } &&
17282 { ac_try='test -s conftest.$ac_objext'
17283 { (case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17286esac
17287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_try") 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 ac_header_compiler=yes
17293else
17294 echo "$as_me: failed program was:" >&5
17295sed 's/^/| /' conftest.$ac_ext >&5
17296
17297 ac_header_compiler=no
17298fi
17299
17300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17302echo "${ECHO_T}$ac_header_compiler" >&6; }
17303
17304# Is the header present?
17305{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17307cat >conftest.$ac_ext <<_ACEOF
17308/* confdefs.h. */
17309_ACEOF
17310cat confdefs.h >>conftest.$ac_ext
17311cat >>conftest.$ac_ext <<_ACEOF
17312/* end confdefs.h. */
17313#include <$ac_header>
17314_ACEOF
17315if { (ac_try="$ac_cpp conftest.$ac_ext"
17316case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17319esac
17320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17322 ac_status=$?
17323 grep -v '^ *+' conftest.er1 >conftest.err
17324 rm -f conftest.er1
17325 cat conftest.err >&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } >/dev/null; then
17328 if test -s conftest.err; then
17329 ac_cpp_err=$ac_c_preproc_warn_flag
17330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17331 else
17332 ac_cpp_err=
17333 fi
17334else
17335 ac_cpp_err=yes
17336fi
17337if test -z "$ac_cpp_err"; then
17338 ac_header_preproc=yes
17339else
17340 echo "$as_me: failed program was:" >&5
17341sed 's/^/| /' conftest.$ac_ext >&5
17342
17343 ac_header_preproc=no
17344fi
17345
17346rm -f conftest.err conftest.$ac_ext
17347{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17348echo "${ECHO_T}$ac_header_preproc" >&6; }
17349
17350# So? What about this header?
17351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17352 yes:no: )
17353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17357 ac_header_preproc=yes
17358 ;;
17359 no:yes:* )
17360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17372 ( cat <<\_ASBOX
17373## ----------------------------------- ##
17374## Report this to llvmbugs@cs.uiuc.edu ##
17375## ----------------------------------- ##
17376_ASBOX
17377 ) | sed "s/^/$as_me: WARNING: /" >&2
17378 ;;
17379esac
17380{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17384else
17385 eval "$as_ac_Header=\$ac_header_preproc"
17386fi
17387ac_res=`eval echo '${'$as_ac_Header'}'`
17388 { echo "$as_me:$LINENO: result: $ac_res" >&5
17389echo "${ECHO_T}$ac_res" >&6; }
17390
17391fi
17392if test `eval echo '${'$as_ac_Header'}'` = yes; then
17393 cat >>confdefs.h <<_ACEOF
17394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17395_ACEOF
17396
17397fi
17398
17399done
17400
17401
17402
Reid Spencer8085cff2005-01-16 02:58:39 +000017403
Torok Edwin871384f2010-01-26 08:50:50 +000017404
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017405 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17406echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17407if test "${ac_cv_huge_val_sanity+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017409else
17410
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017411 ac_ext=cpp
17412ac_cpp='$CXXCPP $CPPFLAGS'
17413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017416
Eric Christopherc7718502010-03-02 05:06:54 +000017417 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017418 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017419 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017420 ac_cv_huge_val_sanity=yes
17421else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017422 cat >conftest.$ac_ext <<_ACEOF
17423/* confdefs.h. */
17424_ACEOF
17425cat confdefs.h >>conftest.$ac_ext
17426cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017427/* end confdefs.h. */
17428#include <math.h>
17429int
17430main ()
17431{
17432double x = HUGE_VAL; return x != x;
17433 ;
17434 return 0;
17435}
17436_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017437rm -f conftest$ac_exeext
17438if { (ac_try="$ac_link"
17439case "(($ac_try" in
17440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441 *) ac_try_echo=$ac_try;;
17442esac
17443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17444 (eval "$ac_link") 2>&5
17445 ac_status=$?
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17448 { (case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17451esac
17452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_try") 2>&5
17454 ac_status=$?
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017457 ac_cv_huge_val_sanity=yes
17458else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017459 echo "$as_me: program exited with status $ac_status" >&5
17460echo "$as_me: failed program was:" >&5
17461sed 's/^/| /' conftest.$ac_ext >&5
17462
17463( exit $ac_status )
17464ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017465fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017466rm -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 +000017467fi
17468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017469
Eric Christopherc7718502010-03-02 05:06:54 +000017470 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017471 ac_ext=c
17472ac_cpp='$CPP $CPPFLAGS'
17473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17475ac_compiler_gnu=$ac_cv_c_compiler_gnu
17476
17477
17478fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017479{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17480echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017481 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17482
17483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017484{ echo "$as_me:$LINENO: checking for pid_t" >&5
17485echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17486if test "${ac_cv_type_pid_t+set}" = set; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17488else
17489 cat >conftest.$ac_ext <<_ACEOF
17490/* confdefs.h. */
17491_ACEOF
17492cat confdefs.h >>conftest.$ac_ext
17493cat >>conftest.$ac_ext <<_ACEOF
17494/* end confdefs.h. */
17495$ac_includes_default
17496typedef pid_t ac__type_new_;
17497int
17498main ()
17499{
17500if ((ac__type_new_ *) 0)
17501 return 0;
17502if (sizeof (ac__type_new_))
17503 return 0;
17504 ;
17505 return 0;
17506}
17507_ACEOF
17508rm -f conftest.$ac_objext
17509if { (ac_try="$ac_compile"
17510case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17513esac
17514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_compile") 2>conftest.er1
17516 ac_status=$?
17517 grep -v '^ *+' conftest.er1 >conftest.err
17518 rm -f conftest.er1
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } &&
17522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17523 { (case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17526esac
17527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_try") 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest.$ac_objext'
17533 { (case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17536esac
17537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_try") 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 ac_cv_type_pid_t=yes
17543else
17544 echo "$as_me: failed program was:" >&5
17545sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017547 ac_cv_type_pid_t=no
17548fi
17549
17550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17551fi
17552{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17553echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17554if test $ac_cv_type_pid_t = yes; then
17555 :
John Criswell7a73b802003-06-30 21:59:07 +000017556else
17557
17558cat >>confdefs.h <<_ACEOF
17559#define pid_t int
17560_ACEOF
17561
17562fi
17563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017564{ echo "$as_me:$LINENO: checking for size_t" >&5
17565echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17566if test "${ac_cv_type_size_t+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17568else
17569 cat >conftest.$ac_ext <<_ACEOF
17570/* confdefs.h. */
17571_ACEOF
17572cat confdefs.h >>conftest.$ac_ext
17573cat >>conftest.$ac_ext <<_ACEOF
17574/* end confdefs.h. */
17575$ac_includes_default
17576typedef size_t ac__type_new_;
17577int
17578main ()
17579{
17580if ((ac__type_new_ *) 0)
17581 return 0;
17582if (sizeof (ac__type_new_))
17583 return 0;
17584 ;
17585 return 0;
17586}
17587_ACEOF
17588rm -f conftest.$ac_objext
17589if { (ac_try="$ac_compile"
17590case "(($ac_try" in
17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592 *) ac_try_echo=$ac_try;;
17593esac
17594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595 (eval "$ac_compile") 2>conftest.er1
17596 ac_status=$?
17597 grep -v '^ *+' conftest.er1 >conftest.err
17598 rm -f conftest.er1
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17603 { (case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17606esac
17607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608 (eval "$ac_try") 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; } &&
17612 { ac_try='test -s conftest.$ac_objext'
17613 { (case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17616esac
17617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_try") 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_cv_type_size_t=yes
17623else
17624 echo "$as_me: failed program was:" >&5
17625sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017627 ac_cv_type_size_t=no
17628fi
17629
17630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17631fi
17632{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17633echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17634if test $ac_cv_type_size_t = yes; then
17635 :
John Criswell7a73b802003-06-30 21:59:07 +000017636else
17637
17638cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017639#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017640_ACEOF
17641
17642fi
17643
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017644
17645cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017646#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017647_ACEOF
17648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017649{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17650echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17651if test "${ac_cv_struct_tm+set}" = set; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017653else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017654 cat >conftest.$ac_ext <<_ACEOF
17655/* confdefs.h. */
17656_ACEOF
17657cat confdefs.h >>conftest.$ac_ext
17658cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017659/* end confdefs.h. */
17660#include <sys/types.h>
17661#include <time.h>
17662
17663int
17664main ()
17665{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017666struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017667 ;
17668 return 0;
17669}
17670_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017671rm -f conftest.$ac_objext
17672if { (ac_try="$ac_compile"
17673case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17676esac
17677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_compile") 2>conftest.er1
17679 ac_status=$?
17680 grep -v '^ *+' conftest.er1 >conftest.err
17681 rm -f conftest.er1
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
17685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17686 { (case "(($ac_try" in
17687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17689esac
17690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_try") 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest.$ac_objext'
17696 { (case "(($ac_try" in
17697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698 *) ac_try_echo=$ac_try;;
17699esac
17700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701 (eval "$ac_try") 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017705 ac_cv_struct_tm=time.h
17706else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017707 echo "$as_me: failed program was:" >&5
17708sed 's/^/| /' conftest.$ac_ext >&5
17709
17710 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017711fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017712
Reid Spencera773bd52006-08-04 18:18:08 +000017713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017714fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017715{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17716echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017717if test $ac_cv_struct_tm = sys/time.h; then
17718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017719cat >>confdefs.h <<\_ACEOF
17720#define TM_IN_SYS_TIME 1
17721_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017722
17723fi
17724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017725{ echo "$as_me:$LINENO: checking for int64_t" >&5
17726echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17727if test "${ac_cv_type_int64_t+set}" = set; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17729else
17730 cat >conftest.$ac_ext <<_ACEOF
17731/* confdefs.h. */
17732_ACEOF
17733cat confdefs.h >>conftest.$ac_ext
17734cat >>conftest.$ac_ext <<_ACEOF
17735/* end confdefs.h. */
17736$ac_includes_default
17737typedef int64_t ac__type_new_;
17738int
17739main ()
17740{
17741if ((ac__type_new_ *) 0)
17742 return 0;
17743if (sizeof (ac__type_new_))
17744 return 0;
17745 ;
17746 return 0;
17747}
17748_ACEOF
17749rm -f conftest.$ac_objext
17750if { (ac_try="$ac_compile"
17751case "(($ac_try" in
17752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753 *) ac_try_echo=$ac_try;;
17754esac
17755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756 (eval "$ac_compile") 2>conftest.er1
17757 ac_status=$?
17758 grep -v '^ *+' conftest.er1 >conftest.err
17759 rm -f conftest.er1
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17764 { (case "(($ac_try" in
17765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17767esac
17768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17769 (eval "$ac_try") 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; } &&
17773 { ac_try='test -s conftest.$ac_objext'
17774 { (case "(($ac_try" in
17775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776 *) ac_try_echo=$ac_try;;
17777esac
17778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779 (eval "$ac_try") 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 ac_cv_type_int64_t=yes
17784else
17785 echo "$as_me: failed program was:" >&5
17786sed 's/^/| /' conftest.$ac_ext >&5
17787
17788 ac_cv_type_int64_t=no
17789fi
17790
17791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17792fi
17793{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17794echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17795if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017796
17797cat >>confdefs.h <<_ACEOF
17798#define HAVE_INT64_T 1
17799_ACEOF
17800
17801
17802else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017803 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17804echo "$as_me: error: Type int64_t required but not found" >&2;}
17805 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017806fi
17807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017808{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17809echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17810if test "${ac_cv_type_uint64_t+set}" = set; then
17811 echo $ECHO_N "(cached) $ECHO_C" >&6
17812else
17813 cat >conftest.$ac_ext <<_ACEOF
17814/* confdefs.h. */
17815_ACEOF
17816cat confdefs.h >>conftest.$ac_ext
17817cat >>conftest.$ac_ext <<_ACEOF
17818/* end confdefs.h. */
17819$ac_includes_default
17820typedef uint64_t ac__type_new_;
17821int
17822main ()
17823{
17824if ((ac__type_new_ *) 0)
17825 return 0;
17826if (sizeof (ac__type_new_))
17827 return 0;
17828 ;
17829 return 0;
17830}
17831_ACEOF
17832rm -f conftest.$ac_objext
17833if { (ac_try="$ac_compile"
17834case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17837esac
17838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_compile") 2>conftest.er1
17840 ac_status=$?
17841 grep -v '^ *+' conftest.er1 >conftest.err
17842 rm -f conftest.er1
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
17846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17847 { (case "(($ac_try" in
17848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849 *) ac_try_echo=$ac_try;;
17850esac
17851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852 (eval "$ac_try") 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; } &&
17856 { ac_try='test -s conftest.$ac_objext'
17857 { (case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17860esac
17861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_try") 2>&5
17863 ac_status=$?
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; }; then
17866 ac_cv_type_uint64_t=yes
17867else
17868 echo "$as_me: failed program was:" >&5
17869sed 's/^/| /' conftest.$ac_ext >&5
17870
17871 ac_cv_type_uint64_t=no
17872fi
17873
17874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17875fi
17876{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17877echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17878if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017879
17880cat >>confdefs.h <<_ACEOF
17881#define HAVE_UINT64_T 1
17882_ACEOF
17883
17884
17885else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017886 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17887echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17888if test "${ac_cv_type_u_int64_t+set}" = set; then
17889 echo $ECHO_N "(cached) $ECHO_C" >&6
17890else
17891 cat >conftest.$ac_ext <<_ACEOF
17892/* confdefs.h. */
17893_ACEOF
17894cat confdefs.h >>conftest.$ac_ext
17895cat >>conftest.$ac_ext <<_ACEOF
17896/* end confdefs.h. */
17897$ac_includes_default
17898typedef u_int64_t ac__type_new_;
17899int
17900main ()
17901{
17902if ((ac__type_new_ *) 0)
17903 return 0;
17904if (sizeof (ac__type_new_))
17905 return 0;
17906 ;
17907 return 0;
17908}
17909_ACEOF
17910rm -f conftest.$ac_objext
17911if { (ac_try="$ac_compile"
17912case "(($ac_try" in
17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914 *) ac_try_echo=$ac_try;;
17915esac
17916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917 (eval "$ac_compile") 2>conftest.er1
17918 ac_status=$?
17919 grep -v '^ *+' conftest.er1 >conftest.err
17920 rm -f conftest.er1
17921 cat conftest.err >&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } &&
17924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17925 { (case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17928esac
17929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_try") 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try='test -s conftest.$ac_objext'
17935 { (case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17938esac
17939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_try") 2>&5
17941 ac_status=$?
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; }; then
17944 ac_cv_type_u_int64_t=yes
17945else
17946 echo "$as_me: failed program was:" >&5
17947sed 's/^/| /' conftest.$ac_ext >&5
17948
17949 ac_cv_type_u_int64_t=no
17950fi
17951
17952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17953fi
17954{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17955echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17956if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017957
17958cat >>confdefs.h <<_ACEOF
17959#define HAVE_U_INT64_T 1
17960_ACEOF
17961
17962
Misha Brukmanceca9042004-09-02 23:02:30 +000017963else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017964 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17965echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17966 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017967fi
17968
John Criswell679ff312004-09-02 18:44:44 +000017969fi
17970
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017971
17972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017973
17974
17975
17976
17977
17978
17979
Reid Spencerdf3be822006-01-23 08:15:53 +000017980for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017981do
17982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17983{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17985if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17987else
17988 cat >conftest.$ac_ext <<_ACEOF
17989/* confdefs.h. */
17990_ACEOF
17991cat confdefs.h >>conftest.$ac_ext
17992cat >>conftest.$ac_ext <<_ACEOF
17993/* end confdefs.h. */
17994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17996#define $ac_func innocuous_$ac_func
17997
17998/* System header to define __stub macros and hopefully few prototypes,
17999 which can conflict with char $ac_func (); below.
18000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18001 <limits.h> exists even on freestanding compilers. */
18002
18003#ifdef __STDC__
18004# include <limits.h>
18005#else
18006# include <assert.h>
18007#endif
18008
18009#undef $ac_func
18010
18011/* Override any GCC internal prototype to avoid an error.
18012 Use char because int might match the return type of a GCC
18013 builtin and then its argument prototype would still apply. */
18014#ifdef __cplusplus
18015extern "C"
18016#endif
18017char $ac_func ();
18018/* The GNU C library defines this for functions which it implements
18019 to always fail with ENOSYS. Some functions are actually named
18020 something starting with __ and the normal name is an alias. */
18021#if defined __stub_$ac_func || defined __stub___$ac_func
18022choke me
18023#endif
18024
18025int
18026main ()
18027{
18028return $ac_func ();
18029 ;
18030 return 0;
18031}
18032_ACEOF
18033rm -f conftest.$ac_objext conftest$ac_exeext
18034if { (ac_try="$ac_link"
18035case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18038esac
18039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040 (eval "$ac_link") 2>conftest.er1
18041 ac_status=$?
18042 grep -v '^ *+' conftest.er1 >conftest.err
18043 rm -f conftest.er1
18044 cat conftest.err >&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } &&
18047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18048 { (case "(($ac_try" in
18049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050 *) ac_try_echo=$ac_try;;
18051esac
18052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053 (eval "$ac_try") 2>&5
18054 ac_status=$?
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; } &&
18057 { ac_try='test -s conftest$ac_exeext'
18058 { (case "(($ac_try" in
18059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060 *) ac_try_echo=$ac_try;;
18061esac
18062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063 (eval "$ac_try") 2>&5
18064 ac_status=$?
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; }; then
18067 eval "$as_ac_var=yes"
18068else
18069 echo "$as_me: failed program was:" >&5
18070sed 's/^/| /' conftest.$ac_ext >&5
18071
18072 eval "$as_ac_var=no"
18073fi
18074
18075rm -f core conftest.err conftest.$ac_objext \
18076 conftest$ac_exeext conftest.$ac_ext
18077fi
18078ac_res=`eval echo '${'$as_ac_var'}'`
18079 { echo "$as_me:$LINENO: result: $ac_res" >&5
18080echo "${ECHO_T}$ac_res" >&6; }
18081if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018082 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018084_ACEOF
18085
18086fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018087done
John Criswell7a73b802003-06-30 21:59:07 +000018088
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018089
18090
18091
18092
Reid Spencer96cf5872007-07-13 10:05:30 +000018093for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018094do
18095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18096{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18098if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18099 echo $ECHO_N "(cached) $ECHO_C" >&6
18100else
18101 cat >conftest.$ac_ext <<_ACEOF
18102/* confdefs.h. */
18103_ACEOF
18104cat confdefs.h >>conftest.$ac_ext
18105cat >>conftest.$ac_ext <<_ACEOF
18106/* end confdefs.h. */
18107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18109#define $ac_func innocuous_$ac_func
18110
18111/* System header to define __stub macros and hopefully few prototypes,
18112 which can conflict with char $ac_func (); below.
18113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18114 <limits.h> exists even on freestanding compilers. */
18115
18116#ifdef __STDC__
18117# include <limits.h>
18118#else
18119# include <assert.h>
18120#endif
18121
18122#undef $ac_func
18123
18124/* Override any GCC internal prototype to avoid an error.
18125 Use char because int might match the return type of a GCC
18126 builtin and then its argument prototype would still apply. */
18127#ifdef __cplusplus
18128extern "C"
18129#endif
18130char $ac_func ();
18131/* The GNU C library defines this for functions which it implements
18132 to always fail with ENOSYS. Some functions are actually named
18133 something starting with __ and the normal name is an alias. */
18134#if defined __stub_$ac_func || defined __stub___$ac_func
18135choke me
18136#endif
18137
18138int
18139main ()
18140{
18141return $ac_func ();
18142 ;
18143 return 0;
18144}
18145_ACEOF
18146rm -f conftest.$ac_objext conftest$ac_exeext
18147if { (ac_try="$ac_link"
18148case "(($ac_try" in
18149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150 *) ac_try_echo=$ac_try;;
18151esac
18152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153 (eval "$ac_link") 2>conftest.er1
18154 ac_status=$?
18155 grep -v '^ *+' conftest.er1 >conftest.err
18156 rm -f conftest.er1
18157 cat conftest.err >&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
18160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18161 { (case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18164esac
18165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_try") 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; } &&
18170 { ac_try='test -s conftest$ac_exeext'
18171 { (case "(($ac_try" in
18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18174esac
18175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176 (eval "$ac_try") 2>&5
18177 ac_status=$?
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; }; then
18180 eval "$as_ac_var=yes"
18181else
18182 echo "$as_me: failed program was:" >&5
18183sed 's/^/| /' conftest.$ac_ext >&5
18184
18185 eval "$as_ac_var=no"
18186fi
18187
18188rm -f core conftest.err conftest.$ac_objext \
18189 conftest$ac_exeext conftest.$ac_ext
18190fi
18191ac_res=`eval echo '${'$as_ac_var'}'`
18192 { echo "$as_me:$LINENO: result: $ac_res" >&5
18193echo "${ECHO_T}$ac_res" >&6; }
18194if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018195 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018196#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018197_ACEOF
18198
18199fi
18200done
18201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018202
18203
18204
18205
18206
Reid Spencerb90645c2007-02-16 19:17:20 +000018207for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018208do
18209as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18210{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18212if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18213 echo $ECHO_N "(cached) $ECHO_C" >&6
18214else
18215 cat >conftest.$ac_ext <<_ACEOF
18216/* confdefs.h. */
18217_ACEOF
18218cat confdefs.h >>conftest.$ac_ext
18219cat >>conftest.$ac_ext <<_ACEOF
18220/* end confdefs.h. */
18221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18223#define $ac_func innocuous_$ac_func
18224
18225/* System header to define __stub macros and hopefully few prototypes,
18226 which can conflict with char $ac_func (); below.
18227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18228 <limits.h> exists even on freestanding compilers. */
18229
18230#ifdef __STDC__
18231# include <limits.h>
18232#else
18233# include <assert.h>
18234#endif
18235
18236#undef $ac_func
18237
18238/* Override any GCC internal prototype to avoid an error.
18239 Use char because int might match the return type of a GCC
18240 builtin and then its argument prototype would still apply. */
18241#ifdef __cplusplus
18242extern "C"
18243#endif
18244char $ac_func ();
18245/* The GNU C library defines this for functions which it implements
18246 to always fail with ENOSYS. Some functions are actually named
18247 something starting with __ and the normal name is an alias. */
18248#if defined __stub_$ac_func || defined __stub___$ac_func
18249choke me
18250#endif
18251
18252int
18253main ()
18254{
18255return $ac_func ();
18256 ;
18257 return 0;
18258}
18259_ACEOF
18260rm -f conftest.$ac_objext conftest$ac_exeext
18261if { (ac_try="$ac_link"
18262case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18265esac
18266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_link") 2>conftest.er1
18268 ac_status=$?
18269 grep -v '^ *+' conftest.er1 >conftest.err
18270 rm -f conftest.er1
18271 cat conftest.err >&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } &&
18274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18275 { (case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18278esac
18279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_try") 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest$ac_exeext'
18285 { (case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18288esac
18289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_try") 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; }; then
18294 eval "$as_ac_var=yes"
18295else
18296 echo "$as_me: failed program was:" >&5
18297sed 's/^/| /' conftest.$ac_ext >&5
18298
18299 eval "$as_ac_var=no"
18300fi
18301
18302rm -f core conftest.err conftest.$ac_objext \
18303 conftest$ac_exeext conftest.$ac_ext
18304fi
18305ac_res=`eval echo '${'$as_ac_var'}'`
18306 { echo "$as_me:$LINENO: result: $ac_res" >&5
18307echo "${ECHO_T}$ac_res" >&6; }
18308if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018309 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018310#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018311_ACEOF
18312
18313fi
18314done
18315
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018316
18317
18318
Reid Spencerb90645c2007-02-16 19:17:20 +000018319for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018320do
18321as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18322{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18323echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18324if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18325 echo $ECHO_N "(cached) $ECHO_C" >&6
18326else
18327 cat >conftest.$ac_ext <<_ACEOF
18328/* confdefs.h. */
18329_ACEOF
18330cat confdefs.h >>conftest.$ac_ext
18331cat >>conftest.$ac_ext <<_ACEOF
18332/* end confdefs.h. */
18333/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18335#define $ac_func innocuous_$ac_func
18336
18337/* System header to define __stub macros and hopefully few prototypes,
18338 which can conflict with char $ac_func (); below.
18339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18340 <limits.h> exists even on freestanding compilers. */
18341
18342#ifdef __STDC__
18343# include <limits.h>
18344#else
18345# include <assert.h>
18346#endif
18347
18348#undef $ac_func
18349
18350/* Override any GCC internal prototype to avoid an error.
18351 Use char because int might match the return type of a GCC
18352 builtin and then its argument prototype would still apply. */
18353#ifdef __cplusplus
18354extern "C"
18355#endif
18356char $ac_func ();
18357/* The GNU C library defines this for functions which it implements
18358 to always fail with ENOSYS. Some functions are actually named
18359 something starting with __ and the normal name is an alias. */
18360#if defined __stub_$ac_func || defined __stub___$ac_func
18361choke me
18362#endif
18363
18364int
18365main ()
18366{
18367return $ac_func ();
18368 ;
18369 return 0;
18370}
18371_ACEOF
18372rm -f conftest.$ac_objext conftest$ac_exeext
18373if { (ac_try="$ac_link"
18374case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18377esac
18378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_link") 2>conftest.er1
18380 ac_status=$?
18381 grep -v '^ *+' conftest.er1 >conftest.err
18382 rm -f conftest.er1
18383 cat conftest.err >&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } &&
18386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18387 { (case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18390esac
18391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_try") 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; } &&
18396 { ac_try='test -s conftest$ac_exeext'
18397 { (case "(($ac_try" in
18398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399 *) ac_try_echo=$ac_try;;
18400esac
18401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402 (eval "$ac_try") 2>&5
18403 ac_status=$?
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; }; then
18406 eval "$as_ac_var=yes"
18407else
18408 echo "$as_me: failed program was:" >&5
18409sed 's/^/| /' conftest.$ac_ext >&5
18410
18411 eval "$as_ac_var=no"
18412fi
18413
18414rm -f core conftest.err conftest.$ac_objext \
18415 conftest$ac_exeext conftest.$ac_ext
18416fi
18417ac_res=`eval echo '${'$as_ac_var'}'`
18418 { echo "$as_me:$LINENO: result: $ac_res" >&5
18419echo "${ECHO_T}$ac_res" >&6; }
18420if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018421 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018423_ACEOF
18424
18425fi
18426done
18427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018428
18429
18430
18431
18432
Eric Christophere4291822010-04-16 05:14:21 +000018433
18434for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018435do
18436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18437{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18439if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18441else
18442 cat >conftest.$ac_ext <<_ACEOF
18443/* confdefs.h. */
18444_ACEOF
18445cat confdefs.h >>conftest.$ac_ext
18446cat >>conftest.$ac_ext <<_ACEOF
18447/* end confdefs.h. */
18448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18450#define $ac_func innocuous_$ac_func
18451
18452/* System header to define __stub macros and hopefully few prototypes,
18453 which can conflict with char $ac_func (); below.
18454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18455 <limits.h> exists even on freestanding compilers. */
18456
18457#ifdef __STDC__
18458# include <limits.h>
18459#else
18460# include <assert.h>
18461#endif
18462
18463#undef $ac_func
18464
18465/* Override any GCC internal prototype to avoid an error.
18466 Use char because int might match the return type of a GCC
18467 builtin and then its argument prototype would still apply. */
18468#ifdef __cplusplus
18469extern "C"
18470#endif
18471char $ac_func ();
18472/* The GNU C library defines this for functions which it implements
18473 to always fail with ENOSYS. Some functions are actually named
18474 something starting with __ and the normal name is an alias. */
18475#if defined __stub_$ac_func || defined __stub___$ac_func
18476choke me
18477#endif
18478
18479int
18480main ()
18481{
18482return $ac_func ();
18483 ;
18484 return 0;
18485}
18486_ACEOF
18487rm -f conftest.$ac_objext conftest$ac_exeext
18488if { (ac_try="$ac_link"
18489case "(($ac_try" in
18490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18491 *) ac_try_echo=$ac_try;;
18492esac
18493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18494 (eval "$ac_link") 2>conftest.er1
18495 ac_status=$?
18496 grep -v '^ *+' conftest.er1 >conftest.err
18497 rm -f conftest.er1
18498 cat conftest.err >&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); } &&
18501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18502 { (case "(($ac_try" in
18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504 *) ac_try_echo=$ac_try;;
18505esac
18506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507 (eval "$ac_try") 2>&5
18508 ac_status=$?
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); }; } &&
18511 { ac_try='test -s conftest$ac_exeext'
18512 { (case "(($ac_try" in
18513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514 *) ac_try_echo=$ac_try;;
18515esac
18516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18517 (eval "$ac_try") 2>&5
18518 ac_status=$?
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); }; }; then
18521 eval "$as_ac_var=yes"
18522else
18523 echo "$as_me: failed program was:" >&5
18524sed 's/^/| /' conftest.$ac_ext >&5
18525
18526 eval "$as_ac_var=no"
18527fi
18528
18529rm -f core conftest.err conftest.$ac_objext \
18530 conftest$ac_exeext conftest.$ac_ext
18531fi
18532ac_res=`eval echo '${'$as_ac_var'}'`
18533 { echo "$as_me:$LINENO: result: $ac_res" >&5
18534echo "${ECHO_T}$ac_res" >&6; }
18535if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018536 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018537#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018538_ACEOF
18539
18540fi
18541done
Reid Spencerdf3be822006-01-23 08:15:53 +000018542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018543
18544
18545
18546
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018547for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018548do
18549as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18550{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18551echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18552if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18554else
18555 cat >conftest.$ac_ext <<_ACEOF
18556/* confdefs.h. */
18557_ACEOF
18558cat confdefs.h >>conftest.$ac_ext
18559cat >>conftest.$ac_ext <<_ACEOF
18560/* end confdefs.h. */
18561/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18563#define $ac_func innocuous_$ac_func
18564
18565/* System header to define __stub macros and hopefully few prototypes,
18566 which can conflict with char $ac_func (); below.
18567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18568 <limits.h> exists even on freestanding compilers. */
18569
18570#ifdef __STDC__
18571# include <limits.h>
18572#else
18573# include <assert.h>
18574#endif
18575
18576#undef $ac_func
18577
18578/* Override any GCC internal prototype to avoid an error.
18579 Use char because int might match the return type of a GCC
18580 builtin and then its argument prototype would still apply. */
18581#ifdef __cplusplus
18582extern "C"
18583#endif
18584char $ac_func ();
18585/* The GNU C library defines this for functions which it implements
18586 to always fail with ENOSYS. Some functions are actually named
18587 something starting with __ and the normal name is an alias. */
18588#if defined __stub_$ac_func || defined __stub___$ac_func
18589choke me
18590#endif
18591
18592int
18593main ()
18594{
18595return $ac_func ();
18596 ;
18597 return 0;
18598}
18599_ACEOF
18600rm -f conftest.$ac_objext conftest$ac_exeext
18601if { (ac_try="$ac_link"
18602case "(($ac_try" in
18603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604 *) ac_try_echo=$ac_try;;
18605esac
18606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607 (eval "$ac_link") 2>conftest.er1
18608 ac_status=$?
18609 grep -v '^ *+' conftest.er1 >conftest.err
18610 rm -f conftest.er1
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } &&
18614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18615 { (case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18618esac
18619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_try") 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; } &&
18624 { ac_try='test -s conftest$ac_exeext'
18625 { (case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628esac
18629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_try") 2>&5
18631 ac_status=$?
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; }; then
18634 eval "$as_ac_var=yes"
18635else
18636 echo "$as_me: failed program was:" >&5
18637sed 's/^/| /' conftest.$ac_ext >&5
18638
18639 eval "$as_ac_var=no"
18640fi
18641
18642rm -f core conftest.err conftest.$ac_objext \
18643 conftest$ac_exeext conftest.$ac_ext
18644fi
18645ac_res=`eval echo '${'$as_ac_var'}'`
18646 { echo "$as_me:$LINENO: result: $ac_res" >&5
18647echo "${ECHO_T}$ac_res" >&6; }
18648if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018649 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018651_ACEOF
18652
18653fi
18654done
18655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018656
18657
18658
18659
Chris Lattner511f11d2005-11-14 07:25:50 +000018660for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018661do
18662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18663{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18665if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18667else
18668 cat >conftest.$ac_ext <<_ACEOF
18669/* confdefs.h. */
18670_ACEOF
18671cat confdefs.h >>conftest.$ac_ext
18672cat >>conftest.$ac_ext <<_ACEOF
18673/* end confdefs.h. */
18674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18676#define $ac_func innocuous_$ac_func
18677
18678/* System header to define __stub macros and hopefully few prototypes,
18679 which can conflict with char $ac_func (); below.
18680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18681 <limits.h> exists even on freestanding compilers. */
18682
18683#ifdef __STDC__
18684# include <limits.h>
18685#else
18686# include <assert.h>
18687#endif
18688
18689#undef $ac_func
18690
18691/* Override any GCC internal prototype to avoid an error.
18692 Use char because int might match the return type of a GCC
18693 builtin and then its argument prototype would still apply. */
18694#ifdef __cplusplus
18695extern "C"
18696#endif
18697char $ac_func ();
18698/* The GNU C library defines this for functions which it implements
18699 to always fail with ENOSYS. Some functions are actually named
18700 something starting with __ and the normal name is an alias. */
18701#if defined __stub_$ac_func || defined __stub___$ac_func
18702choke me
18703#endif
18704
18705int
18706main ()
18707{
18708return $ac_func ();
18709 ;
18710 return 0;
18711}
18712_ACEOF
18713rm -f conftest.$ac_objext conftest$ac_exeext
18714if { (ac_try="$ac_link"
18715case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18718esac
18719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_link") 2>conftest.er1
18721 ac_status=$?
18722 grep -v '^ *+' conftest.er1 >conftest.err
18723 rm -f conftest.er1
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } &&
18727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18728 { (case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18731esac
18732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_try") 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; } &&
18737 { ac_try='test -s conftest$ac_exeext'
18738 { (case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18741esac
18742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_try") 2>&5
18744 ac_status=$?
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; }; then
18747 eval "$as_ac_var=yes"
18748else
18749 echo "$as_me: failed program was:" >&5
18750sed 's/^/| /' conftest.$ac_ext >&5
18751
18752 eval "$as_ac_var=no"
18753fi
18754
18755rm -f core conftest.err conftest.$ac_objext \
18756 conftest$ac_exeext conftest.$ac_ext
18757fi
18758ac_res=`eval echo '${'$as_ac_var'}'`
18759 { echo "$as_me:$LINENO: result: $ac_res" >&5
18760echo "${ECHO_T}$ac_res" >&6; }
18761if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018762 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018763#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018764_ACEOF
18765
18766fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018767done
John Criswell7a73b802003-06-30 21:59:07 +000018768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018769
18770
18771
18772
Reid Spencerafa22e22006-12-10 23:29:19 +000018773for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018774do
18775as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18776{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18777echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18778if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18780else
18781 cat >conftest.$ac_ext <<_ACEOF
18782/* confdefs.h. */
18783_ACEOF
18784cat confdefs.h >>conftest.$ac_ext
18785cat >>conftest.$ac_ext <<_ACEOF
18786/* end confdefs.h. */
18787/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18789#define $ac_func innocuous_$ac_func
18790
18791/* System header to define __stub macros and hopefully few prototypes,
18792 which can conflict with char $ac_func (); below.
18793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18794 <limits.h> exists even on freestanding compilers. */
18795
18796#ifdef __STDC__
18797# include <limits.h>
18798#else
18799# include <assert.h>
18800#endif
18801
18802#undef $ac_func
18803
18804/* Override any GCC internal prototype to avoid an error.
18805 Use char because int might match the return type of a GCC
18806 builtin and then its argument prototype would still apply. */
18807#ifdef __cplusplus
18808extern "C"
18809#endif
18810char $ac_func ();
18811/* The GNU C library defines this for functions which it implements
18812 to always fail with ENOSYS. Some functions are actually named
18813 something starting with __ and the normal name is an alias. */
18814#if defined __stub_$ac_func || defined __stub___$ac_func
18815choke me
18816#endif
18817
18818int
18819main ()
18820{
18821return $ac_func ();
18822 ;
18823 return 0;
18824}
18825_ACEOF
18826rm -f conftest.$ac_objext conftest$ac_exeext
18827if { (ac_try="$ac_link"
18828case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18831esac
18832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_link") 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
18840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18841 { (case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18844esac
18845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_try") 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest$ac_exeext'
18851 { (case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18854esac
18855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_try") 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 eval "$as_ac_var=yes"
18861else
18862 echo "$as_me: failed program was:" >&5
18863sed 's/^/| /' conftest.$ac_ext >&5
18864
18865 eval "$as_ac_var=no"
18866fi
18867
18868rm -f core conftest.err conftest.$ac_objext \
18869 conftest$ac_exeext conftest.$ac_ext
18870fi
18871ac_res=`eval echo '${'$as_ac_var'}'`
18872 { echo "$as_me:$LINENO: result: $ac_res" >&5
18873echo "${ECHO_T}$ac_res" >&6; }
18874if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018875 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018876#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018877_ACEOF
18878
18879fi
18880done
18881
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018882{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18883echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18884if test "${llvm_cv_c_printf_a+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018886else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018887 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018888ac_cpp='$CPP $CPPFLAGS'
18889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18891ac_compiler_gnu=$ac_cv_c_compiler_gnu
18892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018893 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018894 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018896 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018898 /* confdefs.h. */
18899_ACEOF
18900cat confdefs.h >>conftest.$ac_ext
18901cat >>conftest.$ac_ext <<_ACEOF
18902/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018903
John Criswella0137d32003-10-13 16:22:01 +000018904#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018905#include <stdlib.h>
18906
John Criswella0137d32003-10-13 16:22:01 +000018907int
18908main ()
18909{
18910
Reid Spencer2706f8c2004-09-19 23:53:36 +000018911volatile double A, B;
18912char Buffer[100];
18913A = 1;
18914A /= 10.0;
18915sprintf(Buffer, "%a", A);
18916B = atof(Buffer);
18917if (A != B)
18918 return (1);
18919if (A != 0x1.999999999999ap-4)
18920 return (1);
18921return (0);
John Criswella0137d32003-10-13 16:22:01 +000018922 ;
18923 return 0;
18924}
18925_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018926rm -f conftest$ac_exeext
18927if { (ac_try="$ac_link"
18928case "(($ac_try" in
18929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930 *) ac_try_echo=$ac_try;;
18931esac
18932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933 (eval "$ac_link") 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18937 { (case "(($ac_try" in
18938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18939 *) ac_try_echo=$ac_try;;
18940esac
18941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18942 (eval "$ac_try") 2>&5
18943 ac_status=$?
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018946 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018947else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018948 echo "$as_me: program exited with status $ac_status" >&5
18949echo "$as_me: failed program was:" >&5
18950sed 's/^/| /' conftest.$ac_ext >&5
18951
18952( exit $ac_status )
18953llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018954fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018955rm -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 +000018956fi
Reid Spencera773bd52006-08-04 18:18:08 +000018957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018958
Reid Spencer2706f8c2004-09-19 23:53:36 +000018959 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018960ac_cpp='$CPP $CPPFLAGS'
18961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18963ac_compiler_gnu=$ac_cv_c_compiler_gnu
18964
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018966{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18967echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018968 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018970cat >>confdefs.h <<\_ACEOF
18971#define HAVE_PRINTF_A 1
18972_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018973
Reid Spencer2706f8c2004-09-19 23:53:36 +000018974 fi
John Criswella0137d32003-10-13 16:22:01 +000018975
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018977{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18978echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18979if test "${ac_cv_func_rand48+set}" = set; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018981else
Reid Spencera773bd52006-08-04 18:18:08 +000018982 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018983ac_cpp='$CXXCPP $CPPFLAGS'
18984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018988 cat >conftest.$ac_ext <<_ACEOF
18989/* confdefs.h. */
18990_ACEOF
18991cat confdefs.h >>conftest.$ac_ext
18992cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018993/* end confdefs.h. */
18994#include <stdlib.h>
18995int
18996main ()
18997{
18998srand48(0);lrand48();drand48();
18999 ;
19000 return 0;
19001}
19002_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019003rm -f conftest.$ac_objext
19004if { (ac_try="$ac_compile"
19005case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19008esac
19009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_compile") 2>conftest.er1
19011 ac_status=$?
19012 grep -v '^ *+' conftest.er1 >conftest.err
19013 rm -f conftest.er1
19014 cat conftest.err >&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } &&
19017 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19018 { (case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19021esac
19022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_try") 2>&5
19024 ac_status=$?
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); }; } &&
19027 { ac_try='test -s conftest.$ac_objext'
19028 { (case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19031esac
19032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_try") 2>&5
19034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019037 ac_cv_func_rand48=yes
19038else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019039 echo "$as_me: failed program was:" >&5
19040sed 's/^/| /' conftest.$ac_ext >&5
19041
19042 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019043fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019044
Reid Spencera773bd52006-08-04 18:18:08 +000019045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019046 ac_ext=c
19047ac_cpp='$CPP $CPPFLAGS'
19048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19050ac_compiler_gnu=$ac_cv_c_compiler_gnu
19051
19052fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019053{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19054echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019055
19056if test "$ac_cv_func_rand48" = "yes" ; then
19057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019058cat >>confdefs.h <<\_ACEOF
19059#define HAVE_RAND48 1
19060_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019061
19062fi
John Criswell0021c312004-02-13 21:57:29 +000019063
19064
Torok Edwin871384f2010-01-26 08:50:50 +000019065
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019066{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19067echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19068if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019070else
Reid Spencera773bd52006-08-04 18:18:08 +000019071 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019072ac_cpp='$CXXCPP $CPPFLAGS'
19073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019077 cat >conftest.$ac_ext <<_ACEOF
19078/* confdefs.h. */
19079_ACEOF
19080cat confdefs.h >>conftest.$ac_ext
19081cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019082/* end confdefs.h. */
19083#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019084int
19085main ()
19086{
19087float f; isnan(f);
19088 ;
19089 return 0;
19090}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019091_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019092rm -f conftest.$ac_objext
19093if { (ac_try="$ac_compile"
19094case "(($ac_try" in
19095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096 *) ac_try_echo=$ac_try;;
19097esac
19098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099 (eval "$ac_compile") 2>conftest.er1
19100 ac_status=$?
19101 grep -v '^ *+' conftest.er1 >conftest.err
19102 rm -f conftest.er1
19103 cat conftest.err >&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } &&
19106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19110esac
19111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; } &&
19116 { ac_try='test -s conftest.$ac_objext'
19117 { (case "(($ac_try" in
19118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119 *) ac_try_echo=$ac_try;;
19120esac
19121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122 (eval "$ac_try") 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019126 ac_cv_func_isnan_in_math_h=yes
19127else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019128 echo "$as_me: failed program was:" >&5
19129sed 's/^/| /' conftest.$ac_ext >&5
19130
19131 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019133
Reid Spencera773bd52006-08-04 18:18:08 +000019134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019135 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019136ac_cpp='$CPP $CPPFLAGS'
19137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19139ac_compiler_gnu=$ac_cv_c_compiler_gnu
19140
19141fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019142{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19143echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019144
19145
19146if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019148cat >>confdefs.h <<\_ACEOF
19149#define HAVE_ISNAN_IN_MATH_H 1
19150_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019151
Reid Spencerabec8f92004-10-27 23:03:44 +000019152fi
19153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019154{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19155echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19156if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019158else
Reid Spencera773bd52006-08-04 18:18:08 +000019159 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019160ac_cpp='$CXXCPP $CPPFLAGS'
19161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019165 cat >conftest.$ac_ext <<_ACEOF
19166/* confdefs.h. */
19167_ACEOF
19168cat confdefs.h >>conftest.$ac_ext
19169cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019170/* end confdefs.h. */
19171#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019172int
19173main ()
19174{
19175float f; isnan(f);
19176 ;
19177 return 0;
19178}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019179_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019180rm -f conftest.$ac_objext
19181if { (ac_try="$ac_compile"
19182case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185esac
19186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_compile") 2>conftest.er1
19188 ac_status=$?
19189 grep -v '^ *+' conftest.er1 >conftest.err
19190 rm -f conftest.er1
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19195 { (case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19198esac
19199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_try") 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try='test -s conftest.$ac_objext'
19205 { (case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19208esac
19209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_try") 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019214 ac_cv_func_isnan_in_cmath=yes
19215else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019216 echo "$as_me: failed program was:" >&5
19217sed 's/^/| /' conftest.$ac_ext >&5
19218
19219 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019220fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019221
Reid Spencera773bd52006-08-04 18:18:08 +000019222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019223 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019224ac_cpp='$CPP $CPPFLAGS'
19225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19227ac_compiler_gnu=$ac_cv_c_compiler_gnu
19228
19229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019230{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19231echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019232
19233if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019234
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019235cat >>confdefs.h <<\_ACEOF
19236#define HAVE_ISNAN_IN_CMATH 1
19237_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019238
Reid Spencerabec8f92004-10-27 23:03:44 +000019239fi
19240
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019241{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19242echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19243if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19244 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019245else
Reid Spencera773bd52006-08-04 18:18:08 +000019246 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019247ac_cpp='$CXXCPP $CPPFLAGS'
19248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19251
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019252 cat >conftest.$ac_ext <<_ACEOF
19253/* confdefs.h. */
19254_ACEOF
19255cat confdefs.h >>conftest.$ac_ext
19256cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019257/* end confdefs.h. */
19258#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019259int
19260main ()
19261{
19262float f; std::isnan(f);
19263 ;
19264 return 0;
19265}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019266_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019267rm -f conftest.$ac_objext
19268if { (ac_try="$ac_compile"
19269case "(($ac_try" in
19270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271 *) ac_try_echo=$ac_try;;
19272esac
19273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274 (eval "$ac_compile") 2>conftest.er1
19275 ac_status=$?
19276 grep -v '^ *+' conftest.er1 >conftest.err
19277 rm -f conftest.er1
19278 cat conftest.err >&5
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); } &&
19281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19282 { (case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19285esac
19286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19287 (eval "$ac_try") 2>&5
19288 ac_status=$?
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; } &&
19291 { ac_try='test -s conftest.$ac_objext'
19292 { (case "(($ac_try" in
19293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294 *) ac_try_echo=$ac_try;;
19295esac
19296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297 (eval "$ac_try") 2>&5
19298 ac_status=$?
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019301 ac_cv_func_std_isnan_in_cmath=yes
19302else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019303 echo "$as_me: failed program was:" >&5
19304sed 's/^/| /' conftest.$ac_ext >&5
19305
19306 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019307fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019308
Reid Spencera773bd52006-08-04 18:18:08 +000019309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019310 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019311ac_cpp='$CPP $CPPFLAGS'
19312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19314ac_compiler_gnu=$ac_cv_c_compiler_gnu
19315
19316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019317{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19318echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019319
19320if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019321
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019322cat >>confdefs.h <<\_ACEOF
19323#define HAVE_STD_ISNAN_IN_CMATH 1
19324_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019325
Reid Spencerabec8f92004-10-27 23:03:44 +000019326fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019327
19328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019329{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19330echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19331if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019333else
Reid Spencera773bd52006-08-04 18:18:08 +000019334 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019335ac_cpp='$CXXCPP $CPPFLAGS'
19336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019340 cat >conftest.$ac_ext <<_ACEOF
19341/* confdefs.h. */
19342_ACEOF
19343cat confdefs.h >>conftest.$ac_ext
19344cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019345/* end confdefs.h. */
19346#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019347int
19348main ()
19349{
19350float f; isinf(f);
19351 ;
19352 return 0;
19353}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019354_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019355rm -f conftest.$ac_objext
19356if { (ac_try="$ac_compile"
19357case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19360esac
19361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_compile") 2>conftest.er1
19363 ac_status=$?
19364 grep -v '^ *+' conftest.er1 >conftest.err
19365 rm -f conftest.er1
19366 cat conftest.err >&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); } &&
19369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19370 { (case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19373esac
19374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_try") 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; } &&
19379 { ac_try='test -s conftest.$ac_objext'
19380 { (case "(($ac_try" in
19381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19382 *) ac_try_echo=$ac_try;;
19383esac
19384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19385 (eval "$ac_try") 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019389 ac_cv_func_isinf_in_math_h=yes
19390else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019391 echo "$as_me: failed program was:" >&5
19392sed 's/^/| /' conftest.$ac_ext >&5
19393
19394 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019395fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019396
Reid Spencera773bd52006-08-04 18:18:08 +000019397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019398 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019399ac_cpp='$CPP $CPPFLAGS'
19400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19402ac_compiler_gnu=$ac_cv_c_compiler_gnu
19403
19404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019405{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19406echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019407
19408if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019410cat >>confdefs.h <<\_ACEOF
19411#define HAVE_ISINF_IN_MATH_H 1
19412_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019413
Reid Spencerabec8f92004-10-27 23:03:44 +000019414fi
19415
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019416{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19417echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19418if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19419 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019420else
Reid Spencera773bd52006-08-04 18:18:08 +000019421 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019422ac_cpp='$CXXCPP $CPPFLAGS'
19423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019427 cat >conftest.$ac_ext <<_ACEOF
19428/* confdefs.h. */
19429_ACEOF
19430cat confdefs.h >>conftest.$ac_ext
19431cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019432/* end confdefs.h. */
19433#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019434int
19435main ()
19436{
19437float f; isinf(f);
19438 ;
19439 return 0;
19440}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019441_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019442rm -f conftest.$ac_objext
19443if { (ac_try="$ac_compile"
19444case "(($ac_try" in
19445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446 *) ac_try_echo=$ac_try;;
19447esac
19448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19449 (eval "$ac_compile") 2>conftest.er1
19450 ac_status=$?
19451 grep -v '^ *+' conftest.er1 >conftest.err
19452 rm -f conftest.er1
19453 cat conftest.err >&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } &&
19456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19457 { (case "(($ac_try" in
19458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19459 *) ac_try_echo=$ac_try;;
19460esac
19461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19462 (eval "$ac_try") 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; } &&
19466 { ac_try='test -s conftest.$ac_objext'
19467 { (case "(($ac_try" in
19468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469 *) ac_try_echo=$ac_try;;
19470esac
19471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472 (eval "$ac_try") 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019476 ac_cv_func_isinf_in_cmath=yes
19477else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019478 echo "$as_me: failed program was:" >&5
19479sed 's/^/| /' conftest.$ac_ext >&5
19480
19481 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019482fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019483
Reid Spencera773bd52006-08-04 18:18:08 +000019484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019485 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019486ac_cpp='$CPP $CPPFLAGS'
19487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19489ac_compiler_gnu=$ac_cv_c_compiler_gnu
19490
19491fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019492{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19493echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019494
19495if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019497cat >>confdefs.h <<\_ACEOF
19498#define HAVE_ISINF_IN_CMATH 1
19499_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019500
Reid Spencerabec8f92004-10-27 23:03:44 +000019501fi
19502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019503{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19504echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19505if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019507else
Reid Spencera773bd52006-08-04 18:18:08 +000019508 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019509ac_cpp='$CXXCPP $CPPFLAGS'
19510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019514 cat >conftest.$ac_ext <<_ACEOF
19515/* confdefs.h. */
19516_ACEOF
19517cat confdefs.h >>conftest.$ac_ext
19518cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019519/* end confdefs.h. */
19520#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019521int
19522main ()
19523{
19524float f; std::isinf(f)}
19525 ;
19526 return 0;
19527}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019528_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019529rm -f conftest.$ac_objext
19530if { (ac_try="$ac_compile"
19531case "(($ac_try" in
19532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533 *) ac_try_echo=$ac_try;;
19534esac
19535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536 (eval "$ac_compile") 2>conftest.er1
19537 ac_status=$?
19538 grep -v '^ *+' conftest.er1 >conftest.err
19539 rm -f conftest.er1
19540 cat conftest.err >&5
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); } &&
19543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19544 { (case "(($ac_try" in
19545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19546 *) ac_try_echo=$ac_try;;
19547esac
19548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19549 (eval "$ac_try") 2>&5
19550 ac_status=$?
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; } &&
19553 { ac_try='test -s conftest.$ac_objext'
19554 { (case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19557esac
19558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_try") 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019563 ac_cv_func_std_isinf_in_cmath=yes
19564else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019565 echo "$as_me: failed program was:" >&5
19566sed 's/^/| /' conftest.$ac_ext >&5
19567
19568 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019570
Reid Spencera773bd52006-08-04 18:18:08 +000019571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019572 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019573ac_cpp='$CPP $CPPFLAGS'
19574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19576ac_compiler_gnu=$ac_cv_c_compiler_gnu
19577
19578fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019579{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19580echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019581
19582if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019584cat >>confdefs.h <<\_ACEOF
19585#define HAVE_STD_ISINF_IN_CMATH 1
19586_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019587
Reid Spencerabec8f92004-10-27 23:03:44 +000019588fi
19589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019590{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19591echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19592if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019594else
Reid Spencera773bd52006-08-04 18:18:08 +000019595 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019596ac_cpp='$CXXCPP $CPPFLAGS'
19597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019601 cat >conftest.$ac_ext <<_ACEOF
19602/* confdefs.h. */
19603_ACEOF
19604cat confdefs.h >>conftest.$ac_ext
19605cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019606/* end confdefs.h. */
19607#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019608int
19609main ()
19610{
19611float f; finite(f);
19612 ;
19613 return 0;
19614}
Brian Gaeked59a6472004-07-21 03:33:58 +000019615_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019616rm -f conftest.$ac_objext
19617if { (ac_try="$ac_compile"
19618case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19621esac
19622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_compile") 2>conftest.er1
19624 ac_status=$?
19625 grep -v '^ *+' conftest.er1 >conftest.err
19626 rm -f conftest.er1
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19631 { (case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19634esac
19635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_try") 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest.$ac_objext'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19644esac
19645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019650 ac_cv_func_finite_in_ieeefp_h=yes
19651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019652 echo "$as_me: failed program was:" >&5
19653sed 's/^/| /' conftest.$ac_ext >&5
19654
19655 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019656fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019657
Reid Spencera773bd52006-08-04 18:18:08 +000019658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019659 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019660ac_cpp='$CPP $CPPFLAGS'
19661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663ac_compiler_gnu=$ac_cv_c_compiler_gnu
19664
19665fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019666{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19667echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019668
Brian Gaeke6802b552004-10-28 05:06:45 +000019669if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019671cat >>confdefs.h <<\_ACEOF
19672#define HAVE_FINITE_IN_IEEEFP_H 1
19673_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019674
Reid Spencerabec8f92004-10-27 23:03:44 +000019675fi
19676
19677
19678
Reid Spencer30fe5262007-01-20 07:48:49 +000019679if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019680
19681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019682for ac_header in stdlib.h unistd.h
19683do
19684as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19690fi
19691ac_res=`eval echo '${'$as_ac_Header'}'`
19692 { echo "$as_me:$LINENO: result: $ac_res" >&5
19693echo "${ECHO_T}$ac_res" >&6; }
19694else
19695 # Is the header compilable?
19696{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19697echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19698cat >conftest.$ac_ext <<_ACEOF
19699/* confdefs.h. */
19700_ACEOF
19701cat confdefs.h >>conftest.$ac_ext
19702cat >>conftest.$ac_ext <<_ACEOF
19703/* end confdefs.h. */
19704$ac_includes_default
19705#include <$ac_header>
19706_ACEOF
19707rm -f conftest.$ac_objext
19708if { (ac_try="$ac_compile"
19709case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19712esac
19713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_compile") 2>conftest.er1
19715 ac_status=$?
19716 grep -v '^ *+' conftest.er1 >conftest.err
19717 rm -f conftest.er1
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } &&
19721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19722 { (case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19725esac
19726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727 (eval "$ac_try") 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try='test -s conftest.$ac_objext'
19732 { (case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735esac
19736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_try") 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; }; then
19741 ac_header_compiler=yes
19742else
19743 echo "$as_me: failed program was:" >&5
19744sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019746 ac_header_compiler=no
19747fi
19748
19749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19750{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19751echo "${ECHO_T}$ac_header_compiler" >&6; }
19752
19753# Is the header present?
19754{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19755echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19756cat >conftest.$ac_ext <<_ACEOF
19757/* confdefs.h. */
19758_ACEOF
19759cat confdefs.h >>conftest.$ac_ext
19760cat >>conftest.$ac_ext <<_ACEOF
19761/* end confdefs.h. */
19762#include <$ac_header>
19763_ACEOF
19764if { (ac_try="$ac_cpp conftest.$ac_ext"
19765case "(($ac_try" in
19766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767 *) ac_try_echo=$ac_try;;
19768esac
19769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19771 ac_status=$?
19772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } >/dev/null; then
19777 if test -s conftest.err; then
19778 ac_cpp_err=$ac_c_preproc_warn_flag
19779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19780 else
19781 ac_cpp_err=
19782 fi
19783else
19784 ac_cpp_err=yes
19785fi
19786if test -z "$ac_cpp_err"; then
19787 ac_header_preproc=yes
19788else
19789 echo "$as_me: failed program was:" >&5
19790sed 's/^/| /' conftest.$ac_ext >&5
19791
19792 ac_header_preproc=no
19793fi
19794
19795rm -f conftest.err conftest.$ac_ext
19796{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19797echo "${ECHO_T}$ac_header_preproc" >&6; }
19798
19799# So? What about this header?
19800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19801 yes:no: )
19802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19803echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19805echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19806 ac_header_preproc=yes
19807 ;;
19808 no:yes:* )
19809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19810echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19812echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19814echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19816echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19818echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19820echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19821 ( cat <<\_ASBOX
19822## ----------------------------------- ##
19823## Report this to llvmbugs@cs.uiuc.edu ##
19824## ----------------------------------- ##
19825_ASBOX
19826 ) | sed "s/^/$as_me: WARNING: /" >&2
19827 ;;
19828esac
19829{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19831if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19833else
19834 eval "$as_ac_Header=\$ac_header_preproc"
19835fi
19836ac_res=`eval echo '${'$as_ac_Header'}'`
19837 { echo "$as_me:$LINENO: result: $ac_res" >&5
19838echo "${ECHO_T}$ac_res" >&6; }
19839
19840fi
19841if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019842 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019843#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019844_ACEOF
19845
19846fi
19847
19848done
19849
19850
19851for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019852do
19853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19854{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19856if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
19858else
19859 cat >conftest.$ac_ext <<_ACEOF
19860/* confdefs.h. */
19861_ACEOF
19862cat confdefs.h >>conftest.$ac_ext
19863cat >>conftest.$ac_ext <<_ACEOF
19864/* end confdefs.h. */
19865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19867#define $ac_func innocuous_$ac_func
19868
19869/* System header to define __stub macros and hopefully few prototypes,
19870 which can conflict with char $ac_func (); below.
19871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19872 <limits.h> exists even on freestanding compilers. */
19873
19874#ifdef __STDC__
19875# include <limits.h>
19876#else
19877# include <assert.h>
19878#endif
19879
19880#undef $ac_func
19881
19882/* Override any GCC internal prototype to avoid an error.
19883 Use char because int might match the return type of a GCC
19884 builtin and then its argument prototype would still apply. */
19885#ifdef __cplusplus
19886extern "C"
19887#endif
19888char $ac_func ();
19889/* The GNU C library defines this for functions which it implements
19890 to always fail with ENOSYS. Some functions are actually named
19891 something starting with __ and the normal name is an alias. */
19892#if defined __stub_$ac_func || defined __stub___$ac_func
19893choke me
19894#endif
19895
19896int
19897main ()
19898{
19899return $ac_func ();
19900 ;
19901 return 0;
19902}
19903_ACEOF
19904rm -f conftest.$ac_objext conftest$ac_exeext
19905if { (ac_try="$ac_link"
19906case "(($ac_try" in
19907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908 *) ac_try_echo=$ac_try;;
19909esac
19910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911 (eval "$ac_link") 2>conftest.er1
19912 ac_status=$?
19913 grep -v '^ *+' conftest.er1 >conftest.err
19914 rm -f conftest.er1
19915 cat conftest.err >&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } &&
19918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19919 { (case "(($ac_try" in
19920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19921 *) ac_try_echo=$ac_try;;
19922esac
19923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19924 (eval "$ac_try") 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; } &&
19928 { ac_try='test -s conftest$ac_exeext'
19929 { (case "(($ac_try" in
19930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19931 *) ac_try_echo=$ac_try;;
19932esac
19933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19934 (eval "$ac_try") 2>&5
19935 ac_status=$?
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; }; then
19938 eval "$as_ac_var=yes"
19939else
19940 echo "$as_me: failed program was:" >&5
19941sed 's/^/| /' conftest.$ac_ext >&5
19942
19943 eval "$as_ac_var=no"
19944fi
19945
19946rm -f core conftest.err conftest.$ac_objext \
19947 conftest$ac_exeext conftest.$ac_ext
19948fi
19949ac_res=`eval echo '${'$as_ac_var'}'`
19950 { echo "$as_me:$LINENO: result: $ac_res" >&5
19951echo "${ECHO_T}$ac_res" >&6; }
19952if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019953 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019955_ACEOF
19956
19957fi
19958done
19959
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019960{ echo "$as_me:$LINENO: checking for working mmap" >&5
19961echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19962if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019964else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019965 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019966 ac_cv_func_mmap_fixed_mapped=no
19967else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019968 cat >conftest.$ac_ext <<_ACEOF
19969/* confdefs.h. */
19970_ACEOF
19971cat confdefs.h >>conftest.$ac_ext
19972cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019973/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019974$ac_includes_default
19975/* malloc might have been renamed as rpl_malloc. */
19976#undef malloc
19977
19978/* Thanks to Mike Haertel and Jim Avera for this test.
19979 Here is a matrix of mmap possibilities:
19980 mmap private not fixed
19981 mmap private fixed at somewhere currently unmapped
19982 mmap private fixed at somewhere already mapped
19983 mmap shared not fixed
19984 mmap shared fixed at somewhere currently unmapped
19985 mmap shared fixed at somewhere already mapped
19986 For private mappings, we should verify that changes cannot be read()
19987 back from the file, nor mmap's back from the file at a different
19988 address. (There have been systems where private was not correctly
19989 implemented like the infamous i386 svr4.0, and systems where the
19990 VM page cache was not coherent with the file system buffer cache
19991 like early versions of FreeBSD and possibly contemporary NetBSD.)
19992 For shared mappings, we should conversely verify that changes get
19993 propagated back to all the places they're supposed to be.
19994
19995 Grep wants private fixed already mapped.
19996 The main things grep needs to know about mmap are:
19997 * does it exist and is it safe to write into the mmap'd area
19998 * how to use it (BSD variants) */
19999
20000#include <fcntl.h>
20001#include <sys/mman.h>
20002
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020003#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020004char *malloc ();
20005#endif
20006
20007/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020008#if !HAVE_GETPAGESIZE
20009/* Assume that all systems that can run configure have sys/param.h. */
20010# if !HAVE_SYS_PARAM_H
20011# define HAVE_SYS_PARAM_H 1
20012# endif
20013
John Criswell7a73b802003-06-30 21:59:07 +000020014# ifdef _SC_PAGESIZE
20015# define getpagesize() sysconf(_SC_PAGESIZE)
20016# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020017# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020018# include <sys/param.h>
20019# ifdef EXEC_PAGESIZE
20020# define getpagesize() EXEC_PAGESIZE
20021# else /* no EXEC_PAGESIZE */
20022# ifdef NBPG
20023# define getpagesize() NBPG * CLSIZE
20024# ifndef CLSIZE
20025# define CLSIZE 1
20026# endif /* no CLSIZE */
20027# else /* no NBPG */
20028# ifdef NBPC
20029# define getpagesize() NBPC
20030# else /* no NBPC */
20031# ifdef PAGESIZE
20032# define getpagesize() PAGESIZE
20033# endif /* PAGESIZE */
20034# endif /* no NBPC */
20035# endif /* no NBPG */
20036# endif /* no EXEC_PAGESIZE */
20037# else /* no HAVE_SYS_PARAM_H */
20038# define getpagesize() 8192 /* punt totally */
20039# endif /* no HAVE_SYS_PARAM_H */
20040# endif /* no _SC_PAGESIZE */
20041
20042#endif /* no HAVE_GETPAGESIZE */
20043
20044int
20045main ()
20046{
20047 char *data, *data2, *data3;
20048 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020049 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020050
20051 pagesize = getpagesize ();
20052
20053 /* First, make a file with some known garbage in it. */
20054 data = (char *) malloc (pagesize);
20055 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020056 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020057 for (i = 0; i < pagesize; ++i)
20058 *(data + i) = rand ();
20059 umask (0);
20060 fd = creat ("conftest.mmap", 0600);
20061 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020062 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020063 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020064 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020065 close (fd);
20066
20067 /* Next, try to mmap the file at a fixed address which already has
20068 something else allocated at it. If we can, also make sure that
20069 we see the same garbage. */
20070 fd = open ("conftest.mmap", O_RDWR);
20071 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020072 return 1;
20073 data2 = (char *) malloc (2 * pagesize);
20074 if (!data2)
20075 return 1;
20076 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020077 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020078 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020079 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020080 for (i = 0; i < pagesize; ++i)
20081 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020082 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020083
20084 /* Finally, make sure that changes to the mapped area do not
20085 percolate back to the file as seen by read(). (This is a bug on
20086 some variants of i386 svr4.0.) */
20087 for (i = 0; i < pagesize; ++i)
20088 *(data2 + i) = *(data2 + i) + 1;
20089 data3 = (char *) malloc (pagesize);
20090 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020091 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020092 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020093 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020094 for (i = 0; i < pagesize; ++i)
20095 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020096 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020097 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020098 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020099}
20100_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020101rm -f conftest$ac_exeext
20102if { (ac_try="$ac_link"
20103case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20106esac
20107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_link") 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20112 { (case "(($ac_try" in
20113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114 *) ac_try_echo=$ac_try;;
20115esac
20116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20117 (eval "$ac_try") 2>&5
20118 ac_status=$?
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020121 ac_cv_func_mmap_fixed_mapped=yes
20122else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020123 echo "$as_me: program exited with status $ac_status" >&5
20124echo "$as_me: failed program was:" >&5
20125sed 's/^/| /' conftest.$ac_ext >&5
20126
20127( exit $ac_status )
20128ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020129fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020130rm -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 +000020131fi
Reid Spencera773bd52006-08-04 18:18:08 +000020132
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020133
John Criswell7a73b802003-06-30 21:59:07 +000020134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020135{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20136echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020137if test $ac_cv_func_mmap_fixed_mapped = yes; then
20138
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020139cat >>confdefs.h <<\_ACEOF
20140#define HAVE_MMAP 1
20141_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020142
20143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020144rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020146 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20147echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20148if test "${ac_cv_func_mmap_file+set}" = set; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020150else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020151 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020152ac_cpp='$CPP $CPPFLAGS'
20153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20155ac_compiler_gnu=$ac_cv_c_compiler_gnu
20156
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020157 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020158 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020159else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020160 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020162 /* confdefs.h. */
20163_ACEOF
20164cat confdefs.h >>conftest.$ac_ext
20165cat >>conftest.$ac_ext <<_ACEOF
20166/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020167
John Criswell7a73b802003-06-30 21:59:07 +000020168#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020169#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020170#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020171
20172int
20173main ()
20174{
John Criswell7a73b802003-06-30 21:59:07 +000020175
20176 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020177 fd = creat ("foo",0777);
20178 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20179 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020180 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020181 ;
20182 return 0;
20183}
John Criswell7a73b802003-06-30 21:59:07 +000020184_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020185rm -f conftest$ac_exeext
20186if { (ac_try="$ac_link"
20187case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20190esac
20191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_link") 2>&5
20193 ac_status=$?
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20196 { (case "(($ac_try" in
20197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198 *) ac_try_echo=$ac_try;;
20199esac
20200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20201 (eval "$ac_try") 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020205 ac_cv_func_mmap_file=yes
20206else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020207 echo "$as_me: program exited with status $ac_status" >&5
20208echo "$as_me: failed program was:" >&5
20209sed 's/^/| /' conftest.$ac_ext >&5
20210
20211( exit $ac_status )
20212ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020213fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020214rm -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 +000020215fi
Reid Spencera773bd52006-08-04 18:18:08 +000020216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020217
John Criswell7a73b802003-06-30 21:59:07 +000020218 ac_ext=c
20219ac_cpp='$CPP $CPPFLAGS'
20220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20222ac_compiler_gnu=$ac_cv_c_compiler_gnu
20223
20224
20225fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020226{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20227echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020228if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020230cat >>confdefs.h <<\_ACEOF
20231#define HAVE_MMAP_FILE
20232_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020233
20234 MMAP_FILE=yes
20235
20236fi
20237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020238 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20239echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20240if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020242else
Reid Spencer582a23c2004-12-29 07:07:57 +000020243 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020244 ac_cv_need_dev_zero_for_mmap=yes
20245 else
20246 ac_cv_need_dev_zero_for_mmap=no
20247 fi
20248
20249fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020250{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20251echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020252if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020254cat >>confdefs.h <<\_ACEOF
20255#define NEED_DEV_ZERO_FOR_MMAP 1
20256_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020257
20258fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020259
Reid Spencer30fe5262007-01-20 07:48:49 +000020260 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20261 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020262 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20263echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020264 fi
20265 if test "$ac_cv_func_mmap_file" = "no"
20266 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020267 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20268echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020269 fi
John Criswellb13092b2003-07-22 21:00:24 +000020270fi
John Criswell7a73b802003-06-30 21:59:07 +000020271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020272{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20273echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020274ac_ext=cpp
20275ac_cpp='$CXXCPP $CPPFLAGS'
20276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020280cat >conftest.$ac_ext <<_ACEOF
20281/* confdefs.h. */
20282_ACEOF
20283cat confdefs.h >>conftest.$ac_ext
20284cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020285/* end confdefs.h. */
20286int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020287 volatile unsigned long val = 1;
20288 __sync_synchronize();
20289 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020290 __sync_add_and_fetch(&val, 1);
20291 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020292 return 0;
20293 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020294
20295_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020296rm -f conftest.$ac_objext conftest$ac_exeext
20297if { (ac_try="$ac_link"
20298case "(($ac_try" in
20299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300 *) ac_try_echo=$ac_try;;
20301esac
20302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303 (eval "$ac_link") 2>conftest.er1
20304 ac_status=$?
20305 grep -v '^ *+' conftest.er1 >conftest.err
20306 rm -f conftest.er1
20307 cat conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } &&
20310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20311 { (case "(($ac_try" in
20312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313 *) ac_try_echo=$ac_try;;
20314esac
20315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316 (eval "$ac_try") 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; } &&
20320 { ac_try='test -s conftest$ac_exeext'
20321 { (case "(($ac_try" in
20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323 *) ac_try_echo=$ac_try;;
20324esac
20325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326 (eval "$ac_try") 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020330 ac_ext=c
20331ac_cpp='$CPP $CPPFLAGS'
20332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20334ac_compiler_gnu=$ac_cv_c_compiler_gnu
20335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020336 { echo "$as_me:$LINENO: result: yes" >&5
20337echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020338
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020339cat >>confdefs.h <<\_ACEOF
20340#define LLVM_MULTITHREADED 1
20341_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020342
Owen Andersond4b272b2009-05-18 23:58:51 +000020343else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020344 echo "$as_me: failed program was:" >&5
20345sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020347 { echo "$as_me:$LINENO: result: no" >&5
20348echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020350cat >>confdefs.h <<\_ACEOF
20351#define LLVM_MULTITHREADED 0
20352_ACEOF
20353
20354 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20355echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020356fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020357
Owen Andersond4b272b2009-05-18 23:58:51 +000020358rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020359 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020360
John Criswell7a73b802003-06-30 21:59:07 +000020361
Nick Lewycky4372e692009-09-29 06:18:23 +000020362if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020363 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20364echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20365if test "${llvm_cv_linux_mixed+set}" = set; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020367else
20368 ac_ext=c
20369ac_cpp='$CPP $CPPFLAGS'
20370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20372ac_compiler_gnu=$ac_cv_c_compiler_gnu
20373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020374 cat >conftest.$ac_ext <<_ACEOF
20375/* confdefs.h. */
20376_ACEOF
20377cat confdefs.h >>conftest.$ac_ext
20378cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020379/* end confdefs.h. */
20380#ifndef __x86_64__
20381 error: Not x86-64 even if uname says so!
20382 #endif
20383
20384int
20385main ()
20386{
20387
20388 ;
20389 return 0;
20390}
20391_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020392rm -f conftest.$ac_objext
20393if { (ac_try="$ac_compile"
20394case "(($ac_try" in
20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396 *) ac_try_echo=$ac_try;;
20397esac
20398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399 (eval "$ac_compile") 2>conftest.er1
20400 ac_status=$?
20401 grep -v '^ *+' conftest.er1 >conftest.err
20402 rm -f conftest.er1
20403 cat conftest.err >&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } &&
20406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20407 { (case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20410esac
20411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_try") 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; } &&
20416 { ac_try='test -s conftest.$ac_objext'
20417 { (case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20420esac
20421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_try") 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020426 llvm_cv_linux_mixed=no
20427else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020428 echo "$as_me: failed program was:" >&5
20429sed 's/^/| /' conftest.$ac_ext >&5
20430
20431 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020432fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020433
Nick Lewycky4372e692009-09-29 06:18:23 +000020434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20435 ac_ext=c
20436ac_cpp='$CPP $CPPFLAGS'
20437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20439ac_compiler_gnu=$ac_cv_c_compiler_gnu
20440
20441
20442fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020443{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20444echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020445
20446 if test "$llvm_cv_linux_mixed" = "yes"; then
20447 llvm_cv_target_arch="x86"
20448 ARCH="x86"
20449 fi
20450fi
20451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020452
Reid Spencer9372f152007-07-30 20:13:24 +000020453for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020454do
20455as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20456{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20457echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20458if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20459 echo $ECHO_N "(cached) $ECHO_C" >&6
20460else
20461 cat >conftest.$ac_ext <<_ACEOF
20462/* confdefs.h. */
20463_ACEOF
20464cat confdefs.h >>conftest.$ac_ext
20465cat >>conftest.$ac_ext <<_ACEOF
20466/* end confdefs.h. */
20467/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20469#define $ac_func innocuous_$ac_func
20470
20471/* System header to define __stub macros and hopefully few prototypes,
20472 which can conflict with char $ac_func (); below.
20473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20474 <limits.h> exists even on freestanding compilers. */
20475
20476#ifdef __STDC__
20477# include <limits.h>
20478#else
20479# include <assert.h>
20480#endif
20481
20482#undef $ac_func
20483
20484/* Override any GCC internal prototype to avoid an error.
20485 Use char because int might match the return type of a GCC
20486 builtin and then its argument prototype would still apply. */
20487#ifdef __cplusplus
20488extern "C"
20489#endif
20490char $ac_func ();
20491/* The GNU C library defines this for functions which it implements
20492 to always fail with ENOSYS. Some functions are actually named
20493 something starting with __ and the normal name is an alias. */
20494#if defined __stub_$ac_func || defined __stub___$ac_func
20495choke me
20496#endif
20497
20498int
20499main ()
20500{
20501return $ac_func ();
20502 ;
20503 return 0;
20504}
20505_ACEOF
20506rm -f conftest.$ac_objext conftest$ac_exeext
20507if { (ac_try="$ac_link"
20508case "(($ac_try" in
20509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510 *) ac_try_echo=$ac_try;;
20511esac
20512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513 (eval "$ac_link") 2>conftest.er1
20514 ac_status=$?
20515 grep -v '^ *+' conftest.er1 >conftest.err
20516 rm -f conftest.er1
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } &&
20520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20521 { (case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20524esac
20525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526 (eval "$ac_try") 2>&5
20527 ac_status=$?
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; } &&
20530 { ac_try='test -s conftest$ac_exeext'
20531 { (case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20534esac
20535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536 (eval "$ac_try") 2>&5
20537 ac_status=$?
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; }; then
20540 eval "$as_ac_var=yes"
20541else
20542 echo "$as_me: failed program was:" >&5
20543sed 's/^/| /' conftest.$ac_ext >&5
20544
20545 eval "$as_ac_var=no"
20546fi
20547
20548rm -f core conftest.err conftest.$ac_objext \
20549 conftest$ac_exeext conftest.$ac_ext
20550fi
20551ac_res=`eval echo '${'$as_ac_var'}'`
20552 { echo "$as_me:$LINENO: result: $ac_res" >&5
20553echo "${ECHO_T}$ac_res" >&6; }
20554if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020555 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020556#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020557_ACEOF
20558
20559fi
20560done
20561
20562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020563{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20564echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20565if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020567else
20568 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000020569if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020570 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000020571 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20572 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020573 if test $? -eq 0 ; then
20574 llvm_cv_llvmgcc_sanity="yes"
20575 fi
20576 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020577fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020578fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020579{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20580echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020581
20582if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020583 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20584echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020585 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020586 LLVMCC1=$llvmcc1path
20587
Reid Spencer502935f2004-12-22 05:56:56 +000020588 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020589 LLVMCC1PLUS=$llvmcc1pluspath
20590
Reid Spencer502935f2004-12-22 05:56:56 +000020591 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20592 LLVMGCCDIR=$llvmgccdir
20593
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020594 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020595 LLVMGCC_LANGS=$llvmgcclangs
20596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020597 { echo "$as_me:$LINENO: result: ok" >&5
20598echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020599fi
20600
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020601SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020602
20603
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020604SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20605
20606
Reid Spencere9de0912004-08-20 09:03:57 +000020607# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020608# information into substitutions that will end up in Makefile.config.in
20609# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020610if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020611 prefix="/usr/local"
20612fi
Reid Spencere9de0912004-08-20 09:03:57 +000020613eval LLVM_PREFIX="${prefix}";
20614eval LLVM_BINDIR="${prefix}/bin";
20615eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020616eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020617eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020618eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020619eval LLVM_INCLUDEDIR="${prefix}/include";
20620eval LLVM_INFODIR="${prefix}/info";
20621eval LLVM_MANDIR="${prefix}/man";
20622LLVM_CONFIGTIME=`date`
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020634# Place the various directores into the config.h file as #defines so that we
20635# can know about the installation paths within LLVM.
20636
Reid Spencere9de0912004-08-20 09:03:57 +000020637cat >>confdefs.h <<_ACEOF
20638#define LLVM_PREFIX "$LLVM_PREFIX"
20639_ACEOF
20640
20641
20642cat >>confdefs.h <<_ACEOF
20643#define LLVM_BINDIR "$LLVM_BINDIR"
20644_ACEOF
20645
20646
20647cat >>confdefs.h <<_ACEOF
20648#define LLVM_LIBDIR "$LLVM_LIBDIR"
20649_ACEOF
20650
20651
20652cat >>confdefs.h <<_ACEOF
20653#define LLVM_DATADIR "$LLVM_DATADIR"
20654_ACEOF
20655
20656
20657cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020658#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020659_ACEOF
20660
20661
20662cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020663#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020664_ACEOF
20665
20666
20667cat >>confdefs.h <<_ACEOF
20668#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20669_ACEOF
20670
20671
20672cat >>confdefs.h <<_ACEOF
20673#define LLVM_INFODIR "$LLVM_INFODIR"
20674_ACEOF
20675
20676
20677cat >>confdefs.h <<_ACEOF
20678#define LLVM_MANDIR "$LLVM_MANDIR"
20679_ACEOF
20680
20681
20682cat >>confdefs.h <<_ACEOF
20683#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20684_ACEOF
20685
20686
Eric Christopher790e11c2007-12-01 00:34:39 +000020687cat >>confdefs.h <<_ACEOF
20688#define LLVM_HOSTTRIPLE "$host"
20689_ACEOF
20690
20691
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020692# Determine which bindings to build.
20693if test "$BINDINGS_TO_BUILD" = auto ; then
20694 BINDINGS_TO_BUILD=""
20695 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20696 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20697 fi
20698fi
20699BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20700
20701
20702# This isn't really configurey, but it avoids having to repeat the list in
20703# other files.
20704ALL_BINDINGS=ocaml
20705
20706
Gordon Henriksenf0915682007-10-02 16:42:22 +000020707# Do any work necessary to ensure that bindings have what they need.
20708binding_prereqs_failed=0
20709for a_binding in $BINDINGS_TO_BUILD ; do
20710 case "$a_binding" in
20711 ocaml)
20712 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020713 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20714echo "$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 +000020715 binding_prereqs_failed=1
20716 fi
20717 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020718 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20719echo "$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 +000020720 binding_prereqs_failed=1
20721 fi
20722 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020723 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20724echo "$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 +000020725 fi
20726 if test "x$with_ocaml_libdir" != xauto ; then
20727 OCAML_LIBDIR=$with_ocaml_libdir
20728
20729 else
20730 ocaml_stdlib="`"$OCAMLC" -where`"
20731 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20732 then
20733 # ocaml stdlib is beneath our prefix; use stdlib
20734 OCAML_LIBDIR=$ocaml_stdlib
20735
20736 else
20737 # ocaml stdlib is outside our prefix; use libdir/ocaml
20738 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20739
20740 fi
20741 fi
20742 ;;
20743 esac
20744done
20745if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020746 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20747echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20748 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020749fi
20750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020751{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20752echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20753if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020755else
20756 ac_ext=cpp
20757ac_cpp='$CXXCPP $CPPFLAGS'
20758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20761
20762 oldcxxflags="$CXXFLAGS"
20763 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020764 cat >conftest.$ac_ext <<_ACEOF
20765/* confdefs.h. */
20766_ACEOF
20767cat confdefs.h >>conftest.$ac_ext
20768cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020769/* end confdefs.h. */
20770
20771int
20772main ()
20773{
20774
20775 ;
20776 return 0;
20777}
20778_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020779rm -f conftest.$ac_objext
20780if { (ac_try="$ac_compile"
20781case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20784esac
20785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786 (eval "$ac_compile") 2>conftest.er1
20787 ac_status=$?
20788 grep -v '^ *+' conftest.er1 >conftest.err
20789 rm -f conftest.er1
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } &&
20793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20794 { (case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20797esac
20798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799 (eval "$ac_try") 2>&5
20800 ac_status=$?
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; } &&
20803 { ac_try='test -s conftest.$ac_objext'
20804 { (case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20807esac
20808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809 (eval "$ac_try") 2>&5
20810 ac_status=$?
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020813 llvm_cv_cxx_visibility_inlines_hidden=yes
20814else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020815 echo "$as_me: failed program was:" >&5
20816sed 's/^/| /' conftest.$ac_ext >&5
20817
20818 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020819fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020820
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20822 CXXFLAGS="$oldcxxflags"
20823 ac_ext=c
20824ac_cpp='$CPP $CPPFLAGS'
20825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20827ac_compiler_gnu=$ac_cv_c_compiler_gnu
20828
20829
20830fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020831{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20832echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020833if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20834 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20835
20836else
20837 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20838
20839fi
20840
Gordon Henriksenf0915682007-10-02 16:42:22 +000020841
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020842if test "$llvm_cv_link_use_r" = "yes" ; then
20843 RPATH="-Wl,-R"
20844else
20845 RPATH="-Wl,-rpath"
20846fi
20847
20848
20849if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20850 RDYNAMIC="-Wl,-export-dynamic"
20851else
20852 RDYNAMIC=""
20853fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020854
20855
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020856
Eric Christophera1cba682010-08-08 02:44:25 +000020857ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020858
Eric Christopher21d3eeb2010-08-08 09:20:39 +000020859
20860
20861
20862
20863
Douglas Gregor1555a232009-06-16 20:12:29 +000020864ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20865
20866ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20867
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020868ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20869
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020870ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20871
Chandler Carruth8b67f772009-10-26 01:35:46 +000020872ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020873
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020874
Reid Spencera773bd52006-08-04 18:18:08 +000020875ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020876
20877
Reid Spencerea949cf2006-08-16 00:45:38 +000020878ac_config_files="$ac_config_files llvm.spec"
20879
20880
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000020881ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020882
20883
Reid Spencera773bd52006-08-04 18:18:08 +000020884ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020885
20886
Reid Spencera773bd52006-08-04 18:18:08 +000020887ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020888
Reid Spencera773bd52006-08-04 18:18:08 +000020889ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020890
20891
Reid Spencera773bd52006-08-04 18:18:08 +000020892ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020893
20894
Reid Spencera773bd52006-08-04 18:18:08 +000020895ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020896
20897
Reid Spencera773bd52006-08-04 18:18:08 +000020898ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020899
20900
Reid Spencer8b2e1412006-11-17 03:32:33 +000020901ac_config_commands="$ac_config_commands runtime/Makefile"
20902
20903
Reid Spencera773bd52006-08-04 18:18:08 +000020904ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020905
20906
Reid Spencera773bd52006-08-04 18:18:08 +000020907ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020908
20909
Bill Wendlingf24eb392009-01-04 23:12:30 +000020910ac_config_commands="$ac_config_commands unittests/Makefile"
20911
20912
Reid Spencera773bd52006-08-04 18:18:08 +000020913ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020914
20915
Reid Spencera773bd52006-08-04 18:18:08 +000020916ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020917
20918
Reid Spencera773bd52006-08-04 18:18:08 +000020919ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020920
20921
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020922ac_config_commands="$ac_config_commands bindings/Makefile"
20923
20924
20925ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20926
20927
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020928
John Criswell7a73b802003-06-30 21:59:07 +000020929cat >confcache <<\_ACEOF
20930# This file is a shell script that caches the results of configure
20931# tests run on this system so they can be shared between configure
20932# scripts and configure runs, see configure's option --config-cache.
20933# It is not useful on other systems. If it contains results you don't
20934# want to keep, you may remove or edit it.
20935#
20936# config.status only pays attention to the cache file if you give it
20937# the --recheck option to rerun configure.
20938#
John Criswell0c38eaf2003-09-10 15:17:25 +000020939# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020940# loading this file, other *unset* `ac_cv_foo' will be assigned the
20941# following values.
20942
20943_ACEOF
20944
20945# The following way of writing the cache mishandles newlines in values,
20946# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020947# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020948# Ultrix sh set writes to stderr and can't be redirected directly,
20949# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020950(
20951 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20952 eval ac_val=\$$ac_var
20953 case $ac_val in #(
20954 *${as_nl}*)
20955 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020956 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20957echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020958 esac
20959 case $ac_var in #(
20960 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020961 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020962 esac ;;
20963 esac
20964 done
20965
John Criswell7a73b802003-06-30 21:59:07 +000020966 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020967 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20968 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020969 # `set' does not quote correctly, so add quotes (double-quote
20970 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020971 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020972 "s/'/'\\\\''/g;
20973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020974 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020975 *)
20976 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020978 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020979 esac |
20980 sort
20981) |
John Criswell7a73b802003-06-30 21:59:07 +000020982 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020983 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020984 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020985 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020986 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20987 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020988 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20989 :end' >>confcache
20990if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20991 if test -w "$cache_file"; then
20992 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020993 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20994echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020995 cat confcache >$cache_file
20996 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020997 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20998echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020999 fi
21000fi
21001rm -f confcache
21002
21003test "x$prefix" = xNONE && prefix=$ac_default_prefix
21004# Let make expand exec_prefix.
21005test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21006
John Criswell7a73b802003-06-30 21:59:07 +000021007DEFS=-DHAVE_CONFIG_H
21008
John Criswell0c38eaf2003-09-10 15:17:25 +000021009ac_libobjs=
21010ac_ltlibobjs=
21011for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21012 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021013 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021014 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021015 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21016 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021017 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21018 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021019done
21020LIBOBJS=$ac_libobjs
21021
21022LTLIBOBJS=$ac_ltlibobjs
21023
21024
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021025if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021026 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21027Usually this means the macro was only invoked conditionally." >&5
21028echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21029Usually this means the macro was only invoked conditionally." >&2;}
21030 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021031fi
21032if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021033 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21034Usually this means the macro was only invoked conditionally." >&5
21035echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21036Usually this means the macro was only invoked conditionally." >&2;}
21037 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021038fi
John Criswell7a73b802003-06-30 21:59:07 +000021039
21040: ${CONFIG_STATUS=./config.status}
21041ac_clean_files_save=$ac_clean_files
21042ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021043{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21044echo "$as_me: creating $CONFIG_STATUS" >&6;}
21045cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021046#! $SHELL
21047# Generated by $as_me.
21048# Run this file to recreate the current configuration.
21049# Compiler output produced by configure, useful for debugging
21050# configure, is in config.log if it exists.
21051
21052debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021053ac_cs_recheck=false
21054ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021055SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021056_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021058cat >>$CONFIG_STATUS <<\_ACEOF
21059## --------------------- ##
21060## M4sh Initialization. ##
21061## --------------------- ##
21062
21063# Be Bourne compatible
21064if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021065 emulate sh
21066 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021067 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021068 # is contrary to our usage. Disable this feature.
21069 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021070 setopt NO_GLOB_SUBST
21071else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021072 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021073fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021074BIN_SH=xpg4; export BIN_SH # for Tru64
21075DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021076
John Criswell7a73b802003-06-30 21:59:07 +000021077
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021078# PATH needs CR
21079# Avoid depending upon Character Ranges.
21080as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21081as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21082as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21083as_cr_digits='0123456789'
21084as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021085
21086# The user is always right.
21087if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021088 echo "#! /bin/sh" >conf$$.sh
21089 echo "exit 0" >>conf$$.sh
21090 chmod +x conf$$.sh
21091 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21092 PATH_SEPARATOR=';'
21093 else
21094 PATH_SEPARATOR=:
21095 fi
21096 rm -f conf$$.sh
21097fi
21098
21099# Support unset when possible.
21100if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21101 as_unset=unset
21102else
21103 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021104fi
John Criswell7a73b802003-06-30 21:59:07 +000021105
Reid Spencera773bd52006-08-04 18:18:08 +000021106
21107# IFS
21108# We need space, tab and new line, in precisely that order. Quoting is
21109# there to prevent editors from complaining about space-tab.
21110# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21111# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021112as_nl='
21113'
Reid Spencera773bd52006-08-04 18:18:08 +000021114IFS=" "" $as_nl"
21115
21116# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021117case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021118 *[\\/]* ) as_myself=$0 ;;
21119 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021120for as_dir in $PATH
21121do
21122 IFS=$as_save_IFS
21123 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021124 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21125done
Reid Spencera773bd52006-08-04 18:18:08 +000021126IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021127
Reid Spencera773bd52006-08-04 18:18:08 +000021128 ;;
21129esac
21130# We did not find ourselves, most probably we were run as `sh COMMAND'
21131# in which case we are not to be found in the path.
21132if test "x$as_myself" = x; then
21133 as_myself=$0
21134fi
21135if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021136 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21137 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021138fi
21139
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021140# Work around bugs in pre-3.0 UWIN ksh.
21141for as_var in ENV MAIL MAILPATH
21142do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021143done
21144PS1='$ '
21145PS2='> '
21146PS4='+ '
21147
21148# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021149for as_var in \
21150 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21151 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21152 LC_TELEPHONE LC_TIME
21153do
21154 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21155 eval $as_var=C; export $as_var
21156 else
21157 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021158 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021159done
Torok Edwin871384f2010-01-26 08:50:50 +000021160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021161# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021162if expr a : '\(a\)' >/dev/null 2>&1 &&
21163 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21164 as_expr=expr
21165else
21166 as_expr=false
21167fi
21168
21169if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21170 as_basename=basename
21171else
21172 as_basename=false
21173fi
21174
21175
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021176# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021177as_me=`$as_basename -- "$0" ||
21178$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21179 X"$0" : 'X\(//\)$' \| \
21180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021181echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021182 sed '/^.*\/\([^/][^/]*\)\/*$/{
21183 s//\1/
21184 q
21185 }
21186 /^X\/\(\/\/\)$/{
21187 s//\1/
21188 q
21189 }
21190 /^X\/\(\/\).*/{
21191 s//\1/
21192 q
21193 }
21194 s/.*/./; q'`
21195
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021196# CDPATH.
21197$as_unset CDPATH
21198
21199
21200
21201 as_lineno_1=$LINENO
21202 as_lineno_2=$LINENO
21203 test "x$as_lineno_1" != "x$as_lineno_2" &&
21204 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21205
21206 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21207 # uniformly replaced by the line number. The first 'sed' inserts a
21208 # line-number line after each line using $LINENO; the second 'sed'
21209 # does the real work. The second script uses 'N' to pair each
21210 # line-number line with the line containing $LINENO, and appends
21211 # trailing '-' during substitution so that $LINENO is not a special
21212 # case at line end.
21213 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21214 # scripts with optimization help from Paolo Bonzini. Blame Lee
21215 # E. McMahon (1931-1989) for sed's syntax. :-)
21216 sed -n '
21217 p
21218 /[$]LINENO/=
21219 ' <$as_myself |
21220 sed '
21221 s/[$]LINENO.*/&-/
21222 t lineno
21223 b
21224 :lineno
21225 N
21226 :loop
21227 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21228 t loop
21229 s/-\n.*//
21230 ' >$as_me.lineno &&
21231 chmod +x "$as_me.lineno" ||
21232 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21233 { (exit 1); exit 1; }; }
21234
21235 # Don't try to exec as it changes $[0], causing all sort of problems
21236 # (the dirname of $[0] is not the place where we might find the
21237 # original and so on. Autoconf is especially sensitive to this).
21238 . "./$as_me.lineno"
21239 # Exit status is that of the last command.
21240 exit
21241}
21242
21243
21244if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21245 as_dirname=dirname
21246else
21247 as_dirname=false
21248fi
Reid Spencera773bd52006-08-04 18:18:08 +000021249
21250ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021251case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021252-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021253 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021254 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021255 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021256 esac;;
21257*)
21258 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021259esac
21260
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021261if expr a : '\(a\)' >/dev/null 2>&1 &&
21262 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21263 as_expr=expr
21264else
21265 as_expr=false
21266fi
21267
John Criswell7a73b802003-06-30 21:59:07 +000021268rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021269if test -d conf$$.dir; then
21270 rm -f conf$$.dir/conf$$.file
21271else
21272 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021273 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021275echo >conf$$.file
21276if ln -s conf$$.file conf$$ 2>/dev/null; then
21277 as_ln_s='ln -s'
21278 # ... but there are two gotchas:
21279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21281 # In both cases, we have to default to `cp -p'.
21282 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021283 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021284elif ln conf$$.file conf$$ 2>/dev/null; then
21285 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021286else
21287 as_ln_s='cp -p'
21288fi
Reid Spencera773bd52006-08-04 18:18:08 +000021289rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21290rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021291
John Criswell0c38eaf2003-09-10 15:17:25 +000021292if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021293 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021294else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021295 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021296 as_mkdir_p=false
21297fi
21298
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021299# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21300# systems may use methods other than mode bits to determine executability.
21301cat >conf$$.file <<_ASEOF
21302#! /bin/sh
21303exit 0
21304_ASEOF
21305chmod +x conf$$.file
21306if test -x conf$$.file >/dev/null 2>&1; then
21307 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021308else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021309 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021310fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021311rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021312
21313# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021314as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021315
21316# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021317as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021318
21319
John Criswell7a73b802003-06-30 21:59:07 +000021320exec 6>&1
21321
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021322# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021323# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021324# values after options handling.
21325ac_log="
Eric Christopherb26697c2010-09-06 18:47:10 +000021326This file was extended by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021327generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021328
21329 CONFIG_FILES = $CONFIG_FILES
21330 CONFIG_HEADERS = $CONFIG_HEADERS
21331 CONFIG_LINKS = $CONFIG_LINKS
21332 CONFIG_COMMANDS = $CONFIG_COMMANDS
21333 $ $0 $@
21334
Reid Spencera773bd52006-08-04 18:18:08 +000021335on `(hostname || uname -n) 2>/dev/null | sed 1q`
21336"
21337
John Criswell7a73b802003-06-30 21:59:07 +000021338_ACEOF
21339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021340cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021341# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021342config_files="$ac_config_files"
21343config_headers="$ac_config_headers"
21344config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021345
Reid Spencera773bd52006-08-04 18:18:08 +000021346_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021348cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021349ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021350\`$as_me' instantiates files from templates according to the
21351current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021353Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021354
21355 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021356 -V, --version print version number, then exit
21357 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021358 -d, --debug don't remove temporary files
21359 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021360 --file=FILE[:TEMPLATE]
21361 instantiate the configuration file FILE
21362 --header=FILE[:TEMPLATE]
21363 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021364
21365Configuration files:
21366$config_files
21367
21368Configuration headers:
21369$config_headers
21370
John Criswellc764fbc2003-09-06 15:17:13 +000021371Configuration commands:
21372$config_commands
21373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021374Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021375
Reid Spencera773bd52006-08-04 18:18:08 +000021376_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021377cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021378ac_cs_version="\\
Eric Christopherb26697c2010-09-06 18:47:10 +000021379llvm config.status 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021380configured by $0, generated by GNU Autoconf 2.60,
21381 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021383Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021384This config.status script is free software; the Free Software Foundation
21385gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021386
21387ac_pwd='$ac_pwd'
21388srcdir='$srcdir'
21389INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021390_ACEOF
21391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021392cat >>$CONFIG_STATUS <<\_ACEOF
21393# If no file are specified by the user, then we need to provide default
21394# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021395ac_need_defaults=:
21396while test $# != 0
21397do
21398 case $1 in
21399 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021400 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21401 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021402 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021403 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021404 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021405 ac_option=$1
21406 ac_optarg=$2
21407 ac_shift=shift
21408 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021409 esac
21410
John Criswell0c38eaf2003-09-10 15:17:25 +000021411 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021412 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021413 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21414 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021415 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021416 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021417 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021418 debug=: ;;
21419 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021420 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021421 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021422 ac_need_defaults=false;;
21423 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021424 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021425 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021426 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021427 --he | --h)
21428 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021429 { echo "$as_me: error: ambiguous option: $1
21430Try \`$0 --help' for more information." >&2
21431 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021432 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021433 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21435 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21436 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021437
21438 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021439 -*) { echo "$as_me: error: unrecognized option: $1
21440Try \`$0 --help' for more information." >&2
21441 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021442
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021443 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021444 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021445
21446 esac
21447 shift
21448done
21449
John Criswell0c38eaf2003-09-10 15:17:25 +000021450ac_configure_extra_args=
21451
21452if $ac_cs_silent; then
21453 exec 6>/dev/null
21454 ac_configure_extra_args="$ac_configure_extra_args --silent"
21455fi
21456
21457_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021458cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021459if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021460 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21461 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021462 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021463 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021464fi
21465
John Criswell7a73b802003-06-30 21:59:07 +000021466_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021467cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021468exec 5>>config.log
21469{
21470 echo
21471 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21472## Running $as_me. ##
21473_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021474 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021475} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021476
Reid Spencera773bd52006-08-04 18:18:08 +000021477_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021478cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021479#
Reid Spencera773bd52006-08-04 18:18:08 +000021480# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021481#
Reid Spencerc0682832005-02-24 19:05:19 +000021482llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021483
21484_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021486cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021487
21488# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021489for ac_config_target in $ac_config_targets
21490do
Reid Spencera773bd52006-08-04 18:18:08 +000021491 case $ac_config_target in
21492 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021493 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021494 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21495 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021496 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021497 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000021498 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021499 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021500 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021501 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021502 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21503 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21504 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21505 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21506 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21507 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021508 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021509 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21510 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021511 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021512 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21513 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21514 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021515 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21516 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021517
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021518 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21519echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21520 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021521 esac
21522done
21523
Reid Spencera773bd52006-08-04 18:18:08 +000021524
John Criswell7a73b802003-06-30 21:59:07 +000021525# If the user did not use the arguments to specify the items to instantiate,
21526# then the envvar interface is used. Set only those that are not.
21527# We use the long form for the default assignment because of an extremely
21528# bizarre bug on SunOS 4.1.3.
21529if $ac_need_defaults; then
21530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21531 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021532 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021533fi
21534
John Criswell0c38eaf2003-09-10 15:17:25 +000021535# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021536# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021537# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021538# Hook for its removal unless debugging.
21539# Note that there is a small window in which the directory will not be cleaned:
21540# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021541$debug ||
21542{
Reid Spencera773bd52006-08-04 18:18:08 +000021543 tmp=
21544 trap 'exit_status=$?
21545 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21546' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021547 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021548}
John Criswell7a73b802003-06-30 21:59:07 +000021549# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021550
John Criswell7a73b802003-06-30 21:59:07 +000021551{
Reid Spencera773bd52006-08-04 18:18:08 +000021552 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021553 test -n "$tmp" && test -d "$tmp"
21554} ||
21555{
Reid Spencera773bd52006-08-04 18:18:08 +000021556 tmp=./conf$$-$RANDOM
21557 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021558} ||
21559{
21560 echo "$me: cannot create a temporary directory in ." >&2
21561 { (exit 1); exit 1; }
21562}
John Criswell7a73b802003-06-30 21:59:07 +000021563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021564#
21565# Set up the sed scripts for CONFIG_FILES section.
21566#
21567
21568# No need to generate the scripts if there are no CONFIG_FILES.
21569# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021570if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021571
21572_ACEOF
21573
Reid Spencera773bd52006-08-04 18:18:08 +000021574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021575
Reid Spencera773bd52006-08-04 18:18:08 +000021576ac_delim='%!_!# '
21577for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021578 cat >conf$$subs.sed <<_ACEOF
21579SHELL!$SHELL$ac_delim
21580PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21581PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21582PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21583PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21584PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21585PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21586exec_prefix!$exec_prefix$ac_delim
21587prefix!$prefix$ac_delim
21588program_transform_name!$program_transform_name$ac_delim
21589bindir!$bindir$ac_delim
21590sbindir!$sbindir$ac_delim
21591libexecdir!$libexecdir$ac_delim
21592datarootdir!$datarootdir$ac_delim
21593datadir!$datadir$ac_delim
21594sysconfdir!$sysconfdir$ac_delim
21595sharedstatedir!$sharedstatedir$ac_delim
21596localstatedir!$localstatedir$ac_delim
21597includedir!$includedir$ac_delim
21598oldincludedir!$oldincludedir$ac_delim
21599docdir!$docdir$ac_delim
21600infodir!$infodir$ac_delim
21601htmldir!$htmldir$ac_delim
21602dvidir!$dvidir$ac_delim
21603pdfdir!$pdfdir$ac_delim
21604psdir!$psdir$ac_delim
21605libdir!$libdir$ac_delim
21606localedir!$localedir$ac_delim
21607mandir!$mandir$ac_delim
21608DEFS!$DEFS$ac_delim
21609ECHO_C!$ECHO_C$ac_delim
21610ECHO_N!$ECHO_N$ac_delim
21611ECHO_T!$ECHO_T$ac_delim
21612LIBS!$LIBS$ac_delim
21613build_alias!$build_alias$ac_delim
21614host_alias!$host_alias$ac_delim
21615target_alias!$target_alias$ac_delim
21616LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21617subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021618ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21619LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021620build!$build$ac_delim
21621build_cpu!$build_cpu$ac_delim
21622build_vendor!$build_vendor$ac_delim
21623build_os!$build_os$ac_delim
21624host!$host$ac_delim
21625host_cpu!$host_cpu$ac_delim
21626host_vendor!$host_vendor$ac_delim
21627host_os!$host_os$ac_delim
21628target!$target$ac_delim
21629target_cpu!$target_cpu$ac_delim
21630target_vendor!$target_vendor$ac_delim
21631target_os!$target_os$ac_delim
21632OS!$OS$ac_delim
21633HOST_OS!$HOST_OS$ac_delim
21634TARGET_OS!$TARGET_OS$ac_delim
21635LINKALL!$LINKALL$ac_delim
21636NOLINKALL!$NOLINKALL$ac_delim
21637LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21638LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21639ARCH!$ARCH$ac_delim
21640ENDIAN!$ENDIAN$ac_delim
21641CC!$CC$ac_delim
21642CFLAGS!$CFLAGS$ac_delim
21643LDFLAGS!$LDFLAGS$ac_delim
21644CPPFLAGS!$CPPFLAGS$ac_delim
21645ac_ct_CC!$ac_ct_CC$ac_delim
21646EXEEXT!$EXEEXT$ac_delim
21647OBJEXT!$OBJEXT$ac_delim
21648CPP!$CPP$ac_delim
21649GREP!$GREP$ac_delim
21650EGREP!$EGREP$ac_delim
21651LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21652BUILD_CC!$BUILD_CC$ac_delim
21653BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21654BUILD_CXX!$BUILD_CXX$ac_delim
21655CVSBUILD!$CVSBUILD$ac_delim
21656ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21657ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21658DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21659ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21660EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21661DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21662DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21663JIT!$JIT$ac_delim
21664TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21665ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21666ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21667ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021668ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021669ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021670TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21671LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21672LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21673LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21674LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21675ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021676_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021678 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021679 break
21680 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021681 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21682echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21683 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021684 else
21685 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021686 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021687done
21688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021689ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21690if test -n "$ac_eof"; then
21691 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21692 ac_eof=`expr $ac_eof + 1`
21693fi
21694
21695cat >>$CONFIG_STATUS <<_ACEOF
21696cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21697/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021698_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021699sed '
21700s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21701s/^/s,@/; s/!/@,|#_!!_#|/
21702:n
21703t n
21704s/'"$ac_delim"'$/,g/; t
21705s/$/\\/; p
21706N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21707' >>$CONFIG_STATUS <conf$$subs.sed
21708rm -f conf$$subs.sed
21709cat >>$CONFIG_STATUS <<_ACEOF
21710CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021711_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021712
21713
21714ac_delim='%!_!# '
21715for ac_last_try in false false false false false :; do
21716 cat >conf$$subs.sed <<_ACEOF
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021717CLANGPATH!$CLANGPATH$ac_delim
21718CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021719ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021720OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021721EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21722BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021723CXX!$CXX$ac_delim
21724CXXFLAGS!$CXXFLAGS$ac_delim
21725ac_ct_CXX!$ac_ct_CXX$ac_delim
21726NM!$NM$ac_delim
21727ifGNUmake!$ifGNUmake$ac_delim
21728LN_S!$LN_S$ac_delim
21729CMP!$CMP$ac_delim
21730CP!$CP$ac_delim
21731DATE!$DATE$ac_delim
21732FIND!$FIND$ac_delim
21733MKDIR!$MKDIR$ac_delim
21734MV!$MV$ac_delim
21735RANLIB!$RANLIB$ac_delim
21736AR!$AR$ac_delim
21737RM!$RM$ac_delim
21738SED!$SED$ac_delim
21739TAR!$TAR$ac_delim
21740BINPWD!$BINPWD$ac_delim
21741GRAPHVIZ!$GRAPHVIZ$ac_delim
21742DOT!$DOT$ac_delim
21743FDP!$FDP$ac_delim
21744NEATO!$NEATO$ac_delim
21745TWOPI!$TWOPI$ac_delim
21746CIRCO!$CIRCO$ac_delim
21747GV!$GV$ac_delim
21748DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021749XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021750PERL!$PERL$ac_delim
21751HAVE_PERL!$HAVE_PERL$ac_delim
21752INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21753INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21754INSTALL_DATA!$INSTALL_DATA$ac_delim
21755BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021756CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021757DOXYGEN!$DOXYGEN$ac_delim
21758GROFF!$GROFF$ac_delim
21759GZIP!$GZIP$ac_delim
21760POD2HTML!$POD2HTML$ac_delim
21761POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021762PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021763RUNTEST!$RUNTEST$ac_delim
21764TCLSH!$TCLSH$ac_delim
21765ZIP!$ZIP$ac_delim
21766OCAMLC!$OCAMLC$ac_delim
21767OCAMLOPT!$OCAMLOPT$ac_delim
21768OCAMLDEP!$OCAMLDEP$ac_delim
21769OCAMLDOC!$OCAMLDOC$ac_delim
21770GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021771HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021772INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21773INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21774CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21775CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21776LIBADD_DL!$LIBADD_DL$ac_delim
21777LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21778LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21779LLVMGCC!$LLVMGCC$ac_delim
21780LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021781LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021782NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21783NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21784USE_UDIS86!$USE_UDIS86$ac_delim
21785USE_OPROFILE!$USE_OPROFILE$ac_delim
21786HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21787HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21788MMAP_FILE!$MMAP_FILE$ac_delim
21789LLVMCC1!$LLVMCC1$ac_delim
21790LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21791LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021792LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21793SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021794SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021795LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21796LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21797LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21798LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21799LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21800LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21801LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21802LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21803LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21804LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21805BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21806ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21807OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21808ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21809RPATH!$RPATH$ac_delim
21810RDYNAMIC!$RDYNAMIC$ac_delim
21811LIBOBJS!$LIBOBJS$ac_delim
21812LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021813_ACEOF
21814
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021815 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021816 break
21817 elif $ac_last_try; then
21818 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21819echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21820 { (exit 1); exit 1; }; }
21821 else
21822 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21823 fi
21824done
21825
21826ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21827if test -n "$ac_eof"; then
21828 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21829 ac_eof=`expr $ac_eof + 1`
21830fi
21831
21832cat >>$CONFIG_STATUS <<_ACEOF
21833cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021834/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021835_ACEOF
21836sed '
21837s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21838s/^/s,@/; s/!/@,|#_!!_#|/
21839:n
21840t n
21841s/'"$ac_delim"'$/,g/; t
21842s/$/\\/; p
21843N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21844' >>$CONFIG_STATUS <conf$$subs.sed
21845rm -f conf$$subs.sed
21846cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021847CEOF$ac_eof
21848_ACEOF
21849
21850
Reid Spencera773bd52006-08-04 18:18:08 +000021851# VPATH may cause trouble with some makes, so we remove $(srcdir),
21852# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21853# trailing colons and then remove the whole line if VPATH becomes empty
21854# (actually we leave an empty line to preserve line numbers).
21855if test "x$srcdir" = x.; then
21856 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21857s/:*\$(srcdir):*/:/
21858s/:*\${srcdir}:*/:/
21859s/:*@srcdir@:*/:/
21860s/^\([^=]*=[ ]*\):*/\1/
21861s/:*$//
21862s/^[^=]*=[ ]*$//
21863}'
21864fi
21865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021866cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021867fi # test -n "$CONFIG_FILES"
21868
Reid Spencera773bd52006-08-04 18:18:08 +000021869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021870for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021871do
21872 case $ac_tag in
21873 :[FHLC]) ac_mode=$ac_tag; continue;;
21874 esac
21875 case $ac_mode$ac_tag in
21876 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021877 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21878echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21879 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021880 :[FH]-) ac_tag=-:-;;
21881 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21882 esac
21883 ac_save_IFS=$IFS
21884 IFS=:
21885 set x $ac_tag
21886 IFS=$ac_save_IFS
21887 shift
21888 ac_file=$1
21889 shift
21890
21891 case $ac_mode in
21892 :L) ac_source=$1;;
21893 :[FH])
21894 ac_file_inputs=
21895 for ac_f
21896 do
21897 case $ac_f in
21898 -) ac_f="$tmp/stdin";;
21899 *) # Look for the file first in the build tree, then in the source tree
21900 # (if the path is not absolute). The absolute path cannot be DOS-style,
21901 # because $ac_f cannot contain `:'.
21902 test -f "$ac_f" ||
21903 case $ac_f in
21904 [\\/$]*) false;;
21905 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21906 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021907 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21908echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21909 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021910 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021911 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021912 done
21913
21914 # Let's still pretend it is `configure' which instantiates (i.e., don't
21915 # use $as_me), people would be surprised to read:
21916 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021917 configure_input="Generated from "`IFS=:
21918 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021919 if test x"$ac_file" != x-; then
21920 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021921 { echo "$as_me:$LINENO: creating $ac_file" >&5
21922echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021923 fi
21924
21925 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021926 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021927 esac
21928 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021929 esac
21930
Reid Spencera773bd52006-08-04 18:18:08 +000021931 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021932$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021933 X"$ac_file" : 'X\(//\)[^/]' \| \
21934 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021935 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021936echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21938 s//\1/
21939 q
21940 }
21941 /^X\(\/\/\)[^/].*/{
21942 s//\1/
21943 q
21944 }
21945 /^X\(\/\/\)$/{
21946 s//\1/
21947 q
21948 }
21949 /^X\(\/\).*/{
21950 s//\1/
21951 q
21952 }
21953 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021954 { as_dir="$ac_dir"
21955 case $as_dir in #(
21956 -*) as_dir=./$as_dir;;
21957 esac
21958 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21959 as_dirs=
21960 while :; do
21961 case $as_dir in #(
21962 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21963 *) as_qdir=$as_dir;;
21964 esac
21965 as_dirs="'$as_qdir' $as_dirs"
21966 as_dir=`$as_dirname -- "$as_dir" ||
21967$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21968 X"$as_dir" : 'X\(//\)[^/]' \| \
21969 X"$as_dir" : 'X\(//\)$' \| \
21970 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21971echo X"$as_dir" |
21972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21973 s//\1/
21974 q
21975 }
21976 /^X\(\/\/\)[^/].*/{
21977 s//\1/
21978 q
21979 }
21980 /^X\(\/\/\)$/{
21981 s//\1/
21982 q
21983 }
21984 /^X\(\/\).*/{
21985 s//\1/
21986 q
21987 }
21988 s/.*/./; q'`
21989 test -d "$as_dir" && break
21990 done
21991 test -z "$as_dirs" || eval "mkdir $as_dirs"
21992 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21993echo "$as_me: error: cannot create directory $as_dir" >&2;}
21994 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021995 ac_builddir=.
21996
Reid Spencera773bd52006-08-04 18:18:08 +000021997case "$ac_dir" in
21998.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21999*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022000 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022001 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022002 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022003 case $ac_top_builddir_sub in
22004 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22005 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22006 esac ;;
22007esac
22008ac_abs_top_builddir=$ac_pwd
22009ac_abs_builddir=$ac_pwd$ac_dir_suffix
22010# for backward compatibility:
22011ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022012
22013case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022014 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022015 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022016 ac_top_srcdir=$ac_top_builddir_sub
22017 ac_abs_top_srcdir=$ac_pwd ;;
22018 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022019 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022020 ac_top_srcdir=$srcdir
22021 ac_abs_top_srcdir=$srcdir ;;
22022 *) # Relative name.
22023 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22024 ac_top_srcdir=$ac_top_build_prefix$srcdir
22025 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022026esac
Reid Spencera773bd52006-08-04 18:18:08 +000022027ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022028
John Criswell7a73b802003-06-30 21:59:07 +000022029
Reid Spencera773bd52006-08-04 18:18:08 +000022030 case $ac_mode in
22031 :F)
22032 #
22033 # CONFIG_FILE
22034 #
John Criswell7a73b802003-06-30 21:59:07 +000022035
22036 case $INSTALL in
22037 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022038 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022039 esac
John Criswell7a73b802003-06-30 21:59:07 +000022040_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022042cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022043# If the template does not know about datarootdir, expand it.
22044# FIXME: This hack should be removed a few years after 2.60.
22045ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022046
22047case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022048 p
22049 q
22050}
22051/@datadir@/p
22052/@docdir@/p
22053/@infodir@/p
22054/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022055/@mandir@/p
22056' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022057*datarootdir*) ac_datarootdir_seen=yes;;
22058*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022059 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22060echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022061_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022062cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022063 ac_datarootdir_hack='
22064 s&@datadir@&$datadir&g
22065 s&@docdir@&$docdir&g
22066 s&@infodir@&$infodir&g
22067 s&@localedir@&$localedir&g
22068 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022069 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022070esac
22071_ACEOF
22072
22073# Neutralize VPATH when `$srcdir' = `.'.
22074# Shell code in configure.ac might set extrasub.
22075# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022076cat >>$CONFIG_STATUS <<_ACEOF
22077 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022078$extrasub
22079_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022080cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022081:t
22082/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022083s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022084s&@top_builddir@&$ac_top_builddir_sub&;t t
22085s&@srcdir@&$ac_srcdir&;t t
22086s&@abs_srcdir@&$ac_abs_srcdir&;t t
22087s&@top_srcdir@&$ac_top_srcdir&;t t
22088s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22089s&@builddir@&$ac_builddir&;t t
22090s&@abs_builddir@&$ac_abs_builddir&;t t
22091s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22092s&@INSTALL@&$ac_INSTALL&;t t
22093$ac_datarootdir_hack
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022094" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022095
Reid Spencera773bd52006-08-04 18:18:08 +000022096test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22097 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22098 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022099 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022100which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022101echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022102which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022103
Reid Spencera773bd52006-08-04 18:18:08 +000022104 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022105 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022106 -) cat "$tmp/out"; rm -f "$tmp/out";;
22107 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22108 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022109 ;;
22110 :H)
22111 #
22112 # CONFIG_HEADER
22113 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022114_ACEOF
22115
22116# Transform confdefs.h into a sed script `conftest.defines', that
22117# substitutes the proper values into config.h.in to produce config.h.
22118rm -f conftest.defines conftest.tail
22119# First, append a space to every undef/define line, to ease matching.
22120echo 's/$/ /' >conftest.defines
22121# Then, protect against being on the right side of a sed subst, or in
22122# an unquoted here document, in config.status. If some macros were
22123# called several times there might be several #defines for the same
22124# symbol, which is useless. But do not sort them, since the last
22125# AC_DEFINE must be honored.
22126ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22127# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22128# NAME is the cpp macro being defined, VALUE is the value it is being given.
22129# PARAMS is the parameter list in the macro definition--in most cases, it's
22130# just an empty string.
22131ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22132ac_dB='\\)[ (].*,\\1define\\2'
22133ac_dC=' '
22134ac_dD=' ,'
22135
22136uniq confdefs.h |
22137 sed -n '
22138 t rset
22139 :rset
22140 s/^[ ]*#[ ]*define[ ][ ]*//
22141 t ok
22142 d
22143 :ok
22144 s/[\\&,]/\\&/g
22145 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22146 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22147 ' >>conftest.defines
22148
22149# Remove the space that was appended to ease matching.
22150# Then replace #undef with comments. This is necessary, for
22151# example, in the case of _POSIX_SOURCE, which is predefined and required
22152# on some systems where configure will not decide to define it.
22153# (The regexp can be short, since the line contains either #define or #undef.)
22154echo 's/ $//
22155s,^[ #]*u.*,/* & */,' >>conftest.defines
22156
22157# Break up conftest.defines:
22158ac_max_sed_lines=50
22159
22160# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22161# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22162# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22163# et cetera.
22164ac_in='$ac_file_inputs'
22165ac_out='"$tmp/out1"'
22166ac_nxt='"$tmp/out2"'
22167
22168while :
22169do
22170 # Write a here document:
22171 cat >>$CONFIG_STATUS <<_ACEOF
22172 # First, check the format of the line:
22173 cat >"\$tmp/defines.sed" <<\\CEOF
22174/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22175/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22176b
22177:def
22178_ACEOF
22179 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22180 echo 'CEOF
22181 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22182 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22183 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22184 grep . conftest.tail >/dev/null || break
22185 rm -f conftest.defines
22186 mv conftest.tail conftest.defines
22187done
22188rm -f conftest.defines conftest.tail
22189
22190echo "ac_result=$ac_in" >>$CONFIG_STATUS
22191cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022192 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022193 echo "/* $configure_input */" >"$tmp/config.h"
22194 cat "$ac_result" >>"$tmp/config.h"
22195 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22196 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22197echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022198 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022199 rm -f $ac_file
22200 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022201 fi
22202 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022203 echo "/* $configure_input */"
22204 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022205 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022206 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022207 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022208
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022209 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22210echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022211 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022212 esac
John Criswell7a73b802003-06-30 21:59:07 +000022213
Reid Spencera773bd52006-08-04 18:18:08 +000022214
22215 case $ac_file$ac_mode in
22216 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022217 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022218 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022219 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022220 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022221 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022222 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022223 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022224 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022225 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022226 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022227 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022228 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022229 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022230 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022231 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022232 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022233 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022234 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022235 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022236 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022237 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022238 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022239 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022240 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022241 ${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 +000022242
22243 esac
22244done # for ac_tag
22245
John Criswell7a73b802003-06-30 21:59:07 +000022246
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022247{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022248_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022249chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022250ac_clean_files=$ac_clean_files_save
22251
22252
22253# configure is writing to config.log, and then calls config.status.
22254# config.status does its own redirection, appending to config.log.
22255# Unfortunately, on DOS this fails, as config.log is still kept open
22256# by configure, so config.status won't be able to write to it; its
22257# output is simply discarded. So we exec the FD to /dev/null,
22258# effectively closing config.log, so it can be properly (re)opened and
22259# appended to by config.status. When coming back to configure, we
22260# need to make the FD available again.
22261if test "$no_create" != yes; then
22262 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022263 ac_config_status_args=
22264 test "$silent" = yes &&
22265 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022266 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022267 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022268 exec 5>>config.log
22269 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22270 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022271 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022272fi
22273
John Criswell12399a12003-09-30 15:55:44 +000022274#
22275# CONFIG_SUBDIRS section.
22276#
22277if test "$no_recursion" != yes; then
22278
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022279 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022280 ac_sub_configure_args=
22281 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022282 eval "set x $ac_configure_args"
22283 shift
22284 for ac_arg
22285 do
John Criswell12399a12003-09-30 15:55:44 +000022286 if test -n "$ac_prev"; then
22287 ac_prev=
22288 continue
22289 fi
22290 case $ac_arg in
22291 -cache-file | --cache-file | --cache-fil | --cache-fi \
22292 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22293 ac_prev=cache_file ;;
22294 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22295 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22296 | --c=*)
22297 ;;
22298 --config-cache | -C)
22299 ;;
22300 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22301 ac_prev=srcdir ;;
22302 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22303 ;;
22304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22305 ac_prev=prefix ;;
22306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22307 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022308 *)
22309 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022310 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022311 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022312 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022313 esac
22314 done
22315
22316 # Always prepend --prefix to ensure using the same prefix
22317 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022318 ac_arg="--prefix=$prefix"
22319 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022320 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022321 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022322 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022323
22324 ac_popdir=`pwd`
22325 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22326
22327 # Do not complain, so a configure script can configure whichever
22328 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022329 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022330
Reid Spencera773bd52006-08-04 18:18:08 +000022331 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022332 echo "$as_me:$LINENO: $ac_msg" >&5
22333 echo "$ac_msg" >&6
22334 { as_dir="$ac_dir"
22335 case $as_dir in #(
22336 -*) as_dir=./$as_dir;;
22337 esac
22338 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22339 as_dirs=
22340 while :; do
22341 case $as_dir in #(
22342 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22343 *) as_qdir=$as_dir;;
22344 esac
22345 as_dirs="'$as_qdir' $as_dirs"
22346 as_dir=`$as_dirname -- "$as_dir" ||
22347$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22348 X"$as_dir" : 'X\(//\)[^/]' \| \
22349 X"$as_dir" : 'X\(//\)$' \| \
22350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22351echo X"$as_dir" |
22352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22353 s//\1/
22354 q
22355 }
22356 /^X\(\/\/\)[^/].*/{
22357 s//\1/
22358 q
22359 }
22360 /^X\(\/\/\)$/{
22361 s//\1/
22362 q
22363 }
22364 /^X\(\/\).*/{
22365 s//\1/
22366 q
22367 }
22368 s/.*/./; q'`
22369 test -d "$as_dir" && break
22370 done
22371 test -z "$as_dirs" || eval "mkdir $as_dirs"
22372 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22373echo "$as_me: error: cannot create directory $as_dir" >&2;}
22374 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022375 ac_builddir=.
22376
Reid Spencera773bd52006-08-04 18:18:08 +000022377case "$ac_dir" in
22378.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22379*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022381 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022382 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022383 case $ac_top_builddir_sub in
22384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22386 esac ;;
22387esac
22388ac_abs_top_builddir=$ac_pwd
22389ac_abs_builddir=$ac_pwd$ac_dir_suffix
22390# for backward compatibility:
22391ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022392
22393case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022394 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022395 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022396 ac_top_srcdir=$ac_top_builddir_sub
22397 ac_abs_top_srcdir=$ac_pwd ;;
22398 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022399 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022400 ac_top_srcdir=$srcdir
22401 ac_abs_top_srcdir=$srcdir ;;
22402 *) # Relative name.
22403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22404 ac_top_srcdir=$ac_top_build_prefix$srcdir
22405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022406esac
Reid Spencera773bd52006-08-04 18:18:08 +000022407ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022408
22409
Reid Spencera773bd52006-08-04 18:18:08 +000022410 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022411
22412 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022413 if test -f "$ac_srcdir/configure.gnu"; then
22414 ac_sub_configure=$ac_srcdir/configure.gnu
22415 elif test -f "$ac_srcdir/configure"; then
22416 ac_sub_configure=$ac_srcdir/configure
22417 elif test -f "$ac_srcdir/configure.in"; then
22418 # This should be Cygnus configure.
22419 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022420 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022421 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22422echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022423 ac_sub_configure=
22424 fi
22425
22426 # The recursion is here.
22427 if test -n "$ac_sub_configure"; then
22428 # Make the cache file name correct relative to the subdirectory.
22429 case $cache_file in
22430 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022431 *) # Relative name.
22432 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022433 esac
22434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022435 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22436echo "$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 +000022437 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022438 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22439 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022440 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22441echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22442 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022443 fi
22444
Reid Spencera773bd52006-08-04 18:18:08 +000022445 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022446 done
22447fi
22448