blob: 1dec712f89b14a01f8062640b49c57e50771b90c [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
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000692ENABLE_SHARED
Daniel Dunbardd464df2010-05-10 20:11:56 +0000693ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000694TARGETS_TO_BUILD
695LLVM_ENUM_TARGETS
696LLVM_ENUM_ASM_PRINTERS
697LLVM_ENUM_ASM_PARSERS
698LLVM_ENUM_DISASSEMBLERS
699ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000700CLANGPATH
701CLANGXXPATH
702ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703OPTIMIZE_OPTION
704EXTRA_OPTIONS
705BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000706CXX
707CXXFLAGS
708ac_ct_CXX
709NM
710ifGNUmake
711LN_S
712CMP
713CP
714DATE
715FIND
716MKDIR
717MV
718RANLIB
719AR
720RM
721SED
722TAR
723BINPWD
724GRAPHVIZ
725DOT
726FDP
727NEATO
728TWOPI
729CIRCO
730GV
731DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000732XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000733PERL
734HAVE_PERL
735INSTALL_PROGRAM
736INSTALL_SCRIPT
737INSTALL_DATA
738BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000739CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000740DOXYGEN
741GROFF
742GZIP
743POD2HTML
744POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000745PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000746RUNTEST
747TCLSH
748ZIP
749OCAMLC
750OCAMLOPT
751OCAMLDEP
752OCAMLDOC
753GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000754HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000755INSTALL_LTDL_TRUE
756INSTALL_LTDL_FALSE
757CONVENIENCE_LTDL_TRUE
758CONVENIENCE_LTDL_FALSE
759LIBADD_DL
760LLVMGCCCOMMAND
761LLVMGXXCOMMAND
762LLVMGCC
763LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000764LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000765NO_VARIADIC_MACROS
766NO_MISSING_FIELD_INITIALIZERS
767USE_UDIS86
768USE_OPROFILE
769HAVE_PTHREAD
770HUGE_VAL_SANITY
771MMAP_FILE
772LLVMCC1
773LLVMCC1PLUS
774LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775LLVMGCC_LANGS
776SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000777SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000778LLVM_PREFIX
779LLVM_BINDIR
780LLVM_LIBDIR
781LLVM_DATADIR
782LLVM_DOCSDIR
783LLVM_ETCDIR
784LLVM_INCLUDEDIR
785LLVM_INFODIR
786LLVM_MANDIR
787LLVM_CONFIGTIME
788BINDINGS_TO_BUILD
789ALL_BINDINGS
790OCAML_LIBDIR
791ENABLE_VISIBILITY_INLINES_HIDDEN
792RPATH
793RDYNAMIC
794LIBOBJS
795LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000796ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000797 ac_precious_vars='build_alias
798host_alias
799target_alias
800CC
801CFLAGS
802LDFLAGS
803CPPFLAGS
804CPP
805CXX
806CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000807CCC'
John Criswell0157f502010-03-19 21:31:39 +0000808ac_subdirs_all='projects/llvm-gcc
809projects/test-suite
810projects/llvm-test
811projects/poolalloc
812projects/llvm-poolalloc
813projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000815projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000817projects/llvm-java
818projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000819projects/safecode
Reid Spencera773bd52006-08-04 18:18:08 +0000820projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825# The variables have the same names as the options, with
826# dashes changed to underlines.
827cache_file=/dev/null
828exec_prefix=NONE
829no_create=
830no_recursion=
831prefix=NONE
832program_prefix=NONE
833program_suffix=NONE
834program_transform_name=s,x,x,
835silent=
836site=
837srcdir=
838verbose=
839x_includes=NONE
840x_libraries=NONE
841
842# Installation directory options.
843# These are left unexpanded so users can "make install exec_prefix=/foo"
844# and all the variables that are supposed to be based on exec_prefix
845# by default will actually change.
846# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000847# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000848bindir='${exec_prefix}/bin'
849sbindir='${exec_prefix}/sbin'
850libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000851datarootdir='${prefix}/share'
852datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000853sysconfdir='${prefix}/etc'
854sharedstatedir='${prefix}/com'
855localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000856includedir='${prefix}/include'
857oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859infodir='${datarootdir}/info'
860htmldir='${docdir}'
861dvidir='${docdir}'
862pdfdir='${docdir}'
863psdir='${docdir}'
864libdir='${exec_prefix}/lib'
865localedir='${datarootdir}/locale'
866mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000867
868ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000869ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000870for ac_option
871do
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000874 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000875 ac_prev=
876 continue
877 fi
878
Reid Spencera773bd52006-08-04 18:18:08 +0000879 case $ac_option in
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *) ac_optarg=yes ;;
882 esac
John Criswell7a73b802003-06-30 21:59:07 +0000883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
Reid Spencera773bd52006-08-04 18:18:08 +0000886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
Reid Spencera773bd52006-08-04 18:18:08 +0000910 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000911 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000913 datadir=$ac_optarg ;;
914
Reid Spencera773bd52006-08-04 18:18:08 +0000915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
John Criswell7a73b802003-06-30 21:59:07 +0000922 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000923 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000924 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000930
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
935
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000940
941 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000942 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000943 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
Reid Spencera773bd52006-08-04 18:18:08 +0000975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
John Criswell7a73b802003-06-30 21:59:07 +0000981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
Reid Spencera773bd52006-08-04 18:18:08 +00001005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
John Criswell7a73b802003-06-30 21:59:07 +00001010 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001011 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
Reid Spencera773bd52006-08-04 18:18:08 +00001079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
John Criswell7a73b802003-06-30 21:59:07 +00001089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1098
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1126
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137
1138 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001139 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001140 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package| sed 's/-/_/g'`
1145 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001146
1147 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001149 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package | sed 's/-/_/g'`
1154 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1166
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001185 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001186 export $ac_envvar ;;
1187
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 ;;
1195
1196 esac
1197done
1198
1199if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201 { echo "$as_me: error: missing argument to $ac_option" >&2
1202 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001203fi
1204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001205# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001210do
Reid Spencera773bd52006-08-04 18:18:08 +00001211 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001212 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001215 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001218done
1219
1220# There might be people who depend on the old broken behavior: `$host'
1221# used to hold the argument of --host etc.
1222# FIXME: To remove some day.
1223build=$build_alias
1224host=$host_alias
1225target=$target_alias
1226
1227# FIXME: To remove some day.
1228if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236fi
1237
1238ac_tool_prefix=
1239test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241test "$silent" = yes && exec 6>/dev/null
1242
1243
Reid Spencera773bd52006-08-04 18:18:08 +00001244ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245ac_ls_di=`ls -di .` &&
1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001247 { echo "$as_me: error: Working directory cannot be determined" >&2
1248 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001249test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001250 { echo "$as_me: error: pwd does not report name of working directory" >&2
1251 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001252
1253
John Criswell7a73b802003-06-30 21:59:07 +00001254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001257 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001258 ac_confdir=`$as_dirname -- "$0" ||
1259$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$0" : 'X\(//\)[^/]' \| \
1261 X"$0" : 'X\(//\)$' \| \
1262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001281 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001282 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001283 srcdir=..
1284 fi
1285else
1286 ac_srcdir_defaulted=no
1287fi
Reid Spencera773bd52006-08-04 18:18:08 +00001288if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001292fi
Reid Spencera773bd52006-08-04 18:18:08 +00001293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001297 pwd)`
1298# When building in place, set srcdir=.
1299if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1301fi
1302# Remove unnecessary trailing slashes from srcdir.
1303# Double slashes in file names in object file debugging info
1304# mess up M-x gdb in Emacs.
1305case $srcdir in
1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307esac
1308for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313done
John Criswell7a73b802003-06-30 21:59:07 +00001314
1315#
1316# Report the --help message.
1317#
1318if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001322\`configure' configures llvm 2.9svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001323
1324Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327VAR=VALUE. See below for descriptions of some of the useful variables.
1328
1329Defaults for the options are specified in brackets.
1330
1331Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341
John Criswell7a73b802003-06-30 21:59:07 +00001342Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001344 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001346 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001347
1348By default, \`make install' will install all the files in
1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351for instance \`--prefix=\$HOME'.
1352
1353For better control, use the options below.
1354
1355Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001375_ACEOF
1376
1377 cat <<\_ACEOF
1378
1379System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1383_ACEOF
1384fi
1385
1386if test -n "$ac_init_help"; then
1387 case $ac_init_help in
Eric Christopherb26697c2010-09-06 18:47:10 +00001388 short | recursive ) echo "Configuration of llvm 2.9svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001389 esac
1390 cat <<\_ACEOF
1391
1392Optional Features:
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1398 YES)
David Greenea696d242007-06-28 19:36:08 +00001399 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001400 Compile with expensive debug checks enabled (default
1401 is NO)
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001406 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001407 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001408 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001409 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001410 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001411 --enable-shared Build a shared library and link tools against it
1412 (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001413 --enable-timestamps Enable embedding timestamp information in build
1414 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001415 --enable-targets Build specific host targets: all or
1416 target1,target2,... Valid targets are: host, x86,
1417 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00001418 pic16, xcore, msp430, systemz, blackfin, ptx, cbe,
1419 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001420 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1421 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001422 --enable-bindings Build specific language bindings:
1423 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001424 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001425 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001426
1427Optional Packages:
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001430 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1431 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001432 --with-llvmgcc Specify location of llvm-gcc driver (default
1433 searches PATH)
1434 --with-llvmgxx Specify location of llvm-g++ driver (default
1435 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001436 --with-clang Specify location of clang compiler (default is
1437 --with-built-clang)
1438 --with-built-clang Use the compiled Clang as the LLVM compiler
1439 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001440 --with-optimize-option Select the compiler options to use for optimized
1441 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001442 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001443 --with-ocaml-libdir Specify install location for ocaml bindings (default
1444 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001445 --with-c-include-dirs Colon separated list of directories clang will
1446 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001447 --with-cxx-include-root Directory with the libstdc++ headers.
1448 --with-cxx-include-arch Architecture of the libstdc++ headers.
1449 --with-cxx-include-32bit-dir
1450 32 bit multilib dir.
1451 --with-cxx-include-64bit-dir
1452 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001453 --with-binutils-include Specify path to binutils/include/ containing
1454 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001455 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001456 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1457 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001458 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001459 --with-oprofile=<prefix>
1460 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001461
1462Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001463 CC C compiler command
1464 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001467 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001468 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001469 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001470 CXX C++ compiler command
1471 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001472
1473Use these variables to override the choices made by `configure' or to help
1474it to find libraries and programs with nonstandard names/locations.
1475
1476Report bugs to <llvmbugs@cs.uiuc.edu>.
1477_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001478ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001479fi
1480
1481if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001484 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001485 ac_builddir=.
1486
Reid Spencera773bd52006-08-04 18:18:08 +00001487case "$ac_dir" in
1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001490 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001491 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001492 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497esac
1498ac_abs_top_builddir=$ac_pwd
1499ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500# for backward compatibility:
1501ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001502
1503case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001504 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001505 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001509 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001516esac
Reid Spencera773bd52006-08-04 18:18:08 +00001517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001518
Reid Spencera773bd52006-08-04 18:18:08 +00001519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001527 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001528 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001531 done
1532fi
1533
Reid Spencera773bd52006-08-04 18:18:08 +00001534test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001535if $ac_init_version; then
1536 cat <<\_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001537llvm configure 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001538generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001540Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15412002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001542This configure script is free software; the Free Software Foundation
1543gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001544
John Criswell5a129712010-03-19 21:04:16 +00001545Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001546_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001547 exit
John Criswell7a73b802003-06-30 21:59:07 +00001548fi
Reid Spencera773bd52006-08-04 18:18:08 +00001549cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001550This file contains any messages produced by compilers while
1551running configure, to aid debugging if configure makes a mistake.
1552
Eric Christopherb26697c2010-09-06 18:47:10 +00001553It was created by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001554generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001555
1556 $ $0 $@
1557
1558_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001559exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001560{
1561cat <<_ASUNAME
1562## --------- ##
1563## Platform. ##
1564## --------- ##
1565
1566hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571
1572/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574
1575/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1576/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1577/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001578/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001579/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1580/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1581/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1582
1583_ASUNAME
1584
1585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586for as_dir in $PATH
1587do
1588 IFS=$as_save_IFS
1589 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001590 echo "PATH: $as_dir"
1591done
Reid Spencera773bd52006-08-04 18:18:08 +00001592IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001593
1594} >&5
1595
1596cat >&5 <<_ACEOF
1597
1598
1599## ----------- ##
1600## Core tests. ##
1601## ----------- ##
1602
1603_ACEOF
1604
1605
1606# Keep a trace of the command line.
1607# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001608# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001609# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001610# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001611ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001612ac_configure_args0=
1613ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001614ac_must_keep_next=false
1615for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001616do
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 for ac_arg
1618 do
1619 case $ac_arg in
1620 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1622 | -silent | --silent | --silen | --sile | --sil)
1623 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001624 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001625 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 esac
1627 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001628 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001630 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001632 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001633 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001634 case $ac_arg in
1635 *=* | --config-cache | -C | -disable-* | --disable-* \
1636 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1637 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1638 | -with-* | --with-* | -without-* | --without-* | --x)
1639 case "$ac_configure_args0 " in
1640 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641 esac
1642 ;;
1643 -* ) ac_must_keep_next=true ;;
1644 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001646 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 ;;
1648 esac
1649 done
John Criswell7a73b802003-06-30 21:59:07 +00001650done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001651$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1652$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 +00001653
1654# When interrupted or exit'd, cleanup temporary files, and complete
1655# config.log. We remove comments because anyway the quotes in there
1656# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001657# WARNING: Use '\'' to represent an apostrophe within the trap.
1658# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001659trap 'exit_status=$?
1660 # Save into config.log some information that might help in debugging.
1661 {
1662 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001663
John Criswell7a73b802003-06-30 21:59:07 +00001664 cat <<\_ASBOX
1665## ---------------- ##
1666## Cache variables. ##
1667## ---------------- ##
1668_ASBOX
1669 echo
1670 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001671(
1672 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673 eval ac_val=\$$ac_var
1674 case $ac_val in #(
1675 *${as_nl}*)
1676 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001677 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001679 esac
1680 case $ac_var in #(
1681 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001682 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001683 esac ;;
1684 esac
1685 done
John Criswell7a73b802003-06-30 21:59:07 +00001686 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001689 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001690 "s/'\''/'\''\\\\'\'''\''/g;
1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001693 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001695 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001696 esac |
1697 sort
1698)
John Criswell7a73b802003-06-30 21:59:07 +00001699 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001700
1701 cat <<\_ASBOX
1702## ----------------- ##
1703## Output variables. ##
1704## ----------------- ##
1705_ASBOX
1706 echo
1707 for ac_var in $ac_subst_vars
1708 do
Reid Spencera773bd52006-08-04 18:18:08 +00001709 eval ac_val=\$$ac_var
1710 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001711 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001712 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001713 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001714 done | sort
1715 echo
1716
1717 if test -n "$ac_subst_files"; then
1718 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001719## ------------------- ##
1720## File substitutions. ##
1721## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001722_ASBOX
1723 echo
1724 for ac_var in $ac_subst_files
1725 do
Reid Spencera773bd52006-08-04 18:18:08 +00001726 eval ac_val=\$$ac_var
1727 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001729 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001730 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 done | sort
1732 echo
1733 fi
1734
John Criswell7a73b802003-06-30 21:59:07 +00001735 if test -s confdefs.h; then
1736 cat <<\_ASBOX
1737## ----------- ##
1738## confdefs.h. ##
1739## ----------- ##
1740_ASBOX
1741 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001742 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001743 echo
1744 fi
1745 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001746 echo "$as_me: caught signal $ac_signal"
1747 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001748 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001749 rm -f core *.core core.conftest.* &&
1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001751 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001752' 0
John Criswell7a73b802003-06-30 21:59:07 +00001753for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001754 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001755done
1756ac_signal=0
1757
1758# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001759rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001760
1761# Predefined preprocessor variables.
1762
1763cat >>confdefs.h <<_ACEOF
1764#define PACKAGE_NAME "$PACKAGE_NAME"
1765_ACEOF
1766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001767
John Criswell7a73b802003-06-30 21:59:07 +00001768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770_ACEOF
1771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001772
John Criswell7a73b802003-06-30 21:59:07 +00001773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_VERSION "$PACKAGE_VERSION"
1775_ACEOF
1776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001777
John Criswell7a73b802003-06-30 21:59:07 +00001778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_STRING "$PACKAGE_STRING"
1780_ACEOF
1781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001782
John Criswell7a73b802003-06-30 21:59:07 +00001783cat >>confdefs.h <<_ACEOF
1784#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785_ACEOF
1786
1787
1788# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001790if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001792elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001794else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795 set x "$ac_default_prefix/share/config.site" \
1796 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001797fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798shift
1799for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001800do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801 if test -r "$ac_site_file"; then
1802 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001804 sed 's/^/| /' "$ac_site_file" >&5
1805 . "$ac_site_file"
1806 fi
1807done
1808
1809if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810 # Some versions of bash will fail to source /dev/null (special
1811 # files actually), so we avoid doing that.
1812 if test -f "$cache_file"; then
1813 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001815 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001816 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001818 esac
1819 fi
1820else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001821 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001823 >$cache_file
1824fi
1825
1826# Check that the precious variables saved in the cache have kept the same
1827# value.
1828ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001829for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001830 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001832 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001834 case $ac_old_set,$ac_new_set in
1835 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001836 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001838 ac_cache_corrupted=: ;;
1839 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001842 ac_cache_corrupted=: ;;
1843 ,);;
1844 *)
1845 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001846 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1849echo "$as_me: former value: $ac_old_val" >&2;}
1850 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1851echo "$as_me: current value: $ac_new_val" >&2;}
1852 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001853 fi;;
1854 esac
1855 # Pass precious variables to config.status.
1856 if test "$ac_new_set" = set; then
1857 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001858 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001859 *) ac_arg=$ac_var=$ac_new_val ;;
1860 esac
1861 case " $ac_configure_args " in
1862 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001863 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001864 esac
1865 fi
1866done
1867if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001868 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001873fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
Reid Spencera773bd52006-08-04 18:18:08 +00001898
John Criswell7a73b802003-06-30 21:59:07 +00001899ac_ext=c
1900ac_cpp='$CPP $CPPFLAGS'
1901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904
1905
1906
John Criswell5a129712010-03-19 21:04:16 +00001907LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001908
1909
1910
1911
1912
1913
1914
John Criswell7a73b802003-06-30 21:59:07 +00001915ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001916for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001917 if test -f "$ac_dir/install-sh"; then
1918 ac_aux_dir=$ac_dir
1919 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 break
1921 elif test -f "$ac_dir/install.sh"; then
1922 ac_aux_dir=$ac_dir
1923 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 break
1925 elif test -f "$ac_dir/shtool"; then
1926 ac_aux_dir=$ac_dir
1927 ac_install_sh="$ac_aux_dir/shtool install -c"
1928 break
1929 fi
John Criswell7a73b802003-06-30 21:59:07 +00001930done
1931if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001932 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1933echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1934 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001935fi
Reid Spencera773bd52006-08-04 18:18:08 +00001936
1937# These three variables are undocumented and unsupported,
1938# and are intended to be withdrawn in a future Autoconf release.
1939# They can cause serious problems if a builder's source tree is in a directory
1940# whose full name contains unusual characters.
1941ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1942ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1943ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1944
John Criswell7a73b802003-06-30 21:59:07 +00001945
John Criswell392aaa32003-07-22 19:18:09 +00001946
Reid Spencer2706f8c2004-09-19 23:53:36 +00001947if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001948 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001949 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1950echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1951 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001952 fi
John Criswell93e1c722003-09-15 17:04:06 +00001953fi
1954
John Criswell0157f502010-03-19 21:31:39 +00001955
1956
1957if test -d ${srcdir}/projects/llvm-gcc ; then
1958 subdirs="$subdirs projects/llvm-gcc"
1959
1960fi
1961
1962if test -d ${srcdir}/projects/test-suite ; then
1963 subdirs="$subdirs projects/test-suite"
1964
1965fi
1966
1967if test -d ${srcdir}/projects/llvm-test ; then
1968 subdirs="$subdirs projects/llvm-test"
1969
1970fi
1971
1972if test -d ${srcdir}/projects/poolalloc ; then
1973 subdirs="$subdirs projects/poolalloc"
1974
1975fi
1976
1977if test -d ${srcdir}/projects/llvm-poolalloc ; then
1978 subdirs="$subdirs projects/llvm-poolalloc"
1979
1980fi
1981
John Criswell33a911a2003-11-25 20:36:46 +00001982for i in `ls ${srcdir}/projects`
1983do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001984 if test -d ${srcdir}/projects/${i} ; then
1985 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001986 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001987 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001988 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001989 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001990 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001991 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001992 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001993;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001994 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001995 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001996 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001997 ;;
John Criswell7def2932010-02-25 22:57:19 +00001998 safecode) subdirs="$subdirs projects/safecode"
1999 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002000 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002001 ;;
John Criswell52c02862010-03-25 13:59:09 +00002002 llvm-gcc) ;;
2003 test-suite) ;;
2004 llvm-test) ;;
2005 poolalloc) ;;
2006 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002007 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002008 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2009echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002010 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002011 esac
John Criswell33a911a2003-11-25 20:36:46 +00002012 fi
2013done
John Criswell559a6c12003-09-30 16:31:48 +00002014
John Criswell7a73b802003-06-30 21:59:07 +00002015
2016# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002017$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002018 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2019echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2020 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002021
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002022{ echo "$as_me:$LINENO: checking build system type" >&5
2023echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2024if test "${ac_cv_build+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002026else
Reid Spencera773bd52006-08-04 18:18:08 +00002027 ac_build_alias=$build_alias
2028test "x$ac_build_alias" = x &&
2029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2030test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002031 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002034ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2036echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2037 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002038
2039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002040{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002042case $ac_cv_build in
2043*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002044*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2045echo "$as_me: error: invalid value of canonical build" >&2;}
2046 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002047esac
John Criswell7a73b802003-06-30 21:59:07 +00002048build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002049ac_save_IFS=$IFS; IFS='-'
2050set x $ac_cv_build
2051shift
2052build_cpu=$1
2053build_vendor=$2
2054shift; shift
2055# Remember, the first character of IFS is used to create $*,
2056# except with old shells:
2057build_os=$*
2058IFS=$ac_save_IFS
2059case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002060
2061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002062{ echo "$as_me:$LINENO: checking host system type" >&5
2063echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2064if test "${ac_cv_host+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002066else
Reid Spencera773bd52006-08-04 18:18:08 +00002067 if test "x$host_alias" = x; then
2068 ac_cv_host=$ac_cv_build
2069else
2070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2072echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002074fi
John Criswell7a73b802003-06-30 21:59:07 +00002075
2076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2078echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002079case $ac_cv_host in
2080*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2082echo "$as_me: error: invalid value of canonical host" >&2;}
2083 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002084esac
John Criswell7a73b802003-06-30 21:59:07 +00002085host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002086ac_save_IFS=$IFS; IFS='-'
2087set x $ac_cv_host
2088shift
2089host_cpu=$1
2090host_vendor=$2
2091shift; shift
2092# Remember, the first character of IFS is used to create $*,
2093# except with old shells:
2094host_os=$*
2095IFS=$ac_save_IFS
2096case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002097
2098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002099{ echo "$as_me:$LINENO: checking target system type" >&5
2100echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2101if test "${ac_cv_target+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002103else
Reid Spencera773bd52006-08-04 18:18:08 +00002104 if test "x$target_alias" = x; then
2105 ac_cv_target=$ac_cv_host
2106else
2107 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2109echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002111fi
John Criswell7a73b802003-06-30 21:59:07 +00002112
2113fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002114{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2115echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002116case $ac_cv_target in
2117*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002118*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2119echo "$as_me: error: invalid value of canonical target" >&2;}
2120 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002121esac
John Criswell7a73b802003-06-30 21:59:07 +00002122target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002123ac_save_IFS=$IFS; IFS='-'
2124set x $ac_cv_target
2125shift
2126target_cpu=$1
2127target_vendor=$2
2128shift; shift
2129# Remember, the first character of IFS is used to create $*,
2130# except with old shells:
2131target_os=$*
2132IFS=$ac_save_IFS
2133case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002134
2135
2136# The aliases save the names the user supplied, while $host etc.
2137# will get canonicalized.
2138test -n "$target_alias" &&
2139 test "$program_prefix$program_suffix$program_transform_name" = \
2140 NONENONEs,x,x, &&
2141 program_prefix=${target_alias}-
2142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002143{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2144echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2145if test "${llvm_cv_os_type+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002147else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002148 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002149 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002150 llvm_cv_link_all_option="-Wl,--whole-archive"
2151 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002152 llvm_cv_os_type="AIX"
2153 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002154 *-*-irix*)
2155 llvm_cv_link_all_option="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157 llvm_cv_os_type="IRIX"
2158 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002159 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002160 llvm_cv_link_all_option="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002162 llvm_cv_os_type="Cygwin"
2163 llvm_cv_platform_type="Unix" ;;
2164 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002165 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002166 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002167 llvm_cv_os_type="Darwin"
2168 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002169 *-*-minix*)
2170 llvm_cv_link_all_option="-Wl,-all_load"
2171 llvm_cv_no_link_all_option="-Wl,-noall_load"
2172 llvm_cv_os_type="Minix"
2173 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002174 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002175 llvm_cv_link_all_option="-Wl,--whole-archive"
2176 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002177 llvm_cv_os_type="FreeBSD"
2178 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002179 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002180 llvm_cv_link_all_option="-Wl,--whole-archive"
2181 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002182 llvm_cv_os_type="OpenBSD"
2183 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002184 *-*-netbsd*)
2185 llvm_cv_link_all_option="-Wl,--whole-archive"
2186 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2187 llvm_cv_os_type="NetBSD"
2188 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002189 *-*-dragonfly*)
2190 llvm_cv_link_all_option="-Wl,--whole-archive"
2191 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2192 llvm_cv_os_type="DragonFly"
2193 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002194 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002195 llvm_cv_link_all_option="-Wl,--whole-archive"
2196 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002197 llvm_cv_os_type="HP-UX"
2198 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002199 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002200 llvm_cv_link_all_option="-Wl,--whole-archive"
2201 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002202 llvm_cv_os_type="Interix"
2203 llvm_cv_platform_type="Unix" ;;
2204 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002205 llvm_cv_link_all_option="-Wl,--whole-archive"
2206 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002207 llvm_cv_os_type="Linux"
2208 llvm_cv_platform_type="Unix" ;;
2209 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002210 llvm_cv_link_all_option="-Wl,-z,allextract"
2211 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002212 llvm_cv_os_type="SunOS"
2213 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002214 *-*-auroraux*)
2215 llvm_cv_link_all_option="-Wl,-z,allextract"
2216 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2217 llvm_cv_os_type="AuroraUX"
2218 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002219 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002220 llvm_cv_link_all_option="-Wl,--whole-archive"
2221 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002222 llvm_cv_os_type="Win32"
2223 llvm_cv_platform_type="Win32" ;;
2224 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002225 llvm_cv_link_all_option="-Wl,--whole-archive"
2226 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002227 llvm_cv_os_type="MingW"
2228 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002229 *-*-haiku*)
2230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232 llvm_cv_os_type="Haiku"
2233 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002234 *-unknown-eabi*)
2235 llvm_cv_link_all_option="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237 llvm_cv_os_type="Freestanding"
2238 llvm_cv_platform_type="Unix" ;;
2239 *-unknown-elf*)
2240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242 llvm_cv_os_type="Freestanding"
2243 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002244 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002245 llvm_cv_link_all_option=""
2246 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002247 llvm_cv_os_type="Unknown"
2248 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002249esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002251{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2252echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002254{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2255echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2256if test "${llvm_cv_target_os_type+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002258else
2259 case $target in
2260 *-*-aix*)
2261 llvm_cv_target_os_type="AIX" ;;
2262 *-*-irix*)
2263 llvm_cv_target_os_type="IRIX" ;;
2264 *-*-cygwin*)
2265 llvm_cv_target_os_type="Cygwin" ;;
2266 *-*-darwin*)
2267 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002268 *-*-minix*)
2269 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002270 *-*-freebsd*)
2271 llvm_cv_target_os_type="FreeBSD" ;;
2272 *-*-openbsd*)
2273 llvm_cv_target_os_type="OpenBSD" ;;
2274 *-*-netbsd*)
2275 llvm_cv_target_os_type="NetBSD" ;;
2276 *-*-dragonfly*)
2277 llvm_cv_target_os_type="DragonFly" ;;
2278 *-*-hpux*)
2279 llvm_cv_target_os_type="HP-UX" ;;
2280 *-*-interix*)
2281 llvm_cv_target_os_type="Interix" ;;
2282 *-*-linux*)
2283 llvm_cv_target_os_type="Linux" ;;
2284 *-*-solaris*)
2285 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002286 *-*-auroraux*)
2287 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002288 *-*-win32*)
2289 llvm_cv_target_os_type="Win32" ;;
2290 *-*-mingw*)
2291 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002292 *-*-haiku*)
2293 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002294 *-unknown-eabi*)
2295 llvm_cv_target_os_type="Freestanding" ;;
2296 *)
2297 llvm_cv_target_os_type="Unknown" ;;
2298esac
2299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002300{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2301echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002302
Reid Spencer7b3e8512004-12-24 06:29:05 +00002303if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002304 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2305echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2306 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002307fi
2308
Reid Spencer7b3e8512004-12-24 06:29:05 +00002309OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002310
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002311HOST_OS=$llvm_cv_os_type
2312
2313TARGET_OS=$llvm_cv_target_os_type
2314
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002315
Reid Spencera773bd52006-08-04 18:18:08 +00002316LINKALL=$llvm_cv_link_all_option
2317
2318NOLINKALL=$llvm_cv_no_link_all_option
2319
2320
Reid Spencer7b3e8512004-12-24 06:29:05 +00002321case $llvm_cv_platform_type in
2322 Unix)
2323
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002324cat >>confdefs.h <<\_ACEOF
2325#define LLVM_ON_UNIX 1
2326_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002327
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002328 LLVM_ON_UNIX=1
2329
2330 LLVM_ON_WIN32=0
2331
Reid Spencer7b3e8512004-12-24 06:29:05 +00002332 ;;
2333 Win32)
2334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002335cat >>confdefs.h <<\_ACEOF
2336#define LLVM_ON_WIN32 1
2337_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002338
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002339 LLVM_ON_UNIX=0
2340
2341 LLVM_ON_WIN32=1
2342
Reid Spencer7b3e8512004-12-24 06:29:05 +00002343 ;;
2344esac
2345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002346{ echo "$as_me:$LINENO: checking target architecture" >&5
2347echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2348if test "${llvm_cv_target_arch+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002350else
2351 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002352 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002353 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002354 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2355 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002356 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002357 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002358 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002359 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002360 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002361 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002362 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002363 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002364 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002365 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002366 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002367esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002368fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002369{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002371
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002372if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002373 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002375fi
John Criswell76595452003-07-01 22:07:39 +00002376
Nick Lewycky83fc4472009-09-29 05:48:51 +00002377# Determine the LLVM native architecture for the target
2378case "$llvm_cv_target_arch" in
2379 x86) LLVM_NATIVE_ARCH="X86" ;;
2380 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2381 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2382esac
2383
2384ARCH=$llvm_cv_target_arch
2385
2386
2387ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002388ac_cpp='$CPP $CPPFLAGS'
2389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002392if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397if test "${ac_cv_prog_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399else
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC="$CC" # Let the user override the test.
2402else
2403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 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 +00002410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412 break 2
2413 fi
2414done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002415done
Reid Spencera773bd52006-08-04 18:18:08 +00002416IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417
2418fi
2419fi
2420CC=$ac_cv_prog_CC
2421if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422 { echo "$as_me:$LINENO: result: $CC" >&5
2423echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002425 { echo "$as_me:$LINENO: result: no" >&5
2426echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002427fi
2428
Reid Spencera773bd52006-08-04 18:18:08 +00002429
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002430fi
2431if test -z "$ac_cv_prog_CC"; then
2432 ac_ct_CC=$CC
2433 # Extract the first word of "gcc", so it can be a program name with args.
2434set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002439else
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 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 +00002450 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002452 break 2
2453 fi
2454done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002455done
Reid Spencera773bd52006-08-04 18:18:08 +00002456IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002457
2458fi
2459fi
2460ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002464else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002465 { echo "$as_me:$LINENO: result: no" >&5
2466echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002467fi
2468
Reid Spencera773bd52006-08-04 18:18:08 +00002469 if test "x$ac_ct_CC" = x; then
2470 CC=""
2471 else
2472 case $cross_compiling:$ac_tool_warned in
2473yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002474{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475whose name does not start with the host triplet. If you think this
2476configuration is useful to you, please write to autoconf@gnu.org." >&5
2477echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478whose name does not start with the host triplet. If you think this
2479configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002480ac_tool_warned=yes ;;
2481esac
2482 CC=$ac_ct_CC
2483 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002484else
2485 CC="$ac_cv_prog_CC"
2486fi
2487
2488if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002489 if test -n "$ac_tool_prefix"; then
2490 # 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 +00002491set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002496else
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC="$CC" # Let the user override the test.
2499else
2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501for as_dir in $PATH
2502do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 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 +00002507 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002509 break 2
2510 fi
2511done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002512done
Reid Spencera773bd52006-08-04 18:18:08 +00002513IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002514
2515fi
2516fi
2517CC=$ac_cv_prog_CC
2518if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002519 { echo "$as_me:$LINENO: result: $CC" >&5
2520echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002521else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002522 { echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002524fi
2525
Reid Spencera773bd52006-08-04 18:18:08 +00002526
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002527 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002528fi
2529if test -z "$CC"; then
2530 # Extract the first word of "cc", so it can be a program name with args.
2531set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002536else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539else
2540 ac_prog_rejected=no
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 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 +00002548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549 ac_prog_rejected=yes
2550 continue
2551 fi
2552 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002554 break 2
2555 fi
2556done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002557done
Reid Spencera773bd52006-08-04 18:18:08 +00002558IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002559
2560if test $ac_prog_rejected = yes; then
2561 # We found a bogon in the path, so make sure we never use it.
2562 set dummy $ac_cv_prog_CC
2563 shift
2564 if test $# != 0; then
2565 # We chose a different compiler from the bogus one.
2566 # However, it has the same basename, so the bogon will be chosen
2567 # first if we set CC to just the basename; use the full file name.
2568 shift
2569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2570 fi
2571fi
2572fi
2573fi
2574CC=$ac_cv_prog_CC
2575if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002576 { echo "$as_me:$LINENO: result: $CC" >&5
2577echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002578else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002579 { echo "$as_me:$LINENO: result: no" >&5
2580echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002581fi
2582
Reid Spencera773bd52006-08-04 18:18:08 +00002583
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002584fi
2585if test -z "$CC"; then
2586 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002587 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002588 do
2589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002595else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 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 +00002606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002608 break 2
2609 fi
2610done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002611done
Reid Spencera773bd52006-08-04 18:18:08 +00002612IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002613
2614fi
2615fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616CC=$ac_cv_prog_CC
2617if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002618 { echo "$as_me:$LINENO: result: $CC" >&5
2619echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002621 { echo "$as_me:$LINENO: result: no" >&5
2622echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002623fi
2624
Reid Spencera773bd52006-08-04 18:18:08 +00002625
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002627 done
2628fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629if test -z "$CC"; then
2630 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002631 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002632do
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002639else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002640 if test -n "$ac_ct_CC"; then
2641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002642else
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 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 +00002650 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002652 break 2
2653 fi
2654done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002655done
Reid Spencera773bd52006-08-04 18:18:08 +00002656IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002657
2658fi
2659fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002662 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002664else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002665 { echo "$as_me:$LINENO: result: no" >&5
2666echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002667fi
2668
Reid Spencera773bd52006-08-04 18:18:08 +00002669
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002671done
John Criswell7a73b802003-06-30 21:59:07 +00002672
Reid Spencera773bd52006-08-04 18:18:08 +00002673 if test "x$ac_ct_CC" = x; then
2674 CC=""
2675 else
2676 case $cross_compiling:$ac_tool_warned in
2677yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002678{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679whose name does not start with the host triplet. If you think this
2680configuration is useful to you, please write to autoconf@gnu.org." >&5
2681echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682whose name does not start with the host triplet. If you think this
2683configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002684ac_tool_warned=yes ;;
2685esac
2686 CC=$ac_ct_CC
2687 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002688fi
2689
John Criswell7a73b802003-06-30 21:59:07 +00002690fi
2691
2692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002693test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694See \`config.log' for more details." >&5
2695echo "$as_me: error: no acceptable C compiler found in \$PATH
2696See \`config.log' for more details." >&2;}
2697 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002698
John Criswell7a73b802003-06-30 21:59:07 +00002699# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002700echo "$as_me:$LINENO: checking for C compiler version" >&5
2701ac_compiler=`set X $ac_compile; echo $2`
2702{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002703case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002709 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }
2712{ (ac_try="$ac_compiler -v >&5"
2713case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716esac
2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler -v >&5") 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722{ (ac_try="$ac_compiler -V >&5"
2723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -V >&5") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002733cat >conftest.$ac_ext <<_ACEOF
2734/* confdefs.h. */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002738/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002739
John Criswell7a73b802003-06-30 21:59:07 +00002740int
2741main ()
2742{
2743
2744 ;
2745 return 0;
2746}
2747_ACEOF
2748ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002749ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002750# Try to create an executable without -o first, disregard a.out.
2751# It will help us diagnose broken compilers, and finding out an intuition
2752# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002753{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2755ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756#
2757# List of possible output files, starting from the most likely.
2758# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759# only as a last resort. b.out is created by i960 compilers.
2760ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761#
2762# The IRIX 6 linker writes into existing files which may not be
2763# executable, retaining their permissions. Remove them first so a
2764# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002765ac_rmfiles=
2766for ac_file in $ac_files
2767do
2768 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771 esac
2772done
2773rm -f $ac_rmfiles
2774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002775if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002776case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002781 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002782 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787# in a Makefile. We should not override ac_cv_exeext if it was cached,
2788# so that the user can short-circuit this test for compilers unknown to
2789# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002790for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002791do
2792 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002793 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002795 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002796 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002797 # We found the default executable, but exeext='' is most
2798 # certainly right.
2799 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002800 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002802 then :; else
2803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804 fi
2805 # We set ac_cv_exeext here because the later test for it is not
2806 # safe: cross compilers may not add the suffix if given an `-o'
2807 # argument, so we may need to know it at that point already.
2808 # Even if this section looks crufty: it has the advantage of
2809 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002810 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002811 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002812 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002813 esac
2814done
Reid Spencera773bd52006-08-04 18:18:08 +00002815test "$ac_cv_exeext" = no && ac_cv_exeext=
2816
John Criswell7a73b802003-06-30 21:59:07 +00002817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002818 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002819sed 's/^/| /' conftest.$ac_ext >&5
2820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002821{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2822See \`config.log' for more details." >&5
2823echo "$as_me: error: C compiler cannot create executables
2824See \`config.log' for more details." >&2;}
2825 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002826fi
John Criswell7a73b802003-06-30 21:59:07 +00002827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002828ac_exeext=$ac_cv_exeext
2829{ echo "$as_me:$LINENO: result: $ac_file" >&5
2830echo "${ECHO_T}$ac_file" >&6; }
2831
2832# Check that the compiler produces executables we can run. If not, either
2833# the compiler is broken, or we cross compile.
2834{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2836# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837# If not cross compiling, check that we can run a simple program.
2838if test "$cross_compiling" != yes; then
2839 if { ac_try='./$ac_file'
2840 { (case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843esac
2844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_try") 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 cross_compiling=no
2850 else
2851 if test "$cross_compiling" = maybe; then
2852 cross_compiling=yes
2853 else
2854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2855If you meant to cross compile, use \`--host'.
2856See \`config.log' for more details." >&5
2857echo "$as_me: error: cannot run C compiled programs.
2858If you meant to cross compile, use \`--host'.
2859See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2861 fi
2862 fi
2863fi
2864{ echo "$as_me:$LINENO: result: yes" >&5
2865echo "${ECHO_T}yes" >&6; }
2866
2867rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002868ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002869# Check that the compiler produces executables we can run. If not, either
2870# the compiler is broken, or we cross compile.
2871{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874echo "${ECHO_T}$cross_compiling" >&6; }
2875
2876{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002879case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002884 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002885 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2889# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2890# work properly (i.e., refer to `conftest.exe'), while it won't with
2891# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002892for ac_file in conftest.exe conftest conftest.*; do
2893 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002894 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002897 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002898 * ) break;;
2899 esac
2900done
2901else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903See \`config.log' for more details." >&5
2904echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905See \`config.log' for more details." >&2;}
2906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002907fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002908
2909rm -f conftest$ac_cv_exeext
2910{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002912
2913rm -f conftest.$ac_ext
2914EXEEXT=$ac_cv_exeext
2915ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002916{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2918if test "${ac_cv_objext+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002920else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002921 cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h. */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002926/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002927
John Criswell7a73b802003-06-30 21:59:07 +00002928int
2929main ()
2930{
2931
2932 ;
2933 return 0;
2934}
2935_ACEOF
2936rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002937if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002938case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002943 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002944 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002947 for ac_file in conftest.o conftest.obj conftest.*; do
2948 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002949 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952 break;;
2953 esac
2954done
2955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002956 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002957sed 's/^/| /' conftest.$ac_ext >&5
2958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002959{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960See \`config.log' for more details." >&5
2961echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002964fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002965
John Criswell7a73b802003-06-30 21:59:07 +00002966rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002968{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002970OBJEXT=$ac_cv_objext
2971ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002972{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2974if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002976else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002977 cat >conftest.$ac_ext <<_ACEOF
2978/* confdefs.h. */
2979_ACEOF
2980cat confdefs.h >>conftest.$ac_ext
2981cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002982/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002983
John Criswell7a73b802003-06-30 21:59:07 +00002984int
2985main ()
2986{
2987#ifndef __GNUC__
2988 choke me
2989#endif
2990
2991 ;
2992 return 0;
2993}
2994_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002995rm -f conftest.$ac_objext
2996if { (ac_try="$ac_compile"
2997case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3003 ac_status=$?
3004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
3014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003029 ac_compiler_gnu=yes
3030else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003031 echo "$as_me: failed program was:" >&5
3032sed 's/^/| /' conftest.$ac_ext >&5
3033
3034 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003036
Reid Spencera773bd52006-08-04 18:18:08 +00003037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003038ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003039
3040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003041{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3042echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3043GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003044ac_test_CFLAGS=${CFLAGS+set}
3045ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003046{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3047echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3048if test "${ac_cv_prog_cc_g+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003050else
Reid Spencera773bd52006-08-04 18:18:08 +00003051 ac_save_c_werror_flag=$ac_c_werror_flag
3052 ac_c_werror_flag=yes
3053 ac_cv_prog_cc_g=no
3054 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003055 cat >conftest.$ac_ext <<_ACEOF
3056/* confdefs.h. */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003060/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003061
John Criswell7a73b802003-06-30 21:59:07 +00003062int
3063main ()
3064{
3065
3066 ;
3067 return 0;
3068}
3069_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003070rm -f conftest.$ac_objext
3071if { (ac_try="$ac_compile"
3072case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003104 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003105else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003106 echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 CFLAGS=""
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 :
Torok Edwin871384f2010-01-26 08:50:50 +00003160else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003161 echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003165 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003166 cat >conftest.$ac_ext <<_ACEOF
3167/* confdefs.h. */
3168_ACEOF
3169cat confdefs.h >>conftest.$ac_ext
3170cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003171/* end confdefs.h. */
3172
3173int
3174main ()
3175{
3176
3177 ;
3178 return 0;
3179}
3180_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003181rm -f conftest.$ac_objext
3182if { (ac_try="$ac_compile"
3183case "(($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_compile") 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199esac
3200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_try") 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003215 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003216else
3217 echo "$as_me: failed program was:" >&5
3218sed 's/^/| /' conftest.$ac_ext >&5
3219
3220
John Criswell7a73b802003-06-30 21:59:07 +00003221fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003222
Reid Spencera773bd52006-08-04 18:18:08 +00003223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003224fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003225
Reid Spencera773bd52006-08-04 18:18:08 +00003226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003228
Reid Spencera773bd52006-08-04 18:18:08 +00003229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3231fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003232{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003234if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3238 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003239 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003240 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003241 fi
3242else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003243 if test "$GCC" = yes; then
3244 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003245 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003246 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003247 fi
3248fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003249{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251if test "${ac_cv_prog_cc_c89+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003253else
Reid Spencera773bd52006-08-04 18:18:08 +00003254 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003255ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003256cat >conftest.$ac_ext <<_ACEOF
3257/* confdefs.h. */
3258_ACEOF
3259cat confdefs.h >>conftest.$ac_ext
3260cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003261/* end confdefs.h. */
3262#include <stdarg.h>
3263#include <stdio.h>
3264#include <sys/types.h>
3265#include <sys/stat.h>
3266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267struct buf { int x; };
3268FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269static char *e (p, i)
3270 char **p;
3271 int i;
3272{
3273 return p[i];
3274}
3275static char *f (char * (*g) (char **, int), char **p, ...)
3276{
3277 char *s;
3278 va_list v;
3279 va_start (v,p);
3280 s = g (p, va_arg (v,int));
3281 va_end (v);
3282 return s;
3283}
3284
3285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003288 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003291 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003292int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293
Reid Spencera773bd52006-08-04 18:18:08 +00003294/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3296#define FOO(x) 'x'
3297int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003299int test (int i, double x);
3300struct s1 {int (*f) (int a);};
3301struct s2 {int (*f) (double a);};
3302int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303int argc;
3304char **argv;
3305int
3306main ()
3307{
3308return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3309 ;
3310 return 0;
3311}
3312_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003313for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003315do
3316 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003317 rm -f conftest.$ac_objext
3318if { (ac_try="$ac_compile"
3319case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322esac
3323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335esac
3336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003351 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003352else
3353 echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003357fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003358
Reid Spencera773bd52006-08-04 18:18:08 +00003359rm -f core conftest.err conftest.$ac_objext
3360 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361done
Reid Spencera773bd52006-08-04 18:18:08 +00003362rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003363CC=$ac_save_CC
3364
3365fi
Reid Spencera773bd52006-08-04 18:18:08 +00003366# AC_CACHE_VAL
3367case "x$ac_cv_prog_cc_c89" in
3368 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003369 { echo "$as_me:$LINENO: result: none needed" >&5
3370echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003371 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003372 { echo "$as_me:$LINENO: result: unsupported" >&5
3373echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003374 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003375 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378esac
3379
John Criswell0c38eaf2003-09-10 15:17:25 +00003380
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381ac_ext=c
3382ac_cpp='$CPP $CPPFLAGS'
3383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386
3387
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003388ac_ext=c
3389ac_cpp='$CPP $CPPFLAGS'
3390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003393{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3394echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003395# On Suns, sometimes $CPP names a directory.
3396if test -n "$CPP" && test -d "$CPP"; then
3397 CPP=
3398fi
3399if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003400 if test "${ac_cv_prog_CPP+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003402else
3403 # Double quotes because CPP needs to be expanded
3404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3405 do
3406 ac_preproc_ok=false
3407for ac_c_preproc_warn_flag in '' yes
3408do
3409 # Use a header file that comes with gcc, so configuring glibc
3410 # with a fresh cross-compiler works.
3411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412 # <limits.h> exists even on freestanding compilers.
3413 # On the NeXT, cc -E runs the code through the compiler's parser,
3414 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003415 cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h. */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003420/* end confdefs.h. */
3421#ifdef __STDC__
3422# include <limits.h>
3423#else
3424# include <assert.h>
3425#endif
3426 Syntax error
3427_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003428if { (ac_try="$ac_cpp conftest.$ac_ext"
3429case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
3433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444 else
3445 ac_cpp_err=
3446 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003447else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003448 ac_cpp_err=yes
3449fi
3450if test -z "$ac_cpp_err"; then
3451 :
3452else
3453 echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003456 # Broken: fails on valid input.
3457continue
3458fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003459
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003460rm -f conftest.err conftest.$ac_ext
3461
Reid Spencera773bd52006-08-04 18:18:08 +00003462 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003463 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003464 cat >conftest.$ac_ext <<_ACEOF
3465/* confdefs.h. */
3466_ACEOF
3467cat confdefs.h >>conftest.$ac_ext
3468cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003469/* end confdefs.h. */
3470#include <ac_nonexistent.h>
3471_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003472if { (ac_try="$ac_cpp conftest.$ac_ext"
3473case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476esac
3477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3488 else
3489 ac_cpp_err=
3490 fi
3491else
3492 ac_cpp_err=yes
3493fi
3494if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003495 # Broken: success on invalid input.
3496continue
3497else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003498 echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003501 # Passes both tests.
3502ac_preproc_ok=:
3503break
3504fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003505
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003506rm -f conftest.err conftest.$ac_ext
3507
3508done
3509# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003511if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003512 break
3513fi
3514
3515 done
3516 ac_cv_prog_CPP=$CPP
3517
3518fi
3519 CPP=$ac_cv_prog_CPP
3520else
3521 ac_cv_prog_CPP=$CPP
3522fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003523{ echo "$as_me:$LINENO: result: $CPP" >&5
3524echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003525ac_preproc_ok=false
3526for ac_c_preproc_warn_flag in '' yes
3527do
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003534 cat >conftest.$ac_ext <<_ACEOF
3535/* confdefs.h. */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003539/* end confdefs.h. */
3540#ifdef __STDC__
3541# include <limits.h>
3542#else
3543# include <assert.h>
3544#endif
3545 Syntax error
3546_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003547if { (ac_try="$ac_cpp conftest.$ac_ext"
3548case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551esac
3552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563 else
3564 ac_cpp_err=
3565 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003566else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003567 ac_cpp_err=yes
3568fi
3569if test -z "$ac_cpp_err"; then
3570 :
3571else
3572 echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003575 # Broken: fails on valid input.
3576continue
3577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003578
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003579rm -f conftest.err conftest.$ac_ext
3580
Reid Spencera773bd52006-08-04 18:18:08 +00003581 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003582 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003583 cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h. */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003588/* end confdefs.h. */
3589#include <ac_nonexistent.h>
3590_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003591if { (ac_try="$ac_cpp conftest.$ac_ext"
3592case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595esac
3596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } >/dev/null; then
3604 if test -s conftest.err; then
3605 ac_cpp_err=$ac_c_preproc_warn_flag
3606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3607 else
3608 ac_cpp_err=
3609 fi
3610else
3611 ac_cpp_err=yes
3612fi
3613if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003614 # Broken: success on invalid input.
3615continue
3616else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003617 echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003620 # Passes both tests.
3621ac_preproc_ok=:
3622break
3623fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003624
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003625rm -f conftest.err conftest.$ac_ext
3626
3627done
3628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003630if $ac_preproc_ok; then
3631 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003632else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003633 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3634See \`config.log' for more details." >&5
3635echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3636See \`config.log' for more details." >&2;}
3637 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003638fi
3639
John Criswell7a73b802003-06-30 21:59:07 +00003640ac_ext=c
3641ac_cpp='$CPP $CPPFLAGS'
3642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
John Criswell7a73b802003-06-30 21:59:07 +00003646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003647{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3648echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3649if test "${ac_cv_path_GREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003652 # Extract the first word of "grep ggrep" to use in msg output
3653if test -z "$GREP"; then
3654set dummy grep ggrep; ac_prog_name=$2
3655if test "${ac_cv_path_GREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
Reid Spencera773bd52006-08-04 18:18:08 +00003658 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003659# Loop through the user's path and test for each of PROGNAME-LIST
3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003661for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003662do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003665 for ac_prog in grep ggrep; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3669 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003670 # Check for GNU $ac_path_GREP
3671case `"$ac_path_GREP" --version 2>&1` in
3672*GNU*)
3673 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3674*)
3675 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003676 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003677 while :
3678 do
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003682 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003685 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_GREP="$ac_path_GREP"
3689 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003690 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3693 done
3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695esac
3696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003697
3698 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003699 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003700done
3701
3702done
Reid Spencera773bd52006-08-04 18:18:08 +00003703IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003704
3705
3706fi
3707
3708GREP="$ac_cv_path_GREP"
3709if test -z "$GREP"; then
3710 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3711echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3712 { (exit 1); exit 1; }; }
3713fi
3714
Reid Spencera773bd52006-08-04 18:18:08 +00003715else
3716 ac_cv_path_GREP=$GREP
3717fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003719
Reid Spencera773bd52006-08-04 18:18:08 +00003720fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003721{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3722echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003723 GREP="$ac_cv_path_GREP"
3724
3725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003726{ echo "$as_me:$LINENO: checking for egrep" >&5
3727echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3728if test "${ac_cv_path_EGREP+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003730else
3731 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3732 then ac_cv_path_EGREP="$GREP -E"
3733 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003734 # Extract the first word of "egrep" to use in msg output
3735if test -z "$EGREP"; then
3736set dummy egrep; ac_prog_name=$2
3737if test "${ac_cv_path_EGREP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
Reid Spencera773bd52006-08-04 18:18:08 +00003740 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003741# Loop through the user's path and test for each of PROGNAME-LIST
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003743for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003747 for ac_prog in egrep; do
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3750 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3751 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003752 # Check for GNU $ac_path_EGREP
3753case `"$ac_path_EGREP" --version 2>&1` in
3754*GNU*)
3755 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3756*)
3757 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003758 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003759 while :
3760 do
3761 cat "conftest.in" "conftest.in" >"conftest.tmp"
3762 mv "conftest.tmp" "conftest.in"
3763 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003764 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003765 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003767 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003768 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3769 # Best one so far, save it but keep looking for a better one
3770 ac_cv_path_EGREP="$ac_path_EGREP"
3771 ac_path_EGREP_max=$ac_count
3772 fi
3773 # 10*(2^10) chars as input seems more than enough
3774 test $ac_count -gt 10 && break
3775 done
3776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3777esac
3778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003779
3780 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003781 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003782done
3783
3784done
Reid Spencera773bd52006-08-04 18:18:08 +00003785IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003786
3787
3788fi
3789
3790EGREP="$ac_cv_path_EGREP"
3791if test -z "$EGREP"; then
3792 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3793echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3794 { (exit 1); exit 1; }; }
3795fi
3796
Reid Spencera773bd52006-08-04 18:18:08 +00003797else
3798 ac_cv_path_EGREP=$EGREP
3799fi
3800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003801
Reid Spencera773bd52006-08-04 18:18:08 +00003802 fi
3803fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003804{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3805echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003806 EGREP="$ac_cv_path_EGREP"
3807
3808
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003809{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3810echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3811if test "${ac_cv_header_stdc+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003813else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003814 cat >conftest.$ac_ext <<_ACEOF
3815/* confdefs.h. */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003819/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003820#include <stdlib.h>
3821#include <stdarg.h>
3822#include <string.h>
3823#include <float.h>
3824
John Criswell0c38eaf2003-09-10 15:17:25 +00003825int
3826main ()
3827{
3828
3829 ;
3830 return 0;
3831}
John Criswell7a73b802003-06-30 21:59:07 +00003832_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003833rm -f conftest.$ac_objext
3834if { (ac_try="$ac_compile"
3835case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838esac
3839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3848 { (case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851esac
3852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_try") 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try='test -s conftest.$ac_objext'
3858 { (case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861esac
3862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_try") 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003867 ac_cv_header_stdc=yes
3868else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003869 echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003873fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003874
Reid Spencera773bd52006-08-04 18:18:08 +00003875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003876
3877if test $ac_cv_header_stdc = yes; then
3878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003879 cat >conftest.$ac_ext <<_ACEOF
3880/* confdefs.h. */
3881_ACEOF
3882cat confdefs.h >>conftest.$ac_ext
3883cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003884/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003885#include <string.h>
3886
3887_ACEOF
3888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003889 $EGREP "memchr" >/dev/null 2>&1; then
3890 :
John Criswell7a73b802003-06-30 21:59:07 +00003891else
3892 ac_cv_header_stdc=no
3893fi
3894rm -f conftest*
3895
3896fi
3897
3898if test $ac_cv_header_stdc = yes; then
3899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003900 cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h. */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003905/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003906#include <stdlib.h>
3907
3908_ACEOF
3909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003910 $EGREP "free" >/dev/null 2>&1; then
3911 :
John Criswell7a73b802003-06-30 21:59:07 +00003912else
3913 ac_cv_header_stdc=no
3914fi
3915rm -f conftest*
3916
3917fi
3918
3919if test $ac_cv_header_stdc = yes; then
3920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003921 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003922 :
3923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003924 cat >conftest.$ac_ext <<_ACEOF
3925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003929/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003930#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003931#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003932#if ((' ' & 0x0FF) == 0x020)
3933# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3934# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3935#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003936# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003937 (('a' <= (c) && (c) <= 'i') \
3938 || ('j' <= (c) && (c) <= 'r') \
3939 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003940# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3941#endif
3942
3943#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3944int
3945main ()
3946{
3947 int i;
3948 for (i = 0; i < 256; i++)
3949 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003950 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003951 return 2;
3952 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003953}
3954_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003955rm -f conftest$ac_exeext
3956if { (ac_try="$ac_link"
3957case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960esac
3961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_link") 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3966 { (case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969esac
3970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_try") 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3975 :
John Criswell7a73b802003-06-30 21:59:07 +00003976else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003977 echo "$as_me: program exited with status $ac_status" >&5
3978echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
3981( exit $ac_status )
3982ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003984rm -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 +00003985fi
3986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003987
John Criswell7a73b802003-06-30 21:59:07 +00003988fi
3989fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003990{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3991echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003992if test $ac_cv_header_stdc = yes; then
3993
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003994cat >>confdefs.h <<\_ACEOF
3995#define STDC_HEADERS 1
3996_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003997
3998fi
3999
Reid Spencera773bd52006-08-04 18:18:08 +00004000# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004001
4002
4003
4004
4005
4006
4007
4008
4009
Reid Spencera773bd52006-08-04 18:18:08 +00004010for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4011 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004012do
4013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4014{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019 cat >conftest.$ac_ext <<_ACEOF
4020/* confdefs.h. */
4021_ACEOF
4022cat confdefs.h >>conftest.$ac_ext
4023cat >>conftest.$ac_ext <<_ACEOF
4024/* end confdefs.h. */
4025$ac_includes_default
4026
4027#include <$ac_header>
4028_ACEOF
4029rm -f conftest.$ac_objext
4030if { (ac_try="$ac_compile"
4031case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034esac
4035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4037 ac_status=$?
4038 grep -v '^ *+' conftest.er1 >conftest.err
4039 rm -f conftest.er1
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044 { (case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047esac
4048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_try") 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057esac
4058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_try") 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 eval "$as_ac_Header=yes"
4064else
4065 echo "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
4067
4068 eval "$as_ac_Header=no"
4069fi
4070
4071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072fi
4073ac_res=`eval echo '${'$as_ac_Header'}'`
4074 { echo "$as_me:$LINENO: result: $ac_res" >&5
4075echo "${ECHO_T}$ac_res" >&6; }
4076if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004077 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004079_ACEOF
4080
4081fi
4082
4083done
4084
4085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004086{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4087echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4088if test "${ac_cv_c_bigendian+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004090else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004091 # See if sys/param.h defines the BYTE_ORDER macro.
4092cat >conftest.$ac_ext <<_ACEOF
4093/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004094_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004095cat confdefs.h >>conftest.$ac_ext
4096cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004097/* end confdefs.h. */
4098#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004099#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004100
4101int
4102main ()
4103{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004104#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4105 bogus endian macros
4106#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004107
4108 ;
4109 return 0;
4110}
4111_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004112rm -f conftest.$ac_objext
4113if { (ac_try="$ac_compile"
4114case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117esac
4118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compile") 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130esac
4131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004146 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004147cat >conftest.$ac_ext <<_ACEOF
4148/* confdefs.h. */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004152/* end confdefs.h. */
4153#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004154#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004155
4156int
4157main ()
4158{
4159#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004160 not big endian
4161#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004162
4163 ;
4164 return 0;
4165}
4166_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004167rm -f conftest.$ac_objext
4168if { (ac_try="$ac_compile"
4169case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172esac
4173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4175 ac_status=$?
4176 grep -v '^ *+' conftest.er1 >conftest.err
4177 rm -f conftest.er1
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195esac
4196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004201 ac_cv_c_bigendian=yes
4202else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004203 echo "$as_me: failed program was:" >&5
4204sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004206 ac_cv_c_bigendian=no
4207fi
4208
4209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210else
4211 echo "$as_me: failed program was:" >&5
4212sed 's/^/| /' conftest.$ac_ext >&5
4213
4214 # It does not; compile a test program.
4215if test "$cross_compiling" = yes; then
4216 # try to guess the endianness by grepping values into an object file
4217 ac_cv_c_bigendian=unknown
4218 cat >conftest.$ac_ext <<_ACEOF
4219/* confdefs.h. */
4220_ACEOF
4221cat confdefs.h >>conftest.$ac_ext
4222cat >>conftest.$ac_ext <<_ACEOF
4223/* end confdefs.h. */
4224short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4225short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4226void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4227short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4228short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4229void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004230int
4231main ()
4232{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004233 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004234 ;
4235 return 0;
4236}
4237_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004238rm -f conftest.$ac_objext
4239if { (ac_try="$ac_compile"
4240case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243esac
4244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_compile") 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253 { (case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256esac
4257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_try") 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266esac
4267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004273 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004274fi
4275if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4276 if test "$ac_cv_c_bigendian" = unknown; then
4277 ac_cv_c_bigendian=no
4278 else
4279 # finding both strings is unlikely to happen, but who knows?
4280 ac_cv_c_bigendian=unknown
4281 fi
4282fi
Reid Spencera773bd52006-08-04 18:18:08 +00004283else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004284 echo "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004287
Torok Edwin871384f2010-01-26 08:50:50 +00004288fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004289
Reid Spencera773bd52006-08-04 18:18:08 +00004290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004292 cat >conftest.$ac_ext <<_ACEOF
4293/* confdefs.h. */
4294_ACEOF
4295cat confdefs.h >>conftest.$ac_ext
4296cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004297/* end confdefs.h. */
4298$ac_includes_default
4299int
4300main ()
4301{
4302
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004303 /* Are we little or big endian? From Harbison&Steele. */
4304 union
4305 {
4306 long int l;
4307 char c[sizeof (long int)];
4308 } u;
4309 u.l = 1;
4310 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004311
4312 ;
4313 return 0;
4314}
4315_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004316rm -f conftest$ac_exeext
4317if { (ac_try="$ac_link"
4318case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321esac
4322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_link") 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327 { (case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330esac
4331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_try") 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004336 ac_cv_c_bigendian=no
4337else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004338 echo "$as_me: program exited with status $ac_status" >&5
4339echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342( exit $ac_status )
4343ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004345rm -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 +00004346fi
4347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004348
Reid Spencera773bd52006-08-04 18:18:08 +00004349fi
4350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352fi
4353{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4354echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4355case $ac_cv_c_bigendian in
4356 yes)
4357 ENDIAN=big
4358 ;;
4359 no)
4360 ENDIAN=little
4361 ;;
4362 *)
4363 { { echo "$as_me:$LINENO: error: unknown endianness
4364presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4365echo "$as_me: error: unknown endianness
4366presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4367 { (exit 1); exit 1; }; } ;;
4368esac
Reid Spencera773bd52006-08-04 18:18:08 +00004369
4370
4371if test "$cross_compiling" = yes; then
4372 LLVM_CROSS_COMPILING=1
4373
4374
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004375{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4376echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4377if test "${ac_cv_build_exeext+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004379else
4380 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4381 ac_cv_build_exeext=.exe
4382else
4383 ac_build_prefix=${build_alias}-
4384
4385 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4386set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004391else
4392 if test -n "$BUILD_CC"; then
4393 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394else
4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 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 +00004402 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004404 break 2
4405 fi
4406done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004407done
Reid Spencera773bd52006-08-04 18:18:08 +00004408IFS=$as_save_IFS
4409
4410fi
4411fi
4412BUILD_CC=$ac_cv_prog_BUILD_CC
4413if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004414 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4415echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004417 { echo "$as_me:$LINENO: result: no" >&5
4418echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004419fi
4420
4421
4422 if test -z "$BUILD_CC"; then
4423 # Extract the first word of "gcc", so it can be a program name with args.
4424set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004429else
4430 if test -n "$BUILD_CC"; then
4431 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004440 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004442 break 2
4443 fi
4444done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004445done
Reid Spencera773bd52006-08-04 18:18:08 +00004446IFS=$as_save_IFS
4447
4448fi
4449fi
4450BUILD_CC=$ac_cv_prog_BUILD_CC
4451if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004452 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004455 { echo "$as_me:$LINENO: result: no" >&5
4456echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004457fi
4458
4459
4460 if test -z "$BUILD_CC"; then
4461 # Extract the first word of "cc", so it can be a program name with args.
4462set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004467else
4468 if test -n "$BUILD_CC"; then
4469 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470else
4471 ac_prog_rejected=no
4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 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 +00004479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480 ac_prog_rejected=yes
4481 continue
4482 fi
4483 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004485 break 2
4486 fi
4487done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004488done
Reid Spencera773bd52006-08-04 18:18:08 +00004489IFS=$as_save_IFS
4490
4491if test $ac_prog_rejected = yes; then
4492 # We found a bogon in the path, so make sure we never use it.
4493 set dummy $ac_cv_prog_BUILD_CC
4494 shift
4495 if test $# != 0; then
4496 # We chose a different compiler from the bogus one.
4497 # However, it has the same basename, so the bogon will be chosen
4498 # first if we set BUILD_CC to just the basename; use the full file name.
4499 shift
4500 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4501 fi
4502fi
4503fi
4504fi
4505BUILD_CC=$ac_cv_prog_BUILD_CC
4506if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004507 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4508echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004509else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004510 { echo "$as_me:$LINENO: result: no" >&5
4511echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004512fi
4513
4514
4515 fi
4516 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004517 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4518echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4519 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004520 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4521 rm -f conftest*
4522 echo 'int main () { return 0; }' > conftest.$ac_ext
4523 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004524 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004525 (eval $ac_build_link) 2>&5
4526 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004529 for file in conftest.*; do
4530 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004531 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004532 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4533 esac
4534 done
4535 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004536 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4537echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4538 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004539 fi
4540 rm -f conftest*
4541 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4542fi
4543fi
4544
4545BUILD_EXEEXT=""
4546test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004547{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4548echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004549ac_build_exeext=$BUILD_EXEEXT
4550
Jim Grosbach673612e2008-10-02 22:56:44 +00004551 ac_build_prefix=${build_alias}-
4552 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4553set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004558else
4559 if test -n "$BUILD_CXX"; then
4560 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4561else
4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 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 +00004569 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004571 break 2
4572 fi
4573done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004574done
Jim Grosbach673612e2008-10-02 22:56:44 +00004575IFS=$as_save_IFS
4576
4577fi
4578fi
4579BUILD_CXX=$ac_cv_prog_BUILD_CXX
4580if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004581 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4582echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004583else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004584 { echo "$as_me:$LINENO: result: no" >&5
4585echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004586fi
4587
4588
4589 if test -z "$BUILD_CXX"; then
4590 # Extract the first word of "g++", so it can be a program name with args.
4591set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004596else
4597 if test -n "$BUILD_CXX"; then
4598 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004607 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004609 break 2
4610 fi
4611done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612done
Jim Grosbach673612e2008-10-02 22:56:44 +00004613IFS=$as_save_IFS
4614
4615fi
4616fi
4617BUILD_CXX=$ac_cv_prog_BUILD_CXX
4618if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004619 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4620echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004622 { echo "$as_me:$LINENO: result: no" >&5
4623echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004624fi
4625
4626
4627 if test -z "$BUILD_CXX"; then
4628 # Extract the first word of "c++", so it can be a program name with args.
4629set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004634else
4635 if test -n "$BUILD_CXX"; then
4636 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4637else
4638 ac_prog_rejected=no
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 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 +00004646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4647 ac_prog_rejected=yes
4648 continue
4649 fi
4650 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004652 break 2
4653 fi
4654done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655done
Jim Grosbach673612e2008-10-02 22:56:44 +00004656IFS=$as_save_IFS
4657
4658if test $ac_prog_rejected = yes; then
4659 # We found a bogon in the path, so make sure we never use it.
4660 set dummy $ac_cv_prog_BUILD_CXX
4661 shift
4662 if test $# != 0; then
4663 # We chose a different compiler from the bogus one.
4664 # However, it has the same basename, so the bogon will be chosen
4665 # first if we set BUILD_CXX to just the basename; use the full file name.
4666 shift
4667 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4668 fi
4669fi
4670fi
4671fi
4672BUILD_CXX=$ac_cv_prog_BUILD_CXX
4673if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004674 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4675echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004676else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004677 { echo "$as_me:$LINENO: result: no" >&5
4678echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004679fi
4680
4681
4682 fi
4683 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004684else
4685 LLVM_CROSS_COMPILING=0
4686
4687fi
4688
Dan Gohman56fb5f92010-08-04 16:25:01 +00004689if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004690 cvsbuild="yes"
4691 optimize="no"
4692 CVSBUILD=CVSBUILD=1
4693
4694else
4695 cvsbuild="no"
4696 optimize="yes"
4697fi
4698
4699
4700# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004701if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004702 enableval=$enable_optimized;
4703else
4704 enableval=$optimize
4705fi
4706
4707if test ${enableval} = "no" ; then
4708 ENABLE_OPTIMIZED=
4709
4710else
4711 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4712
4713fi
4714
David Greene2a5a12c2009-04-17 14:50:39 +00004715# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004716if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004717 enableval=$enable_profiling;
4718else
4719 enableval="no"
4720fi
4721
4722if test ${enableval} = "no" ; then
4723 ENABLE_PROFILING=
4724
4725else
4726 ENABLE_PROFILING=ENABLE_PROFILING=1
4727
4728fi
4729
Reid Spencera773bd52006-08-04 18:18:08 +00004730# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004731if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004732 enableval=$enable_assertions;
4733else
4734 enableval="yes"
4735fi
4736
4737if test ${enableval} = "yes" ; then
4738 DISABLE_ASSERTIONS=
4739
4740else
4741 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4742
4743fi
4744
David Greenea696d242007-06-28 19:36:08 +00004745# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004746if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004747 enableval=$enable_expensive_checks;
4748else
4749 enableval="no"
4750fi
4751
4752if test ${enableval} = "yes" ; then
4753 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4754
4755 EXPENSIVE_CHECKS=yes
4756
4757else
4758 ENABLE_EXPENSIVE_CHECKS=
4759
4760 EXPENSIVE_CHECKS=no
4761
4762fi
4763
Reid Spencer8b2e1412006-11-17 03:32:33 +00004764# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004765if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004766 enableval=$enable_debug_runtime;
4767else
4768 enableval=no
4769fi
4770
4771if test ${enableval} = "no" ; then
4772 DEBUG_RUNTIME=
4773
4774else
4775 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4776
4777fi
4778
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004779# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004780if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004781 enableval=$enable_debug_symbols;
4782else
4783 enableval=no
4784fi
4785
4786if test ${enableval} = "no" ; then
4787 DEBUG_SYMBOLS=
4788
4789else
4790 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4791
4792fi
4793
Reid Spencera773bd52006-08-04 18:18:08 +00004794# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004795if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004796 enableval=$enable_jit;
4797else
4798 enableval=default
4799fi
4800
4801if test ${enableval} = "no"
4802then
4803 JIT=
4804
4805else
4806 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004807 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004808 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004809 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004810 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004811 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004812 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004813 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004814 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004815 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004816 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004817 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004818 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004819 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004820 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004821 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004822 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004823 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004824 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004825 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004826 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004827 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004828 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004829 Blackfin) TARGET_HAS_JIT=0
4830 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004831 MBlaze) TARGET_HAS_JIT=0
4832 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004833 PTX) TARGET_HAS_JIT=0
4834 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004835 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004836 ;;
4837 esac
4838fi
4839
4840# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004841if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004842 enableval=$enable_doxygen;
4843else
4844 enableval=default
4845fi
4846
4847case "$enableval" in
4848 yes) ENABLE_DOXYGEN=1
4849 ;;
4850 no) ENABLE_DOXYGEN=0
4851 ;;
4852 default) ENABLE_DOXYGEN=0
4853 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004854 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4855echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4856 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004857esac
4858
4859# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004860if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004861 enableval=$enable_threads;
4862else
Reid Spencer65c5d752006-11-05 17:08:18 +00004863 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004864fi
4865
4866case "$enableval" in
4867 yes) ENABLE_THREADS=1
4868 ;;
4869 no) ENABLE_THREADS=0
4870 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004871 default) ENABLE_THREADS=1
4872 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004873 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4874echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4875 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004876esac
4877
Owen Andersona8603702009-05-19 22:18:56 +00004878cat >>confdefs.h <<_ACEOF
4879#define ENABLE_THREADS $ENABLE_THREADS
4880_ACEOF
4881
4882
Reid Spencer89b0d992006-12-16 22:07:52 +00004883# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004884if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004885 enableval=$enable_pic;
4886else
4887 enableval=default
4888fi
4889
4890case "$enableval" in
4891 yes) ENABLE_PIC=1
4892 ;;
4893 no) ENABLE_PIC=0
4894 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004895 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004896 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004897 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4898echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4899 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004900esac
4901
4902cat >>confdefs.h <<_ACEOF
4903#define ENABLE_PIC $ENABLE_PIC
4904_ACEOF
4905
4906
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004907# Check whether --enable-shared was given.
4908if test "${enable_shared+set}" = set; then
4909 enableval=$enable_shared;
4910else
4911 enableval=default
4912fi
4913
4914case "$enableval" in
4915 yes) ENABLE_SHARED=1
4916 ;;
4917 no) ENABLE_SHARED=0
4918 ;;
4919 default) ENABLE_SHARED=0
4920 ;;
4921 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4922echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4923 { (exit 1); exit 1; }; } ;;
4924esac
4925
Daniel Dunbardd464df2010-05-10 20:11:56 +00004926# Check whether --enable-timestamps was given.
4927if test "${enable_timestamps+set}" = set; then
4928 enableval=$enable_timestamps;
4929else
4930 enableval=default
4931fi
4932
4933case "$enableval" in
4934 yes) ENABLE_TIMESTAMPS=1
4935 ;;
4936 no) ENABLE_TIMESTAMPS=0
4937 ;;
4938 default) ENABLE_TIMESTAMPS=1
4939 ;;
4940 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4941echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4942 { (exit 1); exit 1; }; } ;;
4943esac
4944
4945cat >>confdefs.h <<_ACEOF
4946#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4947_ACEOF
4948
4949
Reid Spencera773bd52006-08-04 18:18:08 +00004950TARGETS_TO_BUILD=""
4951# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004952if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004953 enableval=$enable_targets;
4954else
4955 enableval=all
4956fi
4957
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004958if test "$enableval" = host-only ; then
4959 enableval=host
4960fi
Reid Spencera773bd52006-08-04 18:18:08 +00004961case "$enableval" in
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004962 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004963 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4964 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004965 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4966 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4967 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4968 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4969 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4970 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4971 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4972 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4973 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4974 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4975 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4976 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4977 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4978 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004979 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004980 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004981 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004982 host) case "$llvm_cv_target_arch" in
4983 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4984 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4985 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4986 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4987 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4988 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4989 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004990 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004991 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4992 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4993 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4994 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004995 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004996 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004997 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004998 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4999echo "$as_me: error: Can not set target to build" >&2;}
5000 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005001 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005002 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5003echo "$as_me: error: Unrecognized target $a_target" >&2;}
5004 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005005 esac
5006 done
5007 ;;
5008esac
Reid Spencera773bd52006-08-04 18:18:08 +00005009TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5010
5011
Douglas Gregor0711c302009-06-17 00:43:20 +00005012# Determine whether we are building LLVM support for the native architecture.
5013# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5014for a_target in $TARGETS_TO_BUILD; do
5015 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5016
5017cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005018#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5019_ACEOF
5020
5021 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5022 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5023 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5024
5025cat >>confdefs.h <<_ACEOF
5026#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005027_ACEOF
5028
5029
5030cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005031#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5032_ACEOF
5033
5034
5035cat >>confdefs.h <<_ACEOF
5036#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005037_ACEOF
5038
5039 fi
5040done
5041
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005042# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5043# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005044LLVM_ENUM_TARGETS=""
5045LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005046LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005047LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005048for target_to_build in $TARGETS_TO_BUILD; do
5049 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5050 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5051 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5052 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005053 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5054 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5055 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005056 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5057 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5058 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005059done
5060
5061
5062
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005063
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005064
Reid Spencer65c5d752006-11-05 17:08:18 +00005065# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005066if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005067 enableval=$enable_cbe_printf_a;
5068else
5069 enableval=default
5070fi
5071
5072case "$enableval" in
5073 yes) ENABLE_CBE_PRINTF_A=1
5074 ;;
5075 no) ENABLE_CBE_PRINTF_A=0
5076 ;;
5077 default) ENABLE_CBE_PRINTF_A=1
5078 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005079 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5080echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5081 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005082esac
5083
5084cat >>confdefs.h <<_ACEOF
5085#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5086_ACEOF
5087
5088
Reid Spencera773bd52006-08-04 18:18:08 +00005089
5090# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005091if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005092 withval=$with_llvmgccdir;
5093else
5094 withval=default
5095fi
5096
5097case "$withval" in
5098 default) WITH_LLVMGCCDIR=default ;;
5099 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005100 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5101echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5102 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005103esac
5104
5105
Devang Patel5d28b882007-12-04 22:54:47 +00005106# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005107if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005108 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5109 WITH_LLVMGCCDIR=""
5110fi
5111
5112
5113
5114# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005115if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005116 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5117 WITH_LLVMGCCDIR=""
5118fi
5119
Douglas Gregor01746742009-05-11 18:05:52 +00005120
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005121if test -n "$LLVMGCC"; then
5122 LLVMGCCCOMMAND="$LLVMGCC"
5123fi
5124
5125if test -n "$LLVMGXX"; then
5126 LLVMGXXCOMMAND="$LLVMGXX"
5127fi
Devang Patel5d28b882007-12-04 22:54:47 +00005128
5129if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005130 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5131echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5132 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005133fi
5134
5135if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005136 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5137echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5138 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005139fi
5140
5141
Daniel Dunbar98515672010-02-23 10:00:49 +00005142# Check whether --with-clang was given.
5143if test "${with_clang+set}" = set; then
5144 withval=$with_clang;
5145else
5146 with_clang=default
5147fi
5148
5149
5150
5151# Check whether --with-built-clang was given.
5152if test "${with_built_clang+set}" = set; then
5153 withval=$with_built_clang;
5154else
5155 with_built_clang=check
5156fi
5157
5158
5159{ echo "$as_me:$LINENO: checking clang compiler" >&5
5160echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5161WITH_CLANGPATH=""
5162WITH_BUILT_CLANG=0
5163if test "$with_clang" != "default"; then
5164 WITH_CLANGPATH="$with_clang"
5165 if ! test -x "$WITH_CLANGPATH"; then
5166 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5167echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5168 { (exit 1); exit 1; }; }
5169 fi
5170elif test "$with_built_clang" = "yes"; then
5171 WITH_BUILT_CLANG=1
5172elif test "$with_built_clang" = "no"; then
5173 WITH_BUILT_CLANG=0
5174else
5175 if test "$with_built_clang" != "check"; then
5176 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5177echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5178 { (exit 1); exit 1; }; }
5179 fi
5180
5181 if test -f ${srcdir}/tools/clang/README.txt; then
5182 WITH_BUILT_CLANG=1
5183 fi
5184fi
5185
5186if ! test -z "$WITH_CLANGPATH"; then
5187 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5188echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5189 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5190elif test "$WITH_BUILT_CLANG" = "1"; then
5191 { echo "$as_me:$LINENO: result: built" >&5
5192echo "${ECHO_T}built" >&6; }
5193else
5194 { echo "$as_me:$LINENO: result: none" >&5
5195echo "${ECHO_T}none" >&6; }
5196fi
5197CLANGPATH=$WITH_CLANGPATH
5198
5199CLANGXXPATH=$WITH_CLANGXXPATH
5200
5201ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5202
5203
5204
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005205# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005206if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005207 withval=$with_optimize_option;
5208else
5209 withval=default
5210fi
5211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005212{ echo "$as_me:$LINENO: checking optimization flags" >&5
5213echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005214case "$withval" in
5215 default)
5216 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005217 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005218 MingW) optimize_option=-O2 ;;
5219 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005220 esac ;;
5221 *) optimize_option="$withval" ;;
5222esac
5223OPTIMIZE_OPTION=$optimize_option
5224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005225{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5226echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005227
5228
Reid Spencera773bd52006-08-04 18:18:08 +00005229# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005230if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005231 withval=$with_extra_options;
5232else
5233 withval=default
5234fi
5235
5236case "$withval" in
5237 default) EXTRA_OPTIONS= ;;
5238 *) EXTRA_OPTIONS=$withval ;;
5239esac
5240EXTRA_OPTIONS=$EXTRA_OPTIONS
5241
5242
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005243# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005244if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005245 enableval=$enable_bindings;
5246else
5247 enableval=default
5248fi
5249
5250BINDINGS_TO_BUILD=""
5251case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005252 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005253 all ) BINDINGS_TO_BUILD="ocaml" ;;
5254 none | no) BINDINGS_TO_BUILD="" ;;
5255 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5256 case "$a_binding" in
5257 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005258 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5259echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5260 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005261 esac
5262 done
5263 ;;
5264esac
5265
Reid Spencera773bd52006-08-04 18:18:08 +00005266
Gordon Henriksenf0915682007-10-02 16:42:22 +00005267# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005268if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005269 withval=$with_ocaml_libdir;
5270else
5271 withval=auto
5272fi
5273
5274case "$withval" in
5275 auto) with_ocaml_libdir="$withval" ;;
5276 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005277 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5278echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5279 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005280esac
5281
5282
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005283# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005284if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005285 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005286else
5287 withval=""
5288fi
5289
5290
5291cat >>confdefs.h <<_ACEOF
5292#define C_INCLUDE_DIRS "$withval"
5293_ACEOF
5294
5295
5296
Rafael Espindola420d23c2009-11-16 19:46:55 +00005297# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005298if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005299 withval=$with_cxx_include_root;
5300else
5301 withval=""
5302fi
5303
5304
5305cat >>confdefs.h <<_ACEOF
5306#define CXX_INCLUDE_ROOT "$withval"
5307_ACEOF
5308
5309
5310
5311# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005312if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005313 withval=$with_cxx_include_arch;
5314else
5315 withval=""
5316fi
5317
5318
5319cat >>confdefs.h <<_ACEOF
5320#define CXX_INCLUDE_ARCH "$withval"
5321_ACEOF
5322
5323
5324
5325# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005326if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005327 withval=$with_cxx_include_32bit_dir;
5328else
5329 withval=""
5330fi
5331
5332
5333cat >>confdefs.h <<_ACEOF
5334#define CXX_INCLUDE_32BIT_DIR "$withval"
5335_ACEOF
5336
5337
5338
5339# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005340if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005341 withval=$with_cxx_include_64bit_dir;
5342else
5343 withval=""
5344fi
5345
5346
5347cat >>confdefs.h <<_ACEOF
5348#define CXX_INCLUDE_64BIT_DIR "$withval"
5349_ACEOF
5350
5351
5352
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005353# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005354if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005355 withval=$with_binutils_include;
5356else
5357 withval=default
5358fi
5359
5360case "$withval" in
5361 default) WITH_BINUTILS_INCDIR=default ;;
5362 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005363 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5364echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5365 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005366esac
5367if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5368 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5369
5370 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5371 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005372 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5373echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5374 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005375 fi
5376fi
5377
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005378# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005379if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005380 enableval=$enable_libffi; case "$enableval" in
5381 yes) llvm_cv_enable_libffi="yes" ;;
5382 no) llvm_cv_enable_libffi="no" ;;
5383 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005384echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5385 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005386 esac
5387else
5388 llvm_cv_enable_libffi=no
5389fi
5390
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005391
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005392
Reid Spencera773bd52006-08-04 18:18:08 +00005393ac_ext=c
5394ac_cpp='$CPP $CPPFLAGS'
5395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5397ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005398{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5399echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005400# On Suns, sometimes $CPP names a directory.
5401if test -n "$CPP" && test -d "$CPP"; then
5402 CPP=
5403fi
5404if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005405 if test "${ac_cv_prog_CPP+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005407else
5408 # Double quotes because CPP needs to be expanded
5409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5410 do
5411 ac_preproc_ok=false
5412for ac_c_preproc_warn_flag in '' yes
5413do
5414 # Use a header file that comes with gcc, so configuring glibc
5415 # with a fresh cross-compiler works.
5416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5417 # <limits.h> exists even on freestanding compilers.
5418 # On the NeXT, cc -E runs the code through the compiler's parser,
5419 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005420 cat >conftest.$ac_ext <<_ACEOF
5421/* confdefs.h. */
5422_ACEOF
5423cat confdefs.h >>conftest.$ac_ext
5424cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005425/* end confdefs.h. */
5426#ifdef __STDC__
5427# include <limits.h>
5428#else
5429# include <assert.h>
5430#endif
5431 Syntax error
5432_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005433if { (ac_try="$ac_cpp conftest.$ac_ext"
5434case "(($ac_try" in
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5437esac
5438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5440 ac_status=$?
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } >/dev/null; then
5446 if test -s conftest.err; then
5447 ac_cpp_err=$ac_c_preproc_warn_flag
5448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5449 else
5450 ac_cpp_err=
5451 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005452else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005453 ac_cpp_err=yes
5454fi
5455if test -z "$ac_cpp_err"; then
5456 :
5457else
5458 echo "$as_me: failed program was:" >&5
5459sed 's/^/| /' conftest.$ac_ext >&5
5460
Reid Spencera773bd52006-08-04 18:18:08 +00005461 # Broken: fails on valid input.
5462continue
5463fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005464
Reid Spencera773bd52006-08-04 18:18:08 +00005465rm -f conftest.err conftest.$ac_ext
5466
5467 # OK, works on sane cases. Now check whether nonexistent headers
5468 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005469 cat >conftest.$ac_ext <<_ACEOF
5470/* confdefs.h. */
5471_ACEOF
5472cat confdefs.h >>conftest.$ac_ext
5473cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005474/* end confdefs.h. */
5475#include <ac_nonexistent.h>
5476_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005477if { (ac_try="$ac_cpp conftest.$ac_ext"
5478case "(($ac_try" in
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5481esac
5482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5484 ac_status=$?
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } >/dev/null; then
5490 if test -s conftest.err; then
5491 ac_cpp_err=$ac_c_preproc_warn_flag
5492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5493 else
5494 ac_cpp_err=
5495 fi
5496else
5497 ac_cpp_err=yes
5498fi
5499if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005500 # Broken: success on invalid input.
5501continue
5502else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005503 echo "$as_me: failed program was:" >&5
5504sed 's/^/| /' conftest.$ac_ext >&5
5505
Reid Spencera773bd52006-08-04 18:18:08 +00005506 # Passes both tests.
5507ac_preproc_ok=:
5508break
5509fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005510
Reid Spencera773bd52006-08-04 18:18:08 +00005511rm -f conftest.err conftest.$ac_ext
5512
5513done
5514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5515rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005516if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005517 break
5518fi
5519
5520 done
5521 ac_cv_prog_CPP=$CPP
5522
5523fi
5524 CPP=$ac_cv_prog_CPP
5525else
5526 ac_cv_prog_CPP=$CPP
5527fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005528{ echo "$as_me:$LINENO: result: $CPP" >&5
5529echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005530ac_preproc_ok=false
5531for ac_c_preproc_warn_flag in '' yes
5532do
5533 # Use a header file that comes with gcc, so configuring glibc
5534 # with a fresh cross-compiler works.
5535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5536 # <limits.h> exists even on freestanding compilers.
5537 # On the NeXT, cc -E runs the code through the compiler's parser,
5538 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005539 cat >conftest.$ac_ext <<_ACEOF
5540/* confdefs.h. */
5541_ACEOF
5542cat confdefs.h >>conftest.$ac_ext
5543cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005544/* end confdefs.h. */
5545#ifdef __STDC__
5546# include <limits.h>
5547#else
5548# include <assert.h>
5549#endif
5550 Syntax error
5551_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005552if { (ac_try="$ac_cpp conftest.$ac_ext"
5553case "(($ac_try" in
5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555 *) ac_try_echo=$ac_try;;
5556esac
5557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } >/dev/null; then
5565 if test -s conftest.err; then
5566 ac_cpp_err=$ac_c_preproc_warn_flag
5567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5568 else
5569 ac_cpp_err=
5570 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005572 ac_cpp_err=yes
5573fi
5574if test -z "$ac_cpp_err"; then
5575 :
5576else
5577 echo "$as_me: failed program was:" >&5
5578sed 's/^/| /' conftest.$ac_ext >&5
5579
Reid Spencera773bd52006-08-04 18:18:08 +00005580 # Broken: fails on valid input.
5581continue
5582fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005583
Reid Spencera773bd52006-08-04 18:18:08 +00005584rm -f conftest.err conftest.$ac_ext
5585
5586 # OK, works on sane cases. Now check whether nonexistent headers
5587 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005588 cat >conftest.$ac_ext <<_ACEOF
5589/* confdefs.h. */
5590_ACEOF
5591cat confdefs.h >>conftest.$ac_ext
5592cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005593/* end confdefs.h. */
5594#include <ac_nonexistent.h>
5595_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005596if { (ac_try="$ac_cpp conftest.$ac_ext"
5597case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600esac
5601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } >/dev/null; then
5609 if test -s conftest.err; then
5610 ac_cpp_err=$ac_c_preproc_warn_flag
5611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5612 else
5613 ac_cpp_err=
5614 fi
5615else
5616 ac_cpp_err=yes
5617fi
5618if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005619 # Broken: success on invalid input.
5620continue
5621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005622 echo "$as_me: failed program was:" >&5
5623sed 's/^/| /' conftest.$ac_ext >&5
5624
Reid Spencera773bd52006-08-04 18:18:08 +00005625 # Passes both tests.
5626ac_preproc_ok=:
5627break
5628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005629
Reid Spencera773bd52006-08-04 18:18:08 +00005630rm -f conftest.err conftest.$ac_ext
5631
5632done
5633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5634rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005635if $ac_preproc_ok; then
5636 :
Reid Spencera773bd52006-08-04 18:18:08 +00005637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5639See \`config.log' for more details." >&5
5640echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5641See \`config.log' for more details." >&2;}
5642 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005643fi
5644
5645ac_ext=c
5646ac_cpp='$CPP $CPPFLAGS'
5647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650
5651ac_ext=c
5652ac_cpp='$CPP $CPPFLAGS'
5653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655ac_compiler_gnu=$ac_cv_c_compiler_gnu
5656if test -n "$ac_tool_prefix"; then
5657 for ac_prog in gcc
5658 do
5659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5660set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5663if test "${ac_cv_prog_CC+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005665else
5666 if test -n "$CC"; then
5667 ac_cv_prog_CC="$CC" # Let the user override the test.
5668else
5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 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 +00005676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005678 break 2
5679 fi
5680done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005681done
Reid Spencera773bd52006-08-04 18:18:08 +00005682IFS=$as_save_IFS
5683
5684fi
5685fi
5686CC=$ac_cv_prog_CC
5687if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005688 { echo "$as_me:$LINENO: result: $CC" >&5
5689echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005690else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005691 { echo "$as_me:$LINENO: result: no" >&5
5692echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005693fi
5694
5695
5696 test -n "$CC" && break
5697 done
5698fi
5699if test -z "$CC"; then
5700 ac_ct_CC=$CC
5701 for ac_prog in gcc
5702do
5703 # Extract the first word of "$ac_prog", so it can be a program name with args.
5704set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5707if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005709else
5710 if test -n "$ac_ct_CC"; then
5711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5712else
5713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714for as_dir in $PATH
5715do
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 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 +00005720 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005722 break 2
5723 fi
5724done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005725done
Reid Spencera773bd52006-08-04 18:18:08 +00005726IFS=$as_save_IFS
5727
5728fi
5729fi
5730ac_ct_CC=$ac_cv_prog_ac_ct_CC
5731if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005732 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5733echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005734else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005735 { echo "$as_me:$LINENO: result: no" >&5
5736echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005737fi
5738
5739
5740 test -n "$ac_ct_CC" && break
5741done
5742
5743 if test "x$ac_ct_CC" = x; then
5744 CC=""
5745 else
5746 case $cross_compiling:$ac_tool_warned in
5747yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005748{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5749whose name does not start with the host triplet. If you think this
5750configuration is useful to you, please write to autoconf@gnu.org." >&5
5751echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5752whose name does not start with the host triplet. If you think this
5753configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005754ac_tool_warned=yes ;;
5755esac
5756 CC=$ac_ct_CC
5757 fi
5758fi
5759
5760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005761test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5762See \`config.log' for more details." >&5
5763echo "$as_me: error: no acceptable C compiler found in \$PATH
5764See \`config.log' for more details." >&2;}
5765 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005766
5767# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005768echo "$as_me:$LINENO: checking for C compiler version" >&5
5769ac_compiler=`set X $ac_compile; echo $2`
5770{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005771case "(($ac_try" in
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5774esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005777 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }
5780{ (ac_try="$ac_compiler -v >&5"
5781case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784esac
5785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_compiler -v >&5") 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }
5790{ (ac_try="$ac_compiler -V >&5"
5791case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794esac
5795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_compiler -V >&5") 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005801{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5802echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5803if test "${ac_cv_c_compiler_gnu+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005805else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005806 cat >conftest.$ac_ext <<_ACEOF
5807/* confdefs.h. */
5808_ACEOF
5809cat confdefs.h >>conftest.$ac_ext
5810cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005811/* end confdefs.h. */
5812
5813int
5814main ()
5815{
5816#ifndef __GNUC__
5817 choke me
5818#endif
5819
5820 ;
5821 return 0;
5822}
5823_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005824rm -f conftest.$ac_objext
5825if { (ac_try="$ac_compile"
5826case "(($ac_try" in
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5829esac
5830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_compile") 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5839 { (case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842esac
5843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_try") 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; } &&
5848 { ac_try='test -s conftest.$ac_objext'
5849 { (case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852esac
5853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_try") 2>&5
5855 ac_status=$?
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005858 ac_compiler_gnu=yes
5859else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005860 echo "$as_me: failed program was:" >&5
5861sed 's/^/| /' conftest.$ac_ext >&5
5862
5863 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005864fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005865
Reid Spencera773bd52006-08-04 18:18:08 +00005866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867ac_cv_c_compiler_gnu=$ac_compiler_gnu
5868
5869fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005870{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5871echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5872GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005873ac_test_CFLAGS=${CFLAGS+set}
5874ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005875{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5876echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5877if test "${ac_cv_prog_cc_g+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005879else
5880 ac_save_c_werror_flag=$ac_c_werror_flag
5881 ac_c_werror_flag=yes
5882 ac_cv_prog_cc_g=no
5883 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005884 cat >conftest.$ac_ext <<_ACEOF
5885/* confdefs.h. */
5886_ACEOF
5887cat confdefs.h >>conftest.$ac_ext
5888cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005889/* end confdefs.h. */
5890
5891int
5892main ()
5893{
5894
5895 ;
5896 return 0;
5897}
5898_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005899rm -f conftest.$ac_objext
5900if { (ac_try="$ac_compile"
5901case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5904esac
5905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_compile") 2>conftest.er1
5907 ac_status=$?
5908 grep -v '^ *+' conftest.er1 >conftest.err
5909 rm -f conftest.er1
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } &&
5913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5914 { (case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5917esac
5918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_try") 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try='test -s conftest.$ac_objext'
5924 { (case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927esac
5928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929 (eval "$ac_try") 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005933 ac_cv_prog_cc_g=yes
5934else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005935 echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938 CFLAGS=""
5939 cat >conftest.$ac_ext <<_ACEOF
5940/* confdefs.h. */
5941_ACEOF
5942cat confdefs.h >>conftest.$ac_ext
5943cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005944/* end confdefs.h. */
5945
5946int
5947main ()
5948{
5949
5950 ;
5951 return 0;
5952}
5953_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005954rm -f conftest.$ac_objext
5955if { (ac_try="$ac_compile"
5956case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5959esac
5960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_compile") 2>conftest.er1
5962 ac_status=$?
5963 grep -v '^ *+' conftest.er1 >conftest.err
5964 rm -f conftest.er1
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } &&
5968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5969 { (case "(($ac_try" in
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5972esac
5973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5974 (eval "$ac_try") 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982esac
5983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_try") 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
5988 :
Torok Edwin871384f2010-01-26 08:50:50 +00005989else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005990 echo "$as_me: failed program was:" >&5
5991sed 's/^/| /' conftest.$ac_ext >&5
5992
5993 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005994 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005995 cat >conftest.$ac_ext <<_ACEOF
5996/* confdefs.h. */
5997_ACEOF
5998cat confdefs.h >>conftest.$ac_ext
5999cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006000/* end confdefs.h. */
6001
6002int
6003main ()
6004{
6005
6006 ;
6007 return 0;
6008}
6009_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006010rm -f conftest.$ac_objext
6011if { (ac_try="$ac_compile"
6012case "(($ac_try" in
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6015esac
6016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_compile") 2>conftest.er1
6018 ac_status=$?
6019 grep -v '^ *+' conftest.er1 >conftest.err
6020 rm -f conftest.er1
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } &&
6024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6025 { (case "(($ac_try" in
6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027 *) ac_try_echo=$ac_try;;
6028esac
6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030 (eval "$ac_try") 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; } &&
6034 { ac_try='test -s conftest.$ac_objext'
6035 { (case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038esac
6039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_try") 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006044 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006045else
6046 echo "$as_me: failed program was:" >&5
6047sed 's/^/| /' conftest.$ac_ext >&5
6048
6049
Reid Spencera773bd52006-08-04 18:18:08 +00006050fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006051
Reid Spencera773bd52006-08-04 18:18:08 +00006052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006054
Reid Spencera773bd52006-08-04 18:18:08 +00006055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006057
Reid Spencera773bd52006-08-04 18:18:08 +00006058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 ac_c_werror_flag=$ac_save_c_werror_flag
6060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006061{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6062echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006063if test "$ac_test_CFLAGS" = set; then
6064 CFLAGS=$ac_save_CFLAGS
6065elif test $ac_cv_prog_cc_g = yes; then
6066 if test "$GCC" = yes; then
6067 CFLAGS="-g -O2"
6068 else
6069 CFLAGS="-g"
6070 fi
6071else
6072 if test "$GCC" = yes; then
6073 CFLAGS="-O2"
6074 else
6075 CFLAGS=
6076 fi
6077fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006078{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6079echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6080if test "${ac_cv_prog_cc_c89+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006082else
6083 ac_cv_prog_cc_c89=no
6084ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006085cat >conftest.$ac_ext <<_ACEOF
6086/* confdefs.h. */
6087_ACEOF
6088cat confdefs.h >>conftest.$ac_ext
6089cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006090/* end confdefs.h. */
6091#include <stdarg.h>
6092#include <stdio.h>
6093#include <sys/types.h>
6094#include <sys/stat.h>
6095/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6096struct buf { int x; };
6097FILE * (*rcsopen) (struct buf *, struct stat *, int);
6098static char *e (p, i)
6099 char **p;
6100 int i;
6101{
6102 return p[i];
6103}
6104static char *f (char * (*g) (char **, int), char **p, ...)
6105{
6106 char *s;
6107 va_list v;
6108 va_start (v,p);
6109 s = g (p, va_arg (v,int));
6110 va_end (v);
6111 return s;
6112}
6113
6114/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6115 function prototypes and stuff, but not '\xHH' hex character constants.
6116 These don't provoke an error unfortunately, instead are silently treated
6117 as 'x'. The following induces an error, until -std is added to get
6118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6119 array size at least. It's necessary to write '\x00'==0 to get something
6120 that's true only with -std. */
6121int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6122
6123/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6124 inside strings and character constants. */
6125#define FOO(x) 'x'
6126int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6127
6128int test (int i, double x);
6129struct s1 {int (*f) (int a);};
6130struct s2 {int (*f) (double a);};
6131int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6132int argc;
6133char **argv;
6134int
6135main ()
6136{
6137return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6138 ;
6139 return 0;
6140}
6141_ACEOF
6142for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6144do
6145 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006146 rm -f conftest.$ac_objext
6147if { (ac_try="$ac_compile"
6148case "(($ac_try" in
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6151esac
6152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_compile") 2>conftest.er1
6154 ac_status=$?
6155 grep -v '^ *+' conftest.er1 >conftest.err
6156 rm -f conftest.er1
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } &&
6160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6161 { (case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6164esac
6165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_try") 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; } &&
6170 { ac_try='test -s conftest.$ac_objext'
6171 { (case "(($ac_try" in
6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173 *) ac_try_echo=$ac_try;;
6174esac
6175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6176 (eval "$ac_try") 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006180 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006181else
6182 echo "$as_me: failed program was:" >&5
6183sed 's/^/| /' conftest.$ac_ext >&5
6184
6185
Reid Spencera773bd52006-08-04 18:18:08 +00006186fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006187
Reid Spencera773bd52006-08-04 18:18:08 +00006188rm -f core conftest.err conftest.$ac_objext
6189 test "x$ac_cv_prog_cc_c89" != "xno" && break
6190done
6191rm -f conftest.$ac_ext
6192CC=$ac_save_CC
6193
6194fi
6195# AC_CACHE_VAL
6196case "x$ac_cv_prog_cc_c89" in
6197 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006198 { echo "$as_me:$LINENO: result: none needed" >&5
6199echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006200 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006201 { echo "$as_me:$LINENO: result: unsupported" >&5
6202echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006203 *)
6204 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006205 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6206echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006207esac
6208
6209
6210ac_ext=c
6211ac_cpp='$CPP $CPPFLAGS'
6212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214ac_compiler_gnu=$ac_cv_c_compiler_gnu
6215
6216ac_ext=cpp
6217ac_cpp='$CXXCPP $CPPFLAGS'
6218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6221if test -z "$CXX"; then
6222 if test -n "$CCC"; then
6223 CXX=$CCC
6224 else
6225 if test -n "$ac_tool_prefix"; then
6226 for ac_prog in g++
6227 do
6228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006230{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232if test "${ac_cv_prog_CXX+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006234else
6235 if test -n "$CXX"; then
6236 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6237else
6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 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 +00006245 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006247 break 2
6248 fi
6249done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006250done
Reid Spencera773bd52006-08-04 18:18:08 +00006251IFS=$as_save_IFS
6252
6253fi
6254fi
6255CXX=$ac_cv_prog_CXX
6256if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006257 { echo "$as_me:$LINENO: result: $CXX" >&5
6258echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006259else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006260 { echo "$as_me:$LINENO: result: no" >&5
6261echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006262fi
6263
6264
6265 test -n "$CXX" && break
6266 done
6267fi
6268if test -z "$CXX"; then
6269 ac_ct_CXX=$CXX
6270 for ac_prog in g++
6271do
6272 # Extract the first word of "$ac_prog", so it can be a program name with args.
6273set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6276if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006278else
6279 if test -n "$ac_ct_CXX"; then
6280 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6281else
6282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283for as_dir in $PATH
6284do
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 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 +00006289 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006291 break 2
6292 fi
6293done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006294done
Reid Spencera773bd52006-08-04 18:18:08 +00006295IFS=$as_save_IFS
6296
6297fi
6298fi
6299ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6300if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006301 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6302echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006303else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006304 { echo "$as_me:$LINENO: result: no" >&5
6305echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006306fi
6307
6308
6309 test -n "$ac_ct_CXX" && break
6310done
6311
6312 if test "x$ac_ct_CXX" = x; then
6313 CXX="g++"
6314 else
6315 case $cross_compiling:$ac_tool_warned in
6316yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006317{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6318whose name does not start with the host triplet. If you think this
6319configuration is useful to you, please write to autoconf@gnu.org." >&5
6320echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6321whose name does not start with the host triplet. If you think this
6322configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006323ac_tool_warned=yes ;;
6324esac
6325 CXX=$ac_ct_CXX
6326 fi
6327fi
6328
6329 fi
6330fi
6331# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006332echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6333ac_compiler=`set X $ac_compile; echo $2`
6334{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006335case "(($ac_try" in
6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337 *) ac_try_echo=$ac_try;;
6338esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006341 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }
6344{ (ac_try="$ac_compiler -v >&5"
6345case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348esac
6349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_compiler -v >&5") 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }
6354{ (ac_try="$ac_compiler -V >&5"
6355case "(($ac_try" in
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6358esac
6359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_compiler -V >&5") 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006365{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6366echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6367if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006369else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006370 cat >conftest.$ac_ext <<_ACEOF
6371/* confdefs.h. */
6372_ACEOF
6373cat confdefs.h >>conftest.$ac_ext
6374cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006375/* end confdefs.h. */
6376
6377int
6378main ()
6379{
6380#ifndef __GNUC__
6381 choke me
6382#endif
6383
6384 ;
6385 return 0;
6386}
6387_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006388rm -f conftest.$ac_objext
6389if { (ac_try="$ac_compile"
6390case "(($ac_try" in
6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6393esac
6394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6395 (eval "$ac_compile") 2>conftest.er1
6396 ac_status=$?
6397 grep -v '^ *+' conftest.er1 >conftest.err
6398 rm -f conftest.er1
6399 cat conftest.err >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } &&
6402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6403 { (case "(($ac_try" in
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6406esac
6407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$ac_try") 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; } &&
6412 { ac_try='test -s conftest.$ac_objext'
6413 { (case "(($ac_try" in
6414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6415 *) ac_try_echo=$ac_try;;
6416esac
6417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6418 (eval "$ac_try") 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006422 ac_compiler_gnu=yes
6423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006424 echo "$as_me: failed program was:" >&5
6425sed 's/^/| /' conftest.$ac_ext >&5
6426
6427 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006428fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006429
Reid Spencera773bd52006-08-04 18:18:08 +00006430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6432
6433fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006434{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6435echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6436GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006437ac_test_CXXFLAGS=${CXXFLAGS+set}
6438ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006439{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6440echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6441if test "${ac_cv_prog_cxx_g+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006443else
6444 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6445 ac_cxx_werror_flag=yes
6446 ac_cv_prog_cxx_g=no
6447 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006448 cat >conftest.$ac_ext <<_ACEOF
6449/* confdefs.h. */
6450_ACEOF
6451cat confdefs.h >>conftest.$ac_ext
6452cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006453/* end confdefs.h. */
6454
6455int
6456main ()
6457{
6458
6459 ;
6460 return 0;
6461}
6462_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006463rm -f conftest.$ac_objext
6464if { (ac_try="$ac_compile"
6465case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468esac
6469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_compile") 2>conftest.er1
6471 ac_status=$?
6472 grep -v '^ *+' conftest.er1 >conftest.err
6473 rm -f conftest.er1
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6478 { (case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481esac
6482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_try") 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; } &&
6487 { ac_try='test -s conftest.$ac_objext'
6488 { (case "(($ac_try" in
6489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490 *) ac_try_echo=$ac_try;;
6491esac
6492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493 (eval "$ac_try") 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006497 ac_cv_prog_cxx_g=yes
6498else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006499 echo "$as_me: failed program was:" >&5
6500sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 CXXFLAGS=""
6503 cat >conftest.$ac_ext <<_ACEOF
6504/* confdefs.h. */
6505_ACEOF
6506cat confdefs.h >>conftest.$ac_ext
6507cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006508/* end confdefs.h. */
6509
6510int
6511main ()
6512{
6513
6514 ;
6515 return 0;
6516}
6517_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006518rm -f conftest.$ac_objext
6519if { (ac_try="$ac_compile"
6520case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6523esac
6524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_compile") 2>conftest.er1
6526 ac_status=$?
6527 grep -v '^ *+' conftest.er1 >conftest.err
6528 rm -f conftest.er1
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } &&
6532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6533 { (case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536esac
6537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_try") 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; } &&
6542 { ac_try='test -s conftest.$ac_objext'
6543 { (case "(($ac_try" in
6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6546esac
6547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$ac_try") 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; }; then
6552 :
Torok Edwin871384f2010-01-26 08:50:50 +00006553else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006554 echo "$as_me: failed program was:" >&5
6555sed 's/^/| /' conftest.$ac_ext >&5
6556
6557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006558 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006559 cat >conftest.$ac_ext <<_ACEOF
6560/* confdefs.h. */
6561_ACEOF
6562cat confdefs.h >>conftest.$ac_ext
6563cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006564/* end confdefs.h. */
6565
6566int
6567main ()
6568{
6569
6570 ;
6571 return 0;
6572}
6573_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006574rm -f conftest.$ac_objext
6575if { (ac_try="$ac_compile"
6576case "(($ac_try" in
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6579esac
6580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581 (eval "$ac_compile") 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6589 { (case "(($ac_try" in
6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6592esac
6593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6594 (eval "$ac_try") 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try='test -s conftest.$ac_objext'
6599 { (case "(($ac_try" in
6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6602esac
6603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6604 (eval "$ac_try") 2>&5
6605 ac_status=$?
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006608 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609else
6610 echo "$as_me: failed program was:" >&5
6611sed 's/^/| /' conftest.$ac_ext >&5
6612
6613
Reid Spencera773bd52006-08-04 18:18:08 +00006614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006615
Reid Spencera773bd52006-08-04 18:18:08 +00006616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006618
Reid Spencera773bd52006-08-04 18:18:08 +00006619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006621
Reid Spencera773bd52006-08-04 18:18:08 +00006622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006625{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6626echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006627if test "$ac_test_CXXFLAGS" = set; then
6628 CXXFLAGS=$ac_save_CXXFLAGS
6629elif test $ac_cv_prog_cxx_g = yes; then
6630 if test "$GXX" = yes; then
6631 CXXFLAGS="-g -O2"
6632 else
6633 CXXFLAGS="-g"
6634 fi
6635else
6636 if test "$GXX" = yes; then
6637 CXXFLAGS="-O2"
6638 else
6639 CXXFLAGS=
6640 fi
6641fi
6642ac_ext=c
6643ac_cpp='$CPP $CPPFLAGS'
6644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6646ac_compiler_gnu=$ac_cv_c_compiler_gnu
6647
Reid Spencera773bd52006-08-04 18:18:08 +00006648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006649{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6650echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6651if test "${lt_cv_path_NM+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006653else
6654 if test -n "$NM"; then
6655 # Let the user override the test.
6656 lt_cv_path_NM="$NM"
6657else
6658 lt_nm_to_check="${ac_tool_prefix}nm"
6659 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6660 lt_nm_to_check="$lt_nm_to_check nm"
6661 fi
6662 for lt_tmp_nm in $lt_nm_to_check; do
6663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6664 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6665 IFS="$lt_save_ifs"
6666 test -z "$ac_dir" && ac_dir=.
6667 tmp_nm="$ac_dir/$lt_tmp_nm"
6668 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6669 # Check to see if the nm accepts a BSD-compat flag.
6670 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6671 # nm: unknown option "B" ignored
6672 # Tru64's nm complains that /dev/null is an invalid object file
6673 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6674 */dev/null* | *'Invalid file or object type'*)
6675 lt_cv_path_NM="$tmp_nm -B"
6676 break
6677 ;;
6678 *)
6679 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6680 */dev/null*)
6681 lt_cv_path_NM="$tmp_nm -p"
6682 break
6683 ;;
6684 *)
6685 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6686 continue # so that we can try to find one that supports BSD flags
6687 ;;
6688 esac
6689 ;;
6690 esac
6691 fi
6692 done
6693 IFS="$lt_save_ifs"
6694 done
6695 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6696fi
6697fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006698{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6699echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006700NM="$lt_cv_path_NM"
6701
6702
6703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006704{ echo "$as_me:$LINENO: checking for GNU make" >&5
6705echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6706if test "${llvm_cv_gnu_make_command+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006708else
6709 llvm_cv_gnu_make_command=''
6710 for a in "$MAKE" make gmake gnumake ; do
6711 if test -z "$a" ; then continue ; fi ;
6712 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6713 then
6714 llvm_cv_gnu_make_command=$a ;
6715 break;
6716 fi
6717 done
6718fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006719{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6720echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006721 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6722 ifGNUmake='' ;
6723 else
6724 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006725 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6726echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006727 fi
6728
6729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006730{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6731echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006732LN_S=$as_ln_s
6733if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006734 { echo "$as_me:$LINENO: result: yes" >&5
6735echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006736else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006737 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6738echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006739fi
6740
6741# Extract the first word of "cmp", so it can be a program name with args.
6742set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745if test "${ac_cv_path_CMP+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006747else
6748 case $CMP in
6749 [\\/]* | ?:[\\/]*)
6750 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6751 ;;
6752 *)
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754for as_dir in $PATH
6755do
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 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 +00006760 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006762 break 2
6763 fi
6764done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006765done
Reid Spencera773bd52006-08-04 18:18:08 +00006766IFS=$as_save_IFS
6767
6768 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6769 ;;
6770esac
6771fi
6772CMP=$ac_cv_path_CMP
6773if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006774 { echo "$as_me:$LINENO: result: $CMP" >&5
6775echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006776else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006777 { echo "$as_me:$LINENO: result: no" >&5
6778echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006779fi
6780
6781
6782# Extract the first word of "cp", so it can be a program name with args.
6783set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786if test "${ac_cv_path_CP+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006788else
6789 case $CP in
6790 [\\/]* | ?:[\\/]*)
6791 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6792 ;;
6793 *)
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795for as_dir in $PATH
6796do
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 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 +00006801 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006803 break 2
6804 fi
6805done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006806done
Reid Spencera773bd52006-08-04 18:18:08 +00006807IFS=$as_save_IFS
6808
6809 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6810 ;;
6811esac
6812fi
6813CP=$ac_cv_path_CP
6814if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006815 { echo "$as_me:$LINENO: result: $CP" >&5
6816echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006818 { echo "$as_me:$LINENO: result: no" >&5
6819echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006820fi
6821
6822
6823# Extract the first word of "date", so it can be a program name with args.
6824set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827if test "${ac_cv_path_DATE+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006829else
6830 case $DATE in
6831 [\\/]* | ?:[\\/]*)
6832 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6833 ;;
6834 *)
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836for as_dir in $PATH
6837do
6838 IFS=$as_save_IFS
6839 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 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 +00006842 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006844 break 2
6845 fi
6846done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006847done
Reid Spencera773bd52006-08-04 18:18:08 +00006848IFS=$as_save_IFS
6849
6850 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6851 ;;
6852esac
6853fi
6854DATE=$ac_cv_path_DATE
6855if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006856 { echo "$as_me:$LINENO: result: $DATE" >&5
6857echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006859 { echo "$as_me:$LINENO: result: no" >&5
6860echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006861fi
6862
6863
6864# Extract the first word of "find", so it can be a program name with args.
6865set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868if test "${ac_cv_path_FIND+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006870else
6871 case $FIND in
6872 [\\/]* | ?:[\\/]*)
6873 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6874 ;;
6875 *)
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 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 +00006883 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006885 break 2
6886 fi
6887done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006888done
Reid Spencera773bd52006-08-04 18:18:08 +00006889IFS=$as_save_IFS
6890
6891 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6892 ;;
6893esac
6894fi
6895FIND=$ac_cv_path_FIND
6896if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006897 { echo "$as_me:$LINENO: result: $FIND" >&5
6898echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006900 { echo "$as_me:$LINENO: result: no" >&5
6901echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006902fi
6903
6904
6905# Extract the first word of "grep", so it can be a program name with args.
6906set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909if test "${ac_cv_path_GREP+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006911else
6912 case $GREP in
6913 [\\/]* | ?:[\\/]*)
6914 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6915 ;;
6916 *)
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918for as_dir in $PATH
6919do
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 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 +00006924 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006926 break 2
6927 fi
6928done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006929done
Reid Spencera773bd52006-08-04 18:18:08 +00006930IFS=$as_save_IFS
6931
6932 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6933 ;;
6934esac
6935fi
6936GREP=$ac_cv_path_GREP
6937if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006938 { echo "$as_me:$LINENO: result: $GREP" >&5
6939echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006940else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006941 { echo "$as_me:$LINENO: result: no" >&5
6942echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006943fi
6944
6945
6946# Extract the first word of "mkdir", so it can be a program name with args.
6947set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950if test "${ac_cv_path_MKDIR+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006952else
6953 case $MKDIR in
6954 [\\/]* | ?:[\\/]*)
6955 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6956 ;;
6957 *)
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 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 +00006965 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006967 break 2
6968 fi
6969done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006970done
Reid Spencera773bd52006-08-04 18:18:08 +00006971IFS=$as_save_IFS
6972
6973 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6974 ;;
6975esac
6976fi
6977MKDIR=$ac_cv_path_MKDIR
6978if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006979 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6980echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006982 { echo "$as_me:$LINENO: result: no" >&5
6983echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006984fi
6985
6986
6987# Extract the first word of "mv", so it can be a program name with args.
6988set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991if test "${ac_cv_path_MV+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006993else
6994 case $MV in
6995 [\\/]* | ?:[\\/]*)
6996 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6997 ;;
6998 *)
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 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 +00007006 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007008 break 2
7009 fi
7010done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007011done
Reid Spencera773bd52006-08-04 18:18:08 +00007012IFS=$as_save_IFS
7013
7014 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7015 ;;
7016esac
7017fi
7018MV=$ac_cv_path_MV
7019if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007020 { echo "$as_me:$LINENO: result: $MV" >&5
7021echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007022else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007023 { echo "$as_me:$LINENO: result: no" >&5
7024echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007025fi
7026
7027
7028if test -n "$ac_tool_prefix"; then
7029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7030set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033if test "${ac_cv_prog_RANLIB+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007035else
7036 if test -n "$RANLIB"; then
7037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7038else
7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 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 +00007046 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007048 break 2
7049 fi
7050done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051done
Reid Spencera773bd52006-08-04 18:18:08 +00007052IFS=$as_save_IFS
7053
7054fi
7055fi
7056RANLIB=$ac_cv_prog_RANLIB
7057if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007058 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7059echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007061 { echo "$as_me:$LINENO: result: no" >&5
7062echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007063fi
7064
7065
7066fi
7067if test -z "$ac_cv_prog_RANLIB"; then
7068 ac_ct_RANLIB=$RANLIB
7069 # Extract the first word of "ranlib", so it can be a program name with args.
7070set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007075else
7076 if test -n "$ac_ct_RANLIB"; then
7077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7078else
7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 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 +00007086 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007088 break 2
7089 fi
7090done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007091done
Reid Spencera773bd52006-08-04 18:18:08 +00007092IFS=$as_save_IFS
7093
7094fi
7095fi
7096ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7097if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007098 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7099echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007100else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007101 { echo "$as_me:$LINENO: result: no" >&5
7102echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007103fi
7104
7105 if test "x$ac_ct_RANLIB" = x; then
7106 RANLIB=":"
7107 else
7108 case $cross_compiling:$ac_tool_warned in
7109yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007110{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7111whose name does not start with the host triplet. If you think this
7112configuration is useful to you, please write to autoconf@gnu.org." >&5
7113echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7114whose name does not start with the host triplet. If you think this
7115configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007116ac_tool_warned=yes ;;
7117esac
7118 RANLIB=$ac_ct_RANLIB
7119 fi
7120else
7121 RANLIB="$ac_cv_prog_RANLIB"
7122fi
7123
Torok Edwin871384f2010-01-26 08:50:50 +00007124if test -n "$ac_tool_prefix"; then
7125 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7126set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129if test "${ac_cv_prog_AR+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007131else
7132 if test -n "$AR"; then
7133 ac_cv_prog_AR="$AR" # Let the user override the test.
7134else
7135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 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 +00007142 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007144 break 2
7145 fi
7146done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007147done
Torok Edwin871384f2010-01-26 08:50:50 +00007148IFS=$as_save_IFS
7149
7150fi
7151fi
7152AR=$ac_cv_prog_AR
7153if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007154 { echo "$as_me:$LINENO: result: $AR" >&5
7155echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007157 { echo "$as_me:$LINENO: result: no" >&5
7158echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007159fi
7160
7161
7162fi
7163if test -z "$ac_cv_prog_AR"; then
7164 ac_ct_AR=$AR
7165 # Extract the first word of "ar", so it can be a program name with args.
7166set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007171else
7172 if test -n "$ac_ct_AR"; then
7173 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7174else
7175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176for as_dir in $PATH
7177do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 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 +00007182 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007184 break 2
7185 fi
7186done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007187done
Torok Edwin871384f2010-01-26 08:50:50 +00007188IFS=$as_save_IFS
7189
7190fi
7191fi
7192ac_ct_AR=$ac_cv_prog_ac_ct_AR
7193if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007194 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7195echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007196else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197 { echo "$as_me:$LINENO: result: no" >&5
7198echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007199fi
7200
7201 if test "x$ac_ct_AR" = x; then
7202 AR="false"
7203 else
7204 case $cross_compiling:$ac_tool_warned in
7205yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007206{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7207whose name does not start with the host triplet. If you think this
7208configuration is useful to you, please write to autoconf@gnu.org." >&5
7209echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7210whose name does not start with the host triplet. If you think this
7211configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007212ac_tool_warned=yes ;;
7213esac
7214 AR=$ac_ct_AR
7215 fi
7216else
7217 AR="$ac_cv_prog_AR"
7218fi
7219
Reid Spencera773bd52006-08-04 18:18:08 +00007220# Extract the first word of "rm", so it can be a program name with args.
7221set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224if test "${ac_cv_path_RM+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007226else
7227 case $RM in
7228 [\\/]* | ?:[\\/]*)
7229 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7230 ;;
7231 *)
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233for as_dir in $PATH
7234do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 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 +00007239 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007241 break 2
7242 fi
7243done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007244done
Reid Spencera773bd52006-08-04 18:18:08 +00007245IFS=$as_save_IFS
7246
7247 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7248 ;;
7249esac
7250fi
7251RM=$ac_cv_path_RM
7252if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007253 { echo "$as_me:$LINENO: result: $RM" >&5
7254echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007255else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007256 { echo "$as_me:$LINENO: result: no" >&5
7257echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007258fi
7259
7260
7261# Extract the first word of "sed", so it can be a program name with args.
7262set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265if test "${ac_cv_path_SED+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007267else
7268 case $SED in
7269 [\\/]* | ?:[\\/]*)
7270 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7271 ;;
7272 *)
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 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 +00007280 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007282 break 2
7283 fi
7284done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007285done
Reid Spencera773bd52006-08-04 18:18:08 +00007286IFS=$as_save_IFS
7287
7288 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7289 ;;
7290esac
7291fi
7292SED=$ac_cv_path_SED
7293if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007294 { echo "$as_me:$LINENO: result: $SED" >&5
7295echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007297 { echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007299fi
7300
7301
7302# Extract the first word of "tar", so it can be a program name with args.
7303set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007304{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306if test "${ac_cv_path_TAR+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007308else
7309 case $TAR in
7310 [\\/]* | ?:[\\/]*)
7311 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7312 ;;
7313 *)
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 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 +00007321 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007323 break 2
7324 fi
7325done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007326done
Reid Spencera773bd52006-08-04 18:18:08 +00007327IFS=$as_save_IFS
7328
7329 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7330 ;;
7331esac
7332fi
7333TAR=$ac_cv_path_TAR
7334if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007335 { echo "$as_me:$LINENO: result: $TAR" >&5
7336echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007337else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007338 { echo "$as_me:$LINENO: result: no" >&5
7339echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007340fi
7341
7342
7343# Extract the first word of "pwd", so it can be a program name with args.
7344set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347if test "${ac_cv_path_BINPWD+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007349else
7350 case $BINPWD in
7351 [\\/]* | ?:[\\/]*)
7352 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7353 ;;
7354 *)
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 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 +00007362 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007364 break 2
7365 fi
7366done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007367done
Reid Spencera773bd52006-08-04 18:18:08 +00007368IFS=$as_save_IFS
7369
7370 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7371 ;;
7372esac
7373fi
7374BINPWD=$ac_cv_path_BINPWD
7375if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007376 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7377echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007378else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007379 { echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007381fi
7382
7383
7384
7385# Extract the first word of "Graphviz", so it can be a program name with args.
7386set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007391else
7392 case $GRAPHVIZ in
7393 [\\/]* | ?:[\\/]*)
7394 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7395 ;;
7396 *)
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 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 +00007404 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007406 break 2
7407 fi
7408done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007409done
Reid Spencera773bd52006-08-04 18:18:08 +00007410IFS=$as_save_IFS
7411
7412 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7413 ;;
7414esac
7415fi
7416GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7417if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007418 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7419echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007420else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007421 { echo "$as_me:$LINENO: result: no" >&5
7422echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007423fi
7424
7425
7426if test "$GRAPHVIZ" != "echo Graphviz" ; then
7427
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007428cat >>confdefs.h <<\_ACEOF
7429#define HAVE_GRAPHVIZ 1
7430_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007431
Jeff Cohen28783c32007-01-12 18:22:38 +00007432 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007433 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7434 fi
7435
7436cat >>confdefs.h <<_ACEOF
7437#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7438_ACEOF
7439
7440fi
7441# Extract the first word of "dot", so it can be a program name with args.
7442set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445if test "${ac_cv_path_DOT+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007447else
7448 case $DOT in
7449 [\\/]* | ?:[\\/]*)
7450 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7451 ;;
7452 *)
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454for as_dir in $PATH
7455do
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 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 +00007460 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007462 break 2
7463 fi
7464done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007465done
Reid Spencera773bd52006-08-04 18:18:08 +00007466IFS=$as_save_IFS
7467
7468 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7469 ;;
7470esac
7471fi
7472DOT=$ac_cv_path_DOT
7473if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007474 { echo "$as_me:$LINENO: result: $DOT" >&5
7475echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007476else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477 { echo "$as_me:$LINENO: result: no" >&5
7478echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007479fi
7480
7481
7482if test "$DOT" != "echo dot" ; then
7483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007484cat >>confdefs.h <<\_ACEOF
7485#define HAVE_DOT 1
7486_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007487
Jeff Cohen28783c32007-01-12 18:22:38 +00007488 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007489 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7490 fi
7491
7492cat >>confdefs.h <<_ACEOF
7493#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7494_ACEOF
7495
7496fi
David Greenef0b9eff2009-07-09 17:16:26 +00007497# Extract the first word of "fdp", so it can be a program name with args.
7498set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7501if test "${ac_cv_path_FDP+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007503else
7504 case $FDP in
7505 [\\/]* | ?:[\\/]*)
7506 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7507 ;;
7508 *)
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510for as_dir in $PATH
7511do
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 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 +00007516 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007518 break 2
7519 fi
7520done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007521done
David Greenef0b9eff2009-07-09 17:16:26 +00007522IFS=$as_save_IFS
7523
7524 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7525 ;;
7526esac
7527fi
7528FDP=$ac_cv_path_FDP
7529if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007530 { echo "$as_me:$LINENO: result: $FDP" >&5
7531echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007532else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007533 { echo "$as_me:$LINENO: result: no" >&5
7534echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007535fi
7536
7537
7538if test "$FDP" != "echo fdp" ; then
7539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007540cat >>confdefs.h <<\_ACEOF
7541#define HAVE_FDP 1
7542_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007543
7544 if test "$llvm_cv_os_type" = "MingW" ; then
7545 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7546 fi
7547
7548cat >>confdefs.h <<_ACEOF
7549#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7550_ACEOF
7551
7552fi
7553# Extract the first word of "neato", so it can be a program name with args.
7554set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007555{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7557if test "${ac_cv_path_NEATO+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007559else
7560 case $NEATO in
7561 [\\/]* | ?:[\\/]*)
7562 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7563 ;;
7564 *)
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566for as_dir in $PATH
7567do
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 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 +00007572 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007574 break 2
7575 fi
7576done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007577done
David Greenef0b9eff2009-07-09 17:16:26 +00007578IFS=$as_save_IFS
7579
7580 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7581 ;;
7582esac
7583fi
7584NEATO=$ac_cv_path_NEATO
7585if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007586 { echo "$as_me:$LINENO: result: $NEATO" >&5
7587echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007588else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007589 { echo "$as_me:$LINENO: result: no" >&5
7590echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007591fi
7592
7593
7594if test "$NEATO" != "echo neato" ; then
7595
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007596cat >>confdefs.h <<\_ACEOF
7597#define HAVE_NEATO 1
7598_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007599
7600 if test "$llvm_cv_os_type" = "MingW" ; then
7601 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7602 fi
7603
7604cat >>confdefs.h <<_ACEOF
7605#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7606_ACEOF
7607
7608fi
7609# Extract the first word of "twopi", so it can be a program name with args.
7610set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613if test "${ac_cv_path_TWOPI+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007615else
7616 case $TWOPI in
7617 [\\/]* | ?:[\\/]*)
7618 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7619 ;;
7620 *)
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH
7623do
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 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 +00007628 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007630 break 2
7631 fi
7632done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007633done
David Greenef0b9eff2009-07-09 17:16:26 +00007634IFS=$as_save_IFS
7635
7636 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7637 ;;
7638esac
7639fi
7640TWOPI=$ac_cv_path_TWOPI
7641if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007642 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7643echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007644else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007645 { echo "$as_me:$LINENO: result: no" >&5
7646echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007647fi
7648
7649
7650if test "$TWOPI" != "echo twopi" ; then
7651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007652cat >>confdefs.h <<\_ACEOF
7653#define HAVE_TWOPI 1
7654_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007655
7656 if test "$llvm_cv_os_type" = "MingW" ; then
7657 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7658 fi
7659
7660cat >>confdefs.h <<_ACEOF
7661#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7662_ACEOF
7663
7664fi
7665# Extract the first word of "circo", so it can be a program name with args.
7666set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007667{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7669if test "${ac_cv_path_CIRCO+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007671else
7672 case $CIRCO in
7673 [\\/]* | ?:[\\/]*)
7674 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7675 ;;
7676 *)
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 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 +00007684 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007686 break 2
7687 fi
7688done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007689done
David Greenef0b9eff2009-07-09 17:16:26 +00007690IFS=$as_save_IFS
7691
7692 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7693 ;;
7694esac
7695fi
7696CIRCO=$ac_cv_path_CIRCO
7697if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007698 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7699echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007700else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007701 { echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007703fi
7704
7705
7706if test "$CIRCO" != "echo circo" ; then
7707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007708cat >>confdefs.h <<\_ACEOF
7709#define HAVE_CIRCO 1
7710_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007711
7712 if test "$llvm_cv_os_type" = "MingW" ; then
7713 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7714 fi
7715
7716cat >>confdefs.h <<_ACEOF
7717#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7718_ACEOF
7719
7720fi
Reid Spencera773bd52006-08-04 18:18:08 +00007721for ac_prog in gv gsview32
7722do
7723 # Extract the first word of "$ac_prog", so it can be a program name with args.
7724set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7727if test "${ac_cv_path_GV+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007729else
7730 case $GV in
7731 [\\/]* | ?:[\\/]*)
7732 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7733 ;;
7734 *)
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 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 +00007742 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007744 break 2
7745 fi
7746done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007747done
Reid Spencera773bd52006-08-04 18:18:08 +00007748IFS=$as_save_IFS
7749
7750 ;;
7751esac
7752fi
7753GV=$ac_cv_path_GV
7754if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007755 { echo "$as_me:$LINENO: result: $GV" >&5
7756echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007757else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007758 { echo "$as_me:$LINENO: result: no" >&5
7759echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007760fi
7761
7762
7763 test -n "$GV" && break
7764done
7765test -n "$GV" || GV="echo gv"
7766
7767if test "$GV" != "echo gv" ; then
7768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007769cat >>confdefs.h <<\_ACEOF
7770#define HAVE_GV 1
7771_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007772
Jeff Cohen28783c32007-01-12 18:22:38 +00007773 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007774 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7775 fi
7776
7777cat >>confdefs.h <<_ACEOF
7778#define LLVM_PATH_GV "$GV${EXEEXT}"
7779_ACEOF
7780
7781fi
7782# Extract the first word of "dotty", so it can be a program name with args.
7783set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786if test "${ac_cv_path_DOTTY+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007788else
7789 case $DOTTY in
7790 [\\/]* | ?:[\\/]*)
7791 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7792 ;;
7793 *)
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 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 +00007801 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007803 break 2
7804 fi
7805done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007806done
Reid Spencera773bd52006-08-04 18:18:08 +00007807IFS=$as_save_IFS
7808
7809 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7810 ;;
7811esac
7812fi
7813DOTTY=$ac_cv_path_DOTTY
7814if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007815 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7816echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007818 { echo "$as_me:$LINENO: result: no" >&5
7819echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007820fi
7821
7822
7823if test "$DOTTY" != "echo dotty" ; then
7824
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007825cat >>confdefs.h <<\_ACEOF
7826#define HAVE_DOTTY 1
7827_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007828
Jeff Cohen28783c32007-01-12 18:22:38 +00007829 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007830 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7831 fi
7832
7833cat >>confdefs.h <<_ACEOF
7834#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7835_ACEOF
7836
7837fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007838# Extract the first word of "xdot.py", so it can be a program name with args.
7839set dummy xdot.py; ac_word=$2
7840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7842if test "${ac_cv_path_XDOT_PY+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7844else
7845 case $XDOT_PY in
7846 [\\/]* | ?:[\\/]*)
7847 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7848 ;;
7849 *)
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851for as_dir in $PATH
7852do
7853 IFS=$as_save_IFS
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 break 2
7860 fi
7861done
7862done
7863IFS=$as_save_IFS
7864
7865 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7866 ;;
7867esac
7868fi
7869XDOT_PY=$ac_cv_path_XDOT_PY
7870if test -n "$XDOT_PY"; then
7871 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7872echo "${ECHO_T}$XDOT_PY" >&6; }
7873else
7874 { echo "$as_me:$LINENO: result: no" >&5
7875echo "${ECHO_T}no" >&6; }
7876fi
7877
7878
7879if test "$XDOT_PY" != "echo xdot.py" ; then
7880
7881cat >>confdefs.h <<\_ACEOF
7882#define HAVE_XDOT_PY 1
7883_ACEOF
7884
7885 if test "$llvm_cv_os_type" = "MingW" ; then
7886 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7887 fi
7888
7889cat >>confdefs.h <<_ACEOF
7890#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7891_ACEOF
7892
7893fi
Reid Spencera773bd52006-08-04 18:18:08 +00007894
7895
7896# Extract the first word of "perl", so it can be a program name with args.
7897set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7900if test "${ac_cv_path_PERL+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007902else
7903 case $PERL in
7904 [\\/]* | ?:[\\/]*)
7905 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7906 ;;
7907 *)
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909for as_dir in $PATH
7910do
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 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 +00007915 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007917 break 2
7918 fi
7919done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007920done
Reid Spencera773bd52006-08-04 18:18:08 +00007921IFS=$as_save_IFS
7922
7923 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7924 ;;
7925esac
7926fi
7927PERL=$ac_cv_path_PERL
7928if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007929 { echo "$as_me:$LINENO: result: $PERL" >&5
7930echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007931else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007932 { echo "$as_me:$LINENO: result: no" >&5
7933echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007934fi
7935
7936
7937if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007938 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7939echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007940 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007941 { echo "$as_me:$LINENO: result: yes" >&5
7942echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007943 else
7944 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007945 { echo "$as_me:$LINENO: result: not found" >&5
7946echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007947 fi
7948fi
7949
7950
7951if test x"$PERL" = xnone; then
7952 HAVE_PERL=0
7953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007954 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7955echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7956 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007957else
7958 HAVE_PERL=1
7959
7960fi
7961
7962# Find a good install program. We prefer a C program (faster),
7963# so one script is as good as another. But avoid the broken or
7964# incompatible versions:
7965# SysV /etc/install, /usr/sbin/install
7966# SunOS /usr/etc/install
7967# IRIX /sbin/install
7968# AIX /bin/install
7969# AmigaOS /C/install, which installs bootblocks on floppy discs
7970# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7971# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7972# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7973# OS/2's system install, which has a completely different semantic
7974# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007975{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7976echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007977if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007978if test "${ac_cv_path_install+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007980else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007986 # Account for people who put trailing slashes in PATH elements.
7987case $as_dir/ in
7988 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007989 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007990 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007991 /usr/ucb/* ) ;;
7992 *)
7993 # OSF1 and SCO ODT 3.0 have their own names for install.
7994 # Don't use installbsd from OSF since it installs stuff as root
7995 # by default.
7996 for ac_prog in ginstall scoinst install; do
7997 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007998 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 +00007999 if test $ac_prog = install &&
8000 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8001 # AIX install. It has an incompatible calling convention.
8002 :
8003 elif test $ac_prog = install &&
8004 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8005 # program-specific install script used by HP pwplus--don't use.
8006 :
8007 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8009 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008010 fi
8011 fi
8012 done
8013 done
8014 ;;
8015esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008016done
Reid Spencera773bd52006-08-04 18:18:08 +00008017IFS=$as_save_IFS
8018
8019
8020fi
8021 if test "${ac_cv_path_install+set}" = set; then
8022 INSTALL=$ac_cv_path_install
8023 else
8024 # As a last resort, use the slow shell script. Don't cache a
8025 # value for INSTALL within a source directory, because that will
8026 # break other packages using the cache if that directory is
8027 # removed, or if the value is a relative name.
8028 INSTALL=$ac_install_sh
8029 fi
8030fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008031{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8032echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008033
8034# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8035# It thinks the first close brace ends the variable substitution.
8036test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8037
8038test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8039
8040test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8041
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008042case "$INSTALL" in
8043 [\\/$]* | ?:[\\/]* ) ;;
8044 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8045esac
Reid Spencera773bd52006-08-04 18:18:08 +00008046
8047# Extract the first word of "bzip2", so it can be a program name with args.
8048set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8051if test "${ac_cv_path_BZIP2+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008053else
8054 case $BZIP2 in
8055 [\\/]* | ?:[\\/]*)
8056 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8057 ;;
8058 *)
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060for as_dir in $PATH
8061do
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 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 +00008066 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008068 break 2
8069 fi
8070done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008071done
Reid Spencera773bd52006-08-04 18:18:08 +00008072IFS=$as_save_IFS
8073
Reid Spencera773bd52006-08-04 18:18:08 +00008074 ;;
8075esac
8076fi
8077BZIP2=$ac_cv_path_BZIP2
8078if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008079 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8080echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008081else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008082 { echo "$as_me:$LINENO: result: no" >&5
8083echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008084fi
8085
8086
mike-m68cb3192010-05-06 23:45:43 +00008087# Extract the first word of "cat", so it can be a program name with args.
8088set dummy cat; ac_word=$2
8089{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8091if test "${ac_cv_path_CAT+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8093else
8094 case $CAT in
8095 [\\/]* | ?:[\\/]*)
8096 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8097 ;;
8098 *)
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100for as_dir in $PATH
8101do
8102 IFS=$as_save_IFS
8103 test -z "$as_dir" && as_dir=.
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8106 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 break 2
8109 fi
8110done
8111done
8112IFS=$as_save_IFS
8113
8114 ;;
8115esac
8116fi
8117CAT=$ac_cv_path_CAT
8118if test -n "$CAT"; then
8119 { echo "$as_me:$LINENO: result: $CAT" >&5
8120echo "${ECHO_T}$CAT" >&6; }
8121else
8122 { echo "$as_me:$LINENO: result: no" >&5
8123echo "${ECHO_T}no" >&6; }
8124fi
8125
8126
Reid Spencera773bd52006-08-04 18:18:08 +00008127# Extract the first word of "doxygen", so it can be a program name with args.
8128set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8131if test "${ac_cv_path_DOXYGEN+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008133else
8134 case $DOXYGEN in
8135 [\\/]* | ?:[\\/]*)
8136 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8137 ;;
8138 *)
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140for as_dir in $PATH
8141do
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 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 +00008146 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008148 break 2
8149 fi
8150done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008151done
Reid Spencera773bd52006-08-04 18:18:08 +00008152IFS=$as_save_IFS
8153
Reid Spencera773bd52006-08-04 18:18:08 +00008154 ;;
8155esac
8156fi
8157DOXYGEN=$ac_cv_path_DOXYGEN
8158if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008159 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8160echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008161else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008162 { echo "$as_me:$LINENO: result: no" >&5
8163echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008164fi
8165
8166
Reid Spencera773bd52006-08-04 18:18:08 +00008167# Extract the first word of "groff", so it can be a program name with args.
8168set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8171if test "${ac_cv_path_GROFF+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008173else
8174 case $GROFF in
8175 [\\/]* | ?:[\\/]*)
8176 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8177 ;;
8178 *)
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180for as_dir in $PATH
8181do
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 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 +00008186 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008188 break 2
8189 fi
8190done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008191done
Reid Spencera773bd52006-08-04 18:18:08 +00008192IFS=$as_save_IFS
8193
Reid Spencera773bd52006-08-04 18:18:08 +00008194 ;;
8195esac
8196fi
8197GROFF=$ac_cv_path_GROFF
8198if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008199 { echo "$as_me:$LINENO: result: $GROFF" >&5
8200echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008202 { echo "$as_me:$LINENO: result: no" >&5
8203echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008204fi
8205
8206
8207# Extract the first word of "gzip", so it can be a program name with args.
8208set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008209{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8211if test "${ac_cv_path_GZIP+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008213else
8214 case $GZIP in
8215 [\\/]* | ?:[\\/]*)
8216 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8217 ;;
8218 *)
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220for as_dir in $PATH
8221do
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 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 +00008226 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008228 break 2
8229 fi
8230done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008231done
Reid Spencera773bd52006-08-04 18:18:08 +00008232IFS=$as_save_IFS
8233
Reid Spencera773bd52006-08-04 18:18:08 +00008234 ;;
8235esac
8236fi
8237GZIP=$ac_cv_path_GZIP
8238if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008239 { echo "$as_me:$LINENO: result: $GZIP" >&5
8240echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008241else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008242 { echo "$as_me:$LINENO: result: no" >&5
8243echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008244fi
8245
8246
8247# Extract the first word of "pod2html", so it can be a program name with args.
8248set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8251if test "${ac_cv_path_POD2HTML+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008253else
8254 case $POD2HTML in
8255 [\\/]* | ?:[\\/]*)
8256 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8257 ;;
8258 *)
8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260for as_dir in $PATH
8261do
8262 IFS=$as_save_IFS
8263 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008264 for ac_exec_ext in '' $ac_executable_extensions; do
8265 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 +00008266 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008268 break 2
8269 fi
8270done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008271done
Reid Spencera773bd52006-08-04 18:18:08 +00008272IFS=$as_save_IFS
8273
Reid Spencera773bd52006-08-04 18:18:08 +00008274 ;;
8275esac
8276fi
8277POD2HTML=$ac_cv_path_POD2HTML
8278if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008279 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8280echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008281else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008282 { echo "$as_me:$LINENO: result: no" >&5
8283echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008284fi
8285
8286
8287# Extract the first word of "pod2man", so it can be a program name with args.
8288set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008289{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8291if test "${ac_cv_path_POD2MAN+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008293else
8294 case $POD2MAN in
8295 [\\/]* | ?:[\\/]*)
8296 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8297 ;;
8298 *)
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300for as_dir in $PATH
8301do
8302 IFS=$as_save_IFS
8303 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 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 +00008306 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008308 break 2
8309 fi
8310done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008311done
Reid Spencera773bd52006-08-04 18:18:08 +00008312IFS=$as_save_IFS
8313
Reid Spencera773bd52006-08-04 18:18:08 +00008314 ;;
8315esac
8316fi
8317POD2MAN=$ac_cv_path_POD2MAN
8318if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008319 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8320echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008321else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008322 { echo "$as_me:$LINENO: result: no" >&5
8323echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008324fi
8325
8326
mike-m68cb3192010-05-06 23:45:43 +00008327# Extract the first word of "pdfroff", so it can be a program name with args.
8328set dummy pdfroff; ac_word=$2
8329{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8331if test "${ac_cv_path_PDFROFF+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8333else
8334 case $PDFROFF in
8335 [\\/]* | ?:[\\/]*)
8336 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8337 ;;
8338 *)
8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340for as_dir in $PATH
8341do
8342 IFS=$as_save_IFS
8343 test -z "$as_dir" && as_dir=.
8344 for ac_exec_ext in '' $ac_executable_extensions; do
8345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8346 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8348 break 2
8349 fi
8350done
8351done
8352IFS=$as_save_IFS
8353
8354 ;;
8355esac
8356fi
8357PDFROFF=$ac_cv_path_PDFROFF
8358if test -n "$PDFROFF"; then
8359 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8360echo "${ECHO_T}$PDFROFF" >&6; }
8361else
8362 { echo "$as_me:$LINENO: result: no" >&5
8363echo "${ECHO_T}no" >&6; }
8364fi
8365
8366
Reid Spencera773bd52006-08-04 18:18:08 +00008367# Extract the first word of "runtest", so it can be a program name with args.
8368set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008369{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8371if test "${ac_cv_path_RUNTEST+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008373else
8374 case $RUNTEST in
8375 [\\/]* | ?:[\\/]*)
8376 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8377 ;;
8378 *)
8379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380for as_dir in $PATH
8381do
8382 IFS=$as_save_IFS
8383 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 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 +00008386 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008388 break 2
8389 fi
8390done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008391done
Reid Spencera773bd52006-08-04 18:18:08 +00008392IFS=$as_save_IFS
8393
Reid Spencera773bd52006-08-04 18:18:08 +00008394 ;;
8395esac
8396fi
8397RUNTEST=$ac_cv_path_RUNTEST
8398if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008399 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8400echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008401else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008402 { echo "$as_me:$LINENO: result: no" >&5
8403echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008404fi
8405
8406
8407
8408no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008409{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8410echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008411
8412# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008413if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008414 withval=$with_tclinclude; with_tclinclude=${withval}
8415else
8416 with_tclinclude=''
8417fi
8418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008419if test "${ac_cv_path_tclsh+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008421else
8422
8423if test x"${with_tclinclude}" != x ; then
8424 if test -f ${with_tclinclude}/tclsh ; then
8425 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8426 elif test -f ${with_tclinclude}/src/tclsh ; then
8427 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8428 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008429 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8430echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8431 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008432 fi
8433fi
Torok Edwin871384f2010-01-26 08:50:50 +00008434fi
8435
Reid Spencera773bd52006-08-04 18:18:08 +00008436
8437if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008438 { echo "$as_me:$LINENO: result: none" >&5
8439echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008440 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
8441do
8442 # Extract the first word of "$ac_prog", so it can be a program name with args.
8443set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8446if test "${ac_cv_path_TCLSH+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008448else
8449 case $TCLSH in
8450 [\\/]* | ?:[\\/]*)
8451 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8452 ;;
8453 *)
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455for as_dir in $PATH
8456do
8457 IFS=$as_save_IFS
8458 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 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 +00008461 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008463 break 2
8464 fi
8465done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008466done
Reid Spencera773bd52006-08-04 18:18:08 +00008467IFS=$as_save_IFS
8468
8469 ;;
8470esac
8471fi
8472TCLSH=$ac_cv_path_TCLSH
8473if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008474 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8475echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008476else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008477 { echo "$as_me:$LINENO: result: no" >&5
8478echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008479fi
8480
8481
8482 test -n "$TCLSH" && break
8483done
8484
8485 if test x"${TCLSH}" = x ; then
8486 ac_cv_path_tclsh='';
8487 else
8488 ac_cv_path_tclsh="${TCLSH}";
8489 fi
8490else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008491 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8492echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008493 TCLSH="${ac_cv_path_tclsh}"
8494
8495fi
8496
Reid Spencera773bd52006-08-04 18:18:08 +00008497# Extract the first word of "zip", so it can be a program name with args.
8498set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8501if test "${ac_cv_path_ZIP+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008503else
8504 case $ZIP in
8505 [\\/]* | ?:[\\/]*)
8506 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8507 ;;
8508 *)
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510for as_dir in $PATH
8511do
8512 IFS=$as_save_IFS
8513 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 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 +00008516 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008518 break 2
8519 fi
8520done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008521done
Reid Spencera773bd52006-08-04 18:18:08 +00008522IFS=$as_save_IFS
8523
Reid Spencera773bd52006-08-04 18:18:08 +00008524 ;;
8525esac
8526fi
8527ZIP=$ac_cv_path_ZIP
8528if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008529 { echo "$as_me:$LINENO: result: $ZIP" >&5
8530echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008531else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008532 { echo "$as_me:$LINENO: result: no" >&5
8533echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008534fi
8535
8536
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008537for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008538do
8539 # Extract the first word of "$ac_prog", so it can be a program name with args.
8540set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8543if test "${ac_cv_path_OCAMLC+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008545else
8546 case $OCAMLC in
8547 [\\/]* | ?:[\\/]*)
8548 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8549 ;;
8550 *)
8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552for as_dir in $PATH
8553do
8554 IFS=$as_save_IFS
8555 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 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 +00008558 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008560 break 2
8561 fi
8562done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008563done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008564IFS=$as_save_IFS
8565
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008566 ;;
8567esac
8568fi
8569OCAMLC=$ac_cv_path_OCAMLC
8570if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008571 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8572echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008573else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008574 { echo "$as_me:$LINENO: result: no" >&5
8575echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008576fi
8577
8578
Gordon Henriksene7072162008-03-07 18:20:01 +00008579 test -n "$OCAMLC" && break
8580done
8581
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008582for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008583do
8584 # Extract the first word of "$ac_prog", so it can be a program name with args.
8585set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8588if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008590else
8591 case $OCAMLOPT in
8592 [\\/]* | ?:[\\/]*)
8593 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8594 ;;
8595 *)
8596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597for as_dir in $PATH
8598do
8599 IFS=$as_save_IFS
8600 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008601 for ac_exec_ext in '' $ac_executable_extensions; do
8602 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 +00008603 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008605 break 2
8606 fi
8607done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008608done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008609IFS=$as_save_IFS
8610
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008611 ;;
8612esac
8613fi
8614OCAMLOPT=$ac_cv_path_OCAMLOPT
8615if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008616 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8617echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008619 { echo "$as_me:$LINENO: result: no" >&5
8620echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008621fi
8622
8623
Gordon Henriksene7072162008-03-07 18:20:01 +00008624 test -n "$OCAMLOPT" && break
8625done
8626
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008627for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008628do
8629 # Extract the first word of "$ac_prog", so it can be a program name with args.
8630set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8633if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008635else
8636 case $OCAMLDEP in
8637 [\\/]* | ?:[\\/]*)
8638 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8639 ;;
8640 *)
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642for as_dir in $PATH
8643do
8644 IFS=$as_save_IFS
8645 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 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 +00008648 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008650 break 2
8651 fi
8652done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008653done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008654IFS=$as_save_IFS
8655
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008656 ;;
8657esac
8658fi
8659OCAMLDEP=$ac_cv_path_OCAMLDEP
8660if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008661 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8662echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008664 { echo "$as_me:$LINENO: result: no" >&5
8665echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008666fi
8667
8668
Gordon Henriksene7072162008-03-07 18:20:01 +00008669 test -n "$OCAMLDEP" && break
8670done
8671
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008672for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008673do
8674 # Extract the first word of "$ac_prog", so it can be a program name with args.
8675set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8678if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008680else
8681 case $OCAMLDOC in
8682 [\\/]* | ?:[\\/]*)
8683 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8684 ;;
8685 *)
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687for as_dir in $PATH
8688do
8689 IFS=$as_save_IFS
8690 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008691 for ac_exec_ext in '' $ac_executable_extensions; do
8692 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 +00008693 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008695 break 2
8696 fi
8697done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008698done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008699IFS=$as_save_IFS
8700
8701 ;;
8702esac
8703fi
8704OCAMLDOC=$ac_cv_path_OCAMLDOC
8705if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008706 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8707echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008708else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008709 { echo "$as_me:$LINENO: result: no" >&5
8710echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008711fi
8712
8713
8714 test -n "$OCAMLDOC" && break
8715done
8716
Torok Edwincc499a42008-10-22 09:56:27 +00008717for ac_prog in gas as
8718do
8719 # Extract the first word of "$ac_prog", so it can be a program name with args.
8720set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008721{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8723if test "${ac_cv_path_GAS+set}" = set; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008725else
8726 case $GAS in
8727 [\\/]* | ?:[\\/]*)
8728 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8729 ;;
8730 *)
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732for as_dir in $PATH
8733do
8734 IFS=$as_save_IFS
8735 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 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 +00008738 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008740 break 2
8741 fi
8742done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008743done
Torok Edwincc499a42008-10-22 09:56:27 +00008744IFS=$as_save_IFS
8745
8746 ;;
8747esac
8748fi
8749GAS=$ac_cv_path_GAS
8750if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008751 { echo "$as_me:$LINENO: result: $GAS" >&5
8752echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008753else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008754 { echo "$as_me:$LINENO: result: no" >&5
8755echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008756fi
8757
8758
8759 test -n "$GAS" && break
8760done
8761
Reid Spencera773bd52006-08-04 18:18:08 +00008762
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008763{ echo "$as_me:$LINENO: checking for linker version" >&5
8764echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8765if test "${llvm_cv_link_version+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8767else
8768
8769 version_string="$(ld -v 2>&1 | head -1)"
8770
8771 # Check for ld64.
8772 if (echo "$version_string" | grep -q "ld64"); then
8773 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8774 else
8775 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8776 fi
8777
8778fi
8779{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8780echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8781
8782cat >>confdefs.h <<_ACEOF
8783#define HOST_LINK_VERSION "$llvm_cv_link_version"
8784_ACEOF
8785
8786
8787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008788{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8789echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8790if test "${llvm_cv_link_use_r+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008792else
8793 ac_ext=c
8794ac_cpp='$CPP $CPPFLAGS'
8795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8797ac_compiler_gnu=$ac_cv_c_compiler_gnu
8798
8799 oldcflags="$CFLAGS"
8800 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008801 cat >conftest.$ac_ext <<_ACEOF
8802/* confdefs.h. */
8803_ACEOF
8804cat confdefs.h >>conftest.$ac_ext
8805cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008806/* end confdefs.h. */
8807
8808int
8809main ()
8810{
Dan Gohman39ed6782010-04-25 00:12:20 +00008811
Reid Spencera773bd52006-08-04 18:18:08 +00008812 ;
8813 return 0;
8814}
8815_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008816rm -f conftest.$ac_objext conftest$ac_exeext
8817if { (ac_try="$ac_link"
8818case "(($ac_try" in
8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820 *) ac_try_echo=$ac_try;;
8821esac
8822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823 (eval "$ac_link") 2>conftest.er1
8824 ac_status=$?
8825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8831 { (case "(($ac_try" in
8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8834esac
8835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836 (eval "$ac_try") 2>&5
8837 ac_status=$?
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; } &&
8840 { ac_try='test -s conftest$ac_exeext'
8841 { (case "(($ac_try" in
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8844esac
8845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846 (eval "$ac_try") 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008850 llvm_cv_link_use_r=yes
8851else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008852 echo "$as_me: failed program was:" >&5
8853sed 's/^/| /' conftest.$ac_ext >&5
8854
8855 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008856fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008857
Bill Wendlingebcceee2009-04-18 11:20:33 +00008858rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008859 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008860 CFLAGS="$oldcflags"
8861 ac_ext=c
8862ac_cpp='$CPP $CPPFLAGS'
8863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8865ac_compiler_gnu=$ac_cv_c_compiler_gnu
8866
8867
8868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008869{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8870echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008871if test "$llvm_cv_link_use_r" = yes ; then
8872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008873cat >>confdefs.h <<\_ACEOF
8874#define HAVE_LINK_R 1
8875_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008876
8877 fi
8878
8879
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008880{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8881echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8882if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008884else
8885 ac_ext=c
8886ac_cpp='$CPP $CPPFLAGS'
8887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8889ac_compiler_gnu=$ac_cv_c_compiler_gnu
8890
8891 oldcflags="$CFLAGS"
8892 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008893 cat >conftest.$ac_ext <<_ACEOF
8894/* confdefs.h. */
8895_ACEOF
8896cat confdefs.h >>conftest.$ac_ext
8897cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008898/* end confdefs.h. */
8899
8900int
8901main ()
8902{
Dan Gohman39ed6782010-04-25 00:12:20 +00008903
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008904 ;
8905 return 0;
8906}
8907_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008908rm -f conftest.$ac_objext conftest$ac_exeext
8909if { (ac_try="$ac_link"
8910case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8913esac
8914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_link") 2>conftest.er1
8916 ac_status=$?
8917 grep -v '^ *+' conftest.er1 >conftest.err
8918 rm -f conftest.er1
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } &&
8922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8923 { (case "(($ac_try" in
8924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925 *) ac_try_echo=$ac_try;;
8926esac
8927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928 (eval "$ac_try") 2>&5
8929 ac_status=$?
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest$ac_exeext'
8933 { (case "(($ac_try" in
8934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935 *) ac_try_echo=$ac_try;;
8936esac
8937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8938 (eval "$ac_try") 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008942 llvm_cv_link_use_export_dynamic=yes
8943else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008944 echo "$as_me: failed program was:" >&5
8945sed 's/^/| /' conftest.$ac_ext >&5
8946
8947 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008948fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008949
Bill Wendlingebcceee2009-04-18 11:20:33 +00008950rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008951 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008952 CFLAGS="$oldcflags"
8953 ac_ext=c
8954ac_cpp='$CPP $CPPFLAGS'
8955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8957ac_compiler_gnu=$ac_cv_c_compiler_gnu
8958
8959
8960fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008961{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8962echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008963if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8964
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008965cat >>confdefs.h <<\_ACEOF
8966#define HAVE_LINK_EXPORT_DYNAMIC 1
8967_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008968
8969 fi
8970
8971
Dan Gohmanda612d62010-06-01 14:56:56 +00008972{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8973echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8974if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008975 echo $ECHO_N "(cached) $ECHO_C" >&6
8976else
8977 ac_ext=c
8978ac_cpp='$CPP $CPPFLAGS'
8979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981ac_compiler_gnu=$ac_cv_c_compiler_gnu
8982
8983 oldcflags="$CFLAGS"
8984
8985 # The following code is from the autoconf manual,
8986 # "11.13: Limitations of Usual Tools".
8987 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8988 # Use mktemp if possible; otherwise fall back on mkdir,
8989 # with $RANDOM to make collisions less likely.
8990 : ${TMPDIR=/tmp}
8991 {
8992 tmp=`
8993 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8994 ` &&
8995 test -n "$tmp" && test -d "$tmp"
8996 } || {
8997 tmp=$TMPDIR/foo$$-$RANDOM
8998 (umask 077 && mkdir "$tmp")
8999 } || exit $?
9000
Dan Gohmanda612d62010-06-01 14:56:56 +00009001 echo "{" > "$tmp/export.map"
9002 echo " global: main;" >> "$tmp/export.map"
9003 echo " local: *;" >> "$tmp/export.map"
9004 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009005
Dan Gohmanda612d62010-06-01 14:56:56 +00009006 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009007 cat >conftest.$ac_ext <<_ACEOF
9008/* confdefs.h. */
9009_ACEOF
9010cat confdefs.h >>conftest.$ac_ext
9011cat >>conftest.$ac_ext <<_ACEOF
9012/* end confdefs.h. */
9013
9014int
9015main ()
9016{
Dan Gohman39ed6782010-04-25 00:12:20 +00009017
Dan Gohman391569c2010-04-16 22:59:06 +00009018 ;
9019 return 0;
9020}
9021_ACEOF
9022rm -f conftest.$ac_objext conftest$ac_exeext
9023if { (ac_try="$ac_link"
9024case "(($ac_try" in
9025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026 *) ac_try_echo=$ac_try;;
9027esac
9028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9029 (eval "$ac_link") 2>conftest.er1
9030 ac_status=$?
9031 grep -v '^ *+' conftest.er1 >conftest.err
9032 rm -f conftest.er1
9033 cat conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } &&
9036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9037 { (case "(($ac_try" in
9038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039 *) ac_try_echo=$ac_try;;
9040esac
9041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9042 (eval "$ac_try") 2>&5
9043 ac_status=$?
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; } &&
9046 { ac_try='test -s conftest$ac_exeext'
9047 { (case "(($ac_try" in
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9050esac
9051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_try") 2>&5
9053 ac_status=$?
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009056 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009057else
9058 echo "$as_me: failed program was:" >&5
9059sed 's/^/| /' conftest.$ac_ext >&5
9060
Dan Gohman943005e2010-06-01 16:22:27 +00009061 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009062fi
9063
9064rm -f core conftest.err conftest.$ac_objext \
9065 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009066 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009067 rmdir "$tmp"
9068 CFLAGS="$oldcflags"
9069 ac_ext=c
9070ac_cpp='$CPP $CPPFLAGS'
9071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9073ac_compiler_gnu=$ac_cv_c_compiler_gnu
9074
9075
9076fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009077{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9078echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9079if test "$llvm_cv_link_use_version_script" = yes ; then
9080 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009081
9082 fi
9083
9084
Reid Spencera773bd52006-08-04 18:18:08 +00009085
9086
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009087{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9088echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9089if test "${ac_cv_c_const+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009091else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009092 cat >conftest.$ac_ext <<_ACEOF
9093/* confdefs.h. */
9094_ACEOF
9095cat confdefs.h >>conftest.$ac_ext
9096cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009097/* end confdefs.h. */
9098
9099int
9100main ()
9101{
9102/* FIXME: Include the comments suggested by Paul. */
9103#ifndef __cplusplus
9104 /* Ultrix mips cc rejects this. */
9105 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009106 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009107 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009108 char const *const *ccp;
9109 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009110 /* NEC SVR4.0.2 mips cc rejects this. */
9111 struct point {int x, y;};
9112 static struct point const zero = {0,0};
9113 /* AIX XL C 1.02.0.0 rejects this.
9114 It does not let you subtract one const X* pointer from another in
9115 an arm of an if-expression whose if-part is not a constant
9116 expression */
9117 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009118 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009119 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009120 ++ccp;
9121 p = (char**) ccp;
9122 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009123 { /* SCO 3.2v4 cc rejects this. */
9124 char *t;
9125 char const *s = 0 ? (char *) 0 : (char const *) 0;
9126
9127 *t++ = 0;
9128 if (s) return 0;
9129 }
9130 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9131 int x[] = {25, 17};
9132 const int *foo = &x[0];
9133 ++foo;
9134 }
9135 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9136 typedef const int *iptr;
9137 iptr p = 0;
9138 ++p;
9139 }
9140 { /* AIX XL C 1.02.0.0 rejects this saying
9141 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9142 struct s { int j; const int *ap[3]; };
9143 struct s *b; b->j = 5;
9144 }
9145 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9146 const int foo = 10;
9147 if (!foo) return 0;
9148 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009149 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009150#endif
9151
9152 ;
9153 return 0;
9154}
9155_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009156rm -f conftest.$ac_objext
9157if { (ac_try="$ac_compile"
9158case "(($ac_try" in
9159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160 *) ac_try_echo=$ac_try;;
9161esac
9162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163 (eval "$ac_compile") 2>conftest.er1
9164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
9170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9171 { (case "(($ac_try" in
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9174esac
9175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_try") 2>&5
9177 ac_status=$?
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; } &&
9180 { ac_try='test -s conftest.$ac_objext'
9181 { (case "(($ac_try" in
9182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9183 *) ac_try_echo=$ac_try;;
9184esac
9185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9186 (eval "$ac_try") 2>&5
9187 ac_status=$?
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009190 ac_cv_c_const=yes
9191else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009192 echo "$as_me: failed program was:" >&5
9193sed 's/^/| /' conftest.$ac_ext >&5
9194
9195 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009196fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009197
Reid Spencera773bd52006-08-04 18:18:08 +00009198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9199fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009200{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9201echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009202if test $ac_cv_c_const = no; then
9203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009204cat >>confdefs.h <<\_ACEOF
9205#define const
9206_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009207
9208fi
9209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009210
9211
9212
9213
9214
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009215ac_header_dirent=no
9216for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009217 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9218{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9219echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009222else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009223 cat >conftest.$ac_ext <<_ACEOF
9224/* confdefs.h. */
9225_ACEOF
9226cat confdefs.h >>conftest.$ac_ext
9227cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009228/* end confdefs.h. */
9229#include <sys/types.h>
9230#include <$ac_hdr>
9231
9232int
9233main ()
9234{
9235if ((DIR *) 0)
9236return 0;
9237 ;
9238 return 0;
9239}
9240_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009241rm -f conftest.$ac_objext
9242if { (ac_try="$ac_compile"
9243case "(($ac_try" in
9244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245 *) ac_try_echo=$ac_try;;
9246esac
9247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9248 (eval "$ac_compile") 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9256 { (case "(($ac_try" in
9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9259esac
9260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261 (eval "$ac_try") 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; } &&
9265 { ac_try='test -s conftest.$ac_objext'
9266 { (case "(($ac_try" in
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9269esac
9270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_try") 2>&5
9272 ac_status=$?
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009275 eval "$as_ac_Header=yes"
9276else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009277 echo "$as_me: failed program was:" >&5
9278sed 's/^/| /' conftest.$ac_ext >&5
9279
9280 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009281fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009282
Reid Spencera773bd52006-08-04 18:18:08 +00009283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009284fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009285ac_res=`eval echo '${'$as_ac_Header'}'`
9286 { echo "$as_me:$LINENO: result: $ac_res" >&5
9287echo "${ECHO_T}$ac_res" >&6; }
9288if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009289 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009290#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009291_ACEOF
9292
9293ac_header_dirent=$ac_hdr; break
9294fi
9295
9296done
9297# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9298if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009299 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9300echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9301if test "${ac_cv_search_opendir+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009303else
9304 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009305cat >conftest.$ac_ext <<_ACEOF
9306/* confdefs.h. */
9307_ACEOF
9308cat confdefs.h >>conftest.$ac_ext
9309cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009310/* end confdefs.h. */
9311
Reid Spencera773bd52006-08-04 18:18:08 +00009312/* Override any GCC internal prototype to avoid an error.
9313 Use char because int might match the return type of a GCC
9314 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009315#ifdef __cplusplus
9316extern "C"
9317#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009318char opendir ();
9319int
9320main ()
9321{
Reid Spencera773bd52006-08-04 18:18:08 +00009322return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009323 ;
9324 return 0;
9325}
9326_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009327for ac_lib in '' dir; do
9328 if test -z "$ac_lib"; then
9329 ac_res="none required"
9330 else
9331 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009333 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009334 rm -f conftest.$ac_objext conftest$ac_exeext
9335if { (ac_try="$ac_link"
9336case "(($ac_try" in
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9339esac
9340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_link") 2>conftest.er1
9342 ac_status=$?
9343 grep -v '^ *+' conftest.er1 >conftest.err
9344 rm -f conftest.er1
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9349 { (case "(($ac_try" in
9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9352esac
9353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9354 (eval "$ac_try") 2>&5
9355 ac_status=$?
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; } &&
9358 { ac_try='test -s conftest$ac_exeext'
9359 { (case "(($ac_try" in
9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9362esac
9363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_try") 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009368 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009369else
9370 echo "$as_me: failed program was:" >&5
9371sed 's/^/| /' conftest.$ac_ext >&5
9372
9373
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009374fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009375
Bill Wendlingebcceee2009-04-18 11:20:33 +00009376rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009377 conftest$ac_exeext
9378 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009379 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009380fi
John Criswell7a73b802003-06-30 21:59:07 +00009381done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009382if test "${ac_cv_search_opendir+set}" = set; then
9383 :
Reid Spencera773bd52006-08-04 18:18:08 +00009384else
9385 ac_cv_search_opendir=no
9386fi
9387rm conftest.$ac_ext
9388LIBS=$ac_func_search_save_LIBS
9389fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009390{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9391echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009392ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009393if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009395
Reid Spencera773bd52006-08-04 18:18:08 +00009396fi
9397
9398else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009399 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9400echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9401if test "${ac_cv_search_opendir+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009403else
9404 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009405cat >conftest.$ac_ext <<_ACEOF
9406/* confdefs.h. */
9407_ACEOF
9408cat confdefs.h >>conftest.$ac_ext
9409cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009410/* end confdefs.h. */
9411
9412/* Override any GCC internal prototype to avoid an error.
9413 Use char because int might match the return type of a GCC
9414 builtin and then its argument prototype would still apply. */
9415#ifdef __cplusplus
9416extern "C"
9417#endif
9418char opendir ();
9419int
9420main ()
9421{
9422return opendir ();
9423 ;
9424 return 0;
9425}
9426_ACEOF
9427for ac_lib in '' x; do
9428 if test -z "$ac_lib"; then
9429 ac_res="none required"
9430 else
9431 ac_res=-l$ac_lib
9432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9433 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009434 rm -f conftest.$ac_objext conftest$ac_exeext
9435if { (ac_try="$ac_link"
9436case "(($ac_try" in
9437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9438 *) ac_try_echo=$ac_try;;
9439esac
9440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9441 (eval "$ac_link") 2>conftest.er1
9442 ac_status=$?
9443 grep -v '^ *+' conftest.er1 >conftest.err
9444 rm -f conftest.er1
9445 cat conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } &&
9448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9449 { (case "(($ac_try" in
9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451 *) ac_try_echo=$ac_try;;
9452esac
9453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9454 (eval "$ac_try") 2>&5
9455 ac_status=$?
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; } &&
9458 { ac_try='test -s conftest$ac_exeext'
9459 { (case "(($ac_try" in
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9462esac
9463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_try") 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009468 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009469else
9470 echo "$as_me: failed program was:" >&5
9471sed 's/^/| /' conftest.$ac_ext >&5
9472
9473
Reid Spencera773bd52006-08-04 18:18:08 +00009474fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009475
Bill Wendlingebcceee2009-04-18 11:20:33 +00009476rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009477 conftest$ac_exeext
9478 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009479 break
9480fi
9481done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009482if test "${ac_cv_search_opendir+set}" = set; then
9483 :
Reid Spencera773bd52006-08-04 18:18:08 +00009484else
9485 ac_cv_search_opendir=no
9486fi
9487rm conftest.$ac_ext
9488LIBS=$ac_func_search_save_LIBS
9489fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009490{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9491echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009492ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009493if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9495
9496fi
9497
9498fi
John Criswell7a73b802003-06-30 21:59:07 +00009499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009500
John Criswell7a73b802003-06-30 21:59:07 +00009501for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009502do
9503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9509fi
9510ac_res=`eval echo '${'$as_ac_Header'}'`
9511 { echo "$as_me:$LINENO: result: $ac_res" >&5
9512echo "${ECHO_T}$ac_res" >&6; }
9513else
9514 # Is the header compilable?
9515{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9517cat >conftest.$ac_ext <<_ACEOF
9518/* confdefs.h. */
9519_ACEOF
9520cat confdefs.h >>conftest.$ac_ext
9521cat >>conftest.$ac_ext <<_ACEOF
9522/* end confdefs.h. */
9523$ac_includes_default
9524#include <$ac_header>
9525_ACEOF
9526rm -f conftest.$ac_objext
9527if { (ac_try="$ac_compile"
9528case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9531esac
9532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_compile") 2>conftest.er1
9534 ac_status=$?
9535 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
9540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9541 { (case "(($ac_try" in
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9544esac
9545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_try") 2>&5
9547 ac_status=$?
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; } &&
9550 { ac_try='test -s conftest.$ac_objext'
9551 { (case "(($ac_try" in
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9554esac
9555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556 (eval "$ac_try") 2>&5
9557 ac_status=$?
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 ac_header_compiler=yes
9561else
9562 echo "$as_me: failed program was:" >&5
9563sed 's/^/| /' conftest.$ac_ext >&5
9564
9565 ac_header_compiler=no
9566fi
9567
9568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9569{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9570echo "${ECHO_T}$ac_header_compiler" >&6; }
9571
9572# Is the header present?
9573{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9574echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9575cat >conftest.$ac_ext <<_ACEOF
9576/* confdefs.h. */
9577_ACEOF
9578cat confdefs.h >>conftest.$ac_ext
9579cat >>conftest.$ac_ext <<_ACEOF
9580/* end confdefs.h. */
9581#include <$ac_header>
9582_ACEOF
9583if { (ac_try="$ac_cpp conftest.$ac_ext"
9584case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9587esac
9588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9590 ac_status=$?
9591 grep -v '^ *+' conftest.er1 >conftest.err
9592 rm -f conftest.er1
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } >/dev/null; then
9596 if test -s conftest.err; then
9597 ac_cpp_err=$ac_c_preproc_warn_flag
9598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9599 else
9600 ac_cpp_err=
9601 fi
9602else
9603 ac_cpp_err=yes
9604fi
9605if test -z "$ac_cpp_err"; then
9606 ac_header_preproc=yes
9607else
9608 echo "$as_me: failed program was:" >&5
9609sed 's/^/| /' conftest.$ac_ext >&5
9610
9611 ac_header_preproc=no
9612fi
9613
9614rm -f conftest.err conftest.$ac_ext
9615{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9616echo "${ECHO_T}$ac_header_preproc" >&6; }
9617
9618# So? What about this header?
9619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9620 yes:no: )
9621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9622echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9624echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9625 ac_header_preproc=yes
9626 ;;
9627 no:yes:* )
9628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9629echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9631echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9633echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9635echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9639echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9640 ( cat <<\_ASBOX
9641## ----------------------------------- ##
9642## Report this to llvmbugs@cs.uiuc.edu ##
9643## ----------------------------------- ##
9644_ASBOX
9645 ) | sed "s/^/$as_me: WARNING: /" >&2
9646 ;;
9647esac
9648{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9652else
9653 eval "$as_ac_Header=\$ac_header_preproc"
9654fi
9655ac_res=`eval echo '${'$as_ac_Header'}'`
9656 { echo "$as_me:$LINENO: result: $ac_res" >&5
9657echo "${ECHO_T}$ac_res" >&6; }
9658
9659fi
9660if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009661 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009663_ACEOF
9664
9665fi
9666
9667done
9668
Reid Spencera773bd52006-08-04 18:18:08 +00009669# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009670if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009671 enableval=$enable_ltdl_install;
9672fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009673
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009675
9676
9677if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009678 INSTALL_LTDL_TRUE=
9679 INSTALL_LTDL_FALSE='#'
9680else
9681 INSTALL_LTDL_TRUE='#'
9682 INSTALL_LTDL_FALSE=
9683fi
9684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009685
9686
9687if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009688 CONVENIENCE_LTDL_TRUE=
9689 CONVENIENCE_LTDL_FALSE='#'
9690else
9691 CONVENIENCE_LTDL_TRUE='#'
9692 CONVENIENCE_LTDL_FALSE=
9693fi
9694
9695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009696{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9697echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009698library_names_spec=
9699libname_spec='lib$name'
9700soname_spec=
9701shrext_cmds=".so"
9702postinstall_cmds=
9703postuninstall_cmds=
9704finish_cmds=
9705finish_eval=
9706shlibpath_var=
9707shlibpath_overrides_runpath=unknown
9708version_type=none
9709dynamic_linker="$host_os ld.so"
9710sys_lib_dlsearch_path_spec="/lib /usr/lib"
9711if test "$GCC" = yes; then
9712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9713 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9714 # if the path contains ";" then we assume it to be the separator
9715 # otherwise default to the standard path separator (i.e. ":") - it is
9716 # assumed that no part of a normal pathname contains ";" but that should
9717 # okay in the real world where ";" in dirpaths is itself problematic.
9718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9719 else
9720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9721 fi
9722else
9723 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9724fi
9725need_lib_prefix=unknown
9726hardcode_into_libs=no
9727
9728# when you set need_version to no, make sure it does not cause -set_version
9729# flags to be left without arguments
9730need_version=unknown
9731
9732case $host_os in
9733aix3*)
9734 version_type=linux
9735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9736 shlibpath_var=LIBPATH
9737
9738 # AIX 3 has no versioning support, so we append a major version to the name.
9739 soname_spec='${libname}${release}${shared_ext}$major'
9740 ;;
9741
9742aix4* | aix5*)
9743 version_type=linux
9744 need_lib_prefix=no
9745 need_version=no
9746 hardcode_into_libs=yes
9747 if test "$host_cpu" = ia64; then
9748 # AIX 5 supports IA64
9749 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9750 shlibpath_var=LD_LIBRARY_PATH
9751 else
9752 # With GCC up to 2.95.x, collect2 would create an import file
9753 # for dependence libraries. The import file would start with
9754 # the line `#! .'. This would cause the generated library to
9755 # depend on `.', always an invalid library. This was fixed in
9756 # development snapshots of GCC prior to 3.0.
9757 case $host_os in
9758 aix4 | aix4.[01] | aix4.[01].*)
9759 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9760 echo ' yes '
9761 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9762 :
9763 else
9764 can_build_shared=no
9765 fi
9766 ;;
9767 esac
9768 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9769 # soname into executable. Probably we can add versioning support to
9770 # collect2, so additional links can be useful in future.
9771 if test "$aix_use_runtimelinking" = yes; then
9772 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9773 # instead of lib<name>.a to let people know that these are not
9774 # typical AIX shared libraries.
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9776 else
9777 # We preserve .a as extension for shared libraries through AIX4.2
9778 # and later when we are not doing run time linking.
9779 library_names_spec='${libname}${release}.a $libname.a'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 fi
9782 shlibpath_var=LIBPATH
9783 fi
9784 ;;
9785
9786amigaos*)
9787 library_names_spec='$libname.ixlibrary $libname.a'
9788 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9789 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'
9790 ;;
9791
9792beos*)
9793 library_names_spec='${libname}${shared_ext}'
9794 dynamic_linker="$host_os ld.so"
9795 shlibpath_var=LIBRARY_PATH
9796 ;;
9797
9798bsdi[45]*)
9799 version_type=linux
9800 need_version=no
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9803 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9804 shlibpath_var=LD_LIBRARY_PATH
9805 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9806 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9807 # the default ld.so.conf also contains /usr/contrib/lib and
9808 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9809 # libtool to hard-code these into programs
9810 ;;
9811
9812cygwin* | mingw* | pw32*)
9813 version_type=windows
9814 shrext_cmds=".dll"
9815 need_version=no
9816 need_lib_prefix=no
9817
9818 case $GCC,$host_os in
9819 yes,cygwin* | yes,mingw* | yes,pw32*)
9820 library_names_spec='$libname.dll.a'
9821 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9822 postinstall_cmds='base_file=`basename \${file}`~
9823 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9824 dldir=$destdir/`dirname \$dlpath`~
9825 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009826 $install_prog $dir/$dlname \$dldir/$dlname~
9827 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9829 dlpath=$dir/\$dldll~
9830 $rm \$dlpath'
9831 shlibpath_overrides_runpath=yes
9832
9833 case $host_os in
9834 cygwin*)
9835 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9836 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9837 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9838 ;;
9839 mingw*)
9840 # MinGW DLLs use traditional 'lib' prefix
9841 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9842 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9843 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9844 # It is most probably a Windows format PATH printed by
9845 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9846 # path with ; separators, and with drive letters. We can handle the
9847 # drive letters (cygwin fileutils understands them), so leave them,
9848 # especially as we might pass files found there to a mingw objdump,
9849 # which wouldn't understand a cygwinified path. Ahh.
9850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9851 else
9852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9853 fi
9854 ;;
9855 pw32*)
9856 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009857 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 +00009858 ;;
9859 esac
9860 ;;
9861
9862 *)
9863 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9864 ;;
9865 esac
9866 dynamic_linker='Win32 ld.exe'
9867 # FIXME: first we should search . and the directory the executable is in
9868 shlibpath_var=PATH
9869 ;;
9870
9871darwin* | rhapsody*)
9872 dynamic_linker="$host_os dyld"
9873 version_type=darwin
9874 need_lib_prefix=no
9875 need_version=no
9876 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9877 soname_spec='${libname}${release}${major}$shared_ext'
9878 shlibpath_overrides_runpath=yes
9879 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009880 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009881 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9882 if test "$GCC" = yes; then
9883 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"`
9884 else
9885 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9886 fi
9887 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9888 ;;
9889
9890dgux*)
9891 version_type=linux
9892 need_lib_prefix=no
9893 need_version=no
9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9895 soname_spec='${libname}${release}${shared_ext}$major'
9896 shlibpath_var=LD_LIBRARY_PATH
9897 ;;
9898
9899freebsd1*)
9900 dynamic_linker=no
9901 ;;
9902
9903kfreebsd*-gnu)
9904 version_type=linux
9905 need_lib_prefix=no
9906 need_version=no
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9908 soname_spec='${libname}${release}${shared_ext}$major'
9909 shlibpath_var=LD_LIBRARY_PATH
9910 shlibpath_overrides_runpath=no
9911 hardcode_into_libs=yes
9912 dynamic_linker='GNU ld.so'
9913 ;;
9914
Reid Spencera773bd52006-08-04 18:18:08 +00009915freebsd* | dragonfly*)
9916 # DragonFly does not have aout. When/if they implement a new
9917 # versioning mechanism, adjust this.
9918 if test -x /usr/bin/objformat; then
9919 objformat=`/usr/bin/objformat`
9920 else
9921 case $host_os in
9922 freebsd[123]*) objformat=aout ;;
9923 *) objformat=elf ;;
9924 esac
9925 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009926 version_type=freebsd-$objformat
9927 case $version_type in
9928 freebsd-elf*)
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9930 need_version=no
9931 need_lib_prefix=no
9932 ;;
9933 freebsd-*)
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9935 need_version=yes
9936 ;;
9937 esac
9938 shlibpath_var=LD_LIBRARY_PATH
9939 case $host_os in
9940 freebsd2*)
9941 shlibpath_overrides_runpath=yes
9942 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009943 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009944 shlibpath_overrides_runpath=yes
9945 hardcode_into_libs=yes
9946 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009947 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9948 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009949 shlibpath_overrides_runpath=no
9950 hardcode_into_libs=yes
9951 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009952 freebsd*) # from 4.6 on
9953 shlibpath_overrides_runpath=yes
9954 hardcode_into_libs=yes
9955 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009956 esac
9957 ;;
9958
9959gnu*)
9960 version_type=linux
9961 need_lib_prefix=no
9962 need_version=no
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9964 soname_spec='${libname}${release}${shared_ext}$major'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 hardcode_into_libs=yes
9967 ;;
9968
9969hpux9* | hpux10* | hpux11*)
9970 # Give a soname corresponding to the major version so that dld.sl refuses to
9971 # link against other versions.
9972 version_type=sunos
9973 need_lib_prefix=no
9974 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009975 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009976 ia64*)
9977 shrext_cmds='.so'
9978 hardcode_into_libs=yes
9979 dynamic_linker="$host_os dld.so"
9980 shlibpath_var=LD_LIBRARY_PATH
9981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 if test "X$HPUX_IA64_MODE" = X32; then
9985 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9986 else
9987 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9988 fi
9989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9990 ;;
9991 hppa*64*)
9992 shrext_cmds='.sl'
9993 hardcode_into_libs=yes
9994 dynamic_linker="$host_os dld.sl"
9995 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998 soname_spec='${libname}${release}${shared_ext}$major'
9999 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10001 ;;
10002 *)
10003 shrext_cmds='.sl'
10004 dynamic_linker="$host_os dld.sl"
10005 shlibpath_var=SHLIB_PATH
10006 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008 soname_spec='${libname}${release}${shared_ext}$major'
10009 ;;
10010 esac
10011 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10012 postinstall_cmds='chmod 555 $lib'
10013 ;;
10014
Reid Spencera773bd52006-08-04 18:18:08 +000010015interix3*)
10016 version_type=linux
10017 need_lib_prefix=no
10018 need_version=no
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10022 shlibpath_var=LD_LIBRARY_PATH
10023 shlibpath_overrides_runpath=no
10024 hardcode_into_libs=yes
10025 ;;
10026
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010027irix5* | irix6* | nonstopux*)
10028 case $host_os in
10029 nonstopux*) version_type=nonstopux ;;
10030 *)
10031 if test "$lt_cv_prog_gnu_ld" = yes; then
10032 version_type=linux
10033 else
10034 version_type=irix
10035 fi ;;
10036 esac
10037 need_lib_prefix=no
10038 need_version=no
10039 soname_spec='${libname}${release}${shared_ext}$major'
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10041 case $host_os in
10042 irix5* | nonstopux*)
10043 libsuff= shlibsuff=
10044 ;;
10045 *)
10046 case $LD in # libtool.m4 will add one of these switches to LD
10047 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10048 libsuff= shlibsuff= libmagic=32-bit;;
10049 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10050 libsuff=32 shlibsuff=N32 libmagic=N32;;
10051 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10052 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10053 *) libsuff= shlibsuff= libmagic=never-match;;
10054 esac
10055 ;;
10056 esac
10057 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10058 shlibpath_overrides_runpath=no
10059 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10060 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10061 hardcode_into_libs=yes
10062 ;;
10063
10064# No shared lib support for Linux oldld, aout, or coff.
10065linux*oldld* | linux*aout* | linux*coff*)
10066 dynamic_linker=no
10067 ;;
10068
10069# This must be Linux ELF.
10070linux*)
10071 version_type=linux
10072 need_lib_prefix=no
10073 need_version=no
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10077 shlibpath_var=LD_LIBRARY_PATH
10078 shlibpath_overrides_runpath=no
10079 # This implies no fast_install, which is unacceptable.
10080 # Some rework will be needed to allow for fast_install
10081 # before this can be enabled.
10082 hardcode_into_libs=yes
10083
10084 # Append ld.so.conf contents to the search path
10085 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010086 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 +000010087 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10088 fi
10089
10090 # We used to test for /lib/ld.so.1 and disable shared libraries on
10091 # powerpc, because MkLinux only supported shared libraries with the
10092 # GNU dynamic linker. Since this was broken with cross compilers,
10093 # most powerpc-linux boxes support dynamic linking these days and
10094 # people can always --disable-shared, the test was removed, and we
10095 # assume the GNU/Linux dynamic linker is in use.
10096 dynamic_linker='GNU/Linux ld.so'
10097 ;;
10098
10099knetbsd*-gnu)
10100 version_type=linux
10101 need_lib_prefix=no
10102 need_version=no
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 shlibpath_var=LD_LIBRARY_PATH
10106 shlibpath_overrides_runpath=no
10107 hardcode_into_libs=yes
10108 dynamic_linker='GNU ld.so'
10109 ;;
10110
10111netbsd*)
10112 version_type=sunos
10113 need_lib_prefix=no
10114 need_version=no
10115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10118 dynamic_linker='NetBSD (a.out) ld.so'
10119 else
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10121 soname_spec='${libname}${release}${shared_ext}$major'
10122 dynamic_linker='NetBSD ld.elf_so'
10123 fi
10124 shlibpath_var=LD_LIBRARY_PATH
10125 shlibpath_overrides_runpath=yes
10126 hardcode_into_libs=yes
10127 ;;
10128
10129newsos6)
10130 version_type=linux
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 shlibpath_overrides_runpath=yes
10134 ;;
10135
10136nto-qnx*)
10137 version_type=linux
10138 need_lib_prefix=no
10139 need_version=no
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 shlibpath_var=LD_LIBRARY_PATH
10143 shlibpath_overrides_runpath=yes
10144 ;;
10145
10146openbsd*)
10147 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010148 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010149 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010150 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10151 case $host_os in
10152 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10153 *) need_version=no ;;
10154 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10157 shlibpath_var=LD_LIBRARY_PATH
10158 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10159 case $host_os in
10160 openbsd2.[89] | openbsd2.[89].*)
10161 shlibpath_overrides_runpath=no
10162 ;;
10163 *)
10164 shlibpath_overrides_runpath=yes
10165 ;;
10166 esac
10167 else
10168 shlibpath_overrides_runpath=yes
10169 fi
10170 ;;
10171
10172os2*)
10173 libname_spec='$name'
10174 shrext_cmds=".dll"
10175 need_lib_prefix=no
10176 library_names_spec='$libname${shared_ext} $libname.a'
10177 dynamic_linker='OS/2 ld.exe'
10178 shlibpath_var=LIBPATH
10179 ;;
10180
10181osf3* | osf4* | osf5*)
10182 version_type=osf
10183 need_lib_prefix=no
10184 need_version=no
10185 soname_spec='${libname}${release}${shared_ext}$major'
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187 shlibpath_var=LD_LIBRARY_PATH
10188 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10189 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10190 ;;
10191
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010192solaris*)
10193 version_type=linux
10194 need_lib_prefix=no
10195 need_version=no
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197 soname_spec='${libname}${release}${shared_ext}$major'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 shlibpath_overrides_runpath=yes
10200 hardcode_into_libs=yes
10201 # ldd complains unless libraries are executable
10202 postinstall_cmds='chmod +x $lib'
10203 ;;
10204
10205sunos4*)
10206 version_type=sunos
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10208 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10209 shlibpath_var=LD_LIBRARY_PATH
10210 shlibpath_overrides_runpath=yes
10211 if test "$with_gnu_ld" = yes; then
10212 need_lib_prefix=no
10213 fi
10214 need_version=yes
10215 ;;
10216
Reid Spencera773bd52006-08-04 18:18:08 +000010217sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010218 version_type=linux
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 case $host_vendor in
10223 sni)
10224 shlibpath_overrides_runpath=no
10225 need_lib_prefix=no
10226 export_dynamic_flag_spec='${wl}-Blargedynsym'
10227 runpath_var=LD_RUN_PATH
10228 ;;
10229 siemens)
10230 need_lib_prefix=no
10231 ;;
10232 motorola)
10233 need_lib_prefix=no
10234 need_version=no
10235 shlibpath_overrides_runpath=no
10236 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10237 ;;
10238 esac
10239 ;;
10240
10241sysv4*MP*)
10242 if test -d /usr/nec ;then
10243 version_type=linux
10244 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10245 soname_spec='$libname${shared_ext}.$major'
10246 shlibpath_var=LD_LIBRARY_PATH
10247 fi
10248 ;;
10249
Reid Spencera773bd52006-08-04 18:18:08 +000010250sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10251 version_type=freebsd-elf
10252 need_lib_prefix=no
10253 need_version=no
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 hardcode_into_libs=yes
10258 if test "$with_gnu_ld" = yes; then
10259 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10260 shlibpath_overrides_runpath=no
10261 else
10262 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10263 shlibpath_overrides_runpath=yes
10264 case $host_os in
10265 sco3.2v5*)
10266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10267 ;;
10268 esac
10269 fi
10270 sys_lib_dlsearch_path_spec='/usr/lib'
10271 ;;
10272
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010273uts4*)
10274 version_type=linux
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 ;;
10279
10280*)
10281 dynamic_linker=no
10282 ;;
10283esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010284{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10285echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010286test "$dynamic_linker" = no && can_build_shared=no
10287
Reid Spencera773bd52006-08-04 18:18:08 +000010288variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10289if test "$GCC" = yes; then
10290 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10291fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010292
Reid Spencera773bd52006-08-04 18:18:08 +000010293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010294{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10295echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10296if test "${libltdl_cv_shlibext+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010298else
10299
10300module=yes
10301eval libltdl_cv_shlibext=$shrext_cmds
10302
10303fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010304{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10305echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010306if test -n "$libltdl_cv_shlibext"; then
10307
10308cat >>confdefs.h <<_ACEOF
10309#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10310_ACEOF
10311
10312fi
10313
10314
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010315{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10316echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10317if test "${libltdl_cv_shlibpath_var+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010319else
10320 libltdl_cv_shlibpath_var="$shlibpath_var"
10321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010322{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10323echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010324if test -n "$libltdl_cv_shlibpath_var"; then
10325
10326cat >>confdefs.h <<_ACEOF
10327#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10328_ACEOF
10329
10330fi
10331
10332
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010333{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10334echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10335if test "${libltdl_cv_sys_search_path+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010337else
10338 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10339fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010340{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10341echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010342if test -n "$libltdl_cv_sys_search_path"; then
10343 sys_search_path=
10344 for dir in $libltdl_cv_sys_search_path; do
10345 if test -z "$sys_search_path"; then
10346 sys_search_path="$dir"
10347 else
10348 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10349 fi
10350 done
10351
10352cat >>confdefs.h <<_ACEOF
10353#define LTDL_SYSSEARCHPATH "$sys_search_path"
10354_ACEOF
10355
10356fi
10357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010358{ echo "$as_me:$LINENO: checking for objdir" >&5
10359echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10360if test "${libltdl_cv_objdir+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010362else
10363 libltdl_cv_objdir="$objdir"
10364 if test -n "$objdir"; then
10365 :
10366 else
10367 rm -f .libs 2>/dev/null
10368 mkdir .libs 2>/dev/null
10369 if test -d .libs; then
10370 libltdl_cv_objdir=.libs
10371 else
10372 # MS-DOS does not allow filenames that begin with a dot.
10373 libltdl_cv_objdir=_libs
10374 fi
10375 rmdir .libs 2>/dev/null
10376 fi
10377
10378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010379{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10380echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010381
10382cat >>confdefs.h <<_ACEOF
10383#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10384_ACEOF
10385
10386
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010387
10388
10389
10390
10391# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010392{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10393echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10394if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010396else
10397
10398# These are sane defaults that work on at least a few old systems.
10399# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10400
10401# Character class describing NM global symbol codes.
10402symcode='[BCDEGRST]'
10403
10404# Regexp to match symbols that can be accessed directly from C.
10405sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10406
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010407# Transform an extracted symbol line into a proper C declaration
10408lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10409
10410# Transform an extracted symbol line into symbol name and symbol address
10411lt_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'"
10412
10413# Define system-specific variables.
10414case $host_os in
10415aix*)
10416 symcode='[BCDT]'
10417 ;;
10418cygwin* | mingw* | pw32*)
10419 symcode='[ABCDGISTW]'
10420 ;;
10421hpux*) # Its linker distinguishes data from code symbols
10422 if test "$host_cpu" = ia64; then
10423 symcode='[ABCDEGRST]'
10424 fi
10425 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10426 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'"
10427 ;;
10428linux*)
10429 if test "$host_cpu" = ia64; then
10430 symcode='[ABCDGIRSTW]'
10431 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10432 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'"
10433 fi
10434 ;;
10435irix* | nonstopux*)
10436 symcode='[BCDEGRST]'
10437 ;;
10438osf*)
10439 symcode='[BCDEGQRST]'
10440 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010441solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010442 symcode='[BDRT]'
10443 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010444sco3.2v5*)
10445 symcode='[DT]'
10446 ;;
10447sysv4.2uw2*)
10448 symcode='[DT]'
10449 ;;
10450sysv5* | sco5v6* | unixware* | OpenUNIX*)
10451 symcode='[ABDT]'
10452 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010453sysv4)
10454 symcode='[DFNSTU]'
10455 ;;
10456esac
10457
10458# Handle CRLF in mingw tool chain
10459opt_cr=
10460case $build_os in
10461mingw*)
10462 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10463 ;;
10464esac
10465
10466# If we're using GNU nm, then use its standard symbol codes.
10467case `$NM -V 2>&1` in
10468*GNU* | *'with BFD'*)
10469 symcode='[ABCDGIRSTW]' ;;
10470esac
10471
10472# Try without a prefix undercore, then with it.
10473for ac_symprfx in "" "_"; do
10474
Reid Spencera773bd52006-08-04 18:18:08 +000010475 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10476 symxfrm="\\1 $ac_symprfx\\2 \\2"
10477
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010478 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010479 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 +000010480
10481 # Check to see that the pipe works correctly.
10482 pipe_works=no
10483
10484 rm -f conftest*
10485 cat > conftest.$ac_ext <<EOF
10486#ifdef __cplusplus
10487extern "C" {
10488#endif
10489char nm_test_var;
10490void nm_test_func(){}
10491#ifdef __cplusplus
10492}
10493#endif
10494int main(){nm_test_var='a';nm_test_func();return(0);}
10495EOF
10496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010498 (eval $ac_compile) 2>&5
10499 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010502 # Now try to grab the symbols.
10503 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010504 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 +000010505 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10506 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509 # Try sorting and uniquifying the output.
10510 if sort "$nlist" | uniq > "$nlist"T; then
10511 mv -f "$nlist"T "$nlist"
10512 else
10513 rm -f "$nlist"T
10514 fi
10515
10516 # Make sure that we snagged all the symbols we need.
10517 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10518 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10519 cat <<EOF > conftest.$ac_ext
10520#ifdef __cplusplus
10521extern "C" {
10522#endif
10523
10524EOF
10525 # Now generate the symbol file.
10526 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10527
10528 cat <<EOF >> conftest.$ac_ext
10529#if defined (__STDC__) && __STDC__
10530# define lt_ptr_t void *
10531#else
10532# define lt_ptr_t char *
10533# define const
10534#endif
10535
10536/* The mapping between symbol names and symbols. */
10537const struct {
10538 const char *name;
10539 lt_ptr_t address;
10540}
10541lt_preloaded_symbols[] =
10542{
10543EOF
10544 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10545 cat <<\EOF >> conftest.$ac_ext
10546 {0, (lt_ptr_t) 0}
10547};
10548
10549#ifdef __cplusplus
10550}
10551#endif
10552EOF
10553 # Now try linking the two files.
10554 mv conftest.$ac_objext conftstm.$ac_objext
10555 lt_save_LIBS="$LIBS"
10556 lt_save_CFLAGS="$CFLAGS"
10557 LIBS="conftstm.$ac_objext"
10558 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010560 (eval $ac_link) 2>&5
10561 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564 pipe_works=yes
10565 fi
10566 LIBS="$lt_save_LIBS"
10567 CFLAGS="$lt_save_CFLAGS"
10568 else
10569 echo "cannot find nm_test_func in $nlist" >&5
10570 fi
10571 else
10572 echo "cannot find nm_test_var in $nlist" >&5
10573 fi
10574 else
10575 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10576 fi
10577 else
10578 echo "$progname: failed program was:" >&5
10579 cat conftest.$ac_ext >&5
10580 fi
10581 rm -f conftest* conftst*
10582
10583 # Do not use the global_symbol_pipe unless it works.
10584 if test "$pipe_works" = yes; then
10585 break
10586 else
10587 lt_cv_sys_global_symbol_pipe=
10588 fi
10589done
10590
10591fi
10592
10593if test -z "$lt_cv_sys_global_symbol_pipe"; then
10594 lt_cv_sys_global_symbol_to_cdecl=
10595fi
10596if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010597 { echo "$as_me:$LINENO: result: failed" >&5
10598echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010599else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010600 { echo "$as_me:$LINENO: result: ok" >&5
10601echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010602fi
10603
10604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010605{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10606echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10607if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010609else
10610 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10611 libltdl_cv_preloaded_symbols=yes
10612 else
10613 libltdl_cv_preloaded_symbols=no
10614 fi
10615
10616fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010617{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10618echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010619if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010621cat >>confdefs.h <<\_ACEOF
10622#define HAVE_PRELOADED_SYMBOLS 1
10623_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010624
10625fi
10626
10627LIBADD_DL=
10628
10629ac_ext=c
10630ac_cpp='$CPP $CPPFLAGS'
10631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10633ac_compiler_gnu=$ac_cv_c_compiler_gnu
10634
10635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010636{ echo "$as_me:$LINENO: checking for shl_load" >&5
10637echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10638if test "${ac_cv_func_shl_load+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640else
10641 cat >conftest.$ac_ext <<_ACEOF
10642/* confdefs.h. */
10643_ACEOF
10644cat confdefs.h >>conftest.$ac_ext
10645cat >>conftest.$ac_ext <<_ACEOF
10646/* end confdefs.h. */
10647/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10649#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010651/* System header to define __stub macros and hopefully few prototypes,
10652 which can conflict with char shl_load (); below.
10653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10654 <limits.h> exists even on freestanding compilers. */
10655
10656#ifdef __STDC__
10657# include <limits.h>
10658#else
10659# include <assert.h>
10660#endif
10661
10662#undef shl_load
10663
10664/* Override any GCC internal prototype to avoid an error.
10665 Use char because int might match the return type of a GCC
10666 builtin and then its argument prototype would still apply. */
10667#ifdef __cplusplus
10668extern "C"
10669#endif
10670char shl_load ();
10671/* The GNU C library defines this for functions which it implements
10672 to always fail with ENOSYS. Some functions are actually named
10673 something starting with __ and the normal name is an alias. */
10674#if defined __stub_shl_load || defined __stub___shl_load
10675choke me
10676#endif
10677
10678int
10679main ()
10680{
10681return shl_load ();
10682 ;
10683 return 0;
10684}
10685_ACEOF
10686rm -f conftest.$ac_objext conftest$ac_exeext
10687if { (ac_try="$ac_link"
10688case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691esac
10692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_link") 2>conftest.er1
10694 ac_status=$?
10695 grep -v '^ *+' conftest.er1 >conftest.err
10696 rm -f conftest.er1
10697 cat conftest.err >&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } &&
10700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10701 { (case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10704esac
10705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706 (eval "$ac_try") 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; } &&
10710 { ac_try='test -s conftest$ac_exeext'
10711 { (case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10714esac
10715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_try") 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_cv_func_shl_load=yes
10721else
10722 echo "$as_me: failed program was:" >&5
10723sed 's/^/| /' conftest.$ac_ext >&5
10724
10725 ac_cv_func_shl_load=no
10726fi
10727
10728rm -f core conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10730fi
10731{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10732echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10733if test $ac_cv_func_shl_load = yes; then
10734
10735cat >>confdefs.h <<\_ACEOF
10736#define HAVE_SHL_LOAD 1
10737_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010738
10739else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010740 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10741echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10742if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010744else
10745 ac_check_lib_save_LIBS=$LIBS
10746LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010747cat >conftest.$ac_ext <<_ACEOF
10748/* confdefs.h. */
10749_ACEOF
10750cat confdefs.h >>conftest.$ac_ext
10751cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010752/* end confdefs.h. */
10753
Reid Spencera773bd52006-08-04 18:18:08 +000010754/* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010757#ifdef __cplusplus
10758extern "C"
10759#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760char shl_load ();
10761int
10762main ()
10763{
Reid Spencera773bd52006-08-04 18:18:08 +000010764return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010765 ;
10766 return 0;
10767}
10768_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010769rm -f conftest.$ac_objext conftest$ac_exeext
10770if { (ac_try="$ac_link"
10771case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10774esac
10775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_link") 2>conftest.er1
10777 ac_status=$?
10778 grep -v '^ *+' conftest.er1 >conftest.err
10779 rm -f conftest.er1
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } &&
10783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10784 { (case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10787esac
10788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789 (eval "$ac_try") 2>&5
10790 ac_status=$?
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; } &&
10793 { ac_try='test -s conftest$ac_exeext'
10794 { (case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797esac
10798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_try") 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010803 ac_cv_lib_dld_shl_load=yes
10804else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010805 echo "$as_me: failed program was:" >&5
10806sed 's/^/| /' conftest.$ac_ext >&5
10807
10808 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010809fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010810
Bill Wendlingebcceee2009-04-18 11:20:33 +000010811rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010812 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010813LIBS=$ac_check_lib_save_LIBS
10814fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010815{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10816echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10817if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010819cat >>confdefs.h <<\_ACEOF
10820#define HAVE_SHL_LOAD 1
10821_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010822
10823 LIBADD_DL="$LIBADD_DL -ldld"
10824else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010825 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10826echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10827if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010829else
10830 ac_check_lib_save_LIBS=$LIBS
10831LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010832cat >conftest.$ac_ext <<_ACEOF
10833/* confdefs.h. */
10834_ACEOF
10835cat confdefs.h >>conftest.$ac_ext
10836cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010837/* end confdefs.h. */
10838
Reid Spencera773bd52006-08-04 18:18:08 +000010839/* Override any GCC internal prototype to avoid an error.
10840 Use char because int might match the return type of a GCC
10841 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010842#ifdef __cplusplus
10843extern "C"
10844#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010845char dlopen ();
10846int
10847main ()
10848{
Reid Spencera773bd52006-08-04 18:18:08 +000010849return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010850 ;
10851 return 0;
10852}
10853_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010854rm -f conftest.$ac_objext conftest$ac_exeext
10855if { (ac_try="$ac_link"
10856case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10859esac
10860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_link") 2>conftest.er1
10862 ac_status=$?
10863 grep -v '^ *+' conftest.er1 >conftest.err
10864 rm -f conftest.er1
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869 { (case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10872esac
10873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_try") 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest$ac_exeext'
10879 { (case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10882esac
10883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_try") 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010888 ac_cv_lib_dl_dlopen=yes
10889else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010890 echo "$as_me: failed program was:" >&5
10891sed 's/^/| /' conftest.$ac_ext >&5
10892
10893 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010894fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010895
Bill Wendlingebcceee2009-04-18 11:20:33 +000010896rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010897 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010898LIBS=$ac_check_lib_save_LIBS
10899fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010900{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10901echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10902if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010903
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010904cat >>confdefs.h <<\_ACEOF
10905#define HAVE_LIBDL 1
10906_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010907
10908 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10909else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010910 cat >conftest.$ac_ext <<_ACEOF
10911/* confdefs.h. */
10912_ACEOF
10913cat confdefs.h >>conftest.$ac_ext
10914cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010915/* end confdefs.h. */
10916#if HAVE_DLFCN_H
10917# include <dlfcn.h>
10918#endif
10919
10920int
10921main ()
10922{
10923dlopen(0, 0);
10924 ;
10925 return 0;
10926}
10927_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010928rm -f conftest.$ac_objext conftest$ac_exeext
10929if { (ac_try="$ac_link"
10930case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10933esac
10934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_link") 2>conftest.er1
10936 ac_status=$?
10937 grep -v '^ *+' conftest.er1 >conftest.err
10938 rm -f conftest.er1
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10943 { (case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10946esac
10947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_try") 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; } &&
10952 { ac_try='test -s conftest$ac_exeext'
10953 { (case "(($ac_try" in
10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10956esac
10957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_try") 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010963cat >>confdefs.h <<\_ACEOF
10964#define HAVE_LIBDL 1
10965_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010966 libltdl_cv_func_dlopen="yes"
10967else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010968 echo "$as_me: failed program was:" >&5
10969sed 's/^/| /' conftest.$ac_ext >&5
10970
10971 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10972echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10973if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010975else
10976 ac_check_lib_save_LIBS=$LIBS
10977LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010978cat >conftest.$ac_ext <<_ACEOF
10979/* confdefs.h. */
10980_ACEOF
10981cat confdefs.h >>conftest.$ac_ext
10982cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010983/* end confdefs.h. */
10984
Reid Spencera773bd52006-08-04 18:18:08 +000010985/* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010988#ifdef __cplusplus
10989extern "C"
10990#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010991char dlopen ();
10992int
10993main ()
10994{
Reid Spencera773bd52006-08-04 18:18:08 +000010995return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010996 ;
10997 return 0;
10998}
10999_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011000rm -f conftest.$ac_objext conftest$ac_exeext
11001if { (ac_try="$ac_link"
11002case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11005esac
11006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_link") 2>conftest.er1
11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11015 { (case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11018esac
11019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020 (eval "$ac_try") 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; } &&
11024 { ac_try='test -s conftest$ac_exeext'
11025 { (case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028esac
11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_try") 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011034 ac_cv_lib_svld_dlopen=yes
11035else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011036 echo "$as_me: failed program was:" >&5
11037sed 's/^/| /' conftest.$ac_ext >&5
11038
11039 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011041
Bill Wendlingebcceee2009-04-18 11:20:33 +000011042rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011043 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011044LIBS=$ac_check_lib_save_LIBS
11045fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011046{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11047echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11048if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011050cat >>confdefs.h <<\_ACEOF
11051#define HAVE_LIBDL 1
11052_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011053
11054 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11055else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011056 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11057echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11058if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011060else
11061 ac_check_lib_save_LIBS=$LIBS
11062LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011063cat >conftest.$ac_ext <<_ACEOF
11064/* confdefs.h. */
11065_ACEOF
11066cat confdefs.h >>conftest.$ac_ext
11067cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011068/* end confdefs.h. */
11069
Reid Spencera773bd52006-08-04 18:18:08 +000011070/* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011073#ifdef __cplusplus
11074extern "C"
11075#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076char dld_link ();
11077int
11078main ()
11079{
Reid Spencera773bd52006-08-04 18:18:08 +000011080return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011081 ;
11082 return 0;
11083}
11084_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011085rm -f conftest.$ac_objext conftest$ac_exeext
11086if { (ac_try="$ac_link"
11087case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11090esac
11091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_link") 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11100 { (case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11103esac
11104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105 (eval "$ac_try") 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest$ac_exeext'
11110 { (case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11113esac
11114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_try") 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011119 ac_cv_lib_dld_dld_link=yes
11120else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011121 echo "$as_me: failed program was:" >&5
11122sed 's/^/| /' conftest.$ac_ext >&5
11123
11124 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011125fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011126
Bill Wendlingebcceee2009-04-18 11:20:33 +000011127rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011128 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011129LIBS=$ac_check_lib_save_LIBS
11130fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011131{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11132echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11133if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011135cat >>confdefs.h <<\_ACEOF
11136#define HAVE_DLD 1
11137_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011138
11139 LIBADD_DL="$LIBADD_DL -ldld"
11140else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011141 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11142echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11143if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11145else
11146 cat >conftest.$ac_ext <<_ACEOF
11147/* confdefs.h. */
11148_ACEOF
11149cat confdefs.h >>conftest.$ac_ext
11150cat >>conftest.$ac_ext <<_ACEOF
11151/* end confdefs.h. */
11152/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11154#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011155
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011156/* System header to define __stub macros and hopefully few prototypes,
11157 which can conflict with char _dyld_func_lookup (); below.
11158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11159 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011161#ifdef __STDC__
11162# include <limits.h>
11163#else
11164# include <assert.h>
11165#endif
11166
11167#undef _dyld_func_lookup
11168
11169/* Override any GCC internal prototype to avoid an error.
11170 Use char because int might match the return type of a GCC
11171 builtin and then its argument prototype would still apply. */
11172#ifdef __cplusplus
11173extern "C"
11174#endif
11175char _dyld_func_lookup ();
11176/* The GNU C library defines this for functions which it implements
11177 to always fail with ENOSYS. Some functions are actually named
11178 something starting with __ and the normal name is an alias. */
11179#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11180choke me
11181#endif
11182
11183int
11184main ()
11185{
11186return _dyld_func_lookup ();
11187 ;
11188 return 0;
11189}
11190_ACEOF
11191rm -f conftest.$ac_objext conftest$ac_exeext
11192if { (ac_try="$ac_link"
11193case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11196esac
11197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_link") 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } &&
11205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11206 { (case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11209esac
11210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_try") 2>&5
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; } &&
11215 { ac_try='test -s conftest$ac_exeext'
11216 { (case "(($ac_try" in
11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218 *) ac_try_echo=$ac_try;;
11219esac
11220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221 (eval "$ac_try") 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; }; then
11225 ac_cv_func__dyld_func_lookup=yes
11226else
11227 echo "$as_me: failed program was:" >&5
11228sed 's/^/| /' conftest.$ac_ext >&5
11229
11230 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011231fi
Reid Spencera773bd52006-08-04 18:18:08 +000011232
Bill Wendlingebcceee2009-04-18 11:20:33 +000011233rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011234 conftest$ac_exeext conftest.$ac_ext
11235fi
11236{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11237echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11238if test $ac_cv_func__dyld_func_lookup = yes; then
11239
11240cat >>confdefs.h <<\_ACEOF
11241#define HAVE_DYLD 1
11242_ACEOF
11243
11244fi
11245
11246
11247fi
11248
11249
11250fi
11251
11252
11253fi
11254
11255rm -f core conftest.err conftest.$ac_objext \
11256 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011257
11258fi
11259
11260
11261fi
11262
11263
11264fi
11265
11266
11267if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11268then
11269 lt_save_LIBS="$LIBS"
11270 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011271
11272for ac_func in dlerror
11273do
11274as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11275{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11276echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11277if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279else
11280 cat >conftest.$ac_ext <<_ACEOF
11281/* confdefs.h. */
11282_ACEOF
11283cat confdefs.h >>conftest.$ac_ext
11284cat >>conftest.$ac_ext <<_ACEOF
11285/* end confdefs.h. */
11286/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11288#define $ac_func innocuous_$ac_func
11289
11290/* System header to define __stub macros and hopefully few prototypes,
11291 which can conflict with char $ac_func (); below.
11292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11293 <limits.h> exists even on freestanding compilers. */
11294
11295#ifdef __STDC__
11296# include <limits.h>
11297#else
11298# include <assert.h>
11299#endif
11300
11301#undef $ac_func
11302
11303/* Override any GCC internal prototype to avoid an error.
11304 Use char because int might match the return type of a GCC
11305 builtin and then its argument prototype would still apply. */
11306#ifdef __cplusplus
11307extern "C"
11308#endif
11309char $ac_func ();
11310/* The GNU C library defines this for functions which it implements
11311 to always fail with ENOSYS. Some functions are actually named
11312 something starting with __ and the normal name is an alias. */
11313#if defined __stub_$ac_func || defined __stub___$ac_func
11314choke me
11315#endif
11316
11317int
11318main ()
11319{
11320return $ac_func ();
11321 ;
11322 return 0;
11323}
11324_ACEOF
11325rm -f conftest.$ac_objext conftest$ac_exeext
11326if { (ac_try="$ac_link"
11327case "(($ac_try" in
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11330esac
11331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332 (eval "$ac_link") 2>conftest.er1
11333 ac_status=$?
11334 grep -v '^ *+' conftest.er1 >conftest.err
11335 rm -f conftest.er1
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11340 { (case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11343esac
11344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_try") 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; } &&
11349 { ac_try='test -s conftest$ac_exeext'
11350 { (case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11353esac
11354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_try") 2>&5
11356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; }; then
11359 eval "$as_ac_var=yes"
11360else
11361 echo "$as_me: failed program was:" >&5
11362sed 's/^/| /' conftest.$ac_ext >&5
11363
11364 eval "$as_ac_var=no"
11365fi
11366
11367rm -f core conftest.err conftest.$ac_objext \
11368 conftest$ac_exeext conftest.$ac_ext
11369fi
11370ac_res=`eval echo '${'$as_ac_var'}'`
11371 { echo "$as_me:$LINENO: result: $ac_res" >&5
11372echo "${ECHO_T}$ac_res" >&6; }
11373if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011374 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011375#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011376_ACEOF
11377
11378fi
11379done
11380
11381 LIBS="$lt_save_LIBS"
11382fi
11383ac_ext=c
11384ac_cpp='$CPP $CPPFLAGS'
11385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11387ac_compiler_gnu=$ac_cv_c_compiler_gnu
11388
11389
11390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011391{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11392echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11393if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011395else
11396 ac_cv_sys_symbol_underscore=no
11397 cat > conftest.$ac_ext <<EOF
11398void nm_test_func(){}
11399int main(){nm_test_func;return 0;}
11400EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011402 (eval $ac_compile) 2>&5
11403 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011406 # Now try to grab the symbols.
11407 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011408 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 +000011409 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11410 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011413 # See whether the symbols have a leading underscore.
11414 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11415 ac_cv_sys_symbol_underscore=yes
11416 else
11417 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11418 :
11419 else
11420 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11421 fi
11422 fi
11423 else
11424 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11425 fi
11426 else
11427 echo "configure: failed program was:" >&5
11428 cat conftest.c >&5
11429 fi
11430 rm -rf conftest*
11431
11432fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011433{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11434echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011435
11436
11437if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11438 if test x"$libltdl_cv_func_dlopen" = xyes ||
11439 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011440 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11441echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11442if test "${libltdl_cv_need_uscore+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011444else
11445 libltdl_cv_need_uscore=unknown
11446 save_LIBS="$LIBS"
11447 LIBS="$LIBS $LIBADD_DL"
11448 if test "$cross_compiling" = yes; then :
11449 libltdl_cv_need_uscore=cross
11450else
11451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11452 lt_status=$lt_dlunknown
11453 cat > conftest.$ac_ext <<EOF
Dan Gohman48fd5a72010-09-27 16:28:34 +000011454#line 11454 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011455#include "confdefs.h"
11456
11457#if HAVE_DLFCN_H
11458#include <dlfcn.h>
11459#endif
11460
11461#include <stdio.h>
11462
11463#ifdef RTLD_GLOBAL
11464# define LT_DLGLOBAL RTLD_GLOBAL
11465#else
11466# ifdef DL_GLOBAL
11467# define LT_DLGLOBAL DL_GLOBAL
11468# else
11469# define LT_DLGLOBAL 0
11470# endif
11471#endif
11472
11473/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11474 find out it does not work in some platform. */
11475#ifndef LT_DLLAZY_OR_NOW
11476# ifdef RTLD_LAZY
11477# define LT_DLLAZY_OR_NOW RTLD_LAZY
11478# else
11479# ifdef DL_LAZY
11480# define LT_DLLAZY_OR_NOW DL_LAZY
11481# else
11482# ifdef RTLD_NOW
11483# define LT_DLLAZY_OR_NOW RTLD_NOW
11484# else
11485# ifdef DL_NOW
11486# define LT_DLLAZY_OR_NOW DL_NOW
11487# else
11488# define LT_DLLAZY_OR_NOW 0
11489# endif
11490# endif
11491# endif
11492# endif
11493#endif
11494
11495#ifdef __cplusplus
11496extern "C" void exit (int);
11497#endif
11498
11499void fnord() { int i=42;}
11500int main ()
11501{
11502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11503 int status = $lt_dlunknown;
11504
11505 if (self)
11506 {
11507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11508 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11509 /* dlclose (self); */
11510 }
Reid Spencera773bd52006-08-04 18:18:08 +000011511 else
11512 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011513
11514 exit (status);
11515}
11516EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011518 (eval $ac_link) 2>&5
11519 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011522 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011523 lt_status=$?
11524 case x$lt_status in
11525 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11526 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011527 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011528 esac
11529 else :
11530 # compilation failed
11531
11532 fi
11533fi
11534rm -fr conftest*
11535
11536 LIBS="$save_LIBS"
11537
11538fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011539{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11540echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011541 fi
11542fi
11543
11544if test x"$libltdl_cv_need_uscore" = xyes; then
11545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011546cat >>confdefs.h <<\_ACEOF
11547#define NEED_USCORE 1
11548_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011549
11550fi
11551
11552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011553{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11554echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11555if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011557else
11558 # PORTME does your system automatically load deplibs for dlopen?
11559 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11560 # For now, we just catch OSes we know something about -- in the
11561 # future, we'll try test this programmatically.
11562 libltdl_cv_sys_dlopen_deplibs=unknown
11563 case "$host_os" in
11564 aix3*|aix4.1.*|aix4.2.*)
11565 # Unknown whether this is true for these versions of AIX, but
11566 # we want this `case' here to explicitly catch those versions.
11567 libltdl_cv_sys_dlopen_deplibs=unknown
11568 ;;
11569 aix[45]*)
11570 libltdl_cv_sys_dlopen_deplibs=yes
11571 ;;
11572 darwin*)
11573 # Assuming the user has installed a libdl from somewhere, this is true
11574 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11575 libltdl_cv_sys_dlopen_deplibs=yes
11576 ;;
11577 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11578 # GNU and its variants, using gnu ld.so (Glibc)
11579 libltdl_cv_sys_dlopen_deplibs=yes
11580 ;;
11581 hpux10*|hpux11*)
11582 libltdl_cv_sys_dlopen_deplibs=yes
11583 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011584 interix*)
11585 libltdl_cv_sys_dlopen_deplibs=yes
11586 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011587 irix[12345]*|irix6.[01]*)
11588 # Catch all versions of IRIX before 6.2, and indicate that we don't
11589 # know how it worked for any of those versions.
11590 libltdl_cv_sys_dlopen_deplibs=unknown
11591 ;;
11592 irix*)
11593 # The case above catches anything before 6.2, and it's known that
11594 # at 6.2 and later dlopen does load deplibs.
11595 libltdl_cv_sys_dlopen_deplibs=yes
11596 ;;
11597 netbsd*)
11598 libltdl_cv_sys_dlopen_deplibs=yes
11599 ;;
11600 openbsd*)
11601 libltdl_cv_sys_dlopen_deplibs=yes
11602 ;;
11603 osf[1234]*)
11604 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11605 # it did *not* use an RPATH in a shared library to find objects the
11606 # library depends on, so we explictly say `no'.
11607 libltdl_cv_sys_dlopen_deplibs=no
11608 ;;
11609 osf5.0|osf5.0a|osf5.1)
11610 # dlopen *does* load deplibs and with the right loader patch applied
11611 # it even uses RPATH in a shared library to search for shared objects
11612 # that the library depends on, but there's no easy way to know if that
11613 # patch is installed. Since this is the case, all we can really
11614 # say is unknown -- it depends on the patch being installed. If
11615 # it is, this changes to `yes'. Without it, it would be `no'.
11616 libltdl_cv_sys_dlopen_deplibs=unknown
11617 ;;
11618 osf*)
11619 # the two cases above should catch all versions of osf <= 5.1. Read
11620 # the comments above for what we know about them.
11621 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11622 # is used to find them so we can finally say `yes'.
11623 libltdl_cv_sys_dlopen_deplibs=yes
11624 ;;
11625 solaris*)
11626 libltdl_cv_sys_dlopen_deplibs=yes
11627 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11629 libltdl_cv_sys_dlopen_deplibs=yes
11630 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011631 esac
11632
11633fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011634{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11635echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011636if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011638cat >>confdefs.h <<\_ACEOF
11639#define LTDL_DLOPEN_DEPLIBS 1
11640_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011641
11642fi
11643
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011644
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011645for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011646do
11647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11653fi
11654ac_res=`eval echo '${'$as_ac_Header'}'`
11655 { echo "$as_me:$LINENO: result: $ac_res" >&5
11656echo "${ECHO_T}$ac_res" >&6; }
11657else
11658 # Is the header compilable?
11659{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11660echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11661cat >conftest.$ac_ext <<_ACEOF
11662/* confdefs.h. */
11663_ACEOF
11664cat confdefs.h >>conftest.$ac_ext
11665cat >>conftest.$ac_ext <<_ACEOF
11666/* end confdefs.h. */
11667$ac_includes_default
11668#include <$ac_header>
11669_ACEOF
11670rm -f conftest.$ac_objext
11671if { (ac_try="$ac_compile"
11672case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11675esac
11676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_compile") 2>conftest.er1
11678 ac_status=$?
11679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11685 { (case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11688esac
11689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_try") 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11698esac
11699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_try") 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_header_compiler=yes
11705else
11706 echo "$as_me: failed program was:" >&5
11707sed 's/^/| /' conftest.$ac_ext >&5
11708
11709 ac_header_compiler=no
11710fi
11711
11712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11713{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11714echo "${ECHO_T}$ac_header_compiler" >&6; }
11715
11716# Is the header present?
11717{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11719cat >conftest.$ac_ext <<_ACEOF
11720/* confdefs.h. */
11721_ACEOF
11722cat confdefs.h >>conftest.$ac_ext
11723cat >>conftest.$ac_ext <<_ACEOF
11724/* end confdefs.h. */
11725#include <$ac_header>
11726_ACEOF
11727if { (ac_try="$ac_cpp conftest.$ac_ext"
11728case "(($ac_try" in
11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730 *) ac_try_echo=$ac_try;;
11731esac
11732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11734 ac_status=$?
11735 grep -v '^ *+' conftest.er1 >conftest.err
11736 rm -f conftest.er1
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } >/dev/null; then
11740 if test -s conftest.err; then
11741 ac_cpp_err=$ac_c_preproc_warn_flag
11742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11743 else
11744 ac_cpp_err=
11745 fi
11746else
11747 ac_cpp_err=yes
11748fi
11749if test -z "$ac_cpp_err"; then
11750 ac_header_preproc=yes
11751else
11752 echo "$as_me: failed program was:" >&5
11753sed 's/^/| /' conftest.$ac_ext >&5
11754
11755 ac_header_preproc=no
11756fi
11757
11758rm -f conftest.err conftest.$ac_ext
11759{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11760echo "${ECHO_T}$ac_header_preproc" >&6; }
11761
11762# So? What about this header?
11763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11764 yes:no: )
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11768echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11769 ac_header_preproc=yes
11770 ;;
11771 no:yes:* )
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11773echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11775echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11777echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11779echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11783echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11784 ( cat <<\_ASBOX
11785## ----------------------------------- ##
11786## Report this to llvmbugs@cs.uiuc.edu ##
11787## ----------------------------------- ##
11788_ASBOX
11789 ) | sed "s/^/$as_me: WARNING: /" >&2
11790 ;;
11791esac
11792{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11796else
11797 eval "$as_ac_Header=\$ac_header_preproc"
11798fi
11799ac_res=`eval echo '${'$as_ac_Header'}'`
11800 { echo "$as_me:$LINENO: result: $ac_res" >&5
11801echo "${ECHO_T}$ac_res" >&6; }
11802
11803fi
11804if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011805 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011807_ACEOF
11808
11809fi
11810
11811done
11812
11813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011814{ echo "$as_me:$LINENO: checking for error_t" >&5
11815echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11816if test "${ac_cv_type_error_t+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11818else
11819 cat >conftest.$ac_ext <<_ACEOF
11820/* confdefs.h. */
11821_ACEOF
11822cat confdefs.h >>conftest.$ac_ext
11823cat >>conftest.$ac_ext <<_ACEOF
11824/* end confdefs.h. */
11825#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011826# include <argz.h>
11827#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011828
11829typedef error_t ac__type_new_;
11830int
11831main ()
11832{
11833if ((ac__type_new_ *) 0)
11834 return 0;
11835if (sizeof (ac__type_new_))
11836 return 0;
11837 ;
11838 return 0;
11839}
11840_ACEOF
11841rm -f conftest.$ac_objext
11842if { (ac_try="$ac_compile"
11843case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11846esac
11847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_compile") 2>conftest.er1
11849 ac_status=$?
11850 grep -v '^ *+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11859esac
11860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; } &&
11865 { ac_try='test -s conftest.$ac_objext'
11866 { (case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11869esac
11870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_try") 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 ac_cv_type_error_t=yes
11876else
11877 echo "$as_me: failed program was:" >&5
11878sed 's/^/| /' conftest.$ac_ext >&5
11879
11880 ac_cv_type_error_t=no
11881fi
11882
11883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884fi
11885{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11886echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11887if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011888
11889cat >>confdefs.h <<_ACEOF
11890#define HAVE_ERROR_T 1
11891_ACEOF
11892
11893
11894else
11895
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011896cat >>confdefs.h <<\_ACEOF
11897#define error_t int
11898_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011899
11900fi
11901
11902
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011903
11904
11905
11906
11907
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011908for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011909do
11910as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11911{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11913if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11915else
11916 cat >conftest.$ac_ext <<_ACEOF
11917/* confdefs.h. */
11918_ACEOF
11919cat confdefs.h >>conftest.$ac_ext
11920cat >>conftest.$ac_ext <<_ACEOF
11921/* end confdefs.h. */
11922/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11924#define $ac_func innocuous_$ac_func
11925
11926/* System header to define __stub macros and hopefully few prototypes,
11927 which can conflict with char $ac_func (); below.
11928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11929 <limits.h> exists even on freestanding compilers. */
11930
11931#ifdef __STDC__
11932# include <limits.h>
11933#else
11934# include <assert.h>
11935#endif
11936
11937#undef $ac_func
11938
11939/* Override any GCC internal prototype to avoid an error.
11940 Use char because int might match the return type of a GCC
11941 builtin and then its argument prototype would still apply. */
11942#ifdef __cplusplus
11943extern "C"
11944#endif
11945char $ac_func ();
11946/* The GNU C library defines this for functions which it implements
11947 to always fail with ENOSYS. Some functions are actually named
11948 something starting with __ and the normal name is an alias. */
11949#if defined __stub_$ac_func || defined __stub___$ac_func
11950choke me
11951#endif
11952
11953int
11954main ()
11955{
11956return $ac_func ();
11957 ;
11958 return 0;
11959}
11960_ACEOF
11961rm -f conftest.$ac_objext conftest$ac_exeext
11962if { (ac_try="$ac_link"
11963case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966esac
11967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_link") 2>conftest.er1
11969 ac_status=$?
11970 grep -v '^ *+' conftest.er1 >conftest.err
11971 rm -f conftest.er1
11972 cat conftest.err >&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } &&
11975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11976 { (case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979esac
11980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_try") 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest$ac_exeext'
11986 { (case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11989esac
11990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_try") 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 eval "$as_ac_var=yes"
11996else
11997 echo "$as_me: failed program was:" >&5
11998sed 's/^/| /' conftest.$ac_ext >&5
11999
12000 eval "$as_ac_var=no"
12001fi
12002
12003rm -f core conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005fi
12006ac_res=`eval echo '${'$as_ac_var'}'`
12007 { echo "$as_me:$LINENO: result: $ac_res" >&5
12008echo "${ECHO_T}$ac_res" >&6; }
12009if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012010 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012011#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012012_ACEOF
12013
12014fi
12015done
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012036
12037
12038
12039
12040
12041
12042
12043
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012044for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12045 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012046do
12047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053fi
12054ac_res=`eval echo '${'$as_ac_Header'}'`
12055 { echo "$as_me:$LINENO: result: $ac_res" >&5
12056echo "${ECHO_T}$ac_res" >&6; }
12057else
12058 # Is the header compilable?
12059{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12060echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12061cat >conftest.$ac_ext <<_ACEOF
12062/* confdefs.h. */
12063_ACEOF
12064cat confdefs.h >>conftest.$ac_ext
12065cat >>conftest.$ac_ext <<_ACEOF
12066/* end confdefs.h. */
12067$ac_includes_default
12068#include <$ac_header>
12069_ACEOF
12070rm -f conftest.$ac_objext
12071if { (ac_try="$ac_compile"
12072case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12075esac
12076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_compile") 2>conftest.er1
12078 ac_status=$?
12079 grep -v '^ *+' conftest.er1 >conftest.err
12080 rm -f conftest.er1
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } &&
12084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12085 { (case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12088esac
12089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_try") 2>&5
12091 ac_status=$?
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; } &&
12094 { ac_try='test -s conftest.$ac_objext'
12095 { (case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12098esac
12099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100 (eval "$ac_try") 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 ac_header_compiler=yes
12105else
12106 echo "$as_me: failed program was:" >&5
12107sed 's/^/| /' conftest.$ac_ext >&5
12108
12109 ac_header_compiler=no
12110fi
12111
12112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12113{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12114echo "${ECHO_T}$ac_header_compiler" >&6; }
12115
12116# Is the header present?
12117{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12119cat >conftest.$ac_ext <<_ACEOF
12120/* confdefs.h. */
12121_ACEOF
12122cat confdefs.h >>conftest.$ac_ext
12123cat >>conftest.$ac_ext <<_ACEOF
12124/* end confdefs.h. */
12125#include <$ac_header>
12126_ACEOF
12127if { (ac_try="$ac_cpp conftest.$ac_ext"
12128case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12131esac
12132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } >/dev/null; then
12140 if test -s conftest.err; then
12141 ac_cpp_err=$ac_c_preproc_warn_flag
12142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12143 else
12144 ac_cpp_err=
12145 fi
12146else
12147 ac_cpp_err=yes
12148fi
12149if test -z "$ac_cpp_err"; then
12150 ac_header_preproc=yes
12151else
12152 echo "$as_me: failed program was:" >&5
12153sed 's/^/| /' conftest.$ac_ext >&5
12154
12155 ac_header_preproc=no
12156fi
12157
12158rm -f conftest.err conftest.$ac_ext
12159{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12160echo "${ECHO_T}$ac_header_preproc" >&6; }
12161
12162# So? What about this header?
12163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12164 yes:no: )
12165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12166echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12168echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12169 ac_header_preproc=yes
12170 ;;
12171 no:yes:* )
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12173echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12175echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12177echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12179echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12181echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12183echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12184 ( cat <<\_ASBOX
12185## ----------------------------------- ##
12186## Report this to llvmbugs@cs.uiuc.edu ##
12187## ----------------------------------- ##
12188_ASBOX
12189 ) | sed "s/^/$as_me: WARNING: /" >&2
12190 ;;
12191esac
12192{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196else
12197 eval "$as_ac_Header=\$ac_header_preproc"
12198fi
12199ac_res=`eval echo '${'$as_ac_Header'}'`
12200 { echo "$as_me:$LINENO: result: $ac_res" >&5
12201echo "${ECHO_T}$ac_res" >&6; }
12202
12203fi
12204if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012205 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012207_ACEOF
12208
12209fi
12210
12211done
12212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012213
12214
12215
12216
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012217for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012218do
12219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225fi
12226ac_res=`eval echo '${'$as_ac_Header'}'`
12227 { echo "$as_me:$LINENO: result: $ac_res" >&5
12228echo "${ECHO_T}$ac_res" >&6; }
12229else
12230 # Is the header compilable?
12231{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12233cat >conftest.$ac_ext <<_ACEOF
12234/* confdefs.h. */
12235_ACEOF
12236cat confdefs.h >>conftest.$ac_ext
12237cat >>conftest.$ac_ext <<_ACEOF
12238/* end confdefs.h. */
12239$ac_includes_default
12240#include <$ac_header>
12241_ACEOF
12242rm -f conftest.$ac_objext
12243if { (ac_try="$ac_compile"
12244case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12247esac
12248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_compile") 2>conftest.er1
12250 ac_status=$?
12251 grep -v '^ *+' conftest.er1 >conftest.err
12252 rm -f conftest.er1
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } &&
12256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12257 { (case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12260esac
12261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_try") 2>&5
12263 ac_status=$?
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); }; } &&
12266 { ac_try='test -s conftest.$ac_objext'
12267 { (case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270esac
12271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_try") 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; }; then
12276 ac_header_compiler=yes
12277else
12278 echo "$as_me: failed program was:" >&5
12279sed 's/^/| /' conftest.$ac_ext >&5
12280
12281 ac_header_compiler=no
12282fi
12283
12284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12285{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12286echo "${ECHO_T}$ac_header_compiler" >&6; }
12287
12288# Is the header present?
12289{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12291cat >conftest.$ac_ext <<_ACEOF
12292/* confdefs.h. */
12293_ACEOF
12294cat confdefs.h >>conftest.$ac_ext
12295cat >>conftest.$ac_ext <<_ACEOF
12296/* end confdefs.h. */
12297#include <$ac_header>
12298_ACEOF
12299if { (ac_try="$ac_cpp conftest.$ac_ext"
12300case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12303esac
12304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } >/dev/null; then
12312 if test -s conftest.err; then
12313 ac_cpp_err=$ac_c_preproc_warn_flag
12314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12315 else
12316 ac_cpp_err=
12317 fi
12318else
12319 ac_cpp_err=yes
12320fi
12321if test -z "$ac_cpp_err"; then
12322 ac_header_preproc=yes
12323else
12324 echo "$as_me: failed program was:" >&5
12325sed 's/^/| /' conftest.$ac_ext >&5
12326
12327 ac_header_preproc=no
12328fi
12329
12330rm -f conftest.err conftest.$ac_ext
12331{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12332echo "${ECHO_T}$ac_header_preproc" >&6; }
12333
12334# So? What about this header?
12335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12336 yes:no: )
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12338echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12340echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12341 ac_header_preproc=yes
12342 ;;
12343 no:yes:* )
12344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12345echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12347echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12349echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12351echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12355echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12356 ( cat <<\_ASBOX
12357## ----------------------------------- ##
12358## Report this to llvmbugs@cs.uiuc.edu ##
12359## ----------------------------------- ##
12360_ASBOX
12361 ) | sed "s/^/$as_me: WARNING: /" >&2
12362 ;;
12363esac
12364{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12368else
12369 eval "$as_ac_Header=\$ac_header_preproc"
12370fi
12371ac_res=`eval echo '${'$as_ac_Header'}'`
12372 { echo "$as_me:$LINENO: result: $ac_res" >&5
12373echo "${ECHO_T}$ac_res" >&6; }
12374
12375fi
12376if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012377 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012379_ACEOF
12380
12381fi
12382
12383done
12384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012385
12386
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012387for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012388do
12389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12395fi
12396ac_res=`eval echo '${'$as_ac_Header'}'`
12397 { echo "$as_me:$LINENO: result: $ac_res" >&5
12398echo "${ECHO_T}$ac_res" >&6; }
12399else
12400 # Is the header compilable?
12401{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12402echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12403cat >conftest.$ac_ext <<_ACEOF
12404/* confdefs.h. */
12405_ACEOF
12406cat confdefs.h >>conftest.$ac_ext
12407cat >>conftest.$ac_ext <<_ACEOF
12408/* end confdefs.h. */
12409$ac_includes_default
12410#include <$ac_header>
12411_ACEOF
12412rm -f conftest.$ac_objext
12413if { (ac_try="$ac_compile"
12414case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12417esac
12418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_compile") 2>conftest.er1
12420 ac_status=$?
12421 grep -v '^ *+' conftest.er1 >conftest.err
12422 rm -f conftest.er1
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } &&
12426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12427 { (case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12430esac
12431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_try") 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; } &&
12436 { ac_try='test -s conftest.$ac_objext'
12437 { (case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12440esac
12441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_try") 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_header_compiler=yes
12447else
12448 echo "$as_me: failed program was:" >&5
12449sed 's/^/| /' conftest.$ac_ext >&5
12450
12451 ac_header_compiler=no
12452fi
12453
12454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12456echo "${ECHO_T}$ac_header_compiler" >&6; }
12457
12458# Is the header present?
12459{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12461cat >conftest.$ac_ext <<_ACEOF
12462/* confdefs.h. */
12463_ACEOF
12464cat confdefs.h >>conftest.$ac_ext
12465cat >>conftest.$ac_ext <<_ACEOF
12466/* end confdefs.h. */
12467#include <$ac_header>
12468_ACEOF
12469if { (ac_try="$ac_cpp conftest.$ac_ext"
12470case "(($ac_try" in
12471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12472 *) ac_try_echo=$ac_try;;
12473esac
12474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12476 ac_status=$?
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } >/dev/null; then
12482 if test -s conftest.err; then
12483 ac_cpp_err=$ac_c_preproc_warn_flag
12484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12485 else
12486 ac_cpp_err=
12487 fi
12488else
12489 ac_cpp_err=yes
12490fi
12491if test -z "$ac_cpp_err"; then
12492 ac_header_preproc=yes
12493else
12494 echo "$as_me: failed program was:" >&5
12495sed 's/^/| /' conftest.$ac_ext >&5
12496
12497 ac_header_preproc=no
12498fi
12499
12500rm -f conftest.err conftest.$ac_ext
12501{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12502echo "${ECHO_T}$ac_header_preproc" >&6; }
12503
12504# So? What about this header?
12505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12506 yes:no: )
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12508echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12510echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12511 ac_header_preproc=yes
12512 ;;
12513 no:yes:* )
12514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12515echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12517echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12519echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12521echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12523echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12525echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12526 ( cat <<\_ASBOX
12527## ----------------------------------- ##
12528## Report this to llvmbugs@cs.uiuc.edu ##
12529## ----------------------------------- ##
12530_ASBOX
12531 ) | sed "s/^/$as_me: WARNING: /" >&2
12532 ;;
12533esac
12534{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12538else
12539 eval "$as_ac_Header=\$ac_header_preproc"
12540fi
12541ac_res=`eval echo '${'$as_ac_Header'}'`
12542 { echo "$as_me:$LINENO: result: $ac_res" >&5
12543echo "${ECHO_T}$ac_res" >&6; }
12544
12545fi
12546if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012547 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012548#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012549_ACEOF
12550 break
12551fi
12552
12553done
12554
12555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012556
12557
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012558for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012559do
12560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12561{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12563if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12565else
12566 cat >conftest.$ac_ext <<_ACEOF
12567/* confdefs.h. */
12568_ACEOF
12569cat confdefs.h >>conftest.$ac_ext
12570cat >>conftest.$ac_ext <<_ACEOF
12571/* end confdefs.h. */
12572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12574#define $ac_func innocuous_$ac_func
12575
12576/* System header to define __stub macros and hopefully few prototypes,
12577 which can conflict with char $ac_func (); below.
12578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12579 <limits.h> exists even on freestanding compilers. */
12580
12581#ifdef __STDC__
12582# include <limits.h>
12583#else
12584# include <assert.h>
12585#endif
12586
12587#undef $ac_func
12588
12589/* Override any GCC internal prototype to avoid an error.
12590 Use char because int might match the return type of a GCC
12591 builtin and then its argument prototype would still apply. */
12592#ifdef __cplusplus
12593extern "C"
12594#endif
12595char $ac_func ();
12596/* The GNU C library defines this for functions which it implements
12597 to always fail with ENOSYS. Some functions are actually named
12598 something starting with __ and the normal name is an alias. */
12599#if defined __stub_$ac_func || defined __stub___$ac_func
12600choke me
12601#endif
12602
12603int
12604main ()
12605{
12606return $ac_func ();
12607 ;
12608 return 0;
12609}
12610_ACEOF
12611rm -f conftest.$ac_objext conftest$ac_exeext
12612if { (ac_try="$ac_link"
12613case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616esac
12617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_link") 2>conftest.er1
12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12626 { (case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12629esac
12630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_try") 2>&5
12632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } &&
12635 { ac_try='test -s conftest$ac_exeext'
12636 { (case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12639esac
12640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_try") 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 eval "$as_ac_var=yes"
12646else
12647 echo "$as_me: failed program was:" >&5
12648sed 's/^/| /' conftest.$ac_ext >&5
12649
12650 eval "$as_ac_var=no"
12651fi
12652
12653rm -f core conftest.err conftest.$ac_objext \
12654 conftest$ac_exeext conftest.$ac_ext
12655fi
12656ac_res=`eval echo '${'$as_ac_var'}'`
12657 { echo "$as_me:$LINENO: result: $ac_res" >&5
12658echo "${ECHO_T}$ac_res" >&6; }
12659if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012660 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012662_ACEOF
12663 break
12664fi
12665done
12666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012667
12668
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012669for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012670do
12671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12672{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12674if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12676else
12677 cat >conftest.$ac_ext <<_ACEOF
12678/* confdefs.h. */
12679_ACEOF
12680cat confdefs.h >>conftest.$ac_ext
12681cat >>conftest.$ac_ext <<_ACEOF
12682/* end confdefs.h. */
12683/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12685#define $ac_func innocuous_$ac_func
12686
12687/* System header to define __stub macros and hopefully few prototypes,
12688 which can conflict with char $ac_func (); below.
12689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12690 <limits.h> exists even on freestanding compilers. */
12691
12692#ifdef __STDC__
12693# include <limits.h>
12694#else
12695# include <assert.h>
12696#endif
12697
12698#undef $ac_func
12699
12700/* Override any GCC internal prototype to avoid an error.
12701 Use char because int might match the return type of a GCC
12702 builtin and then its argument prototype would still apply. */
12703#ifdef __cplusplus
12704extern "C"
12705#endif
12706char $ac_func ();
12707/* The GNU C library defines this for functions which it implements
12708 to always fail with ENOSYS. Some functions are actually named
12709 something starting with __ and the normal name is an alias. */
12710#if defined __stub_$ac_func || defined __stub___$ac_func
12711choke me
12712#endif
12713
12714int
12715main ()
12716{
12717return $ac_func ();
12718 ;
12719 return 0;
12720}
12721_ACEOF
12722rm -f conftest.$ac_objext conftest$ac_exeext
12723if { (ac_try="$ac_link"
12724case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12727esac
12728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_link") 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12737 { (case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12740esac
12741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_try") 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try='test -s conftest$ac_exeext'
12747 { (case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12750esac
12751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752 (eval "$ac_try") 2>&5
12753 ac_status=$?
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 eval "$as_ac_var=yes"
12757else
12758 echo "$as_me: failed program was:" >&5
12759sed 's/^/| /' conftest.$ac_ext >&5
12760
12761 eval "$as_ac_var=no"
12762fi
12763
12764rm -f core conftest.err conftest.$ac_objext \
12765 conftest$ac_exeext conftest.$ac_ext
12766fi
12767ac_res=`eval echo '${'$as_ac_var'}'`
12768 { echo "$as_me:$LINENO: result: $ac_res" >&5
12769echo "${ECHO_T}$ac_res" >&6; }
12770if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012771 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012773_ACEOF
12774 break
12775fi
12776done
12777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012778
12779
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012780for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012781do
12782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12783{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12785if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12787else
12788 cat >conftest.$ac_ext <<_ACEOF
12789/* confdefs.h. */
12790_ACEOF
12791cat confdefs.h >>conftest.$ac_ext
12792cat >>conftest.$ac_ext <<_ACEOF
12793/* end confdefs.h. */
12794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12796#define $ac_func innocuous_$ac_func
12797
12798/* System header to define __stub macros and hopefully few prototypes,
12799 which can conflict with char $ac_func (); below.
12800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12801 <limits.h> exists even on freestanding compilers. */
12802
12803#ifdef __STDC__
12804# include <limits.h>
12805#else
12806# include <assert.h>
12807#endif
12808
12809#undef $ac_func
12810
12811/* Override any GCC internal prototype to avoid an error.
12812 Use char because int might match the return type of a GCC
12813 builtin and then its argument prototype would still apply. */
12814#ifdef __cplusplus
12815extern "C"
12816#endif
12817char $ac_func ();
12818/* The GNU C library defines this for functions which it implements
12819 to always fail with ENOSYS. Some functions are actually named
12820 something starting with __ and the normal name is an alias. */
12821#if defined __stub_$ac_func || defined __stub___$ac_func
12822choke me
12823#endif
12824
12825int
12826main ()
12827{
12828return $ac_func ();
12829 ;
12830 return 0;
12831}
12832_ACEOF
12833rm -f conftest.$ac_objext conftest$ac_exeext
12834if { (ac_try="$ac_link"
12835case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12838esac
12839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_link") 2>conftest.er1
12841 ac_status=$?
12842 grep -v '^ *+' conftest.er1 >conftest.err
12843 rm -f conftest.er1
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } &&
12847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12848 { (case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12851esac
12852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_try") 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; } &&
12857 { ac_try='test -s conftest$ac_exeext'
12858 { (case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12861esac
12862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_try") 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
12867 eval "$as_ac_var=yes"
12868else
12869 echo "$as_me: failed program was:" >&5
12870sed 's/^/| /' conftest.$ac_ext >&5
12871
12872 eval "$as_ac_var=no"
12873fi
12874
12875rm -f core conftest.err conftest.$ac_objext \
12876 conftest$ac_exeext conftest.$ac_ext
12877fi
12878ac_res=`eval echo '${'$as_ac_var'}'`
12879 { echo "$as_me:$LINENO: result: $ac_res" >&5
12880echo "${ECHO_T}$ac_res" >&6; }
12881if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012882 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012883#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012884_ACEOF
12885 break
12886fi
12887done
12888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012889
12890
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012891for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012892do
12893as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12894{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12896if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898else
12899 cat >conftest.$ac_ext <<_ACEOF
12900/* confdefs.h. */
12901_ACEOF
12902cat confdefs.h >>conftest.$ac_ext
12903cat >>conftest.$ac_ext <<_ACEOF
12904/* end confdefs.h. */
12905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12907#define $ac_func innocuous_$ac_func
12908
12909/* System header to define __stub macros and hopefully few prototypes,
12910 which can conflict with char $ac_func (); below.
12911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12912 <limits.h> exists even on freestanding compilers. */
12913
12914#ifdef __STDC__
12915# include <limits.h>
12916#else
12917# include <assert.h>
12918#endif
12919
12920#undef $ac_func
12921
12922/* Override any GCC internal prototype to avoid an error.
12923 Use char because int might match the return type of a GCC
12924 builtin and then its argument prototype would still apply. */
12925#ifdef __cplusplus
12926extern "C"
12927#endif
12928char $ac_func ();
12929/* The GNU C library defines this for functions which it implements
12930 to always fail with ENOSYS. Some functions are actually named
12931 something starting with __ and the normal name is an alias. */
12932#if defined __stub_$ac_func || defined __stub___$ac_func
12933choke me
12934#endif
12935
12936int
12937main ()
12938{
12939return $ac_func ();
12940 ;
12941 return 0;
12942}
12943_ACEOF
12944rm -f conftest.$ac_objext conftest$ac_exeext
12945if { (ac_try="$ac_link"
12946case "(($ac_try" in
12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948 *) ac_try_echo=$ac_try;;
12949esac
12950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12951 (eval "$ac_link") 2>conftest.er1
12952 ac_status=$?
12953 grep -v '^ *+' conftest.er1 >conftest.err
12954 rm -f conftest.er1
12955 cat conftest.err >&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12959 { (case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12962esac
12963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_try") 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; } &&
12968 { ac_try='test -s conftest$ac_exeext'
12969 { (case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12972esac
12973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_try") 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; }; then
12978 eval "$as_ac_var=yes"
12979else
12980 echo "$as_me: failed program was:" >&5
12981sed 's/^/| /' conftest.$ac_ext >&5
12982
12983 eval "$as_ac_var=no"
12984fi
12985
12986rm -f core conftest.err conftest.$ac_objext \
12987 conftest$ac_exeext conftest.$ac_ext
12988fi
12989ac_res=`eval echo '${'$as_ac_var'}'`
12990 { echo "$as_me:$LINENO: result: $ac_res" >&5
12991echo "${ECHO_T}$ac_res" >&6; }
12992if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012993 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012995_ACEOF
12996
12997fi
12998done
12999
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013000
13001
13002
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013003for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013004do
13005as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13006{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13008if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13010else
13011 cat >conftest.$ac_ext <<_ACEOF
13012/* confdefs.h. */
13013_ACEOF
13014cat confdefs.h >>conftest.$ac_ext
13015cat >>conftest.$ac_ext <<_ACEOF
13016/* end confdefs.h. */
13017/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13019#define $ac_func innocuous_$ac_func
13020
13021/* System header to define __stub macros and hopefully few prototypes,
13022 which can conflict with char $ac_func (); below.
13023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13024 <limits.h> exists even on freestanding compilers. */
13025
13026#ifdef __STDC__
13027# include <limits.h>
13028#else
13029# include <assert.h>
13030#endif
13031
13032#undef $ac_func
13033
13034/* Override any GCC internal prototype to avoid an error.
13035 Use char because int might match the return type of a GCC
13036 builtin and then its argument prototype would still apply. */
13037#ifdef __cplusplus
13038extern "C"
13039#endif
13040char $ac_func ();
13041/* The GNU C library defines this for functions which it implements
13042 to always fail with ENOSYS. Some functions are actually named
13043 something starting with __ and the normal name is an alias. */
13044#if defined __stub_$ac_func || defined __stub___$ac_func
13045choke me
13046#endif
13047
13048int
13049main ()
13050{
13051return $ac_func ();
13052 ;
13053 return 0;
13054}
13055_ACEOF
13056rm -f conftest.$ac_objext conftest$ac_exeext
13057if { (ac_try="$ac_link"
13058case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13061esac
13062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_link") 2>conftest.er1
13064 ac_status=$?
13065 grep -v '^ *+' conftest.er1 >conftest.err
13066 rm -f conftest.er1
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13071 { (case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13074esac
13075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_try") 2>&5
13077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; } &&
13080 { ac_try='test -s conftest$ac_exeext'
13081 { (case "(($ac_try" in
13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083 *) ac_try_echo=$ac_try;;
13084esac
13085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086 (eval "$ac_try") 2>&5
13087 ac_status=$?
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; }; then
13090 eval "$as_ac_var=yes"
13091else
13092 echo "$as_me: failed program was:" >&5
13093sed 's/^/| /' conftest.$ac_ext >&5
13094
13095 eval "$as_ac_var=no"
13096fi
13097
13098rm -f core conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13100fi
13101ac_res=`eval echo '${'$as_ac_var'}'`
13102 { echo "$as_me:$LINENO: result: $ac_res" >&5
13103echo "${ECHO_T}$ac_res" >&6; }
13104if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013105 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013106#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013107_ACEOF
13108
13109fi
13110done
13111
13112
Douglas Gregor01746742009-05-11 18:05:52 +000013113
Reid Spencer7931a782004-12-27 06:15:02 +000013114if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013115 LLVMGCC="llvm-gcc${EXEEXT}"
13116 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013117 LLVMGCCCOMMAND="$LLVMGCC"
13118 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013119 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13120
13121 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13122
Reid Spencerc84492c2005-06-02 22:34:49 +000013123 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13124set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13127if test "${ac_cv_path_LLVMGCC+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013129else
13130 case $LLVMGCC in
13131 [\\/]* | ?:[\\/]*)
13132 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13133 ;;
13134 *)
13135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136for as_dir in $PATH
13137do
13138 IFS=$as_save_IFS
13139 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013140 for ac_exec_ext in '' $ac_executable_extensions; do
13141 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 +000013142 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013144 break 2
13145 fi
13146done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013147done
Reid Spencera773bd52006-08-04 18:18:08 +000013148IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013149
Reid Spencer59473af2004-12-25 07:31:29 +000013150 ;;
13151esac
13152fi
13153LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013154if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013155 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13156echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013157else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013158 { echo "$as_me:$LINENO: result: no" >&5
13159echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013160fi
13161
Reid Spencera773bd52006-08-04 18:18:08 +000013162
Reid Spencerc84492c2005-06-02 22:34:49 +000013163 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13164set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13167if test "${ac_cv_path_LLVMGXX+set}" = set; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013169else
13170 case $LLVMGXX in
13171 [\\/]* | ?:[\\/]*)
13172 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13173 ;;
13174 *)
13175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13176for as_dir in $PATH
13177do
13178 IFS=$as_save_IFS
13179 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013180 for ac_exec_ext in '' $ac_executable_extensions; do
13181 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 +000013182 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013184 break 2
13185 fi
13186done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013187done
Reid Spencera773bd52006-08-04 18:18:08 +000013188IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013189
Reid Spencer59473af2004-12-25 07:31:29 +000013190 ;;
13191esac
13192fi
13193LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013194if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013195 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13196echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013197else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013198 { echo "$as_me:$LINENO: result: no" >&5
13199echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013200fi
13201
Reid Spencera773bd52006-08-04 18:18:08 +000013202
Reid Spencer59473af2004-12-25 07:31:29 +000013203else
Devang Patel5d28b882007-12-04 22:54:47 +000013204 if test -z "$LLVMGCC"; then
13205 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013206 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013207 fi
13208 if test -z "$LLVMGXX"; then
13209 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013210 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013211 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013212
Reid Spencer59473af2004-12-25 07:31:29 +000013213 LLVMGCC=$LLVMGCC
13214
13215 LLVMGXX=$LLVMGXX
13216
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013217 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13218
13219 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13220
Reid Spencer59473af2004-12-25 07:31:29 +000013221fi
13222
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013223
Daniel Dunbar98515672010-02-23 10:00:49 +000013224# Check whether --with-llvmcc was given.
13225if test "${with_llvmcc+set}" = set; then
13226 withval=$with_llvmcc;
13227else
13228 with_llvmcc=check
13229fi
13230
13231{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13232echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13233if test "$with_llvmcc" != "check"; then
13234 if (test "$with_llvmcc" != "llvm-gcc" &&
13235 test "$with_llvmcc" != "clang" &&
13236 test "$with_llvmcc" != "none"); then
13237 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13238echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13239 { (exit 1); exit 1; }; }
13240 fi
13241 WITH_LLVMCC="$with_llvmcc"
13242elif test -n "$LLVMGCC"; then
13243 WITH_LLVMCC=llvm-gcc
13244elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13245 WITH_LLVMCC=clang
13246else
13247 WITH_LLVMCC=none
13248fi
13249{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13250echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13251LLVMCC_OPTION=$WITH_LLVMCC
13252
13253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013254{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13255echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013256
Reid Spencer86901802004-12-08 23:07:27 +000013257ICC=no
13258IXX=no
13259case $CC in
13260 icc*|icpc*)
13261 ICC=yes
13262 IXX=yes
13263 ;;
13264 *)
13265 ;;
13266esac
13267
Duraid Madina937c60a2006-02-15 07:57:42 +000013268if test "$GCC" != "yes" && test "$ICC" != "yes"
13269then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013270 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13271echo "$as_me: error: gcc|icc required but not found" >&2;}
13272 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013273fi
13274
13275if test "$GXX" != "yes" && test "$IXX" != "yes"
13276then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013277 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13278echo "$as_me: error: g++|icc required but not found" >&2;}
13279 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013280fi
13281
Reid Spencer86901802004-12-08 23:07:27 +000013282if test "$GCC" = "yes"
13283then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013284 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013285#if !defined(__GNUC__) || __GNUC__ < 3
13286#error Unsupported GCC version
13287#endif
13288
13289_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013290rm -f conftest.$ac_objext
13291if { (ac_try="$ac_compile"
13292case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13295esac
13296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_compile") 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13305 { (case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13308esac
13309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310 (eval "$ac_try") 2>&5
13311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; } &&
13314 { ac_try='test -s conftest.$ac_objext'
13315 { (case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13318esac
13319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_try") 2>&5
13321 ac_status=$?
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; }; then
13324 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013325else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013326 echo "$as_me: failed program was:" >&5
13327sed 's/^/| /' conftest.$ac_ext >&5
13328
13329 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13330echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13331 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013332fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013333
Chris Lattner399c7c72008-02-05 19:43:53 +000013334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013335fi
13336
13337if test -z "$llvm_cv_gnu_make_command"
13338then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013339 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13340echo "$as_me: error: GNU Make required but not found" >&2;}
13341 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013342fi
13343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013344{ echo "$as_me:$LINENO: result: ok" >&5
13345echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013347{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13348echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013349NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13350
13351NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013353{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13354echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013355
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013357
13358{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13359echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13360if test "${ac_cv_lib_m_sin+set}" = set; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013362else
13363 ac_check_lib_save_LIBS=$LIBS
13364LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013365cat >conftest.$ac_ext <<_ACEOF
13366/* confdefs.h. */
13367_ACEOF
13368cat confdefs.h >>conftest.$ac_ext
13369cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013370/* end confdefs.h. */
13371
Reid Spencera773bd52006-08-04 18:18:08 +000013372/* Override any GCC internal prototype to avoid an error.
13373 Use char because int might match the return type of a GCC
13374 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013375#ifdef __cplusplus
13376extern "C"
13377#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013378char sin ();
13379int
13380main ()
13381{
Reid Spencera773bd52006-08-04 18:18:08 +000013382return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013383 ;
13384 return 0;
13385}
13386_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013387rm -f conftest.$ac_objext conftest$ac_exeext
13388if { (ac_try="$ac_link"
13389case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13392esac
13393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_link") 2>conftest.er1
13395 ac_status=$?
13396 grep -v '^ *+' conftest.er1 >conftest.err
13397 rm -f conftest.er1
13398 cat conftest.err >&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } &&
13401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13402 { (case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13405esac
13406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_try") 2>&5
13408 ac_status=$?
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; } &&
13411 { ac_try='test -s conftest$ac_exeext'
13412 { (case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13415esac
13416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_try") 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013421 ac_cv_lib_m_sin=yes
13422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013423 echo "$as_me: failed program was:" >&5
13424sed 's/^/| /' conftest.$ac_ext >&5
13425
13426 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013427fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013428
Bill Wendlingebcceee2009-04-18 11:20:33 +000013429rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013430 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013431LIBS=$ac_check_lib_save_LIBS
13432fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013433{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13434echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13435if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013436 cat >>confdefs.h <<_ACEOF
13437#define HAVE_LIBM 1
13438_ACEOF
13439
13440 LIBS="-lm $LIBS"
13441
13442fi
13443
Jeff Cohen28783c32007-01-12 18:22:38 +000013444if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013445
13446{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13447echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13448if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013450else
13451 ac_check_lib_save_LIBS=$LIBS
13452LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013453cat >conftest.$ac_ext <<_ACEOF
13454/* confdefs.h. */
13455_ACEOF
13456cat confdefs.h >>conftest.$ac_ext
13457cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013458/* end confdefs.h. */
13459
Reid Spencer48fdf912006-06-01 19:03:21 +000013460
Reid Spencer484fc8e2006-06-01 16:55:59 +000013461int
13462main ()
13463{
Reid Spencera773bd52006-08-04 18:18:08 +000013464return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013465 ;
13466 return 0;
13467}
13468_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013469rm -f conftest.$ac_objext conftest$ac_exeext
13470if { (ac_try="$ac_link"
13471case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13474esac
13475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_link") 2>conftest.er1
13477 ac_status=$?
13478 grep -v '^ *+' conftest.er1 >conftest.err
13479 rm -f conftest.er1
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13484 { (case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13487esac
13488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_try") 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest$ac_exeext'
13494 { (case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13497esac
13498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_try") 2>&5
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013503 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013504else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013505 echo "$as_me: failed program was:" >&5
13506sed 's/^/| /' conftest.$ac_ext >&5
13507
13508 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013509fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013510
Bill Wendlingebcceee2009-04-18 11:20:33 +000013511rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013512 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013513LIBS=$ac_check_lib_save_LIBS
13514fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013515{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13516echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13517if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013518 cat >>confdefs.h <<_ACEOF
13519#define HAVE_LIBIMAGEHLP 1
13520_ACEOF
13521
13522 LIBS="-limagehlp $LIBS"
13523
13524fi
13525
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013526
13527{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13528echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13529if test "${ac_cv_lib_psapi_main+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013531else
13532 ac_check_lib_save_LIBS=$LIBS
13533LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013534cat >conftest.$ac_ext <<_ACEOF
13535/* confdefs.h. */
13536_ACEOF
13537cat confdefs.h >>conftest.$ac_ext
13538cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013539/* end confdefs.h. */
13540
Reid Spencer48fdf912006-06-01 19:03:21 +000013541
Reid Spencer484fc8e2006-06-01 16:55:59 +000013542int
13543main ()
13544{
Reid Spencera773bd52006-08-04 18:18:08 +000013545return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013546 ;
13547 return 0;
13548}
13549_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013550rm -f conftest.$ac_objext conftest$ac_exeext
13551if { (ac_try="$ac_link"
13552case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13555esac
13556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_link") 2>conftest.er1
13558 ac_status=$?
13559 grep -v '^ *+' conftest.er1 >conftest.err
13560 rm -f conftest.er1
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13565 { (case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13568esac
13569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_try") 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try='test -s conftest$ac_exeext'
13575 { (case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13578esac
13579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_try") 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013584 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013585else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013586 echo "$as_me: failed program was:" >&5
13587sed 's/^/| /' conftest.$ac_ext >&5
13588
13589 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013590fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013591
Bill Wendlingebcceee2009-04-18 11:20:33 +000013592rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013593 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013594LIBS=$ac_check_lib_save_LIBS
13595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013596{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13597echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13598if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013599 cat >>confdefs.h <<_ACEOF
13600#define HAVE_LIBPSAPI 1
13601_ACEOF
13602
13603 LIBS="-lpsapi $LIBS"
13604
13605fi
13606
13607fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013609{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13610echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13611if test "${ac_cv_search_dlopen+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013613else
13614 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013615cat >conftest.$ac_ext <<_ACEOF
13616/* confdefs.h. */
13617_ACEOF
13618cat confdefs.h >>conftest.$ac_ext
13619cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013620/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013621
Reid Spencera773bd52006-08-04 18:18:08 +000013622/* Override any GCC internal prototype to avoid an error.
13623 Use char because int might match the return type of a GCC
13624 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013625#ifdef __cplusplus
13626extern "C"
13627#endif
John Criswell7a73b802003-06-30 21:59:07 +000013628char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013629int
13630main ()
13631{
Reid Spencera773bd52006-08-04 18:18:08 +000013632return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013633 ;
13634 return 0;
13635}
13636_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013637for ac_lib in '' dl; do
13638 if test -z "$ac_lib"; then
13639 ac_res="none required"
13640 else
13641 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013642 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013643 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013644 rm -f conftest.$ac_objext conftest$ac_exeext
13645if { (ac_try="$ac_link"
13646case "(($ac_try" in
13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648 *) ac_try_echo=$ac_try;;
13649esac
13650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651 (eval "$ac_link") 2>conftest.er1
13652 ac_status=$?
13653 grep -v '^ *+' conftest.er1 >conftest.err
13654 rm -f conftest.er1
13655 cat conftest.err >&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } &&
13658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13659 { (case "(($ac_try" in
13660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661 *) ac_try_echo=$ac_try;;
13662esac
13663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13664 (eval "$ac_try") 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; } &&
13668 { ac_try='test -s conftest$ac_exeext'
13669 { (case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13672esac
13673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_try") 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013678 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013679else
13680 echo "$as_me: failed program was:" >&5
13681sed 's/^/| /' conftest.$ac_ext >&5
13682
13683
John Criswell7a73b802003-06-30 21:59:07 +000013684fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013685
Bill Wendlingebcceee2009-04-18 11:20:33 +000013686rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013687 conftest$ac_exeext
13688 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013689 break
John Criswell7a73b802003-06-30 21:59:07 +000013690fi
Reid Spencera773bd52006-08-04 18:18:08 +000013691done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013692if test "${ac_cv_search_dlopen+set}" = set; then
13693 :
Reid Spencera773bd52006-08-04 18:18:08 +000013694else
13695 ac_cv_search_dlopen=no
13696fi
13697rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013698LIBS=$ac_func_search_save_LIBS
13699fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013700{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13701echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013702ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013703if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013705
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013706cat >>confdefs.h <<\_ACEOF
13707#define HAVE_DLOPEN 1
13708_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013709
13710else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013711 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13712echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013713fi
13714
13715
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013716if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013717 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13718echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13719if test "${ac_cv_search_ffi_call+set}" = set; then
13720 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013721else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013722 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013723cat >conftest.$ac_ext <<_ACEOF
13724/* confdefs.h. */
13725_ACEOF
13726cat confdefs.h >>conftest.$ac_ext
13727cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013728/* end confdefs.h. */
13729
13730/* Override any GCC internal prototype to avoid an error.
13731 Use char because int might match the return type of a GCC
13732 builtin and then its argument prototype would still apply. */
13733#ifdef __cplusplus
13734extern "C"
13735#endif
13736char ffi_call ();
13737int
13738main ()
13739{
13740return ffi_call ();
13741 ;
13742 return 0;
13743}
13744_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013745for ac_lib in '' ffi; do
13746 if test -z "$ac_lib"; then
13747 ac_res="none required"
13748 else
13749 ac_res=-l$ac_lib
13750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13751 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013752 rm -f conftest.$ac_objext conftest$ac_exeext
13753if { (ac_try="$ac_link"
13754case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13757esac
13758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_link") 2>conftest.er1
13760 ac_status=$?
13761 grep -v '^ *+' conftest.er1 >conftest.err
13762 rm -f conftest.er1
13763 cat conftest.err >&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } &&
13766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13767 { (case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770esac
13771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_try") 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; } &&
13776 { ac_try='test -s conftest$ac_exeext'
13777 { (case "(($ac_try" in
13778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779 *) ac_try_echo=$ac_try;;
13780esac
13781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13782 (eval "$ac_try") 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013786 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013787else
13788 echo "$as_me: failed program was:" >&5
13789sed 's/^/| /' conftest.$ac_ext >&5
13790
13791
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013792fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013793
Bill Wendlingebcceee2009-04-18 11:20:33 +000013794rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013795 conftest$ac_exeext
13796 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013797 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013798fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013799done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013800if test "${ac_cv_search_ffi_call+set}" = set; then
13801 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013802else
13803 ac_cv_search_ffi_call=no
13804fi
13805rm conftest.$ac_ext
13806LIBS=$ac_func_search_save_LIBS
13807fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013808{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13809echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013810ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013811if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013812 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013814cat >>confdefs.h <<\_ACEOF
13815#define HAVE_FFI_CALL 1
13816_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013817
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013818else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013819 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13820echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13821 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013822fi
13823
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013824fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013826{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13827echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13828if test "${ac_cv_search_mallinfo+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013830else
13831 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013832cat >conftest.$ac_ext <<_ACEOF
13833/* confdefs.h. */
13834_ACEOF
13835cat confdefs.h >>conftest.$ac_ext
13836cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013837/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013838
Reid Spencera773bd52006-08-04 18:18:08 +000013839/* Override any GCC internal prototype to avoid an error.
13840 Use char because int might match the return type of a GCC
13841 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013842#ifdef __cplusplus
13843extern "C"
13844#endif
John Criswell7a73b802003-06-30 21:59:07 +000013845char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013846int
13847main ()
13848{
Reid Spencera773bd52006-08-04 18:18:08 +000013849return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013850 ;
13851 return 0;
13852}
13853_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013854for ac_lib in '' malloc; do
13855 if test -z "$ac_lib"; then
13856 ac_res="none required"
13857 else
13858 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013860 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013861 rm -f conftest.$ac_objext conftest$ac_exeext
13862if { (ac_try="$ac_link"
13863case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13866esac
13867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_link") 2>conftest.er1
13869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13876 { (case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13879esac
13880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_try") 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; } &&
13885 { ac_try='test -s conftest$ac_exeext'
13886 { (case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13889esac
13890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_try") 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013895 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013896else
13897 echo "$as_me: failed program was:" >&5
13898sed 's/^/| /' conftest.$ac_ext >&5
13899
13900
John Criswell7a73b802003-06-30 21:59:07 +000013901fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013902
Bill Wendlingebcceee2009-04-18 11:20:33 +000013903rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013904 conftest$ac_exeext
13905 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013906 break
John Criswell7a73b802003-06-30 21:59:07 +000013907fi
Reid Spencera773bd52006-08-04 18:18:08 +000013908done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013909if test "${ac_cv_search_mallinfo+set}" = set; then
13910 :
Reid Spencera773bd52006-08-04 18:18:08 +000013911else
13912 ac_cv_search_mallinfo=no
13913fi
13914rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013915LIBS=$ac_func_search_save_LIBS
13916fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013917{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13918echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013919ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013920if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013923cat >>confdefs.h <<\_ACEOF
13924#define HAVE_MALLINFO 1
13925_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013926
13927fi
13928
13929
Reid Spencer0a262ba2005-08-24 10:07:20 +000013930if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013931
13932{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13933echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13934if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013936else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013937 ac_check_lib_save_LIBS=$LIBS
13938LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013939cat >conftest.$ac_ext <<_ACEOF
13940/* confdefs.h. */
13941_ACEOF
13942cat confdefs.h >>conftest.$ac_ext
13943cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013944/* end confdefs.h. */
13945
Reid Spencera773bd52006-08-04 18:18:08 +000013946/* Override any GCC internal prototype to avoid an error.
13947 Use char because int might match the return type of a GCC
13948 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013949#ifdef __cplusplus
13950extern "C"
13951#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013952char pthread_mutex_init ();
13953int
13954main ()
13955{
Reid Spencera773bd52006-08-04 18:18:08 +000013956return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013957 ;
13958 return 0;
13959}
13960_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013961rm -f conftest.$ac_objext conftest$ac_exeext
13962if { (ac_try="$ac_link"
13963case "(($ac_try" in
13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965 *) ac_try_echo=$ac_try;;
13966esac
13967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_link") 2>conftest.er1
13969 ac_status=$?
13970 grep -v '^ *+' conftest.er1 >conftest.err
13971 rm -f conftest.er1
13972 cat conftest.err >&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } &&
13975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13976 { (case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13979esac
13980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_try") 2>&5
13982 ac_status=$?
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); }; } &&
13985 { ac_try='test -s conftest$ac_exeext'
13986 { (case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13989esac
13990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_try") 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013995 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013996else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013997 echo "$as_me: failed program was:" >&5
13998sed 's/^/| /' conftest.$ac_ext >&5
13999
14000 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014001fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014002
Bill Wendlingebcceee2009-04-18 11:20:33 +000014003rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014004 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014005LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014006fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014007{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14008echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14009if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014010 cat >>confdefs.h <<_ACEOF
14011#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014012_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014013
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014014 LIBS="-lpthread $LIBS"
14015
Reid Spencer22177fe2005-07-12 15:24:20 +000014016fi
14017
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014018 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14019echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14020if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014022else
14023 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014024cat >conftest.$ac_ext <<_ACEOF
14025/* confdefs.h. */
14026_ACEOF
14027cat confdefs.h >>conftest.$ac_ext
14028cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014029/* end confdefs.h. */
14030
Reid Spencera773bd52006-08-04 18:18:08 +000014031/* Override any GCC internal prototype to avoid an error.
14032 Use char because int might match the return type of a GCC
14033 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014034#ifdef __cplusplus
14035extern "C"
14036#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014037char pthread_mutex_lock ();
14038int
14039main ()
14040{
Reid Spencera773bd52006-08-04 18:18:08 +000014041return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014042 ;
14043 return 0;
14044}
14045_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014046for ac_lib in '' pthread; do
14047 if test -z "$ac_lib"; then
14048 ac_res="none required"
14049 else
14050 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014052 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014053 rm -f conftest.$ac_objext conftest$ac_exeext
14054if { (ac_try="$ac_link"
14055case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14058esac
14059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_link") 2>conftest.er1
14061 ac_status=$?
14062 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1
14064 cat conftest.err >&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
14067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14068 { (case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14071esac
14072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_try") 2>&5
14074 ac_status=$?
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; } &&
14077 { ac_try='test -s conftest$ac_exeext'
14078 { (case "(($ac_try" in
14079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080 *) ac_try_echo=$ac_try;;
14081esac
14082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083 (eval "$ac_try") 2>&5
14084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014087 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014088else
14089 echo "$as_me: failed program was:" >&5
14090sed 's/^/| /' conftest.$ac_ext >&5
14091
14092
Brian Gaeke5f268f72003-12-05 19:29:01 +000014093fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014094
Bill Wendlingebcceee2009-04-18 11:20:33 +000014095rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014096 conftest$ac_exeext
14097 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014098 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014099fi
Reid Spencera773bd52006-08-04 18:18:08 +000014100done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014101if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14102 :
Reid Spencera773bd52006-08-04 18:18:08 +000014103else
14104 ac_cv_search_pthread_mutex_lock=no
14105fi
14106rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014107LIBS=$ac_func_search_save_LIBS
14108fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014109{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14110echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014111ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014112if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014115cat >>confdefs.h <<\_ACEOF
14116#define HAVE_PTHREAD_MUTEX_LOCK 1
14117_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014118
14119fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014120
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014121 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14122echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14123if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014125else
14126 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014127cat >conftest.$ac_ext <<_ACEOF
14128/* confdefs.h. */
14129_ACEOF
14130cat confdefs.h >>conftest.$ac_ext
14131cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014132/* end confdefs.h. */
14133
14134/* Override any GCC internal prototype to avoid an error.
14135 Use char because int might match the return type of a GCC
14136 builtin and then its argument prototype would still apply. */
14137#ifdef __cplusplus
14138extern "C"
14139#endif
14140char pthread_rwlock_init ();
14141int
14142main ()
14143{
14144return pthread_rwlock_init ();
14145 ;
14146 return 0;
14147}
14148_ACEOF
14149for ac_lib in '' pthread; do
14150 if test -z "$ac_lib"; then
14151 ac_res="none required"
14152 else
14153 ac_res=-l$ac_lib
14154 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14155 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014156 rm -f conftest.$ac_objext conftest$ac_exeext
14157if { (ac_try="$ac_link"
14158case "(($ac_try" in
14159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160 *) ac_try_echo=$ac_try;;
14161esac
14162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163 (eval "$ac_link") 2>conftest.er1
14164 ac_status=$?
14165 grep -v '^ *+' conftest.er1 >conftest.err
14166 rm -f conftest.er1
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14171 { (case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14174esac
14175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_try") 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try='test -s conftest$ac_exeext'
14181 { (case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14184esac
14185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_try") 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014190 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014191else
14192 echo "$as_me: failed program was:" >&5
14193sed 's/^/| /' conftest.$ac_ext >&5
14194
14195
Owen Andersonde8aed22009-06-16 18:20:20 +000014196fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014197
Owen Andersonde8aed22009-06-16 18:20:20 +000014198rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014199 conftest$ac_exeext
14200 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014201 break
14202fi
14203done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014204if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14205 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014206else
14207 ac_cv_search_pthread_rwlock_init=no
14208fi
14209rm conftest.$ac_ext
14210LIBS=$ac_func_search_save_LIBS
14211fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014212{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14213echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014214ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014215if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014216 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14217
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014218cat >>confdefs.h <<\_ACEOF
14219#define HAVE_PTHREAD_RWLOCK_INIT 1
14220_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014221
14222fi
14223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014224 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14225echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14226if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014228else
14229 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014230cat >conftest.$ac_ext <<_ACEOF
14231/* confdefs.h. */
14232_ACEOF
14233cat confdefs.h >>conftest.$ac_ext
14234cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014235/* end confdefs.h. */
14236
14237/* Override any GCC internal prototype to avoid an error.
14238 Use char because int might match the return type of a GCC
14239 builtin and then its argument prototype would still apply. */
14240#ifdef __cplusplus
14241extern "C"
14242#endif
14243char pthread_getspecific ();
14244int
14245main ()
14246{
14247return pthread_getspecific ();
14248 ;
14249 return 0;
14250}
14251_ACEOF
14252for ac_lib in '' pthread; do
14253 if test -z "$ac_lib"; then
14254 ac_res="none required"
14255 else
14256 ac_res=-l$ac_lib
14257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14258 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014259 rm -f conftest.$ac_objext conftest$ac_exeext
14260if { (ac_try="$ac_link"
14261case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14264esac
14265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_link") 2>conftest.er1
14267 ac_status=$?
14268 grep -v '^ *+' conftest.er1 >conftest.err
14269 rm -f conftest.er1
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } &&
14273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14274 { (case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14277esac
14278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_try") 2>&5
14280 ac_status=$?
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest$ac_exeext'
14284 { (case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14287esac
14288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_try") 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014293 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014294else
14295 echo "$as_me: failed program was:" >&5
14296sed 's/^/| /' conftest.$ac_ext >&5
14297
14298
Owen Anderson27fcfe12009-06-25 23:10:26 +000014299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014300
Owen Anderson27fcfe12009-06-25 23:10:26 +000014301rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014302 conftest$ac_exeext
14303 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014304 break
14305fi
14306done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014307if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14308 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014309else
14310 ac_cv_search_pthread_getspecific=no
14311fi
14312rm conftest.$ac_ext
14313LIBS=$ac_func_search_save_LIBS
14314fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014315{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14316echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014317ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014318if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14320
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014321cat >>confdefs.h <<\_ACEOF
14322#define HAVE_PTHREAD_GETSPECIFIC 1
14323_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014324
14325fi
14326
Reid Spencer0a262ba2005-08-24 10:07:20 +000014327fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014328
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014329
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014330# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014331if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014332 withval=$with_udis86;
14333 USE_UDIS86=1
14334
14335 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014336 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014337 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14338 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014339
14340{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14341echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14342if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014344else
14345 ac_check_lib_save_LIBS=$LIBS
14346LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014347cat >conftest.$ac_ext <<_ACEOF
14348/* confdefs.h. */
14349_ACEOF
14350cat confdefs.h >>conftest.$ac_ext
14351cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014352/* end confdefs.h. */
14353
14354/* Override any GCC internal prototype to avoid an error.
14355 Use char because int might match the return type of a GCC
14356 builtin and then its argument prototype would still apply. */
14357#ifdef __cplusplus
14358extern "C"
14359#endif
14360char ud_init ();
14361int
14362main ()
14363{
14364return ud_init ();
14365 ;
14366 return 0;
14367}
14368_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014369rm -f conftest.$ac_objext conftest$ac_exeext
14370if { (ac_try="$ac_link"
14371case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374esac
14375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_link") 2>conftest.er1
14377 ac_status=$?
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14384 { (case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14387esac
14388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_try") 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; } &&
14393 { ac_try='test -s conftest$ac_exeext'
14394 { (case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14397esac
14398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_try") 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014403 ac_cv_lib_udis86_ud_init=yes
14404else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014405 echo "$as_me: failed program was:" >&5
14406sed 's/^/| /' conftest.$ac_ext >&5
14407
14408 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014409fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014410
Bill Wendlingebcceee2009-04-18 11:20:33 +000014411rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014412 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014413LIBS=$ac_check_lib_save_LIBS
14414fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014415{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14416echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14417if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014418 cat >>confdefs.h <<_ACEOF
14419#define HAVE_LIBUDIS86 1
14420_ACEOF
14421
14422 LIBS="-ludis86 $LIBS"
14423
14424else
14425
14426 echo "Error! You need to have libudis86 around."
14427 exit -1
14428
14429fi
14430
14431
14432else
14433 USE_UDIS86=0
14434
14435fi
14436
14437
14438cat >>confdefs.h <<_ACEOF
14439#define USE_UDIS86 $USE_UDIS86
14440_ACEOF
14441
14442
14443
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014444# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014445if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014446 withval=$with_oprofile;
14447 USE_OPROFILE=1
14448
14449 case "$withval" in
14450 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014451 no) llvm_cv_oppath=
14452 USE_OPROFILE=0
14453 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014454 *) llvm_cv_oppath="${withval}/lib/oprofile"
14455 CPPFLAGS="-I${withval}/include";;
14456 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014457 if test -n "$llvm_cv_oppath" ; then
14458 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014459 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14460echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14461if test "${ac_cv_search_bfd_init+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014463else
14464 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014465cat >conftest.$ac_ext <<_ACEOF
14466/* confdefs.h. */
14467_ACEOF
14468cat confdefs.h >>conftest.$ac_ext
14469cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014470/* end confdefs.h. */
14471
14472/* Override any GCC internal prototype to avoid an error.
14473 Use char because int might match the return type of a GCC
14474 builtin and then its argument prototype would still apply. */
14475#ifdef __cplusplus
14476extern "C"
14477#endif
14478char bfd_init ();
14479int
14480main ()
14481{
14482return bfd_init ();
14483 ;
14484 return 0;
14485}
14486_ACEOF
14487for ac_lib in '' bfd; do
14488 if test -z "$ac_lib"; then
14489 ac_res="none required"
14490 else
14491 ac_res=-l$ac_lib
14492 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14493 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014494 rm -f conftest.$ac_objext conftest$ac_exeext
14495if { (ac_try="$ac_link"
14496case "(($ac_try" in
14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14499esac
14500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_link") 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } &&
14508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14509 { (case "(($ac_try" in
14510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511 *) ac_try_echo=$ac_try;;
14512esac
14513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514 (eval "$ac_try") 2>&5
14515 ac_status=$?
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; } &&
14518 { ac_try='test -s conftest$ac_exeext'
14519 { (case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14522esac
14523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524 (eval "$ac_try") 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014528 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014529else
14530 echo "$as_me: failed program was:" >&5
14531sed 's/^/| /' conftest.$ac_ext >&5
14532
14533
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014534fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014535
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014536rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014537 conftest$ac_exeext
14538 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014539 break
14540fi
14541done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014542if test "${ac_cv_search_bfd_init+set}" = set; then
14543 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014544else
14545 ac_cv_search_bfd_init=no
14546fi
14547rm conftest.$ac_ext
14548LIBS=$ac_func_search_save_LIBS
14549fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014550{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14551echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014552ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014553if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14555
14556fi
14557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014558 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14559echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14560if test "${ac_cv_search_op_open_agent+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014562else
14563 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014564cat >conftest.$ac_ext <<_ACEOF
14565/* confdefs.h. */
14566_ACEOF
14567cat confdefs.h >>conftest.$ac_ext
14568cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014569/* end confdefs.h. */
14570
14571/* Override any GCC internal prototype to avoid an error.
14572 Use char because int might match the return type of a GCC
14573 builtin and then its argument prototype would still apply. */
14574#ifdef __cplusplus
14575extern "C"
14576#endif
14577char op_open_agent ();
14578int
14579main ()
14580{
14581return op_open_agent ();
14582 ;
14583 return 0;
14584}
14585_ACEOF
14586for ac_lib in '' opagent; do
14587 if test -z "$ac_lib"; then
14588 ac_res="none required"
14589 else
14590 ac_res=-l$ac_lib
14591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14592 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014593 rm -f conftest.$ac_objext conftest$ac_exeext
14594if { (ac_try="$ac_link"
14595case "(($ac_try" in
14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597 *) ac_try_echo=$ac_try;;
14598esac
14599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600 (eval "$ac_link") 2>conftest.er1
14601 ac_status=$?
14602 grep -v '^ *+' conftest.er1 >conftest.err
14603 rm -f conftest.er1
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14608 { (case "(($ac_try" in
14609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610 *) ac_try_echo=$ac_try;;
14611esac
14612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613 (eval "$ac_try") 2>&5
14614 ac_status=$?
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; } &&
14617 { ac_try='test -s conftest$ac_exeext'
14618 { (case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14621esac
14622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_try") 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014627 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014628else
14629 echo "$as_me: failed program was:" >&5
14630sed 's/^/| /' conftest.$ac_ext >&5
14631
14632
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014633fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014634
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014635rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014636 conftest$ac_exeext
14637 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014638 break
14639fi
14640done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014641if test "${ac_cv_search_op_open_agent+set}" = set; then
14642 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014643else
14644 ac_cv_search_op_open_agent=no
14645fi
14646rm conftest.$ac_ext
14647LIBS=$ac_func_search_save_LIBS
14648fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014649{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14650echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014651ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014652if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14654
14655else
14656
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014657 echo "Error! You need to have libopagent around."
14658 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014659
14660fi
14661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014662 if test "${ac_cv_header_opagent_h+set}" = set; then
14663 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14664echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14665if test "${ac_cv_header_opagent_h+set}" = set; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14667fi
14668{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14669echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14670else
14671 # Is the header compilable?
14672{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14673echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14674cat >conftest.$ac_ext <<_ACEOF
14675/* confdefs.h. */
14676_ACEOF
14677cat confdefs.h >>conftest.$ac_ext
14678cat >>conftest.$ac_ext <<_ACEOF
14679/* end confdefs.h. */
14680$ac_includes_default
14681#include <opagent.h>
14682_ACEOF
14683rm -f conftest.$ac_objext
14684if { (ac_try="$ac_compile"
14685case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14688esac
14689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_compile") 2>conftest.er1
14691 ac_status=$?
14692 grep -v '^ *+' conftest.er1 >conftest.err
14693 rm -f conftest.er1
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } &&
14697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14698 { (case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14701esac
14702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_try") 2>&5
14704 ac_status=$?
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; } &&
14707 { ac_try='test -s conftest.$ac_objext'
14708 { (case "(($ac_try" in
14709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710 *) ac_try_echo=$ac_try;;
14711esac
14712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_try") 2>&5
14714 ac_status=$?
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; }; then
14717 ac_header_compiler=yes
14718else
14719 echo "$as_me: failed program was:" >&5
14720sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014722 ac_header_compiler=no
14723fi
14724
14725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14727echo "${ECHO_T}$ac_header_compiler" >&6; }
14728
14729# Is the header present?
14730{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14731echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14732cat >conftest.$ac_ext <<_ACEOF
14733/* confdefs.h. */
14734_ACEOF
14735cat confdefs.h >>conftest.$ac_ext
14736cat >>conftest.$ac_ext <<_ACEOF
14737/* end confdefs.h. */
14738#include <opagent.h>
14739_ACEOF
14740if { (ac_try="$ac_cpp conftest.$ac_ext"
14741case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14744esac
14745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14747 ac_status=$?
14748 grep -v '^ *+' conftest.er1 >conftest.err
14749 rm -f conftest.er1
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } >/dev/null; then
14753 if test -s conftest.err; then
14754 ac_cpp_err=$ac_c_preproc_warn_flag
14755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14756 else
14757 ac_cpp_err=
14758 fi
14759else
14760 ac_cpp_err=yes
14761fi
14762if test -z "$ac_cpp_err"; then
14763 ac_header_preproc=yes
14764else
14765 echo "$as_me: failed program was:" >&5
14766sed 's/^/| /' conftest.$ac_ext >&5
14767
14768 ac_header_preproc=no
14769fi
14770
14771rm -f conftest.err conftest.$ac_ext
14772{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14773echo "${ECHO_T}$ac_header_preproc" >&6; }
14774
14775# So? What about this header?
14776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14777 yes:no: )
14778 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14779echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14781echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14782 ac_header_preproc=yes
14783 ;;
14784 no:yes:* )
14785 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14786echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14787 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14788echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14789 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14790echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14791 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14792echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14793 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14794echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14796echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14797 ( cat <<\_ASBOX
14798## ----------------------------------- ##
14799## Report this to llvmbugs@cs.uiuc.edu ##
14800## ----------------------------------- ##
14801_ASBOX
14802 ) | sed "s/^/$as_me: WARNING: /" >&2
14803 ;;
14804esac
14805{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14806echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14807if test "${ac_cv_header_opagent_h+set}" = set; then
14808 echo $ECHO_N "(cached) $ECHO_C" >&6
14809else
14810 ac_cv_header_opagent_h=$ac_header_preproc
14811fi
14812{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14813echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14814
14815fi
14816if test $ac_cv_header_opagent_h = yes; then
14817 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014818else
14819
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014820 echo "Error! You need to have opagent.h around."
14821 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014822
14823fi
14824
14825
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014826 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014827
14828else
14829
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014830 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014831
14832
14833fi
14834
14835
14836cat >>confdefs.h <<_ACEOF
14837#define USE_OPROFILE $USE_OPROFILE
14838_ACEOF
14839
14840
14841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014842
14843
14844
14845
14846
Reid Spencer59473af2004-12-25 07:31:29 +000014847ac_header_dirent=no
14848for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014849 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14850{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14851echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014855 cat >conftest.$ac_ext <<_ACEOF
14856/* confdefs.h. */
14857_ACEOF
14858cat confdefs.h >>conftest.$ac_ext
14859cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014860/* end confdefs.h. */
14861#include <sys/types.h>
14862#include <$ac_hdr>
14863
14864int
14865main ()
14866{
14867if ((DIR *) 0)
14868return 0;
14869 ;
14870 return 0;
14871}
14872_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014873rm -f conftest.$ac_objext
14874if { (ac_try="$ac_compile"
14875case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14878esac
14879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880 (eval "$ac_compile") 2>conftest.er1
14881 ac_status=$?
14882 grep -v '^ *+' conftest.er1 >conftest.err
14883 rm -f conftest.er1
14884 cat conftest.err >&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); } &&
14887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14888 { (case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14891esac
14892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_try") 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (case "(($ac_try" in
14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900 *) ac_try_echo=$ac_try;;
14901esac
14902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903 (eval "$ac_try") 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014907 eval "$as_ac_Header=yes"
14908else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014909 echo "$as_me: failed program was:" >&5
14910sed 's/^/| /' conftest.$ac_ext >&5
14911
14912 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014913fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014914
Reid Spencera773bd52006-08-04 18:18:08 +000014915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014916fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014917ac_res=`eval echo '${'$as_ac_Header'}'`
14918 { echo "$as_me:$LINENO: result: $ac_res" >&5
14919echo "${ECHO_T}$ac_res" >&6; }
14920if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014921 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014922#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014923_ACEOF
14924
14925ac_header_dirent=$ac_hdr; break
14926fi
14927
14928done
14929# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14930if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014931 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14932echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14933if test "${ac_cv_search_opendir+set}" = set; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014935else
14936 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014937cat >conftest.$ac_ext <<_ACEOF
14938/* confdefs.h. */
14939_ACEOF
14940cat confdefs.h >>conftest.$ac_ext
14941cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014942/* end confdefs.h. */
14943
Reid Spencera773bd52006-08-04 18:18:08 +000014944/* Override any GCC internal prototype to avoid an error.
14945 Use char because int might match the return type of a GCC
14946 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014947#ifdef __cplusplus
14948extern "C"
14949#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014950char opendir ();
14951int
14952main ()
14953{
Reid Spencera773bd52006-08-04 18:18:08 +000014954return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014955 ;
14956 return 0;
14957}
14958_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014959for ac_lib in '' dir; do
14960 if test -z "$ac_lib"; then
14961 ac_res="none required"
14962 else
14963 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014965 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014966 rm -f conftest.$ac_objext conftest$ac_exeext
14967if { (ac_try="$ac_link"
14968case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14971esac
14972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_link") 2>conftest.er1
14974 ac_status=$?
14975 grep -v '^ *+' conftest.er1 >conftest.err
14976 rm -f conftest.er1
14977 cat conftest.err >&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } &&
14980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14981 { (case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14984esac
14985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_try") 2>&5
14987 ac_status=$?
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; } &&
14990 { ac_try='test -s conftest$ac_exeext'
14991 { (case "(($ac_try" in
14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14994esac
14995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996 (eval "$ac_try") 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015000 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015001else
15002 echo "$as_me: failed program was:" >&5
15003sed 's/^/| /' conftest.$ac_ext >&5
15004
15005
Reid Spencer59473af2004-12-25 07:31:29 +000015006fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015007
Bill Wendlingebcceee2009-04-18 11:20:33 +000015008rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015009 conftest$ac_exeext
15010 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015011 break
Reid Spencer59473af2004-12-25 07:31:29 +000015012fi
Reid Spencera773bd52006-08-04 18:18:08 +000015013done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015014if test "${ac_cv_search_opendir+set}" = set; then
15015 :
Reid Spencera773bd52006-08-04 18:18:08 +000015016else
15017 ac_cv_search_opendir=no
15018fi
15019rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015020LIBS=$ac_func_search_save_LIBS
15021fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015022{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15023echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015024ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015025if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015027
15028fi
15029
15030else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015031 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15032echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15033if test "${ac_cv_search_opendir+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015035else
15036 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015037cat >conftest.$ac_ext <<_ACEOF
15038/* confdefs.h. */
15039_ACEOF
15040cat confdefs.h >>conftest.$ac_ext
15041cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015042/* end confdefs.h. */
15043
Reid Spencera773bd52006-08-04 18:18:08 +000015044/* Override any GCC internal prototype to avoid an error.
15045 Use char because int might match the return type of a GCC
15046 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015047#ifdef __cplusplus
15048extern "C"
15049#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015050char opendir ();
15051int
15052main ()
15053{
Reid Spencera773bd52006-08-04 18:18:08 +000015054return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015055 ;
15056 return 0;
15057}
15058_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015059for ac_lib in '' x; do
15060 if test -z "$ac_lib"; then
15061 ac_res="none required"
15062 else
15063 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015065 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015066 rm -f conftest.$ac_objext conftest$ac_exeext
15067if { (ac_try="$ac_link"
15068case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15071esac
15072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_link") 2>conftest.er1
15074 ac_status=$?
15075 grep -v '^ *+' conftest.er1 >conftest.err
15076 rm -f conftest.er1
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15081 { (case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15084esac
15085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_try") 2>&5
15087 ac_status=$?
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; } &&
15090 { ac_try='test -s conftest$ac_exeext'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094esac
15095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015100 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015101else
15102 echo "$as_me: failed program was:" >&5
15103sed 's/^/| /' conftest.$ac_ext >&5
15104
15105
Reid Spencer59473af2004-12-25 07:31:29 +000015106fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015107
Bill Wendlingebcceee2009-04-18 11:20:33 +000015108rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015109 conftest$ac_exeext
15110 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015111 break
Reid Spencer59473af2004-12-25 07:31:29 +000015112fi
Reid Spencera773bd52006-08-04 18:18:08 +000015113done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015114if test "${ac_cv_search_opendir+set}" = set; then
15115 :
Reid Spencera773bd52006-08-04 18:18:08 +000015116else
15117 ac_cv_search_opendir=no
15118fi
15119rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015120LIBS=$ac_func_search_save_LIBS
15121fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015122{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15123echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015124ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015125if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015127
15128fi
15129
15130fi
15131
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015132{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15133echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15134if test "${ac_cv_header_mmap_anon+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015136else
15137 ac_ext=c
15138ac_cpp='$CPP $CPPFLAGS'
15139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15141ac_compiler_gnu=$ac_cv_c_compiler_gnu
15142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015143 cat >conftest.$ac_ext <<_ACEOF
15144/* confdefs.h. */
15145_ACEOF
15146cat confdefs.h >>conftest.$ac_ext
15147cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015148/* end confdefs.h. */
15149#include <sys/mman.h>
15150#include <unistd.h>
15151#include <fcntl.h>
15152int
15153main ()
15154{
15155mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15156 ;
15157 return 0;
15158}
15159_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015160rm -f conftest.$ac_objext
15161if { (ac_try="$ac_compile"
15162case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15165esac
15166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_compile") 2>conftest.er1
15168 ac_status=$?
15169 grep -v '^ *+' conftest.er1 >conftest.err
15170 rm -f conftest.er1
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } &&
15174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15175 { (case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15178esac
15179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180 (eval "$ac_try") 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; } &&
15184 { ac_try='test -s conftest.$ac_objext'
15185 { (case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15188esac
15189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_try") 2>&5
15191 ac_status=$?
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015194 ac_cv_header_mmap_anon=yes
15195else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015196 echo "$as_me: failed program was:" >&5
15197sed 's/^/| /' conftest.$ac_ext >&5
15198
15199 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015200fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015201
Reid Spencera773bd52006-08-04 18:18:08 +000015202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015203 ac_ext=c
15204ac_cpp='$CPP $CPPFLAGS'
15205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207ac_compiler_gnu=$ac_cv_c_compiler_gnu
15208
15209
15210fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015211{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15212echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015213if test "$ac_cv_header_mmap_anon" = yes; then
15214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015215cat >>confdefs.h <<\_ACEOF
15216#define HAVE_MMAP_ANONYMOUS 1
15217_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015218
15219fi
15220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015221{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15222echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15223if test "${ac_cv_header_stat_broken+set}" = set; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015225else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015226 cat >conftest.$ac_ext <<_ACEOF
15227/* confdefs.h. */
15228_ACEOF
15229cat confdefs.h >>conftest.$ac_ext
15230cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015231/* end confdefs.h. */
15232#include <sys/types.h>
15233#include <sys/stat.h>
15234
Reid Spencera773bd52006-08-04 18:18:08 +000015235#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015236# if S_ISBLK (S_IFDIR)
15237You lose.
15238# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015239#endif
15240
Reid Spencera773bd52006-08-04 18:18:08 +000015241#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015242# if S_ISBLK (S_IFCHR)
15243You lose.
15244# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015245#endif
15246
Reid Spencera773bd52006-08-04 18:18:08 +000015247#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015248# if S_ISLNK (S_IFREG)
15249You lose.
15250# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015251#endif
15252
Reid Spencera773bd52006-08-04 18:18:08 +000015253#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015254# if S_ISSOCK (S_IFREG)
15255You lose.
15256# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015257#endif
15258
15259_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15261 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015262 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015263else
15264 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015266rm -f conftest*
15267
Reid Spencer59473af2004-12-25 07:31:29 +000015268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015269{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15270echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015271if test $ac_cv_header_stat_broken = yes; then
15272
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015273cat >>confdefs.h <<\_ACEOF
15274#define STAT_MACROS_BROKEN 1
15275_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015276
15277fi
15278
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015279{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15280echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15281if test "${ac_cv_header_stdc+set}" = set; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015283else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015284 cat >conftest.$ac_ext <<_ACEOF
15285/* confdefs.h. */
15286_ACEOF
15287cat confdefs.h >>conftest.$ac_ext
15288cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015289/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015290#include <stdlib.h>
15291#include <stdarg.h>
15292#include <string.h>
15293#include <float.h>
15294
John Criswell0c38eaf2003-09-10 15:17:25 +000015295int
15296main ()
15297{
15298
15299 ;
15300 return 0;
15301}
John Criswell7a73b802003-06-30 21:59:07 +000015302_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015303rm -f conftest.$ac_objext
15304if { (ac_try="$ac_compile"
15305case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15308esac
15309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_compile") 2>conftest.er1
15311 ac_status=$?
15312 grep -v '^ *+' conftest.er1 >conftest.err
15313 rm -f conftest.er1
15314 cat conftest.err >&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } &&
15317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15318 { (case "(($ac_try" in
15319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320 *) ac_try_echo=$ac_try;;
15321esac
15322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323 (eval "$ac_try") 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; } &&
15327 { ac_try='test -s conftest.$ac_objext'
15328 { (case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15331esac
15332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_try") 2>&5
15334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015337 ac_cv_header_stdc=yes
15338else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015339 echo "$as_me: failed program was:" >&5
15340sed 's/^/| /' conftest.$ac_ext >&5
15341
15342 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015344
Reid Spencera773bd52006-08-04 18:18:08 +000015345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015346
15347if test $ac_cv_header_stdc = yes; then
15348 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015349 cat >conftest.$ac_ext <<_ACEOF
15350/* confdefs.h. */
15351_ACEOF
15352cat confdefs.h >>conftest.$ac_ext
15353cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015354/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015355#include <string.h>
15356
15357_ACEOF
15358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015359 $EGREP "memchr" >/dev/null 2>&1; then
15360 :
John Criswell7a73b802003-06-30 21:59:07 +000015361else
15362 ac_cv_header_stdc=no
15363fi
15364rm -f conftest*
15365
15366fi
15367
15368if test $ac_cv_header_stdc = yes; then
15369 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015370 cat >conftest.$ac_ext <<_ACEOF
15371/* confdefs.h. */
15372_ACEOF
15373cat confdefs.h >>conftest.$ac_ext
15374cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015375/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015376#include <stdlib.h>
15377
15378_ACEOF
15379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015380 $EGREP "free" >/dev/null 2>&1; then
15381 :
John Criswell7a73b802003-06-30 21:59:07 +000015382else
15383 ac_cv_header_stdc=no
15384fi
15385rm -f conftest*
15386
15387fi
15388
15389if test $ac_cv_header_stdc = yes; then
15390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015391 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015392 :
15393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015394 cat >conftest.$ac_ext <<_ACEOF
15395/* confdefs.h. */
15396_ACEOF
15397cat confdefs.h >>conftest.$ac_ext
15398cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015399/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015400#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015401#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015402#if ((' ' & 0x0FF) == 0x020)
15403# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15404# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15405#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015406# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015407 (('a' <= (c) && (c) <= 'i') \
15408 || ('j' <= (c) && (c) <= 'r') \
15409 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015410# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15411#endif
15412
15413#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15414int
15415main ()
15416{
15417 int i;
15418 for (i = 0; i < 256; i++)
15419 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015420 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015421 return 2;
15422 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015423}
15424_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015425rm -f conftest$ac_exeext
15426if { (ac_try="$ac_link"
15427case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15430esac
15431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_link") 2>&5
15433 ac_status=$?
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15436 { (case "(($ac_try" in
15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438 *) ac_try_echo=$ac_try;;
15439esac
15440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441 (eval "$ac_try") 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 :
John Criswell7a73b802003-06-30 21:59:07 +000015446else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015447 echo "$as_me: program exited with status $ac_status" >&5
15448echo "$as_me: failed program was:" >&5
15449sed 's/^/| /' conftest.$ac_ext >&5
15450
15451( exit $ac_status )
15452ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015453fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015454rm -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 +000015455fi
15456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015457
John Criswell7a73b802003-06-30 21:59:07 +000015458fi
15459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015460{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15461echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015462if test $ac_cv_header_stdc = yes; then
15463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015464cat >>confdefs.h <<\_ACEOF
15465#define STDC_HEADERS 1
15466_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015467
15468fi
15469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015470{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15471echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15472if test "${ac_cv_header_sys_wait_h+set}" = set; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015474else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015475 cat >conftest.$ac_ext <<_ACEOF
15476/* confdefs.h. */
15477_ACEOF
15478cat confdefs.h >>conftest.$ac_ext
15479cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015480/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015481#include <sys/types.h>
15482#include <sys/wait.h>
15483#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015484# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015485#endif
15486#ifndef WIFEXITED
15487# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15488#endif
15489
John Criswell7a73b802003-06-30 21:59:07 +000015490int
15491main ()
15492{
15493 int s;
15494 wait (&s);
15495 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15496 ;
15497 return 0;
15498}
15499_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015500rm -f conftest.$ac_objext
15501if { (ac_try="$ac_compile"
15502case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15505esac
15506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_compile") 2>conftest.er1
15508 ac_status=$?
15509 grep -v '^ *+' conftest.er1 >conftest.err
15510 rm -f conftest.er1
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } &&
15514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15515 { (case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15518esac
15519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_try") 2>&5
15521 ac_status=$?
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); }; } &&
15524 { ac_try='test -s conftest.$ac_objext'
15525 { (case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15528esac
15529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530 (eval "$ac_try") 2>&5
15531 ac_status=$?
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015534 ac_cv_header_sys_wait_h=yes
15535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015536 echo "$as_me: failed program was:" >&5
15537sed 's/^/| /' conftest.$ac_ext >&5
15538
15539 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015540fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015541
Reid Spencera773bd52006-08-04 18:18:08 +000015542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015543fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015544{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15545echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015546if test $ac_cv_header_sys_wait_h = yes; then
15547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015548cat >>confdefs.h <<\_ACEOF
15549#define HAVE_SYS_WAIT_H 1
15550_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015551
15552fi
15553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015554{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15555echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15556if test "${ac_cv_header_time+set}" = set; then
15557 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015558else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015559 cat >conftest.$ac_ext <<_ACEOF
15560/* confdefs.h. */
15561_ACEOF
15562cat confdefs.h >>conftest.$ac_ext
15563cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015564/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015565#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015566#include <sys/time.h>
15567#include <time.h>
15568
15569int
15570main ()
15571{
15572if ((struct tm *) 0)
15573return 0;
15574 ;
15575 return 0;
15576}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015577_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015578rm -f conftest.$ac_objext
15579if { (ac_try="$ac_compile"
15580case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15583esac
15584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_compile") 2>conftest.er1
15586 ac_status=$?
15587 grep -v '^ *+' conftest.er1 >conftest.err
15588 rm -f conftest.er1
15589 cat conftest.err >&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } &&
15592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15593 { (case "(($ac_try" in
15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595 *) ac_try_echo=$ac_try;;
15596esac
15597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598 (eval "$ac_try") 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; } &&
15602 { ac_try='test -s conftest.$ac_objext'
15603 { (case "(($ac_try" in
15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15606esac
15607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608 (eval "$ac_try") 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015612 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015614 echo "$as_me: failed program was:" >&5
15615sed 's/^/| /' conftest.$ac_ext >&5
15616
15617 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015618fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015619
Reid Spencera773bd52006-08-04 18:18:08 +000015620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015621fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015622{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15623echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015624if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015626cat >>confdefs.h <<\_ACEOF
15627#define TIME_WITH_SYS_TIME 1
15628_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015629
15630fi
15631
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015633
15634
15635
15636
15637
15638
Reid Spencer59473af2004-12-25 07:31:29 +000015639for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015640do
15641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15647fi
15648ac_res=`eval echo '${'$as_ac_Header'}'`
15649 { echo "$as_me:$LINENO: result: $ac_res" >&5
15650echo "${ECHO_T}$ac_res" >&6; }
15651else
15652 # Is the header compilable?
15653{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15655cat >conftest.$ac_ext <<_ACEOF
15656/* confdefs.h. */
15657_ACEOF
15658cat confdefs.h >>conftest.$ac_ext
15659cat >>conftest.$ac_ext <<_ACEOF
15660/* end confdefs.h. */
15661$ac_includes_default
15662#include <$ac_header>
15663_ACEOF
15664rm -f conftest.$ac_objext
15665if { (ac_try="$ac_compile"
15666case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15669esac
15670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_compile") 2>conftest.er1
15672 ac_status=$?
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
15678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15679 { (case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15682esac
15683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_try") 2>&5
15685 ac_status=$?
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; } &&
15688 { ac_try='test -s conftest.$ac_objext'
15689 { (case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15692esac
15693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_try") 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_header_compiler=yes
15699else
15700 echo "$as_me: failed program was:" >&5
15701sed 's/^/| /' conftest.$ac_ext >&5
15702
15703 ac_header_compiler=no
15704fi
15705
15706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15707{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15708echo "${ECHO_T}$ac_header_compiler" >&6; }
15709
15710# Is the header present?
15711{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15712echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15713cat >conftest.$ac_ext <<_ACEOF
15714/* confdefs.h. */
15715_ACEOF
15716cat confdefs.h >>conftest.$ac_ext
15717cat >>conftest.$ac_ext <<_ACEOF
15718/* end confdefs.h. */
15719#include <$ac_header>
15720_ACEOF
15721if { (ac_try="$ac_cpp conftest.$ac_ext"
15722case "(($ac_try" in
15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 *) ac_try_echo=$ac_try;;
15725esac
15726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15728 ac_status=$?
15729 grep -v '^ *+' conftest.er1 >conftest.err
15730 rm -f conftest.er1
15731 cat conftest.err >&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } >/dev/null; then
15734 if test -s conftest.err; then
15735 ac_cpp_err=$ac_c_preproc_warn_flag
15736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15737 else
15738 ac_cpp_err=
15739 fi
15740else
15741 ac_cpp_err=yes
15742fi
15743if test -z "$ac_cpp_err"; then
15744 ac_header_preproc=yes
15745else
15746 echo "$as_me: failed program was:" >&5
15747sed 's/^/| /' conftest.$ac_ext >&5
15748
15749 ac_header_preproc=no
15750fi
15751
15752rm -f conftest.err conftest.$ac_ext
15753{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15754echo "${ECHO_T}$ac_header_preproc" >&6; }
15755
15756# So? What about this header?
15757case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15758 yes:no: )
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15760echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15762echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15763 ac_header_preproc=yes
15764 ;;
15765 no:yes:* )
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15767echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15769echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15771echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15773echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15775echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15777echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15778 ( cat <<\_ASBOX
15779## ----------------------------------- ##
15780## Report this to llvmbugs@cs.uiuc.edu ##
15781## ----------------------------------- ##
15782_ASBOX
15783 ) | sed "s/^/$as_me: WARNING: /" >&2
15784 ;;
15785esac
15786{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15790else
15791 eval "$as_ac_Header=\$ac_header_preproc"
15792fi
15793ac_res=`eval echo '${'$as_ac_Header'}'`
15794 { echo "$as_me:$LINENO: result: $ac_res" >&5
15795echo "${ECHO_T}$ac_res" >&6; }
15796
15797fi
15798if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015799 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015801_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015802
15803fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015804
Reid Spencer59473af2004-12-25 07:31:29 +000015805done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015807
15808
15809
15810
15811
15812
Douglas Gregor071d73d2009-05-18 17:21:34 +000015813for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015814do
15815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15821fi
15822ac_res=`eval echo '${'$as_ac_Header'}'`
15823 { echo "$as_me:$LINENO: result: $ac_res" >&5
15824echo "${ECHO_T}$ac_res" >&6; }
15825else
15826 # Is the header compilable?
15827{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15829cat >conftest.$ac_ext <<_ACEOF
15830/* confdefs.h. */
15831_ACEOF
15832cat confdefs.h >>conftest.$ac_ext
15833cat >>conftest.$ac_ext <<_ACEOF
15834/* end confdefs.h. */
15835$ac_includes_default
15836#include <$ac_header>
15837_ACEOF
15838rm -f conftest.$ac_objext
15839if { (ac_try="$ac_compile"
15840case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15843esac
15844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_compile") 2>conftest.er1
15846 ac_status=$?
15847 grep -v '^ *+' conftest.er1 >conftest.err
15848 rm -f conftest.er1
15849 cat conftest.err >&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } &&
15852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15853 { (case "(($ac_try" in
15854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15856esac
15857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858 (eval "$ac_try") 2>&5
15859 ac_status=$?
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; } &&
15862 { ac_try='test -s conftest.$ac_objext'
15863 { (case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15866esac
15867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_try") 2>&5
15869 ac_status=$?
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }; then
15872 ac_header_compiler=yes
15873else
15874 echo "$as_me: failed program was:" >&5
15875sed 's/^/| /' conftest.$ac_ext >&5
15876
15877 ac_header_compiler=no
15878fi
15879
15880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15881{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15882echo "${ECHO_T}$ac_header_compiler" >&6; }
15883
15884# Is the header present?
15885{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15887cat >conftest.$ac_ext <<_ACEOF
15888/* confdefs.h. */
15889_ACEOF
15890cat confdefs.h >>conftest.$ac_ext
15891cat >>conftest.$ac_ext <<_ACEOF
15892/* end confdefs.h. */
15893#include <$ac_header>
15894_ACEOF
15895if { (ac_try="$ac_cpp conftest.$ac_ext"
15896case "(($ac_try" in
15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898 *) ac_try_echo=$ac_try;;
15899esac
15900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15902 ac_status=$?
15903 grep -v '^ *+' conftest.er1 >conftest.err
15904 rm -f conftest.er1
15905 cat conftest.err >&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } >/dev/null; then
15908 if test -s conftest.err; then
15909 ac_cpp_err=$ac_c_preproc_warn_flag
15910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15911 else
15912 ac_cpp_err=
15913 fi
15914else
15915 ac_cpp_err=yes
15916fi
15917if test -z "$ac_cpp_err"; then
15918 ac_header_preproc=yes
15919else
15920 echo "$as_me: failed program was:" >&5
15921sed 's/^/| /' conftest.$ac_ext >&5
15922
15923 ac_header_preproc=no
15924fi
15925
15926rm -f conftest.err conftest.$ac_ext
15927{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15928echo "${ECHO_T}$ac_header_preproc" >&6; }
15929
15930# So? What about this header?
15931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15932 yes:no: )
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15937 ac_header_preproc=yes
15938 ;;
15939 no:yes:* )
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15943echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15947echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15952 ( cat <<\_ASBOX
15953## ----------------------------------- ##
15954## Report this to llvmbugs@cs.uiuc.edu ##
15955## ----------------------------------- ##
15956_ASBOX
15957 ) | sed "s/^/$as_me: WARNING: /" >&2
15958 ;;
15959esac
15960{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15964else
15965 eval "$as_ac_Header=\$ac_header_preproc"
15966fi
15967ac_res=`eval echo '${'$as_ac_Header'}'`
15968 { echo "$as_me:$LINENO: result: $ac_res" >&5
15969echo "${ECHO_T}$ac_res" >&6; }
15970
15971fi
15972if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015973 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015975_ACEOF
15976
15977fi
15978
15979done
15980
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015981
15982
Douglas Gregor071d73d2009-05-18 17:21:34 +000015983for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015984do
15985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15991fi
15992ac_res=`eval echo '${'$as_ac_Header'}'`
15993 { echo "$as_me:$LINENO: result: $ac_res" >&5
15994echo "${ECHO_T}$ac_res" >&6; }
15995else
15996 # Is the header compilable?
15997{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15998echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15999cat >conftest.$ac_ext <<_ACEOF
16000/* confdefs.h. */
16001_ACEOF
16002cat confdefs.h >>conftest.$ac_ext
16003cat >>conftest.$ac_ext <<_ACEOF
16004/* end confdefs.h. */
16005$ac_includes_default
16006#include <$ac_header>
16007_ACEOF
16008rm -f conftest.$ac_objext
16009if { (ac_try="$ac_compile"
16010case "(($ac_try" in
16011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012 *) ac_try_echo=$ac_try;;
16013esac
16014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015 (eval "$ac_compile") 2>conftest.er1
16016 ac_status=$?
16017 grep -v '^ *+' conftest.er1 >conftest.err
16018 rm -f conftest.er1
16019 cat conftest.err >&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); } &&
16022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16023 { (case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16026esac
16027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028 (eval "$ac_try") 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; } &&
16032 { ac_try='test -s conftest.$ac_objext'
16033 { (case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16036esac
16037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_try") 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; }; then
16042 ac_header_compiler=yes
16043else
16044 echo "$as_me: failed program was:" >&5
16045sed 's/^/| /' conftest.$ac_ext >&5
16046
16047 ac_header_compiler=no
16048fi
16049
16050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16051{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16052echo "${ECHO_T}$ac_header_compiler" >&6; }
16053
16054# Is the header present?
16055{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16056echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16057cat >conftest.$ac_ext <<_ACEOF
16058/* confdefs.h. */
16059_ACEOF
16060cat confdefs.h >>conftest.$ac_ext
16061cat >>conftest.$ac_ext <<_ACEOF
16062/* end confdefs.h. */
16063#include <$ac_header>
16064_ACEOF
16065if { (ac_try="$ac_cpp conftest.$ac_ext"
16066case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16069esac
16070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16072 ac_status=$?
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } >/dev/null; then
16078 if test -s conftest.err; then
16079 ac_cpp_err=$ac_c_preproc_warn_flag
16080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16081 else
16082 ac_cpp_err=
16083 fi
16084else
16085 ac_cpp_err=yes
16086fi
16087if test -z "$ac_cpp_err"; then
16088 ac_header_preproc=yes
16089else
16090 echo "$as_me: failed program was:" >&5
16091sed 's/^/| /' conftest.$ac_ext >&5
16092
16093 ac_header_preproc=no
16094fi
16095
16096rm -f conftest.err conftest.$ac_ext
16097{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16098echo "${ECHO_T}$ac_header_preproc" >&6; }
16099
16100# So? What about this header?
16101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16102 yes:no: )
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16104echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16106echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16107 ac_header_preproc=yes
16108 ;;
16109 no:yes:* )
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16111echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16113echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16115echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16117echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16119echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16121echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16122 ( cat <<\_ASBOX
16123## ----------------------------------- ##
16124## Report this to llvmbugs@cs.uiuc.edu ##
16125## ----------------------------------- ##
16126_ASBOX
16127 ) | sed "s/^/$as_me: WARNING: /" >&2
16128 ;;
16129esac
16130{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16134else
16135 eval "$as_ac_Header=\$ac_header_preproc"
16136fi
16137ac_res=`eval echo '${'$as_ac_Header'}'`
16138 { echo "$as_me:$LINENO: result: $ac_res" >&5
16139echo "${ECHO_T}$ac_res" >&6; }
16140
16141fi
16142if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016143 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016144#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016145_ACEOF
16146
16147fi
16148
16149done
Reid Spencer59473af2004-12-25 07:31:29 +000016150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016151
16152
16153
16154
Reid Spencerbe3e4192007-08-17 05:45:26 +000016155for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016156do
16157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16163fi
16164ac_res=`eval echo '${'$as_ac_Header'}'`
16165 { echo "$as_me:$LINENO: result: $ac_res" >&5
16166echo "${ECHO_T}$ac_res" >&6; }
16167else
16168 # Is the header compilable?
16169{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16171cat >conftest.$ac_ext <<_ACEOF
16172/* confdefs.h. */
16173_ACEOF
16174cat confdefs.h >>conftest.$ac_ext
16175cat >>conftest.$ac_ext <<_ACEOF
16176/* end confdefs.h. */
16177$ac_includes_default
16178#include <$ac_header>
16179_ACEOF
16180rm -f conftest.$ac_objext
16181if { (ac_try="$ac_compile"
16182case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16185esac
16186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_compile") 2>conftest.er1
16188 ac_status=$?
16189 grep -v '^ *+' conftest.er1 >conftest.err
16190 rm -f conftest.er1
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } &&
16194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16195 { (case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16198esac
16199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16200 (eval "$ac_try") 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest.$ac_objext'
16205 { (case "(($ac_try" in
16206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207 *) ac_try_echo=$ac_try;;
16208esac
16209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210 (eval "$ac_try") 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 ac_header_compiler=yes
16215else
16216 echo "$as_me: failed program was:" >&5
16217sed 's/^/| /' conftest.$ac_ext >&5
16218
16219 ac_header_compiler=no
16220fi
16221
16222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16224echo "${ECHO_T}$ac_header_compiler" >&6; }
16225
16226# Is the header present?
16227{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16229cat >conftest.$ac_ext <<_ACEOF
16230/* confdefs.h. */
16231_ACEOF
16232cat confdefs.h >>conftest.$ac_ext
16233cat >>conftest.$ac_ext <<_ACEOF
16234/* end confdefs.h. */
16235#include <$ac_header>
16236_ACEOF
16237if { (ac_try="$ac_cpp conftest.$ac_ext"
16238case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16241esac
16242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16244 ac_status=$?
16245 grep -v '^ *+' conftest.er1 >conftest.err
16246 rm -f conftest.er1
16247 cat conftest.err >&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } >/dev/null; then
16250 if test -s conftest.err; then
16251 ac_cpp_err=$ac_c_preproc_warn_flag
16252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16253 else
16254 ac_cpp_err=
16255 fi
16256else
16257 ac_cpp_err=yes
16258fi
16259if test -z "$ac_cpp_err"; then
16260 ac_header_preproc=yes
16261else
16262 echo "$as_me: failed program was:" >&5
16263sed 's/^/| /' conftest.$ac_ext >&5
16264
16265 ac_header_preproc=no
16266fi
16267
16268rm -f conftest.err conftest.$ac_ext
16269{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16270echo "${ECHO_T}$ac_header_preproc" >&6; }
16271
16272# So? What about this header?
16273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16274 yes:no: )
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16279 ac_header_preproc=yes
16280 ;;
16281 no:yes:* )
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16294 ( cat <<\_ASBOX
16295## ----------------------------------- ##
16296## Report this to llvmbugs@cs.uiuc.edu ##
16297## ----------------------------------- ##
16298_ASBOX
16299 ) | sed "s/^/$as_me: WARNING: /" >&2
16300 ;;
16301esac
16302{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16305 echo $ECHO_N "(cached) $ECHO_C" >&6
16306else
16307 eval "$as_ac_Header=\$ac_header_preproc"
16308fi
16309ac_res=`eval echo '${'$as_ac_Header'}'`
16310 { echo "$as_me:$LINENO: result: $ac_res" >&5
16311echo "${ECHO_T}$ac_res" >&6; }
16312
16313fi
16314if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016315 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016317_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016318
16319fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016320
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016321done
16322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016323
16324
16325
16326
Douglas Gregor01746742009-05-11 18:05:52 +000016327for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016328do
16329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16335fi
16336ac_res=`eval echo '${'$as_ac_Header'}'`
16337 { echo "$as_me:$LINENO: result: $ac_res" >&5
16338echo "${ECHO_T}$ac_res" >&6; }
16339else
16340 # Is the header compilable?
16341{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16342echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16343cat >conftest.$ac_ext <<_ACEOF
16344/* confdefs.h. */
16345_ACEOF
16346cat confdefs.h >>conftest.$ac_ext
16347cat >>conftest.$ac_ext <<_ACEOF
16348/* end confdefs.h. */
16349$ac_includes_default
16350#include <$ac_header>
16351_ACEOF
16352rm -f conftest.$ac_objext
16353if { (ac_try="$ac_compile"
16354case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16357esac
16358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_compile") 2>conftest.er1
16360 ac_status=$?
16361 grep -v '^ *+' conftest.er1 >conftest.err
16362 rm -f conftest.er1
16363 cat conftest.err >&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); } &&
16366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16367 { (case "(($ac_try" in
16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369 *) ac_try_echo=$ac_try;;
16370esac
16371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16372 (eval "$ac_try") 2>&5
16373 ac_status=$?
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; } &&
16376 { ac_try='test -s conftest.$ac_objext'
16377 { (case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16380esac
16381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_try") 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; }; then
16386 ac_header_compiler=yes
16387else
16388 echo "$as_me: failed program was:" >&5
16389sed 's/^/| /' conftest.$ac_ext >&5
16390
16391 ac_header_compiler=no
16392fi
16393
16394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16395{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16396echo "${ECHO_T}$ac_header_compiler" >&6; }
16397
16398# Is the header present?
16399{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16400echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16401cat >conftest.$ac_ext <<_ACEOF
16402/* confdefs.h. */
16403_ACEOF
16404cat confdefs.h >>conftest.$ac_ext
16405cat >>conftest.$ac_ext <<_ACEOF
16406/* end confdefs.h. */
16407#include <$ac_header>
16408_ACEOF
16409if { (ac_try="$ac_cpp conftest.$ac_ext"
16410case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16413esac
16414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16416 ac_status=$?
16417 grep -v '^ *+' conftest.er1 >conftest.err
16418 rm -f conftest.er1
16419 cat conftest.err >&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } >/dev/null; then
16422 if test -s conftest.err; then
16423 ac_cpp_err=$ac_c_preproc_warn_flag
16424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16425 else
16426 ac_cpp_err=
16427 fi
16428else
16429 ac_cpp_err=yes
16430fi
16431if test -z "$ac_cpp_err"; then
16432 ac_header_preproc=yes
16433else
16434 echo "$as_me: failed program was:" >&5
16435sed 's/^/| /' conftest.$ac_ext >&5
16436
16437 ac_header_preproc=no
16438fi
16439
16440rm -f conftest.err conftest.$ac_ext
16441{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16442echo "${ECHO_T}$ac_header_preproc" >&6; }
16443
16444# So? What about this header?
16445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16446 yes:no: )
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16448echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16450echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16451 ac_header_preproc=yes
16452 ;;
16453 no:yes:* )
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16455echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16457echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16459echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16461echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16465echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16466 ( cat <<\_ASBOX
16467## ----------------------------------- ##
16468## Report this to llvmbugs@cs.uiuc.edu ##
16469## ----------------------------------- ##
16470_ASBOX
16471 ) | sed "s/^/$as_me: WARNING: /" >&2
16472 ;;
16473esac
16474{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16478else
16479 eval "$as_ac_Header=\$ac_header_preproc"
16480fi
16481ac_res=`eval echo '${'$as_ac_Header'}'`
16482 { echo "$as_me:$LINENO: result: $ac_res" >&5
16483echo "${ECHO_T}$ac_res" >&6; }
16484
16485fi
16486if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016487 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016489_ACEOF
16490
16491fi
16492
16493done
16494
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016495
16496for ac_header in valgrind/valgrind.h
16497do
16498as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16504fi
16505ac_res=`eval echo '${'$as_ac_Header'}'`
16506 { echo "$as_me:$LINENO: result: $ac_res" >&5
16507echo "${ECHO_T}$ac_res" >&6; }
16508else
16509 # Is the header compilable?
16510{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16512cat >conftest.$ac_ext <<_ACEOF
16513/* confdefs.h. */
16514_ACEOF
16515cat confdefs.h >>conftest.$ac_ext
16516cat >>conftest.$ac_ext <<_ACEOF
16517/* end confdefs.h. */
16518$ac_includes_default
16519#include <$ac_header>
16520_ACEOF
16521rm -f conftest.$ac_objext
16522if { (ac_try="$ac_compile"
16523case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16526esac
16527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_compile") 2>conftest.er1
16529 ac_status=$?
16530 grep -v '^ *+' conftest.er1 >conftest.err
16531 rm -f conftest.er1
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } &&
16535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16539esac
16540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try='test -s conftest.$ac_objext'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16549esac
16550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_header_compiler=yes
16556else
16557 echo "$as_me: failed program was:" >&5
16558sed 's/^/| /' conftest.$ac_ext >&5
16559
16560 ac_header_compiler=no
16561fi
16562
16563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16564{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16565echo "${ECHO_T}$ac_header_compiler" >&6; }
16566
16567# Is the header present?
16568{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16570cat >conftest.$ac_ext <<_ACEOF
16571/* confdefs.h. */
16572_ACEOF
16573cat confdefs.h >>conftest.$ac_ext
16574cat >>conftest.$ac_ext <<_ACEOF
16575/* end confdefs.h. */
16576#include <$ac_header>
16577_ACEOF
16578if { (ac_try="$ac_cpp conftest.$ac_ext"
16579case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16582esac
16583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16585 ac_status=$?
16586 grep -v '^ *+' conftest.er1 >conftest.err
16587 rm -f conftest.er1
16588 cat conftest.err >&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } >/dev/null; then
16591 if test -s conftest.err; then
16592 ac_cpp_err=$ac_c_preproc_warn_flag
16593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16594 else
16595 ac_cpp_err=
16596 fi
16597else
16598 ac_cpp_err=yes
16599fi
16600if test -z "$ac_cpp_err"; then
16601 ac_header_preproc=yes
16602else
16603 echo "$as_me: failed program was:" >&5
16604sed 's/^/| /' conftest.$ac_ext >&5
16605
16606 ac_header_preproc=no
16607fi
16608
16609rm -f conftest.err conftest.$ac_ext
16610{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16611echo "${ECHO_T}$ac_header_preproc" >&6; }
16612
16613# So? What about this header?
16614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16615 yes:no: )
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16617echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16619echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16620 ac_header_preproc=yes
16621 ;;
16622 no:yes:* )
16623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16624echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16626echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16628echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16630echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16634echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16635 ( cat <<\_ASBOX
16636## ----------------------------------- ##
16637## Report this to llvmbugs@cs.uiuc.edu ##
16638## ----------------------------------- ##
16639_ASBOX
16640 ) | sed "s/^/$as_me: WARNING: /" >&2
16641 ;;
16642esac
16643{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16647else
16648 eval "$as_ac_Header=\$ac_header_preproc"
16649fi
16650ac_res=`eval echo '${'$as_ac_Header'}'`
16651 { echo "$as_me:$LINENO: result: $ac_res" >&5
16652echo "${ECHO_T}$ac_res" >&6; }
16653
16654fi
16655if test `eval echo '${'$as_ac_Header'}'` = yes; then
16656 cat >>confdefs.h <<_ACEOF
16657#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16658_ACEOF
16659
16660fi
16661
16662done
16663
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016664
16665for ac_header in fenv.h
16666do
16667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16673fi
16674ac_res=`eval echo '${'$as_ac_Header'}'`
16675 { echo "$as_me:$LINENO: result: $ac_res" >&5
16676echo "${ECHO_T}$ac_res" >&6; }
16677else
16678 # Is the header compilable?
16679{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16681cat >conftest.$ac_ext <<_ACEOF
16682/* confdefs.h. */
16683_ACEOF
16684cat confdefs.h >>conftest.$ac_ext
16685cat >>conftest.$ac_ext <<_ACEOF
16686/* end confdefs.h. */
16687$ac_includes_default
16688#include <$ac_header>
16689_ACEOF
16690rm -f conftest.$ac_objext
16691if { (ac_try="$ac_compile"
16692case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16695esac
16696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_compile") 2>conftest.er1
16698 ac_status=$?
16699 grep -v '^ *+' conftest.er1 >conftest.err
16700 rm -f conftest.er1
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16705 { (case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16708esac
16709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_try") 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16718esac
16719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_try") 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_header_compiler=yes
16725else
16726 echo "$as_me: failed program was:" >&5
16727sed 's/^/| /' conftest.$ac_ext >&5
16728
16729 ac_header_compiler=no
16730fi
16731
16732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16734echo "${ECHO_T}$ac_header_compiler" >&6; }
16735
16736# Is the header present?
16737{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16739cat >conftest.$ac_ext <<_ACEOF
16740/* confdefs.h. */
16741_ACEOF
16742cat confdefs.h >>conftest.$ac_ext
16743cat >>conftest.$ac_ext <<_ACEOF
16744/* end confdefs.h. */
16745#include <$ac_header>
16746_ACEOF
16747if { (ac_try="$ac_cpp conftest.$ac_ext"
16748case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16751esac
16752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16754 ac_status=$?
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } >/dev/null; then
16760 if test -s conftest.err; then
16761 ac_cpp_err=$ac_c_preproc_warn_flag
16762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16763 else
16764 ac_cpp_err=
16765 fi
16766else
16767 ac_cpp_err=yes
16768fi
16769if test -z "$ac_cpp_err"; then
16770 ac_header_preproc=yes
16771else
16772 echo "$as_me: failed program was:" >&5
16773sed 's/^/| /' conftest.$ac_ext >&5
16774
16775 ac_header_preproc=no
16776fi
16777
16778rm -f conftest.err conftest.$ac_ext
16779{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16780echo "${ECHO_T}$ac_header_preproc" >&6; }
16781
16782# So? What about this header?
16783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16784 yes:no: )
16785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16786echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16788echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16789 ac_header_preproc=yes
16790 ;;
16791 no:yes:* )
16792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16793echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16795echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16797echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16799echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16801echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16803echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16804 ( cat <<\_ASBOX
16805## ----------------------------------- ##
16806## Report this to llvmbugs@cs.uiuc.edu ##
16807## ----------------------------------- ##
16808_ASBOX
16809 ) | sed "s/^/$as_me: WARNING: /" >&2
16810 ;;
16811esac
16812{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16814if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16815 echo $ECHO_N "(cached) $ECHO_C" >&6
16816else
16817 eval "$as_ac_Header=\$ac_header_preproc"
16818fi
16819ac_res=`eval echo '${'$as_ac_Header'}'`
16820 { echo "$as_me:$LINENO: result: $ac_res" >&5
16821echo "${ECHO_T}$ac_res" >&6; }
16822
16823fi
16824if test `eval echo '${'$as_ac_Header'}'` = yes; then
16825 cat >>confdefs.h <<_ACEOF
16826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16827_ACEOF
16828
16829fi
16830
16831done
16832
Reid Spencer0a262ba2005-08-24 10:07:20 +000016833if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016834
16835for ac_header in pthread.h
16836do
16837as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16838if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16842 echo $ECHO_N "(cached) $ECHO_C" >&6
16843fi
16844ac_res=`eval echo '${'$as_ac_Header'}'`
16845 { echo "$as_me:$LINENO: result: $ac_res" >&5
16846echo "${ECHO_T}$ac_res" >&6; }
16847else
16848 # Is the header compilable?
16849{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16851cat >conftest.$ac_ext <<_ACEOF
16852/* confdefs.h. */
16853_ACEOF
16854cat confdefs.h >>conftest.$ac_ext
16855cat >>conftest.$ac_ext <<_ACEOF
16856/* end confdefs.h. */
16857$ac_includes_default
16858#include <$ac_header>
16859_ACEOF
16860rm -f conftest.$ac_objext
16861if { (ac_try="$ac_compile"
16862case "(($ac_try" in
16863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864 *) ac_try_echo=$ac_try;;
16865esac
16866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867 (eval "$ac_compile") 2>conftest.er1
16868 ac_status=$?
16869 grep -v '^ *+' conftest.er1 >conftest.err
16870 rm -f conftest.er1
16871 cat conftest.err >&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } &&
16874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16875 { (case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16878esac
16879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_try") 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; } &&
16884 { ac_try='test -s conftest.$ac_objext'
16885 { (case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16888esac
16889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890 (eval "$ac_try") 2>&5
16891 ac_status=$?
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; }; then
16894 ac_header_compiler=yes
16895else
16896 echo "$as_me: failed program was:" >&5
16897sed 's/^/| /' conftest.$ac_ext >&5
16898
16899 ac_header_compiler=no
16900fi
16901
16902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16903{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16904echo "${ECHO_T}$ac_header_compiler" >&6; }
16905
16906# Is the header present?
16907{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16908echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16909cat >conftest.$ac_ext <<_ACEOF
16910/* confdefs.h. */
16911_ACEOF
16912cat confdefs.h >>conftest.$ac_ext
16913cat >>conftest.$ac_ext <<_ACEOF
16914/* end confdefs.h. */
16915#include <$ac_header>
16916_ACEOF
16917if { (ac_try="$ac_cpp conftest.$ac_ext"
16918case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16921esac
16922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16924 ac_status=$?
16925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } >/dev/null; then
16930 if test -s conftest.err; then
16931 ac_cpp_err=$ac_c_preproc_warn_flag
16932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16933 else
16934 ac_cpp_err=
16935 fi
16936else
16937 ac_cpp_err=yes
16938fi
16939if test -z "$ac_cpp_err"; then
16940 ac_header_preproc=yes
16941else
16942 echo "$as_me: failed program was:" >&5
16943sed 's/^/| /' conftest.$ac_ext >&5
16944
16945 ac_header_preproc=no
16946fi
16947
16948rm -f conftest.err conftest.$ac_ext
16949{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16950echo "${ECHO_T}$ac_header_preproc" >&6; }
16951
16952# So? What about this header?
16953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16954 yes:no: )
16955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16956echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16958echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16959 ac_header_preproc=yes
16960 ;;
16961 no:yes:* )
16962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16963echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16965echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16967echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16969echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16971echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16973echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16974 ( cat <<\_ASBOX
16975## ----------------------------------- ##
16976## Report this to llvmbugs@cs.uiuc.edu ##
16977## ----------------------------------- ##
16978_ASBOX
16979 ) | sed "s/^/$as_me: WARNING: /" >&2
16980 ;;
16981esac
16982{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16986else
16987 eval "$as_ac_Header=\$ac_header_preproc"
16988fi
16989ac_res=`eval echo '${'$as_ac_Header'}'`
16990 { echo "$as_me:$LINENO: result: $ac_res" >&5
16991echo "${ECHO_T}$ac_res" >&6; }
16992
16993fi
16994if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016995 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016997_ACEOF
16998 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016999
17000else
17001 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017002
17003fi
17004
Reid Spencerbe3e4192007-08-17 05:45:26 +000017005done
Reid Spencer1000b732006-12-01 00:37:14 +000017006
17007else
17008 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017009
17010fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017011
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017012if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017013
17014
17015for ac_header in ffi.h ffi/ffi.h
17016do
17017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17022 echo $ECHO_N "(cached) $ECHO_C" >&6
17023fi
17024ac_res=`eval echo '${'$as_ac_Header'}'`
17025 { echo "$as_me:$LINENO: result: $ac_res" >&5
17026echo "${ECHO_T}$ac_res" >&6; }
17027else
17028 # Is the header compilable?
17029{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17030echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17031cat >conftest.$ac_ext <<_ACEOF
17032/* confdefs.h. */
17033_ACEOF
17034cat confdefs.h >>conftest.$ac_ext
17035cat >>conftest.$ac_ext <<_ACEOF
17036/* end confdefs.h. */
17037$ac_includes_default
17038#include <$ac_header>
17039_ACEOF
17040rm -f conftest.$ac_objext
17041if { (ac_try="$ac_compile"
17042case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17045esac
17046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_compile") 2>conftest.er1
17048 ac_status=$?
17049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
17054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17055 { (case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17058esac
17059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_try") 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest.$ac_objext'
17065 { (case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17068esac
17069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_try") 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; }; then
17074 ac_header_compiler=yes
17075else
17076 echo "$as_me: failed program was:" >&5
17077sed 's/^/| /' conftest.$ac_ext >&5
17078
17079 ac_header_compiler=no
17080fi
17081
17082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17084echo "${ECHO_T}$ac_header_compiler" >&6; }
17085
17086# Is the header present?
17087{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17088echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17089cat >conftest.$ac_ext <<_ACEOF
17090/* confdefs.h. */
17091_ACEOF
17092cat confdefs.h >>conftest.$ac_ext
17093cat >>conftest.$ac_ext <<_ACEOF
17094/* end confdefs.h. */
17095#include <$ac_header>
17096_ACEOF
17097if { (ac_try="$ac_cpp conftest.$ac_ext"
17098case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17101esac
17102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17104 ac_status=$?
17105 grep -v '^ *+' conftest.er1 >conftest.err
17106 rm -f conftest.er1
17107 cat conftest.err >&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } >/dev/null; then
17110 if test -s conftest.err; then
17111 ac_cpp_err=$ac_c_preproc_warn_flag
17112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17113 else
17114 ac_cpp_err=
17115 fi
17116else
17117 ac_cpp_err=yes
17118fi
17119if test -z "$ac_cpp_err"; then
17120 ac_header_preproc=yes
17121else
17122 echo "$as_me: failed program was:" >&5
17123sed 's/^/| /' conftest.$ac_ext >&5
17124
17125 ac_header_preproc=no
17126fi
17127
17128rm -f conftest.err conftest.$ac_ext
17129{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17130echo "${ECHO_T}$ac_header_preproc" >&6; }
17131
17132# So? What about this header?
17133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17134 yes:no: )
17135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17136echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17138echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17139 ac_header_preproc=yes
17140 ;;
17141 no:yes:* )
17142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17143echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17145echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17147echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17149echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17151echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17153echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17154 ( cat <<\_ASBOX
17155## ----------------------------------- ##
17156## Report this to llvmbugs@cs.uiuc.edu ##
17157## ----------------------------------- ##
17158_ASBOX
17159 ) | sed "s/^/$as_me: WARNING: /" >&2
17160 ;;
17161esac
17162{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17166else
17167 eval "$as_ac_Header=\$ac_header_preproc"
17168fi
17169ac_res=`eval echo '${'$as_ac_Header'}'`
17170 { echo "$as_me:$LINENO: result: $ac_res" >&5
17171echo "${ECHO_T}$ac_res" >&6; }
17172
17173fi
17174if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017175 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017176#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017177_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017178
17179fi
17180
17181done
17182
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017183fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017184
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017185
Eric Christopher654dee42010-06-22 21:01:04 +000017186for ac_header in CrashReporterClient.h
17187do
17188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17194fi
17195ac_res=`eval echo '${'$as_ac_Header'}'`
17196 { echo "$as_me:$LINENO: result: $ac_res" >&5
17197echo "${ECHO_T}$ac_res" >&6; }
17198else
17199 # Is the header compilable?
17200{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17202cat >conftest.$ac_ext <<_ACEOF
17203/* confdefs.h. */
17204_ACEOF
17205cat confdefs.h >>conftest.$ac_ext
17206cat >>conftest.$ac_ext <<_ACEOF
17207/* end confdefs.h. */
17208$ac_includes_default
17209#include <$ac_header>
17210_ACEOF
17211rm -f conftest.$ac_objext
17212if { (ac_try="$ac_compile"
17213case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17216esac
17217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_compile") 2>conftest.er1
17219 ac_status=$?
17220 grep -v '^ *+' conftest.er1 >conftest.err
17221 rm -f conftest.er1
17222 cat conftest.err >&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } &&
17225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17226 { (case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17229esac
17230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_try") 2>&5
17232 ac_status=$?
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } &&
17235 { ac_try='test -s conftest.$ac_objext'
17236 { (case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17239esac
17240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_try") 2>&5
17242 ac_status=$?
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 ac_header_compiler=yes
17246else
17247 echo "$as_me: failed program was:" >&5
17248sed 's/^/| /' conftest.$ac_ext >&5
17249
17250 ac_header_compiler=no
17251fi
17252
17253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17254{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17255echo "${ECHO_T}$ac_header_compiler" >&6; }
17256
17257# Is the header present?
17258{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17259echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17260cat >conftest.$ac_ext <<_ACEOF
17261/* confdefs.h. */
17262_ACEOF
17263cat confdefs.h >>conftest.$ac_ext
17264cat >>conftest.$ac_ext <<_ACEOF
17265/* end confdefs.h. */
17266#include <$ac_header>
17267_ACEOF
17268if { (ac_try="$ac_cpp conftest.$ac_ext"
17269case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17272esac
17273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17275 ac_status=$?
17276 grep -v '^ *+' conftest.er1 >conftest.err
17277 rm -f conftest.er1
17278 cat conftest.err >&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } >/dev/null; then
17281 if test -s conftest.err; then
17282 ac_cpp_err=$ac_c_preproc_warn_flag
17283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17284 else
17285 ac_cpp_err=
17286 fi
17287else
17288 ac_cpp_err=yes
17289fi
17290if test -z "$ac_cpp_err"; then
17291 ac_header_preproc=yes
17292else
17293 echo "$as_me: failed program was:" >&5
17294sed 's/^/| /' conftest.$ac_ext >&5
17295
17296 ac_header_preproc=no
17297fi
17298
17299rm -f conftest.err conftest.$ac_ext
17300{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17301echo "${ECHO_T}$ac_header_preproc" >&6; }
17302
17303# So? What about this header?
17304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17305 yes:no: )
17306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17307echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17309echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17310 ac_header_preproc=yes
17311 ;;
17312 no:yes:* )
17313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17314echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17316echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17318echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17320echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17324echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17325 ( cat <<\_ASBOX
17326## ----------------------------------- ##
17327## Report this to llvmbugs@cs.uiuc.edu ##
17328## ----------------------------------- ##
17329_ASBOX
17330 ) | sed "s/^/$as_me: WARNING: /" >&2
17331 ;;
17332esac
17333{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17337else
17338 eval "$as_ac_Header=\$ac_header_preproc"
17339fi
17340ac_res=`eval echo '${'$as_ac_Header'}'`
17341 { echo "$as_me:$LINENO: result: $ac_res" >&5
17342echo "${ECHO_T}$ac_res" >&6; }
17343
17344fi
17345if test `eval echo '${'$as_ac_Header'}'` = yes; then
17346 cat >>confdefs.h <<_ACEOF
17347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17348_ACEOF
17349
17350fi
17351
17352done
17353
17354
17355
Reid Spencer8085cff2005-01-16 02:58:39 +000017356
Torok Edwin871384f2010-01-26 08:50:50 +000017357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017358 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17359echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17360if test "${ac_cv_huge_val_sanity+set}" = set; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017362else
17363
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017364 ac_ext=cpp
17365ac_cpp='$CXXCPP $CPPFLAGS'
17366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017369
Eric Christopherc7718502010-03-02 05:06:54 +000017370 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017371 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017372 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017373 ac_cv_huge_val_sanity=yes
17374else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017375 cat >conftest.$ac_ext <<_ACEOF
17376/* confdefs.h. */
17377_ACEOF
17378cat confdefs.h >>conftest.$ac_ext
17379cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017380/* end confdefs.h. */
17381#include <math.h>
17382int
17383main ()
17384{
17385double x = HUGE_VAL; return x != x;
17386 ;
17387 return 0;
17388}
17389_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017390rm -f conftest$ac_exeext
17391if { (ac_try="$ac_link"
17392case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17395esac
17396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_link") 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17401 { (case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17404esac
17405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406 (eval "$ac_try") 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017410 ac_cv_huge_val_sanity=yes
17411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017412 echo "$as_me: program exited with status $ac_status" >&5
17413echo "$as_me: failed program was:" >&5
17414sed 's/^/| /' conftest.$ac_ext >&5
17415
17416( exit $ac_status )
17417ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017418fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017419rm -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 +000017420fi
17421
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017422
Eric Christopherc7718502010-03-02 05:06:54 +000017423 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017424 ac_ext=c
17425ac_cpp='$CPP $CPPFLAGS'
17426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17428ac_compiler_gnu=$ac_cv_c_compiler_gnu
17429
17430
17431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017432{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17433echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017434 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17435
17436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017437{ echo "$as_me:$LINENO: checking for pid_t" >&5
17438echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17439if test "${ac_cv_type_pid_t+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17441else
17442 cat >conftest.$ac_ext <<_ACEOF
17443/* confdefs.h. */
17444_ACEOF
17445cat confdefs.h >>conftest.$ac_ext
17446cat >>conftest.$ac_ext <<_ACEOF
17447/* end confdefs.h. */
17448$ac_includes_default
17449typedef pid_t ac__type_new_;
17450int
17451main ()
17452{
17453if ((ac__type_new_ *) 0)
17454 return 0;
17455if (sizeof (ac__type_new_))
17456 return 0;
17457 ;
17458 return 0;
17459}
17460_ACEOF
17461rm -f conftest.$ac_objext
17462if { (ac_try="$ac_compile"
17463case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17466esac
17467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468 (eval "$ac_compile") 2>conftest.er1
17469 ac_status=$?
17470 grep -v '^ *+' conftest.er1 >conftest.err
17471 rm -f conftest.er1
17472 cat conftest.err >&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } &&
17475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17476 { (case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17479esac
17480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_try") 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; } &&
17485 { ac_try='test -s conftest.$ac_objext'
17486 { (case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17489esac
17490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_try") 2>&5
17492 ac_status=$?
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; }; then
17495 ac_cv_type_pid_t=yes
17496else
17497 echo "$as_me: failed program was:" >&5
17498sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017500 ac_cv_type_pid_t=no
17501fi
17502
17503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17504fi
17505{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17506echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17507if test $ac_cv_type_pid_t = yes; then
17508 :
John Criswell7a73b802003-06-30 21:59:07 +000017509else
17510
17511cat >>confdefs.h <<_ACEOF
17512#define pid_t int
17513_ACEOF
17514
17515fi
17516
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017517{ echo "$as_me:$LINENO: checking for size_t" >&5
17518echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17519if test "${ac_cv_type_size_t+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17521else
17522 cat >conftest.$ac_ext <<_ACEOF
17523/* confdefs.h. */
17524_ACEOF
17525cat confdefs.h >>conftest.$ac_ext
17526cat >>conftest.$ac_ext <<_ACEOF
17527/* end confdefs.h. */
17528$ac_includes_default
17529typedef size_t ac__type_new_;
17530int
17531main ()
17532{
17533if ((ac__type_new_ *) 0)
17534 return 0;
17535if (sizeof (ac__type_new_))
17536 return 0;
17537 ;
17538 return 0;
17539}
17540_ACEOF
17541rm -f conftest.$ac_objext
17542if { (ac_try="$ac_compile"
17543case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17546esac
17547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_compile") 2>conftest.er1
17549 ac_status=$?
17550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17556 { (case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17559esac
17560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_try") 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest.$ac_objext'
17566 { (case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17569esac
17570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571 (eval "$ac_try") 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; }; then
17575 ac_cv_type_size_t=yes
17576else
17577 echo "$as_me: failed program was:" >&5
17578sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017579
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017580 ac_cv_type_size_t=no
17581fi
17582
17583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17584fi
17585{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17586echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17587if test $ac_cv_type_size_t = yes; then
17588 :
John Criswell7a73b802003-06-30 21:59:07 +000017589else
17590
17591cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017592#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017593_ACEOF
17594
17595fi
17596
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017597
17598cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017599#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017600_ACEOF
17601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017602{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17603echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17604if test "${ac_cv_struct_tm+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017606else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017607 cat >conftest.$ac_ext <<_ACEOF
17608/* confdefs.h. */
17609_ACEOF
17610cat confdefs.h >>conftest.$ac_ext
17611cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017612/* end confdefs.h. */
17613#include <sys/types.h>
17614#include <time.h>
17615
17616int
17617main ()
17618{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017619struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017620 ;
17621 return 0;
17622}
17623_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017624rm -f conftest.$ac_objext
17625if { (ac_try="$ac_compile"
17626case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17629esac
17630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_compile") 2>conftest.er1
17632 ac_status=$?
17633 grep -v '^ *+' conftest.er1 >conftest.err
17634 rm -f conftest.er1
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } &&
17638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17639 { (case "(($ac_try" in
17640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641 *) ac_try_echo=$ac_try;;
17642esac
17643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17644 (eval "$ac_try") 2>&5
17645 ac_status=$?
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); }; } &&
17648 { ac_try='test -s conftest.$ac_objext'
17649 { (case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17652esac
17653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_try") 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017658 ac_cv_struct_tm=time.h
17659else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017660 echo "$as_me: failed program was:" >&5
17661sed 's/^/| /' conftest.$ac_ext >&5
17662
17663 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017664fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017665
Reid Spencera773bd52006-08-04 18:18:08 +000017666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017667fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017668{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17669echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017670if test $ac_cv_struct_tm = sys/time.h; then
17671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017672cat >>confdefs.h <<\_ACEOF
17673#define TM_IN_SYS_TIME 1
17674_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017675
17676fi
17677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017678{ echo "$as_me:$LINENO: checking for int64_t" >&5
17679echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17680if test "${ac_cv_type_int64_t+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682else
17683 cat >conftest.$ac_ext <<_ACEOF
17684/* confdefs.h. */
17685_ACEOF
17686cat confdefs.h >>conftest.$ac_ext
17687cat >>conftest.$ac_ext <<_ACEOF
17688/* end confdefs.h. */
17689$ac_includes_default
17690typedef int64_t ac__type_new_;
17691int
17692main ()
17693{
17694if ((ac__type_new_ *) 0)
17695 return 0;
17696if (sizeof (ac__type_new_))
17697 return 0;
17698 ;
17699 return 0;
17700}
17701_ACEOF
17702rm -f conftest.$ac_objext
17703if { (ac_try="$ac_compile"
17704case "(($ac_try" in
17705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706 *) ac_try_echo=$ac_try;;
17707esac
17708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709 (eval "$ac_compile") 2>conftest.er1
17710 ac_status=$?
17711 grep -v '^ *+' conftest.er1 >conftest.err
17712 rm -f conftest.er1
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
17716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17717 { (case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17720esac
17721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_try") 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } &&
17726 { ac_try='test -s conftest.$ac_objext'
17727 { (case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17730esac
17731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_try") 2>&5
17733 ac_status=$?
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; }; then
17736 ac_cv_type_int64_t=yes
17737else
17738 echo "$as_me: failed program was:" >&5
17739sed 's/^/| /' conftest.$ac_ext >&5
17740
17741 ac_cv_type_int64_t=no
17742fi
17743
17744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745fi
17746{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17747echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17748if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017749
17750cat >>confdefs.h <<_ACEOF
17751#define HAVE_INT64_T 1
17752_ACEOF
17753
17754
17755else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017756 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17757echo "$as_me: error: Type int64_t required but not found" >&2;}
17758 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017759fi
17760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017761{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17762echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17763if test "${ac_cv_type_uint64_t+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17765else
17766 cat >conftest.$ac_ext <<_ACEOF
17767/* confdefs.h. */
17768_ACEOF
17769cat confdefs.h >>conftest.$ac_ext
17770cat >>conftest.$ac_ext <<_ACEOF
17771/* end confdefs.h. */
17772$ac_includes_default
17773typedef uint64_t ac__type_new_;
17774int
17775main ()
17776{
17777if ((ac__type_new_ *) 0)
17778 return 0;
17779if (sizeof (ac__type_new_))
17780 return 0;
17781 ;
17782 return 0;
17783}
17784_ACEOF
17785rm -f conftest.$ac_objext
17786if { (ac_try="$ac_compile"
17787case "(($ac_try" in
17788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789 *) ac_try_echo=$ac_try;;
17790esac
17791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17792 (eval "$ac_compile") 2>conftest.er1
17793 ac_status=$?
17794 grep -v '^ *+' conftest.er1 >conftest.err
17795 rm -f conftest.er1
17796 cat conftest.err >&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } &&
17799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17800 { (case "(($ac_try" in
17801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802 *) ac_try_echo=$ac_try;;
17803esac
17804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805 (eval "$ac_try") 2>&5
17806 ac_status=$?
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; } &&
17809 { ac_try='test -s conftest.$ac_objext'
17810 { (case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17813esac
17814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815 (eval "$ac_try") 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }; then
17819 ac_cv_type_uint64_t=yes
17820else
17821 echo "$as_me: failed program was:" >&5
17822sed 's/^/| /' conftest.$ac_ext >&5
17823
17824 ac_cv_type_uint64_t=no
17825fi
17826
17827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17828fi
17829{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17830echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17831if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017832
17833cat >>confdefs.h <<_ACEOF
17834#define HAVE_UINT64_T 1
17835_ACEOF
17836
17837
17838else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017839 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17840echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17841if test "${ac_cv_type_u_int64_t+set}" = set; then
17842 echo $ECHO_N "(cached) $ECHO_C" >&6
17843else
17844 cat >conftest.$ac_ext <<_ACEOF
17845/* confdefs.h. */
17846_ACEOF
17847cat confdefs.h >>conftest.$ac_ext
17848cat >>conftest.$ac_ext <<_ACEOF
17849/* end confdefs.h. */
17850$ac_includes_default
17851typedef u_int64_t ac__type_new_;
17852int
17853main ()
17854{
17855if ((ac__type_new_ *) 0)
17856 return 0;
17857if (sizeof (ac__type_new_))
17858 return 0;
17859 ;
17860 return 0;
17861}
17862_ACEOF
17863rm -f conftest.$ac_objext
17864if { (ac_try="$ac_compile"
17865case "(($ac_try" in
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17868esac
17869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_compile") 2>conftest.er1
17871 ac_status=$?
17872 grep -v '^ *+' conftest.er1 >conftest.err
17873 rm -f conftest.er1
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
17877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17878 { (case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17881esac
17882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_try") 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; } &&
17887 { ac_try='test -s conftest.$ac_objext'
17888 { (case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17891esac
17892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_try") 2>&5
17894 ac_status=$?
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; }; then
17897 ac_cv_type_u_int64_t=yes
17898else
17899 echo "$as_me: failed program was:" >&5
17900sed 's/^/| /' conftest.$ac_ext >&5
17901
17902 ac_cv_type_u_int64_t=no
17903fi
17904
17905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17906fi
17907{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17908echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17909if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017910
17911cat >>confdefs.h <<_ACEOF
17912#define HAVE_U_INT64_T 1
17913_ACEOF
17914
17915
Misha Brukmanceca9042004-09-02 23:02:30 +000017916else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017917 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17918echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17919 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017920fi
17921
John Criswell679ff312004-09-02 18:44:44 +000017922fi
17923
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017924
17925
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017926
17927
17928
17929
17930
17931
17932
Reid Spencerdf3be822006-01-23 08:15:53 +000017933for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017934do
17935as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17936{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17937echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17938if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17940else
17941 cat >conftest.$ac_ext <<_ACEOF
17942/* confdefs.h. */
17943_ACEOF
17944cat confdefs.h >>conftest.$ac_ext
17945cat >>conftest.$ac_ext <<_ACEOF
17946/* end confdefs.h. */
17947/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17949#define $ac_func innocuous_$ac_func
17950
17951/* System header to define __stub macros and hopefully few prototypes,
17952 which can conflict with char $ac_func (); below.
17953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17954 <limits.h> exists even on freestanding compilers. */
17955
17956#ifdef __STDC__
17957# include <limits.h>
17958#else
17959# include <assert.h>
17960#endif
17961
17962#undef $ac_func
17963
17964/* Override any GCC internal prototype to avoid an error.
17965 Use char because int might match the return type of a GCC
17966 builtin and then its argument prototype would still apply. */
17967#ifdef __cplusplus
17968extern "C"
17969#endif
17970char $ac_func ();
17971/* The GNU C library defines this for functions which it implements
17972 to always fail with ENOSYS. Some functions are actually named
17973 something starting with __ and the normal name is an alias. */
17974#if defined __stub_$ac_func || defined __stub___$ac_func
17975choke me
17976#endif
17977
17978int
17979main ()
17980{
17981return $ac_func ();
17982 ;
17983 return 0;
17984}
17985_ACEOF
17986rm -f conftest.$ac_objext conftest$ac_exeext
17987if { (ac_try="$ac_link"
17988case "(($ac_try" in
17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990 *) ac_try_echo=$ac_try;;
17991esac
17992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993 (eval "$ac_link") 2>conftest.er1
17994 ac_status=$?
17995 grep -v '^ *+' conftest.er1 >conftest.err
17996 rm -f conftest.er1
17997 cat conftest.err >&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } &&
18000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18001 { (case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18004esac
18005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_try") 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; } &&
18010 { ac_try='test -s conftest$ac_exeext'
18011 { (case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18014esac
18015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_try") 2>&5
18017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; }; then
18020 eval "$as_ac_var=yes"
18021else
18022 echo "$as_me: failed program was:" >&5
18023sed 's/^/| /' conftest.$ac_ext >&5
18024
18025 eval "$as_ac_var=no"
18026fi
18027
18028rm -f core conftest.err conftest.$ac_objext \
18029 conftest$ac_exeext conftest.$ac_ext
18030fi
18031ac_res=`eval echo '${'$as_ac_var'}'`
18032 { echo "$as_me:$LINENO: result: $ac_res" >&5
18033echo "${ECHO_T}$ac_res" >&6; }
18034if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018035 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018036#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018037_ACEOF
18038
18039fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018040done
John Criswell7a73b802003-06-30 21:59:07 +000018041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018042
18043
18044
18045
Reid Spencer96cf5872007-07-13 10:05:30 +000018046for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018047do
18048as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18049{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18051if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18053else
18054 cat >conftest.$ac_ext <<_ACEOF
18055/* confdefs.h. */
18056_ACEOF
18057cat confdefs.h >>conftest.$ac_ext
18058cat >>conftest.$ac_ext <<_ACEOF
18059/* end confdefs.h. */
18060/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18062#define $ac_func innocuous_$ac_func
18063
18064/* System header to define __stub macros and hopefully few prototypes,
18065 which can conflict with char $ac_func (); below.
18066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18067 <limits.h> exists even on freestanding compilers. */
18068
18069#ifdef __STDC__
18070# include <limits.h>
18071#else
18072# include <assert.h>
18073#endif
18074
18075#undef $ac_func
18076
18077/* Override any GCC internal prototype to avoid an error.
18078 Use char because int might match the return type of a GCC
18079 builtin and then its argument prototype would still apply. */
18080#ifdef __cplusplus
18081extern "C"
18082#endif
18083char $ac_func ();
18084/* The GNU C library defines this for functions which it implements
18085 to always fail with ENOSYS. Some functions are actually named
18086 something starting with __ and the normal name is an alias. */
18087#if defined __stub_$ac_func || defined __stub___$ac_func
18088choke me
18089#endif
18090
18091int
18092main ()
18093{
18094return $ac_func ();
18095 ;
18096 return 0;
18097}
18098_ACEOF
18099rm -f conftest.$ac_objext conftest$ac_exeext
18100if { (ac_try="$ac_link"
18101case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18104esac
18105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_link") 2>conftest.er1
18107 ac_status=$?
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114 { (case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18117esac
18118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_try") 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest$ac_exeext'
18124 { (case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18127esac
18128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_try") 2>&5
18130 ac_status=$?
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 eval "$as_ac_var=yes"
18134else
18135 echo "$as_me: failed program was:" >&5
18136sed 's/^/| /' conftest.$ac_ext >&5
18137
18138 eval "$as_ac_var=no"
18139fi
18140
18141rm -f core conftest.err conftest.$ac_objext \
18142 conftest$ac_exeext conftest.$ac_ext
18143fi
18144ac_res=`eval echo '${'$as_ac_var'}'`
18145 { echo "$as_me:$LINENO: result: $ac_res" >&5
18146echo "${ECHO_T}$ac_res" >&6; }
18147if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018148 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018150_ACEOF
18151
18152fi
18153done
18154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018155
18156
18157
18158
18159
Reid Spencerb90645c2007-02-16 19:17:20 +000018160for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018161do
18162as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18163{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18164echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18165if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18166 echo $ECHO_N "(cached) $ECHO_C" >&6
18167else
18168 cat >conftest.$ac_ext <<_ACEOF
18169/* confdefs.h. */
18170_ACEOF
18171cat confdefs.h >>conftest.$ac_ext
18172cat >>conftest.$ac_ext <<_ACEOF
18173/* end confdefs.h. */
18174/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18176#define $ac_func innocuous_$ac_func
18177
18178/* System header to define __stub macros and hopefully few prototypes,
18179 which can conflict with char $ac_func (); below.
18180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18181 <limits.h> exists even on freestanding compilers. */
18182
18183#ifdef __STDC__
18184# include <limits.h>
18185#else
18186# include <assert.h>
18187#endif
18188
18189#undef $ac_func
18190
18191/* Override any GCC internal prototype to avoid an error.
18192 Use char because int might match the return type of a GCC
18193 builtin and then its argument prototype would still apply. */
18194#ifdef __cplusplus
18195extern "C"
18196#endif
18197char $ac_func ();
18198/* The GNU C library defines this for functions which it implements
18199 to always fail with ENOSYS. Some functions are actually named
18200 something starting with __ and the normal name is an alias. */
18201#if defined __stub_$ac_func || defined __stub___$ac_func
18202choke me
18203#endif
18204
18205int
18206main ()
18207{
18208return $ac_func ();
18209 ;
18210 return 0;
18211}
18212_ACEOF
18213rm -f conftest.$ac_objext conftest$ac_exeext
18214if { (ac_try="$ac_link"
18215case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18218esac
18219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_link") 2>conftest.er1
18221 ac_status=$?
18222 grep -v '^ *+' conftest.er1 >conftest.err
18223 rm -f conftest.er1
18224 cat conftest.err >&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } &&
18227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18228 { (case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18231esac
18232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_try") 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; } &&
18237 { ac_try='test -s conftest$ac_exeext'
18238 { (case "(($ac_try" in
18239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18240 *) ac_try_echo=$ac_try;;
18241esac
18242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18243 (eval "$ac_try") 2>&5
18244 ac_status=$?
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
18247 eval "$as_ac_var=yes"
18248else
18249 echo "$as_me: failed program was:" >&5
18250sed 's/^/| /' conftest.$ac_ext >&5
18251
18252 eval "$as_ac_var=no"
18253fi
18254
18255rm -f core conftest.err conftest.$ac_objext \
18256 conftest$ac_exeext conftest.$ac_ext
18257fi
18258ac_res=`eval echo '${'$as_ac_var'}'`
18259 { echo "$as_me:$LINENO: result: $ac_res" >&5
18260echo "${ECHO_T}$ac_res" >&6; }
18261if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018262 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018264_ACEOF
18265
18266fi
18267done
18268
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018269
18270
18271
Reid Spencerb90645c2007-02-16 19:17:20 +000018272for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018273do
18274as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18275{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18276echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18277if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18279else
18280 cat >conftest.$ac_ext <<_ACEOF
18281/* confdefs.h. */
18282_ACEOF
18283cat confdefs.h >>conftest.$ac_ext
18284cat >>conftest.$ac_ext <<_ACEOF
18285/* end confdefs.h. */
18286/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18288#define $ac_func innocuous_$ac_func
18289
18290/* System header to define __stub macros and hopefully few prototypes,
18291 which can conflict with char $ac_func (); below.
18292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18293 <limits.h> exists even on freestanding compilers. */
18294
18295#ifdef __STDC__
18296# include <limits.h>
18297#else
18298# include <assert.h>
18299#endif
18300
18301#undef $ac_func
18302
18303/* Override any GCC internal prototype to avoid an error.
18304 Use char because int might match the return type of a GCC
18305 builtin and then its argument prototype would still apply. */
18306#ifdef __cplusplus
18307extern "C"
18308#endif
18309char $ac_func ();
18310/* The GNU C library defines this for functions which it implements
18311 to always fail with ENOSYS. Some functions are actually named
18312 something starting with __ and the normal name is an alias. */
18313#if defined __stub_$ac_func || defined __stub___$ac_func
18314choke me
18315#endif
18316
18317int
18318main ()
18319{
18320return $ac_func ();
18321 ;
18322 return 0;
18323}
18324_ACEOF
18325rm -f conftest.$ac_objext conftest$ac_exeext
18326if { (ac_try="$ac_link"
18327case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18330esac
18331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_link") 2>conftest.er1
18333 ac_status=$?
18334 grep -v '^ *+' conftest.er1 >conftest.err
18335 rm -f conftest.er1
18336 cat conftest.err >&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } &&
18339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18340 { (case "(($ac_try" in
18341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342 *) ac_try_echo=$ac_try;;
18343esac
18344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18345 (eval "$ac_try") 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; } &&
18349 { ac_try='test -s conftest$ac_exeext'
18350 { (case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18353esac
18354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_try") 2>&5
18356 ac_status=$?
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; }; then
18359 eval "$as_ac_var=yes"
18360else
18361 echo "$as_me: failed program was:" >&5
18362sed 's/^/| /' conftest.$ac_ext >&5
18363
18364 eval "$as_ac_var=no"
18365fi
18366
18367rm -f core conftest.err conftest.$ac_objext \
18368 conftest$ac_exeext conftest.$ac_ext
18369fi
18370ac_res=`eval echo '${'$as_ac_var'}'`
18371 { echo "$as_me:$LINENO: result: $ac_res" >&5
18372echo "${ECHO_T}$ac_res" >&6; }
18373if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018374 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018375#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018376_ACEOF
18377
18378fi
18379done
18380
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018381
18382
18383
18384
18385
Eric Christophere4291822010-04-16 05:14:21 +000018386
18387for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018388do
18389as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18390{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18391echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18392if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18394else
18395 cat >conftest.$ac_ext <<_ACEOF
18396/* confdefs.h. */
18397_ACEOF
18398cat confdefs.h >>conftest.$ac_ext
18399cat >>conftest.$ac_ext <<_ACEOF
18400/* end confdefs.h. */
18401/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18403#define $ac_func innocuous_$ac_func
18404
18405/* System header to define __stub macros and hopefully few prototypes,
18406 which can conflict with char $ac_func (); below.
18407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18408 <limits.h> exists even on freestanding compilers. */
18409
18410#ifdef __STDC__
18411# include <limits.h>
18412#else
18413# include <assert.h>
18414#endif
18415
18416#undef $ac_func
18417
18418/* Override any GCC internal prototype to avoid an error.
18419 Use char because int might match the return type of a GCC
18420 builtin and then its argument prototype would still apply. */
18421#ifdef __cplusplus
18422extern "C"
18423#endif
18424char $ac_func ();
18425/* The GNU C library defines this for functions which it implements
18426 to always fail with ENOSYS. Some functions are actually named
18427 something starting with __ and the normal name is an alias. */
18428#if defined __stub_$ac_func || defined __stub___$ac_func
18429choke me
18430#endif
18431
18432int
18433main ()
18434{
18435return $ac_func ();
18436 ;
18437 return 0;
18438}
18439_ACEOF
18440rm -f conftest.$ac_objext conftest$ac_exeext
18441if { (ac_try="$ac_link"
18442case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445esac
18446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_link") 2>conftest.er1
18448 ac_status=$?
18449 grep -v '^ *+' conftest.er1 >conftest.err
18450 rm -f conftest.er1
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18455 { (case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18458esac
18459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_try") 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest$ac_exeext'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18468esac
18469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_try") 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 eval "$as_ac_var=yes"
18475else
18476 echo "$as_me: failed program was:" >&5
18477sed 's/^/| /' conftest.$ac_ext >&5
18478
18479 eval "$as_ac_var=no"
18480fi
18481
18482rm -f core conftest.err conftest.$ac_objext \
18483 conftest$ac_exeext conftest.$ac_ext
18484fi
18485ac_res=`eval echo '${'$as_ac_var'}'`
18486 { echo "$as_me:$LINENO: result: $ac_res" >&5
18487echo "${ECHO_T}$ac_res" >&6; }
18488if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018489 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018490#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018491_ACEOF
18492
18493fi
18494done
Reid Spencerdf3be822006-01-23 08:15:53 +000018495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018496
18497
18498
18499
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018500for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018501do
18502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18503{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18505if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18507else
18508 cat >conftest.$ac_ext <<_ACEOF
18509/* confdefs.h. */
18510_ACEOF
18511cat confdefs.h >>conftest.$ac_ext
18512cat >>conftest.$ac_ext <<_ACEOF
18513/* end confdefs.h. */
18514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18516#define $ac_func innocuous_$ac_func
18517
18518/* System header to define __stub macros and hopefully few prototypes,
18519 which can conflict with char $ac_func (); below.
18520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18521 <limits.h> exists even on freestanding compilers. */
18522
18523#ifdef __STDC__
18524# include <limits.h>
18525#else
18526# include <assert.h>
18527#endif
18528
18529#undef $ac_func
18530
18531/* Override any GCC internal prototype to avoid an error.
18532 Use char because int might match the return type of a GCC
18533 builtin and then its argument prototype would still apply. */
18534#ifdef __cplusplus
18535extern "C"
18536#endif
18537char $ac_func ();
18538/* The GNU C library defines this for functions which it implements
18539 to always fail with ENOSYS. Some functions are actually named
18540 something starting with __ and the normal name is an alias. */
18541#if defined __stub_$ac_func || defined __stub___$ac_func
18542choke me
18543#endif
18544
18545int
18546main ()
18547{
18548return $ac_func ();
18549 ;
18550 return 0;
18551}
18552_ACEOF
18553rm -f conftest.$ac_objext conftest$ac_exeext
18554if { (ac_try="$ac_link"
18555case "(($ac_try" in
18556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557 *) ac_try_echo=$ac_try;;
18558esac
18559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560 (eval "$ac_link") 2>conftest.er1
18561 ac_status=$?
18562 grep -v '^ *+' conftest.er1 >conftest.err
18563 rm -f conftest.er1
18564 cat conftest.err >&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } &&
18567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18568 { (case "(($ac_try" in
18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18571esac
18572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_try") 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; } &&
18577 { ac_try='test -s conftest$ac_exeext'
18578 { (case "(($ac_try" in
18579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580 *) ac_try_echo=$ac_try;;
18581esac
18582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583 (eval "$ac_try") 2>&5
18584 ac_status=$?
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; }; then
18587 eval "$as_ac_var=yes"
18588else
18589 echo "$as_me: failed program was:" >&5
18590sed 's/^/| /' conftest.$ac_ext >&5
18591
18592 eval "$as_ac_var=no"
18593fi
18594
18595rm -f core conftest.err conftest.$ac_objext \
18596 conftest$ac_exeext conftest.$ac_ext
18597fi
18598ac_res=`eval echo '${'$as_ac_var'}'`
18599 { echo "$as_me:$LINENO: result: $ac_res" >&5
18600echo "${ECHO_T}$ac_res" >&6; }
18601if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018602 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018603#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018604_ACEOF
18605
18606fi
18607done
18608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018609
18610
18611
18612
Chris Lattner511f11d2005-11-14 07:25:50 +000018613for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018614do
18615as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18616{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18617echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18618if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18619 echo $ECHO_N "(cached) $ECHO_C" >&6
18620else
18621 cat >conftest.$ac_ext <<_ACEOF
18622/* confdefs.h. */
18623_ACEOF
18624cat confdefs.h >>conftest.$ac_ext
18625cat >>conftest.$ac_ext <<_ACEOF
18626/* end confdefs.h. */
18627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18629#define $ac_func innocuous_$ac_func
18630
18631/* System header to define __stub macros and hopefully few prototypes,
18632 which can conflict with char $ac_func (); below.
18633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18634 <limits.h> exists even on freestanding compilers. */
18635
18636#ifdef __STDC__
18637# include <limits.h>
18638#else
18639# include <assert.h>
18640#endif
18641
18642#undef $ac_func
18643
18644/* Override any GCC internal prototype to avoid an error.
18645 Use char because int might match the return type of a GCC
18646 builtin and then its argument prototype would still apply. */
18647#ifdef __cplusplus
18648extern "C"
18649#endif
18650char $ac_func ();
18651/* The GNU C library defines this for functions which it implements
18652 to always fail with ENOSYS. Some functions are actually named
18653 something starting with __ and the normal name is an alias. */
18654#if defined __stub_$ac_func || defined __stub___$ac_func
18655choke me
18656#endif
18657
18658int
18659main ()
18660{
18661return $ac_func ();
18662 ;
18663 return 0;
18664}
18665_ACEOF
18666rm -f conftest.$ac_objext conftest$ac_exeext
18667if { (ac_try="$ac_link"
18668case "(($ac_try" in
18669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670 *) ac_try_echo=$ac_try;;
18671esac
18672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673 (eval "$ac_link") 2>conftest.er1
18674 ac_status=$?
18675 grep -v '^ *+' conftest.er1 >conftest.err
18676 rm -f conftest.er1
18677 cat conftest.err >&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
18680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18681 { (case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18684esac
18685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_try") 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; } &&
18690 { ac_try='test -s conftest$ac_exeext'
18691 { (case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18694esac
18695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_try") 2>&5
18697 ac_status=$?
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; }; then
18700 eval "$as_ac_var=yes"
18701else
18702 echo "$as_me: failed program was:" >&5
18703sed 's/^/| /' conftest.$ac_ext >&5
18704
18705 eval "$as_ac_var=no"
18706fi
18707
18708rm -f core conftest.err conftest.$ac_objext \
18709 conftest$ac_exeext conftest.$ac_ext
18710fi
18711ac_res=`eval echo '${'$as_ac_var'}'`
18712 { echo "$as_me:$LINENO: result: $ac_res" >&5
18713echo "${ECHO_T}$ac_res" >&6; }
18714if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018715 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018716#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018717_ACEOF
18718
18719fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018720done
John Criswell7a73b802003-06-30 21:59:07 +000018721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018722
18723
18724
18725
Reid Spencerafa22e22006-12-10 23:29:19 +000018726for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018727do
18728as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18729{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18730echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18731if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
18733else
18734 cat >conftest.$ac_ext <<_ACEOF
18735/* confdefs.h. */
18736_ACEOF
18737cat confdefs.h >>conftest.$ac_ext
18738cat >>conftest.$ac_ext <<_ACEOF
18739/* end confdefs.h. */
18740/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18742#define $ac_func innocuous_$ac_func
18743
18744/* System header to define __stub macros and hopefully few prototypes,
18745 which can conflict with char $ac_func (); below.
18746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18747 <limits.h> exists even on freestanding compilers. */
18748
18749#ifdef __STDC__
18750# include <limits.h>
18751#else
18752# include <assert.h>
18753#endif
18754
18755#undef $ac_func
18756
18757/* Override any GCC internal prototype to avoid an error.
18758 Use char because int might match the return type of a GCC
18759 builtin and then its argument prototype would still apply. */
18760#ifdef __cplusplus
18761extern "C"
18762#endif
18763char $ac_func ();
18764/* The GNU C library defines this for functions which it implements
18765 to always fail with ENOSYS. Some functions are actually named
18766 something starting with __ and the normal name is an alias. */
18767#if defined __stub_$ac_func || defined __stub___$ac_func
18768choke me
18769#endif
18770
18771int
18772main ()
18773{
18774return $ac_func ();
18775 ;
18776 return 0;
18777}
18778_ACEOF
18779rm -f conftest.$ac_objext conftest$ac_exeext
18780if { (ac_try="$ac_link"
18781case "(($ac_try" in
18782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783 *) ac_try_echo=$ac_try;;
18784esac
18785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786 (eval "$ac_link") 2>conftest.er1
18787 ac_status=$?
18788 grep -v '^ *+' conftest.er1 >conftest.err
18789 rm -f conftest.er1
18790 cat conftest.err >&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); } &&
18793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18794 { (case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18797esac
18798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_try") 2>&5
18800 ac_status=$?
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest$ac_exeext'
18804 { (case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18807esac
18808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_try") 2>&5
18810 ac_status=$?
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18813 eval "$as_ac_var=yes"
18814else
18815 echo "$as_me: failed program was:" >&5
18816sed 's/^/| /' conftest.$ac_ext >&5
18817
18818 eval "$as_ac_var=no"
18819fi
18820
18821rm -f core conftest.err conftest.$ac_objext \
18822 conftest$ac_exeext conftest.$ac_ext
18823fi
18824ac_res=`eval echo '${'$as_ac_var'}'`
18825 { echo "$as_me:$LINENO: result: $ac_res" >&5
18826echo "${ECHO_T}$ac_res" >&6; }
18827if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018828 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018829#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018830_ACEOF
18831
18832fi
18833done
18834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018835{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18836echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18837if test "${llvm_cv_c_printf_a+set}" = set; then
18838 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018839else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018840 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018841ac_cpp='$CPP $CPPFLAGS'
18842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18844ac_compiler_gnu=$ac_cv_c_compiler_gnu
18845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018846 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018847 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018848else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018849 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018851 /* confdefs.h. */
18852_ACEOF
18853cat confdefs.h >>conftest.$ac_ext
18854cat >>conftest.$ac_ext <<_ACEOF
18855/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018856
John Criswella0137d32003-10-13 16:22:01 +000018857#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018858#include <stdlib.h>
18859
John Criswella0137d32003-10-13 16:22:01 +000018860int
18861main ()
18862{
18863
Reid Spencer2706f8c2004-09-19 23:53:36 +000018864volatile double A, B;
18865char Buffer[100];
18866A = 1;
18867A /= 10.0;
18868sprintf(Buffer, "%a", A);
18869B = atof(Buffer);
18870if (A != B)
18871 return (1);
18872if (A != 0x1.999999999999ap-4)
18873 return (1);
18874return (0);
John Criswella0137d32003-10-13 16:22:01 +000018875 ;
18876 return 0;
18877}
18878_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018879rm -f conftest$ac_exeext
18880if { (ac_try="$ac_link"
18881case "(($ac_try" in
18882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18884esac
18885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18886 (eval "$ac_link") 2>&5
18887 ac_status=$?
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18890 { (case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18893esac
18894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_try") 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018899 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018900else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018901 echo "$as_me: program exited with status $ac_status" >&5
18902echo "$as_me: failed program was:" >&5
18903sed 's/^/| /' conftest.$ac_ext >&5
18904
18905( exit $ac_status )
18906llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018907fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018908rm -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 +000018909fi
Reid Spencera773bd52006-08-04 18:18:08 +000018910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018911
Reid Spencer2706f8c2004-09-19 23:53:36 +000018912 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018913ac_cpp='$CPP $CPPFLAGS'
18914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916ac_compiler_gnu=$ac_cv_c_compiler_gnu
18917
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018918fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018919{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18920echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018921 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018923cat >>confdefs.h <<\_ACEOF
18924#define HAVE_PRINTF_A 1
18925_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018926
Reid Spencer2706f8c2004-09-19 23:53:36 +000018927 fi
John Criswella0137d32003-10-13 16:22:01 +000018928
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018930{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18931echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18932if test "${ac_cv_func_rand48+set}" = set; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018934else
Reid Spencera773bd52006-08-04 18:18:08 +000018935 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018936ac_cpp='$CXXCPP $CPPFLAGS'
18937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018941 cat >conftest.$ac_ext <<_ACEOF
18942/* confdefs.h. */
18943_ACEOF
18944cat confdefs.h >>conftest.$ac_ext
18945cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018946/* end confdefs.h. */
18947#include <stdlib.h>
18948int
18949main ()
18950{
18951srand48(0);lrand48();drand48();
18952 ;
18953 return 0;
18954}
18955_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018956rm -f conftest.$ac_objext
18957if { (ac_try="$ac_compile"
18958case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18961esac
18962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_compile") 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
18970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18971 { (case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18974esac
18975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_try") 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try='test -s conftest.$ac_objext'
18981 { (case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18984esac
18985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_try") 2>&5
18987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018990 ac_cv_func_rand48=yes
18991else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018992 echo "$as_me: failed program was:" >&5
18993sed 's/^/| /' conftest.$ac_ext >&5
18994
18995 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018996fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018997
Reid Spencera773bd52006-08-04 18:18:08 +000018998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018999 ac_ext=c
19000ac_cpp='$CPP $CPPFLAGS'
19001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19003ac_compiler_gnu=$ac_cv_c_compiler_gnu
19004
19005fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019006{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19007echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019008
19009if test "$ac_cv_func_rand48" = "yes" ; then
19010
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019011cat >>confdefs.h <<\_ACEOF
19012#define HAVE_RAND48 1
19013_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019014
19015fi
John Criswell0021c312004-02-13 21:57:29 +000019016
19017
Torok Edwin871384f2010-01-26 08:50:50 +000019018
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019019{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19020echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19021if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019023else
Reid Spencera773bd52006-08-04 18:18:08 +000019024 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019025ac_cpp='$CXXCPP $CPPFLAGS'
19026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019030 cat >conftest.$ac_ext <<_ACEOF
19031/* confdefs.h. */
19032_ACEOF
19033cat confdefs.h >>conftest.$ac_ext
19034cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019035/* end confdefs.h. */
19036#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019037int
19038main ()
19039{
19040float f; isnan(f);
19041 ;
19042 return 0;
19043}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019044_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019045rm -f conftest.$ac_objext
19046if { (ac_try="$ac_compile"
19047case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19050esac
19051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_compile") 2>conftest.er1
19053 ac_status=$?
19054 grep -v '^ *+' conftest.er1 >conftest.err
19055 rm -f conftest.er1
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } &&
19059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19060 { (case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19063esac
19064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_try") 2>&5
19066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; } &&
19069 { ac_try='test -s conftest.$ac_objext'
19070 { (case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19073esac
19074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_try") 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019079 ac_cv_func_isnan_in_math_h=yes
19080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019081 echo "$as_me: failed program was:" >&5
19082sed 's/^/| /' conftest.$ac_ext >&5
19083
19084 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019086
Reid Spencera773bd52006-08-04 18:18:08 +000019087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019088 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019089ac_cpp='$CPP $CPPFLAGS'
19090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19092ac_compiler_gnu=$ac_cv_c_compiler_gnu
19093
19094fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019095{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19096echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019097
19098
19099if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019101cat >>confdefs.h <<\_ACEOF
19102#define HAVE_ISNAN_IN_MATH_H 1
19103_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019104
Reid Spencerabec8f92004-10-27 23:03:44 +000019105fi
19106
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019107{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19108echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19109if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019111else
Reid Spencera773bd52006-08-04 18:18:08 +000019112 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019113ac_cpp='$CXXCPP $CPPFLAGS'
19114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19117
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019118 cat >conftest.$ac_ext <<_ACEOF
19119/* confdefs.h. */
19120_ACEOF
19121cat confdefs.h >>conftest.$ac_ext
19122cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019123/* end confdefs.h. */
19124#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019125int
19126main ()
19127{
19128float f; isnan(f);
19129 ;
19130 return 0;
19131}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019132_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019133rm -f conftest.$ac_objext
19134if { (ac_try="$ac_compile"
19135case "(($ac_try" in
19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137 *) ac_try_echo=$ac_try;;
19138esac
19139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140 (eval "$ac_compile") 2>conftest.er1
19141 ac_status=$?
19142 grep -v '^ *+' conftest.er1 >conftest.err
19143 rm -f conftest.er1
19144 cat conftest.err >&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); } &&
19147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19148 { (case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19151esac
19152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153 (eval "$ac_try") 2>&5
19154 ac_status=$?
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); }; } &&
19157 { ac_try='test -s conftest.$ac_objext'
19158 { (case "(($ac_try" in
19159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160 *) ac_try_echo=$ac_try;;
19161esac
19162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19163 (eval "$ac_try") 2>&5
19164 ac_status=$?
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019167 ac_cv_func_isnan_in_cmath=yes
19168else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019169 echo "$as_me: failed program was:" >&5
19170sed 's/^/| /' conftest.$ac_ext >&5
19171
19172 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019173fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019174
Reid Spencera773bd52006-08-04 18:18:08 +000019175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019176 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019177ac_cpp='$CPP $CPPFLAGS'
19178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19180ac_compiler_gnu=$ac_cv_c_compiler_gnu
19181
19182fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019183{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19184echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019185
19186if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019187
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019188cat >>confdefs.h <<\_ACEOF
19189#define HAVE_ISNAN_IN_CMATH 1
19190_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019191
Reid Spencerabec8f92004-10-27 23:03:44 +000019192fi
19193
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019194{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19195echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19196if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019198else
Reid Spencera773bd52006-08-04 18:18:08 +000019199 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019200ac_cpp='$CXXCPP $CPPFLAGS'
19201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019205 cat >conftest.$ac_ext <<_ACEOF
19206/* confdefs.h. */
19207_ACEOF
19208cat confdefs.h >>conftest.$ac_ext
19209cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019210/* end confdefs.h. */
19211#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019212int
19213main ()
19214{
19215float f; std::isnan(f);
19216 ;
19217 return 0;
19218}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019219_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019220rm -f conftest.$ac_objext
19221if { (ac_try="$ac_compile"
19222case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19225esac
19226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_compile") 2>conftest.er1
19228 ac_status=$?
19229 grep -v '^ *+' conftest.er1 >conftest.err
19230 rm -f conftest.er1
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } &&
19234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19235 { (case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19238esac
19239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240 (eval "$ac_try") 2>&5
19241 ac_status=$?
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; } &&
19244 { ac_try='test -s conftest.$ac_objext'
19245 { (case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19248esac
19249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_try") 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019254 ac_cv_func_std_isnan_in_cmath=yes
19255else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019256 echo "$as_me: failed program was:" >&5
19257sed 's/^/| /' conftest.$ac_ext >&5
19258
19259 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019261
Reid Spencera773bd52006-08-04 18:18:08 +000019262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019263 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019264ac_cpp='$CPP $CPPFLAGS'
19265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267ac_compiler_gnu=$ac_cv_c_compiler_gnu
19268
19269fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019270{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19271echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019272
19273if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019275cat >>confdefs.h <<\_ACEOF
19276#define HAVE_STD_ISNAN_IN_CMATH 1
19277_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019278
Reid Spencerabec8f92004-10-27 23:03:44 +000019279fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019280
19281
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019282{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19283echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19284if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019286else
Reid Spencera773bd52006-08-04 18:18:08 +000019287 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019288ac_cpp='$CXXCPP $CPPFLAGS'
19289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019293 cat >conftest.$ac_ext <<_ACEOF
19294/* confdefs.h. */
19295_ACEOF
19296cat confdefs.h >>conftest.$ac_ext
19297cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019298/* end confdefs.h. */
19299#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019300int
19301main ()
19302{
19303float f; isinf(f);
19304 ;
19305 return 0;
19306}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019307_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019308rm -f conftest.$ac_objext
19309if { (ac_try="$ac_compile"
19310case "(($ac_try" in
19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19313esac
19314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_compile") 2>conftest.er1
19316 ac_status=$?
19317 grep -v '^ *+' conftest.er1 >conftest.err
19318 rm -f conftest.er1
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
19322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19323 { (case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19326esac
19327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_try") 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest.$ac_objext'
19333 { (case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19336esac
19337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338 (eval "$ac_try") 2>&5
19339 ac_status=$?
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019342 ac_cv_func_isinf_in_math_h=yes
19343else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019344 echo "$as_me: failed program was:" >&5
19345sed 's/^/| /' conftest.$ac_ext >&5
19346
19347 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019348fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019349
Reid Spencera773bd52006-08-04 18:18:08 +000019350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019351 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019352ac_cpp='$CPP $CPPFLAGS'
19353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19355ac_compiler_gnu=$ac_cv_c_compiler_gnu
19356
19357fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019358{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19359echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019360
19361if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019363cat >>confdefs.h <<\_ACEOF
19364#define HAVE_ISINF_IN_MATH_H 1
19365_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019366
Reid Spencerabec8f92004-10-27 23:03:44 +000019367fi
19368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019369{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19370echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19371if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019373else
Reid Spencera773bd52006-08-04 18:18:08 +000019374 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019375ac_cpp='$CXXCPP $CPPFLAGS'
19376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019380 cat >conftest.$ac_ext <<_ACEOF
19381/* confdefs.h. */
19382_ACEOF
19383cat confdefs.h >>conftest.$ac_ext
19384cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019385/* end confdefs.h. */
19386#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019387int
19388main ()
19389{
19390float f; isinf(f);
19391 ;
19392 return 0;
19393}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019394_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019395rm -f conftest.$ac_objext
19396if { (ac_try="$ac_compile"
19397case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19400esac
19401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_compile") 2>conftest.er1
19403 ac_status=$?
19404 grep -v '^ *+' conftest.er1 >conftest.err
19405 rm -f conftest.er1
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); } &&
19409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19410 { (case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19413esac
19414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_try") 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; } &&
19419 { ac_try='test -s conftest.$ac_objext'
19420 { (case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19423esac
19424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_try") 2>&5
19426 ac_status=$?
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019429 ac_cv_func_isinf_in_cmath=yes
19430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019431 echo "$as_me: failed program was:" >&5
19432sed 's/^/| /' conftest.$ac_ext >&5
19433
19434 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019435fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019436
Reid Spencera773bd52006-08-04 18:18:08 +000019437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019438 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019439ac_cpp='$CPP $CPPFLAGS'
19440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19442ac_compiler_gnu=$ac_cv_c_compiler_gnu
19443
19444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019445{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19446echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019447
19448if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019449
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019450cat >>confdefs.h <<\_ACEOF
19451#define HAVE_ISINF_IN_CMATH 1
19452_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019453
Reid Spencerabec8f92004-10-27 23:03:44 +000019454fi
19455
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019456{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19457echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19458if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019460else
Reid Spencera773bd52006-08-04 18:18:08 +000019461 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019462ac_cpp='$CXXCPP $CPPFLAGS'
19463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019467 cat >conftest.$ac_ext <<_ACEOF
19468/* confdefs.h. */
19469_ACEOF
19470cat confdefs.h >>conftest.$ac_ext
19471cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019472/* end confdefs.h. */
19473#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019474int
19475main ()
19476{
19477float f; std::isinf(f)}
19478 ;
19479 return 0;
19480}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019481_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019482rm -f conftest.$ac_objext
19483if { (ac_try="$ac_compile"
19484case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19487esac
19488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_compile") 2>conftest.er1
19490 ac_status=$?
19491 grep -v '^ *+' conftest.er1 >conftest.err
19492 rm -f conftest.er1
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
19496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19497 { (case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19500esac
19501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_try") 2>&5
19503 ac_status=$?
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; } &&
19506 { ac_try='test -s conftest.$ac_objext'
19507 { (case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19510esac
19511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_try") 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019516 ac_cv_func_std_isinf_in_cmath=yes
19517else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019518 echo "$as_me: failed program was:" >&5
19519sed 's/^/| /' conftest.$ac_ext >&5
19520
19521 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019522fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019523
Reid Spencera773bd52006-08-04 18:18:08 +000019524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019525 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019526ac_cpp='$CPP $CPPFLAGS'
19527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19529ac_compiler_gnu=$ac_cv_c_compiler_gnu
19530
19531fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019532{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19533echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019534
19535if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019536
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019537cat >>confdefs.h <<\_ACEOF
19538#define HAVE_STD_ISINF_IN_CMATH 1
19539_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019540
Reid Spencerabec8f92004-10-27 23:03:44 +000019541fi
19542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019543{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19544echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19545if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019547else
Reid Spencera773bd52006-08-04 18:18:08 +000019548 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019549ac_cpp='$CXXCPP $CPPFLAGS'
19550ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19551ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19552ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019554 cat >conftest.$ac_ext <<_ACEOF
19555/* confdefs.h. */
19556_ACEOF
19557cat confdefs.h >>conftest.$ac_ext
19558cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019559/* end confdefs.h. */
19560#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019561int
19562main ()
19563{
19564float f; finite(f);
19565 ;
19566 return 0;
19567}
Brian Gaeked59a6472004-07-21 03:33:58 +000019568_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019569rm -f conftest.$ac_objext
19570if { (ac_try="$ac_compile"
19571case "(($ac_try" in
19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573 *) ac_try_echo=$ac_try;;
19574esac
19575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_compile") 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19584 { (case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19587esac
19588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_try") 2>&5
19590 ac_status=$?
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; } &&
19593 { ac_try='test -s conftest.$ac_objext'
19594 { (case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19597esac
19598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_try") 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019603 ac_cv_func_finite_in_ieeefp_h=yes
19604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019605 echo "$as_me: failed program was:" >&5
19606sed 's/^/| /' conftest.$ac_ext >&5
19607
19608 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019609fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019610
Reid Spencera773bd52006-08-04 18:18:08 +000019611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019612 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019613ac_cpp='$CPP $CPPFLAGS'
19614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19616ac_compiler_gnu=$ac_cv_c_compiler_gnu
19617
19618fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019619{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19620echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019621
Brian Gaeke6802b552004-10-28 05:06:45 +000019622if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019623
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019624cat >>confdefs.h <<\_ACEOF
19625#define HAVE_FINITE_IN_IEEEFP_H 1
19626_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019627
Reid Spencerabec8f92004-10-27 23:03:44 +000019628fi
19629
19630
19631
Reid Spencer30fe5262007-01-20 07:48:49 +000019632if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019633
19634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019635for ac_header in stdlib.h unistd.h
19636do
19637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19642 echo $ECHO_N "(cached) $ECHO_C" >&6
19643fi
19644ac_res=`eval echo '${'$as_ac_Header'}'`
19645 { echo "$as_me:$LINENO: result: $ac_res" >&5
19646echo "${ECHO_T}$ac_res" >&6; }
19647else
19648 # Is the header compilable?
19649{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19651cat >conftest.$ac_ext <<_ACEOF
19652/* confdefs.h. */
19653_ACEOF
19654cat confdefs.h >>conftest.$ac_ext
19655cat >>conftest.$ac_ext <<_ACEOF
19656/* end confdefs.h. */
19657$ac_includes_default
19658#include <$ac_header>
19659_ACEOF
19660rm -f conftest.$ac_objext
19661if { (ac_try="$ac_compile"
19662case "(($ac_try" in
19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664 *) ac_try_echo=$ac_try;;
19665esac
19666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667 (eval "$ac_compile") 2>conftest.er1
19668 ac_status=$?
19669 grep -v '^ *+' conftest.er1 >conftest.err
19670 rm -f conftest.er1
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } &&
19674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19675 { (case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19678esac
19679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_try") 2>&5
19681 ac_status=$?
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; } &&
19684 { ac_try='test -s conftest.$ac_objext'
19685 { (case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19688esac
19689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690 (eval "$ac_try") 2>&5
19691 ac_status=$?
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
19694 ac_header_compiler=yes
19695else
19696 echo "$as_me: failed program was:" >&5
19697sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019699 ac_header_compiler=no
19700fi
19701
19702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19703{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19704echo "${ECHO_T}$ac_header_compiler" >&6; }
19705
19706# Is the header present?
19707{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19708echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19709cat >conftest.$ac_ext <<_ACEOF
19710/* confdefs.h. */
19711_ACEOF
19712cat confdefs.h >>conftest.$ac_ext
19713cat >>conftest.$ac_ext <<_ACEOF
19714/* end confdefs.h. */
19715#include <$ac_header>
19716_ACEOF
19717if { (ac_try="$ac_cpp conftest.$ac_ext"
19718case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19721esac
19722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19724 ac_status=$?
19725 grep -v '^ *+' conftest.er1 >conftest.err
19726 rm -f conftest.er1
19727 cat conftest.err >&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } >/dev/null; then
19730 if test -s conftest.err; then
19731 ac_cpp_err=$ac_c_preproc_warn_flag
19732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19733 else
19734 ac_cpp_err=
19735 fi
19736else
19737 ac_cpp_err=yes
19738fi
19739if test -z "$ac_cpp_err"; then
19740 ac_header_preproc=yes
19741else
19742 echo "$as_me: failed program was:" >&5
19743sed 's/^/| /' conftest.$ac_ext >&5
19744
19745 ac_header_preproc=no
19746fi
19747
19748rm -f conftest.err conftest.$ac_ext
19749{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19750echo "${ECHO_T}$ac_header_preproc" >&6; }
19751
19752# So? What about this header?
19753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19754 yes:no: )
19755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19756echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19758echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19759 ac_header_preproc=yes
19760 ;;
19761 no:yes:* )
19762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19763echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19765echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19767echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19769echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19771echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19773echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19774 ( cat <<\_ASBOX
19775## ----------------------------------- ##
19776## Report this to llvmbugs@cs.uiuc.edu ##
19777## ----------------------------------- ##
19778_ASBOX
19779 ) | sed "s/^/$as_me: WARNING: /" >&2
19780 ;;
19781esac
19782{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19784if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19786else
19787 eval "$as_ac_Header=\$ac_header_preproc"
19788fi
19789ac_res=`eval echo '${'$as_ac_Header'}'`
19790 { echo "$as_me:$LINENO: result: $ac_res" >&5
19791echo "${ECHO_T}$ac_res" >&6; }
19792
19793fi
19794if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019795 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019796#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019797_ACEOF
19798
19799fi
19800
19801done
19802
19803
19804for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019805do
19806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19807{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19809if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19811else
19812 cat >conftest.$ac_ext <<_ACEOF
19813/* confdefs.h. */
19814_ACEOF
19815cat confdefs.h >>conftest.$ac_ext
19816cat >>conftest.$ac_ext <<_ACEOF
19817/* end confdefs.h. */
19818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19820#define $ac_func innocuous_$ac_func
19821
19822/* System header to define __stub macros and hopefully few prototypes,
19823 which can conflict with char $ac_func (); below.
19824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19825 <limits.h> exists even on freestanding compilers. */
19826
19827#ifdef __STDC__
19828# include <limits.h>
19829#else
19830# include <assert.h>
19831#endif
19832
19833#undef $ac_func
19834
19835/* Override any GCC internal prototype to avoid an error.
19836 Use char because int might match the return type of a GCC
19837 builtin and then its argument prototype would still apply. */
19838#ifdef __cplusplus
19839extern "C"
19840#endif
19841char $ac_func ();
19842/* The GNU C library defines this for functions which it implements
19843 to always fail with ENOSYS. Some functions are actually named
19844 something starting with __ and the normal name is an alias. */
19845#if defined __stub_$ac_func || defined __stub___$ac_func
19846choke me
19847#endif
19848
19849int
19850main ()
19851{
19852return $ac_func ();
19853 ;
19854 return 0;
19855}
19856_ACEOF
19857rm -f conftest.$ac_objext conftest$ac_exeext
19858if { (ac_try="$ac_link"
19859case "(($ac_try" in
19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861 *) ac_try_echo=$ac_try;;
19862esac
19863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864 (eval "$ac_link") 2>conftest.er1
19865 ac_status=$?
19866 grep -v '^ *+' conftest.er1 >conftest.err
19867 rm -f conftest.er1
19868 cat conftest.err >&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
19871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19872 { (case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19875esac
19876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_try") 2>&5
19878 ac_status=$?
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; } &&
19881 { ac_try='test -s conftest$ac_exeext'
19882 { (case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19885esac
19886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_try") 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 eval "$as_ac_var=yes"
19892else
19893 echo "$as_me: failed program was:" >&5
19894sed 's/^/| /' conftest.$ac_ext >&5
19895
19896 eval "$as_ac_var=no"
19897fi
19898
19899rm -f core conftest.err conftest.$ac_objext \
19900 conftest$ac_exeext conftest.$ac_ext
19901fi
19902ac_res=`eval echo '${'$as_ac_var'}'`
19903 { echo "$as_me:$LINENO: result: $ac_res" >&5
19904echo "${ECHO_T}$ac_res" >&6; }
19905if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019906 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019908_ACEOF
19909
19910fi
19911done
19912
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019913{ echo "$as_me:$LINENO: checking for working mmap" >&5
19914echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19915if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019917else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019918 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019919 ac_cv_func_mmap_fixed_mapped=no
19920else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019921 cat >conftest.$ac_ext <<_ACEOF
19922/* confdefs.h. */
19923_ACEOF
19924cat confdefs.h >>conftest.$ac_ext
19925cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019926/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019927$ac_includes_default
19928/* malloc might have been renamed as rpl_malloc. */
19929#undef malloc
19930
19931/* Thanks to Mike Haertel and Jim Avera for this test.
19932 Here is a matrix of mmap possibilities:
19933 mmap private not fixed
19934 mmap private fixed at somewhere currently unmapped
19935 mmap private fixed at somewhere already mapped
19936 mmap shared not fixed
19937 mmap shared fixed at somewhere currently unmapped
19938 mmap shared fixed at somewhere already mapped
19939 For private mappings, we should verify that changes cannot be read()
19940 back from the file, nor mmap's back from the file at a different
19941 address. (There have been systems where private was not correctly
19942 implemented like the infamous i386 svr4.0, and systems where the
19943 VM page cache was not coherent with the file system buffer cache
19944 like early versions of FreeBSD and possibly contemporary NetBSD.)
19945 For shared mappings, we should conversely verify that changes get
19946 propagated back to all the places they're supposed to be.
19947
19948 Grep wants private fixed already mapped.
19949 The main things grep needs to know about mmap are:
19950 * does it exist and is it safe to write into the mmap'd area
19951 * how to use it (BSD variants) */
19952
19953#include <fcntl.h>
19954#include <sys/mman.h>
19955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019956#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019957char *malloc ();
19958#endif
19959
19960/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019961#if !HAVE_GETPAGESIZE
19962/* Assume that all systems that can run configure have sys/param.h. */
19963# if !HAVE_SYS_PARAM_H
19964# define HAVE_SYS_PARAM_H 1
19965# endif
19966
John Criswell7a73b802003-06-30 21:59:07 +000019967# ifdef _SC_PAGESIZE
19968# define getpagesize() sysconf(_SC_PAGESIZE)
19969# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019970# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019971# include <sys/param.h>
19972# ifdef EXEC_PAGESIZE
19973# define getpagesize() EXEC_PAGESIZE
19974# else /* no EXEC_PAGESIZE */
19975# ifdef NBPG
19976# define getpagesize() NBPG * CLSIZE
19977# ifndef CLSIZE
19978# define CLSIZE 1
19979# endif /* no CLSIZE */
19980# else /* no NBPG */
19981# ifdef NBPC
19982# define getpagesize() NBPC
19983# else /* no NBPC */
19984# ifdef PAGESIZE
19985# define getpagesize() PAGESIZE
19986# endif /* PAGESIZE */
19987# endif /* no NBPC */
19988# endif /* no NBPG */
19989# endif /* no EXEC_PAGESIZE */
19990# else /* no HAVE_SYS_PARAM_H */
19991# define getpagesize() 8192 /* punt totally */
19992# endif /* no HAVE_SYS_PARAM_H */
19993# endif /* no _SC_PAGESIZE */
19994
19995#endif /* no HAVE_GETPAGESIZE */
19996
19997int
19998main ()
19999{
20000 char *data, *data2, *data3;
20001 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020002 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020003
20004 pagesize = getpagesize ();
20005
20006 /* First, make a file with some known garbage in it. */
20007 data = (char *) malloc (pagesize);
20008 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020009 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020010 for (i = 0; i < pagesize; ++i)
20011 *(data + i) = rand ();
20012 umask (0);
20013 fd = creat ("conftest.mmap", 0600);
20014 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020015 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020016 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020017 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020018 close (fd);
20019
20020 /* Next, try to mmap the file at a fixed address which already has
20021 something else allocated at it. If we can, also make sure that
20022 we see the same garbage. */
20023 fd = open ("conftest.mmap", O_RDWR);
20024 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020025 return 1;
20026 data2 = (char *) malloc (2 * pagesize);
20027 if (!data2)
20028 return 1;
20029 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020030 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020031 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020032 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020033 for (i = 0; i < pagesize; ++i)
20034 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020035 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020036
20037 /* Finally, make sure that changes to the mapped area do not
20038 percolate back to the file as seen by read(). (This is a bug on
20039 some variants of i386 svr4.0.) */
20040 for (i = 0; i < pagesize; ++i)
20041 *(data2 + i) = *(data2 + i) + 1;
20042 data3 = (char *) malloc (pagesize);
20043 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020044 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020045 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020046 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020047 for (i = 0; i < pagesize; ++i)
20048 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020049 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020050 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020051 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020052}
20053_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020054rm -f conftest$ac_exeext
20055if { (ac_try="$ac_link"
20056case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20059esac
20060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_link") 2>&5
20062 ac_status=$?
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20065 { (case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20068esac
20069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_try") 2>&5
20071 ac_status=$?
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020074 ac_cv_func_mmap_fixed_mapped=yes
20075else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020076 echo "$as_me: program exited with status $ac_status" >&5
20077echo "$as_me: failed program was:" >&5
20078sed 's/^/| /' conftest.$ac_ext >&5
20079
20080( exit $ac_status )
20081ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020082fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020083rm -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 +000020084fi
Reid Spencera773bd52006-08-04 18:18:08 +000020085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020086
John Criswell7a73b802003-06-30 21:59:07 +000020087fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020088{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20089echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020090if test $ac_cv_func_mmap_fixed_mapped = yes; then
20091
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020092cat >>confdefs.h <<\_ACEOF
20093#define HAVE_MMAP 1
20094_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020095
20096fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020097rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020099 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20100echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20101if test "${ac_cv_func_mmap_file+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020103else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020104 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020105ac_cpp='$CPP $CPPFLAGS'
20106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20108ac_compiler_gnu=$ac_cv_c_compiler_gnu
20109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020110 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020111 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020112else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020113 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020115 /* confdefs.h. */
20116_ACEOF
20117cat confdefs.h >>conftest.$ac_ext
20118cat >>conftest.$ac_ext <<_ACEOF
20119/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020120
John Criswell7a73b802003-06-30 21:59:07 +000020121#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020122#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020123#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020124
20125int
20126main ()
20127{
John Criswell7a73b802003-06-30 21:59:07 +000020128
20129 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020130 fd = creat ("foo",0777);
20131 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20132 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020133 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020134 ;
20135 return 0;
20136}
John Criswell7a73b802003-06-30 21:59:07 +000020137_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020138rm -f conftest$ac_exeext
20139if { (ac_try="$ac_link"
20140case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20143esac
20144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_link") 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20149 { (case "(($ac_try" in
20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20152esac
20153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_try") 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020158 ac_cv_func_mmap_file=yes
20159else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020160 echo "$as_me: program exited with status $ac_status" >&5
20161echo "$as_me: failed program was:" >&5
20162sed 's/^/| /' conftest.$ac_ext >&5
20163
20164( exit $ac_status )
20165ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020166fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020167rm -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 +000020168fi
Reid Spencera773bd52006-08-04 18:18:08 +000020169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020170
John Criswell7a73b802003-06-30 21:59:07 +000020171 ac_ext=c
20172ac_cpp='$CPP $CPPFLAGS'
20173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20175ac_compiler_gnu=$ac_cv_c_compiler_gnu
20176
20177
20178fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020179{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20180echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020181if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020182
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020183cat >>confdefs.h <<\_ACEOF
20184#define HAVE_MMAP_FILE
20185_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020186
20187 MMAP_FILE=yes
20188
20189fi
20190
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020191 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20192echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20193if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020195else
Reid Spencer582a23c2004-12-29 07:07:57 +000020196 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020197 ac_cv_need_dev_zero_for_mmap=yes
20198 else
20199 ac_cv_need_dev_zero_for_mmap=no
20200 fi
20201
20202fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020203{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20204echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020205if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020207cat >>confdefs.h <<\_ACEOF
20208#define NEED_DEV_ZERO_FOR_MMAP 1
20209_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020210
20211fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020212
Reid Spencer30fe5262007-01-20 07:48:49 +000020213 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20214 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020215 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20216echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020217 fi
20218 if test "$ac_cv_func_mmap_file" = "no"
20219 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020220 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20221echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020222 fi
John Criswellb13092b2003-07-22 21:00:24 +000020223fi
John Criswell7a73b802003-06-30 21:59:07 +000020224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020225{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20226echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020227ac_ext=cpp
20228ac_cpp='$CXXCPP $CPPFLAGS'
20229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20232
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020233cat >conftest.$ac_ext <<_ACEOF
20234/* confdefs.h. */
20235_ACEOF
20236cat confdefs.h >>conftest.$ac_ext
20237cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020238/* end confdefs.h. */
20239int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020240 volatile unsigned long val = 1;
20241 __sync_synchronize();
20242 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020243 __sync_add_and_fetch(&val, 1);
20244 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020245 return 0;
20246 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020247
20248_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020249rm -f conftest.$ac_objext conftest$ac_exeext
20250if { (ac_try="$ac_link"
20251case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20254esac
20255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_link") 2>conftest.er1
20257 ac_status=$?
20258 grep -v '^ *+' conftest.er1 >conftest.err
20259 rm -f conftest.er1
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } &&
20263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20264 { (case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20267esac
20268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269 (eval "$ac_try") 2>&5
20270 ac_status=$?
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; } &&
20273 { ac_try='test -s conftest$ac_exeext'
20274 { (case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20277esac
20278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_try") 2>&5
20280 ac_status=$?
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020283 ac_ext=c
20284ac_cpp='$CPP $CPPFLAGS'
20285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20287ac_compiler_gnu=$ac_cv_c_compiler_gnu
20288
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020289 { echo "$as_me:$LINENO: result: yes" >&5
20290echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020292cat >>confdefs.h <<\_ACEOF
20293#define LLVM_MULTITHREADED 1
20294_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020295
Owen Andersond4b272b2009-05-18 23:58:51 +000020296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020297 echo "$as_me: failed program was:" >&5
20298sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020300 { echo "$as_me:$LINENO: result: no" >&5
20301echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020302
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020303cat >>confdefs.h <<\_ACEOF
20304#define LLVM_MULTITHREADED 0
20305_ACEOF
20306
20307 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20308echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020309fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020310
Owen Andersond4b272b2009-05-18 23:58:51 +000020311rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020312 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020313
John Criswell7a73b802003-06-30 21:59:07 +000020314
Nick Lewycky4372e692009-09-29 06:18:23 +000020315if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020316 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20317echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20318if test "${llvm_cv_linux_mixed+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020320else
20321 ac_ext=c
20322ac_cpp='$CPP $CPPFLAGS'
20323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20325ac_compiler_gnu=$ac_cv_c_compiler_gnu
20326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020327 cat >conftest.$ac_ext <<_ACEOF
20328/* confdefs.h. */
20329_ACEOF
20330cat confdefs.h >>conftest.$ac_ext
20331cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020332/* end confdefs.h. */
20333#ifndef __x86_64__
20334 error: Not x86-64 even if uname says so!
20335 #endif
20336
20337int
20338main ()
20339{
20340
20341 ;
20342 return 0;
20343}
20344_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020345rm -f conftest.$ac_objext
20346if { (ac_try="$ac_compile"
20347case "(($ac_try" in
20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20350esac
20351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352 (eval "$ac_compile") 2>conftest.er1
20353 ac_status=$?
20354 grep -v '^ *+' conftest.er1 >conftest.err
20355 rm -f conftest.er1
20356 cat conftest.err >&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); } &&
20359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20360 { (case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20363esac
20364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_try") 2>&5
20366 ac_status=$?
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; } &&
20369 { ac_try='test -s conftest.$ac_objext'
20370 { (case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20373esac
20374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_try") 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020379 llvm_cv_linux_mixed=no
20380else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020381 echo "$as_me: failed program was:" >&5
20382sed 's/^/| /' conftest.$ac_ext >&5
20383
20384 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020385fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020386
Nick Lewycky4372e692009-09-29 06:18:23 +000020387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20388 ac_ext=c
20389ac_cpp='$CPP $CPPFLAGS'
20390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20392ac_compiler_gnu=$ac_cv_c_compiler_gnu
20393
20394
20395fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020396{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20397echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020398
20399 if test "$llvm_cv_linux_mixed" = "yes"; then
20400 llvm_cv_target_arch="x86"
20401 ARCH="x86"
20402 fi
20403fi
20404
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020405
Reid Spencer9372f152007-07-30 20:13:24 +000020406for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020407do
20408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20409{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20411if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20413else
20414 cat >conftest.$ac_ext <<_ACEOF
20415/* confdefs.h. */
20416_ACEOF
20417cat confdefs.h >>conftest.$ac_ext
20418cat >>conftest.$ac_ext <<_ACEOF
20419/* end confdefs.h. */
20420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20422#define $ac_func innocuous_$ac_func
20423
20424/* System header to define __stub macros and hopefully few prototypes,
20425 which can conflict with char $ac_func (); below.
20426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20427 <limits.h> exists even on freestanding compilers. */
20428
20429#ifdef __STDC__
20430# include <limits.h>
20431#else
20432# include <assert.h>
20433#endif
20434
20435#undef $ac_func
20436
20437/* Override any GCC internal prototype to avoid an error.
20438 Use char because int might match the return type of a GCC
20439 builtin and then its argument prototype would still apply. */
20440#ifdef __cplusplus
20441extern "C"
20442#endif
20443char $ac_func ();
20444/* The GNU C library defines this for functions which it implements
20445 to always fail with ENOSYS. Some functions are actually named
20446 something starting with __ and the normal name is an alias. */
20447#if defined __stub_$ac_func || defined __stub___$ac_func
20448choke me
20449#endif
20450
20451int
20452main ()
20453{
20454return $ac_func ();
20455 ;
20456 return 0;
20457}
20458_ACEOF
20459rm -f conftest.$ac_objext conftest$ac_exeext
20460if { (ac_try="$ac_link"
20461case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20464esac
20465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_link") 2>conftest.er1
20467 ac_status=$?
20468 grep -v '^ *+' conftest.er1 >conftest.err
20469 rm -f conftest.er1
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
20473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20474 { (case "(($ac_try" in
20475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476 *) ac_try_echo=$ac_try;;
20477esac
20478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479 (eval "$ac_try") 2>&5
20480 ac_status=$?
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; } &&
20483 { ac_try='test -s conftest$ac_exeext'
20484 { (case "(($ac_try" in
20485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486 *) ac_try_echo=$ac_try;;
20487esac
20488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489 (eval "$ac_try") 2>&5
20490 ac_status=$?
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; }; then
20493 eval "$as_ac_var=yes"
20494else
20495 echo "$as_me: failed program was:" >&5
20496sed 's/^/| /' conftest.$ac_ext >&5
20497
20498 eval "$as_ac_var=no"
20499fi
20500
20501rm -f core conftest.err conftest.$ac_objext \
20502 conftest$ac_exeext conftest.$ac_ext
20503fi
20504ac_res=`eval echo '${'$as_ac_var'}'`
20505 { echo "$as_me:$LINENO: result: $ac_res" >&5
20506echo "${ECHO_T}$ac_res" >&6; }
20507if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020508 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020509#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020510_ACEOF
20511
20512fi
20513done
20514
20515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020516{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20517echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20518if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020520else
20521 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000020522if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020523 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000020524 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20525 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020526 if test $? -eq 0 ; then
20527 llvm_cv_llvmgcc_sanity="yes"
20528 fi
20529 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020530fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020531fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020532{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20533echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020534
20535if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020536 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20537echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020538 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020539 LLVMCC1=$llvmcc1path
20540
Reid Spencer502935f2004-12-22 05:56:56 +000020541 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020542 LLVMCC1PLUS=$llvmcc1pluspath
20543
Reid Spencer502935f2004-12-22 05:56:56 +000020544 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20545 LLVMGCCDIR=$llvmgccdir
20546
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020547 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020548 LLVMGCC_LANGS=$llvmgcclangs
20549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020550 { echo "$as_me:$LINENO: result: ok" >&5
20551echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020552fi
20553
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020554SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020555
20556
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020557SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20558
20559
Reid Spencere9de0912004-08-20 09:03:57 +000020560# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020561# information into substitutions that will end up in Makefile.config.in
20562# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020563if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020564 prefix="/usr/local"
20565fi
Reid Spencere9de0912004-08-20 09:03:57 +000020566eval LLVM_PREFIX="${prefix}";
20567eval LLVM_BINDIR="${prefix}/bin";
20568eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020569eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020570eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020571eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020572eval LLVM_INCLUDEDIR="${prefix}/include";
20573eval LLVM_INFODIR="${prefix}/info";
20574eval LLVM_MANDIR="${prefix}/man";
20575LLVM_CONFIGTIME=`date`
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020587# Place the various directores into the config.h file as #defines so that we
20588# can know about the installation paths within LLVM.
20589
Reid Spencere9de0912004-08-20 09:03:57 +000020590cat >>confdefs.h <<_ACEOF
20591#define LLVM_PREFIX "$LLVM_PREFIX"
20592_ACEOF
20593
20594
20595cat >>confdefs.h <<_ACEOF
20596#define LLVM_BINDIR "$LLVM_BINDIR"
20597_ACEOF
20598
20599
20600cat >>confdefs.h <<_ACEOF
20601#define LLVM_LIBDIR "$LLVM_LIBDIR"
20602_ACEOF
20603
20604
20605cat >>confdefs.h <<_ACEOF
20606#define LLVM_DATADIR "$LLVM_DATADIR"
20607_ACEOF
20608
20609
20610cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020611#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020612_ACEOF
20613
20614
20615cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020616#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020617_ACEOF
20618
20619
20620cat >>confdefs.h <<_ACEOF
20621#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20622_ACEOF
20623
20624
20625cat >>confdefs.h <<_ACEOF
20626#define LLVM_INFODIR "$LLVM_INFODIR"
20627_ACEOF
20628
20629
20630cat >>confdefs.h <<_ACEOF
20631#define LLVM_MANDIR "$LLVM_MANDIR"
20632_ACEOF
20633
20634
20635cat >>confdefs.h <<_ACEOF
20636#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20637_ACEOF
20638
20639
Eric Christopher790e11c2007-12-01 00:34:39 +000020640cat >>confdefs.h <<_ACEOF
20641#define LLVM_HOSTTRIPLE "$host"
20642_ACEOF
20643
20644
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020645# Determine which bindings to build.
20646if test "$BINDINGS_TO_BUILD" = auto ; then
20647 BINDINGS_TO_BUILD=""
20648 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20649 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20650 fi
20651fi
20652BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20653
20654
20655# This isn't really configurey, but it avoids having to repeat the list in
20656# other files.
20657ALL_BINDINGS=ocaml
20658
20659
Gordon Henriksenf0915682007-10-02 16:42:22 +000020660# Do any work necessary to ensure that bindings have what they need.
20661binding_prereqs_failed=0
20662for a_binding in $BINDINGS_TO_BUILD ; do
20663 case "$a_binding" in
20664 ocaml)
20665 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020666 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20667echo "$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 +000020668 binding_prereqs_failed=1
20669 fi
20670 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020671 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20672echo "$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 +000020673 binding_prereqs_failed=1
20674 fi
20675 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020676 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20677echo "$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 +000020678 fi
20679 if test "x$with_ocaml_libdir" != xauto ; then
20680 OCAML_LIBDIR=$with_ocaml_libdir
20681
20682 else
20683 ocaml_stdlib="`"$OCAMLC" -where`"
20684 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20685 then
20686 # ocaml stdlib is beneath our prefix; use stdlib
20687 OCAML_LIBDIR=$ocaml_stdlib
20688
20689 else
20690 # ocaml stdlib is outside our prefix; use libdir/ocaml
20691 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20692
20693 fi
20694 fi
20695 ;;
20696 esac
20697done
20698if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020699 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20700echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20701 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020702fi
20703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020704{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20705echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20706if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20707 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020708else
20709 ac_ext=cpp
20710ac_cpp='$CXXCPP $CPPFLAGS'
20711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20714
20715 oldcxxflags="$CXXFLAGS"
20716 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020717 cat >conftest.$ac_ext <<_ACEOF
20718/* confdefs.h. */
20719_ACEOF
20720cat confdefs.h >>conftest.$ac_ext
20721cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020722/* end confdefs.h. */
20723
20724int
20725main ()
20726{
20727
20728 ;
20729 return 0;
20730}
20731_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020732rm -f conftest.$ac_objext
20733if { (ac_try="$ac_compile"
20734case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20737esac
20738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_compile") 2>conftest.er1
20740 ac_status=$?
20741 grep -v '^ *+' conftest.er1 >conftest.err
20742 rm -f conftest.er1
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } &&
20746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20747 { (case "(($ac_try" in
20748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749 *) ac_try_echo=$ac_try;;
20750esac
20751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20752 (eval "$ac_try") 2>&5
20753 ac_status=$?
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; } &&
20756 { ac_try='test -s conftest.$ac_objext'
20757 { (case "(($ac_try" in
20758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759 *) ac_try_echo=$ac_try;;
20760esac
20761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762 (eval "$ac_try") 2>&5
20763 ac_status=$?
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020766 llvm_cv_cxx_visibility_inlines_hidden=yes
20767else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020768 echo "$as_me: failed program was:" >&5
20769sed 's/^/| /' conftest.$ac_ext >&5
20770
20771 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020772fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020773
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20775 CXXFLAGS="$oldcxxflags"
20776 ac_ext=c
20777ac_cpp='$CPP $CPPFLAGS'
20778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20780ac_compiler_gnu=$ac_cv_c_compiler_gnu
20781
20782
20783fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020784{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20785echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020786if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20787 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20788
20789else
20790 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20791
20792fi
20793
Gordon Henriksenf0915682007-10-02 16:42:22 +000020794
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020795if test "$llvm_cv_link_use_r" = "yes" ; then
20796 RPATH="-Wl,-R"
20797else
20798 RPATH="-Wl,-rpath"
20799fi
20800
20801
20802if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20803 RDYNAMIC="-Wl,-export-dynamic"
20804else
20805 RDYNAMIC=""
20806fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020807
20808
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020809
Eric Christophera1cba682010-08-08 02:44:25 +000020810ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020811
Eric Christopher21d3eeb2010-08-08 09:20:39 +000020812
20813
20814
20815
20816
Douglas Gregor1555a232009-06-16 20:12:29 +000020817ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20818
20819ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20820
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020821ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20822
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020823ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20824
Chandler Carruth8b67f772009-10-26 01:35:46 +000020825ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020826
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020827
Reid Spencera773bd52006-08-04 18:18:08 +000020828ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020829
20830
Reid Spencerea949cf2006-08-16 00:45:38 +000020831ac_config_files="$ac_config_files llvm.spec"
20832
20833
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000020834ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020835
20836
Reid Spencera773bd52006-08-04 18:18:08 +000020837ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020838
20839
Reid Spencera773bd52006-08-04 18:18:08 +000020840ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020841
Reid Spencera773bd52006-08-04 18:18:08 +000020842ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020843
20844
Reid Spencera773bd52006-08-04 18:18:08 +000020845ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020846
20847
Reid Spencera773bd52006-08-04 18:18:08 +000020848ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020849
20850
Reid Spencera773bd52006-08-04 18:18:08 +000020851ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020852
20853
Reid Spencer8b2e1412006-11-17 03:32:33 +000020854ac_config_commands="$ac_config_commands runtime/Makefile"
20855
20856
Reid Spencera773bd52006-08-04 18:18:08 +000020857ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020858
20859
Reid Spencera773bd52006-08-04 18:18:08 +000020860ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020861
20862
Bill Wendlingf24eb392009-01-04 23:12:30 +000020863ac_config_commands="$ac_config_commands unittests/Makefile"
20864
20865
Reid Spencera773bd52006-08-04 18:18:08 +000020866ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020867
20868
Reid Spencera773bd52006-08-04 18:18:08 +000020869ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020870
20871
Reid Spencera773bd52006-08-04 18:18:08 +000020872ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020873
20874
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020875ac_config_commands="$ac_config_commands bindings/Makefile"
20876
20877
20878ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20879
20880
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020881
John Criswell7a73b802003-06-30 21:59:07 +000020882cat >confcache <<\_ACEOF
20883# This file is a shell script that caches the results of configure
20884# tests run on this system so they can be shared between configure
20885# scripts and configure runs, see configure's option --config-cache.
20886# It is not useful on other systems. If it contains results you don't
20887# want to keep, you may remove or edit it.
20888#
20889# config.status only pays attention to the cache file if you give it
20890# the --recheck option to rerun configure.
20891#
John Criswell0c38eaf2003-09-10 15:17:25 +000020892# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020893# loading this file, other *unset* `ac_cv_foo' will be assigned the
20894# following values.
20895
20896_ACEOF
20897
20898# The following way of writing the cache mishandles newlines in values,
20899# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020900# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020901# Ultrix sh set writes to stderr and can't be redirected directly,
20902# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020903(
20904 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20905 eval ac_val=\$$ac_var
20906 case $ac_val in #(
20907 *${as_nl}*)
20908 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020909 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20910echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020911 esac
20912 case $ac_var in #(
20913 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020914 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020915 esac ;;
20916 esac
20917 done
20918
John Criswell7a73b802003-06-30 21:59:07 +000020919 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020920 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20921 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020922 # `set' does not quote correctly, so add quotes (double-quote
20923 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020924 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020925 "s/'/'\\\\''/g;
20926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020927 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020928 *)
20929 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020930 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020931 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020932 esac |
20933 sort
20934) |
John Criswell7a73b802003-06-30 21:59:07 +000020935 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020936 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020937 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020938 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020939 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20940 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020941 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20942 :end' >>confcache
20943if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20944 if test -w "$cache_file"; then
20945 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020946 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20947echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020948 cat confcache >$cache_file
20949 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020950 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20951echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020952 fi
20953fi
20954rm -f confcache
20955
20956test "x$prefix" = xNONE && prefix=$ac_default_prefix
20957# Let make expand exec_prefix.
20958test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20959
John Criswell7a73b802003-06-30 21:59:07 +000020960DEFS=-DHAVE_CONFIG_H
20961
John Criswell0c38eaf2003-09-10 15:17:25 +000020962ac_libobjs=
20963ac_ltlibobjs=
20964for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20965 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020966 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020967 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020968 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20969 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020970 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20971 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020972done
20973LIBOBJS=$ac_libobjs
20974
20975LTLIBOBJS=$ac_ltlibobjs
20976
20977
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020978if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020979 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20980Usually this means the macro was only invoked conditionally." >&5
20981echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20982Usually this means the macro was only invoked conditionally." >&2;}
20983 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020984fi
20985if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020986 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20987Usually this means the macro was only invoked conditionally." >&5
20988echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20989Usually this means the macro was only invoked conditionally." >&2;}
20990 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020991fi
John Criswell7a73b802003-06-30 21:59:07 +000020992
20993: ${CONFIG_STATUS=./config.status}
20994ac_clean_files_save=$ac_clean_files
20995ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020996{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20997echo "$as_me: creating $CONFIG_STATUS" >&6;}
20998cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020999#! $SHELL
21000# Generated by $as_me.
21001# Run this file to recreate the current configuration.
21002# Compiler output produced by configure, useful for debugging
21003# configure, is in config.log if it exists.
21004
21005debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021006ac_cs_recheck=false
21007ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021008SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021009_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021010
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021011cat >>$CONFIG_STATUS <<\_ACEOF
21012## --------------------- ##
21013## M4sh Initialization. ##
21014## --------------------- ##
21015
21016# Be Bourne compatible
21017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021018 emulate sh
21019 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021020 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021021 # is contrary to our usage. Disable this feature.
21022 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021023 setopt NO_GLOB_SUBST
21024else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021025 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021026fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021027BIN_SH=xpg4; export BIN_SH # for Tru64
21028DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021029
John Criswell7a73b802003-06-30 21:59:07 +000021030
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021031# PATH needs CR
21032# Avoid depending upon Character Ranges.
21033as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21034as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21035as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21036as_cr_digits='0123456789'
21037as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021038
21039# The user is always right.
21040if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021041 echo "#! /bin/sh" >conf$$.sh
21042 echo "exit 0" >>conf$$.sh
21043 chmod +x conf$$.sh
21044 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21045 PATH_SEPARATOR=';'
21046 else
21047 PATH_SEPARATOR=:
21048 fi
21049 rm -f conf$$.sh
21050fi
21051
21052# Support unset when possible.
21053if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21054 as_unset=unset
21055else
21056 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021057fi
John Criswell7a73b802003-06-30 21:59:07 +000021058
Reid Spencera773bd52006-08-04 18:18:08 +000021059
21060# IFS
21061# We need space, tab and new line, in precisely that order. Quoting is
21062# there to prevent editors from complaining about space-tab.
21063# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21064# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021065as_nl='
21066'
Reid Spencera773bd52006-08-04 18:18:08 +000021067IFS=" "" $as_nl"
21068
21069# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021070case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021071 *[\\/]* ) as_myself=$0 ;;
21072 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021073for as_dir in $PATH
21074do
21075 IFS=$as_save_IFS
21076 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021077 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21078done
Reid Spencera773bd52006-08-04 18:18:08 +000021079IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021080
Reid Spencera773bd52006-08-04 18:18:08 +000021081 ;;
21082esac
21083# We did not find ourselves, most probably we were run as `sh COMMAND'
21084# in which case we are not to be found in the path.
21085if test "x$as_myself" = x; then
21086 as_myself=$0
21087fi
21088if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021089 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21090 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021091fi
21092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021093# Work around bugs in pre-3.0 UWIN ksh.
21094for as_var in ENV MAIL MAILPATH
21095do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021096done
21097PS1='$ '
21098PS2='> '
21099PS4='+ '
21100
21101# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021102for as_var in \
21103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21105 LC_TELEPHONE LC_TIME
21106do
21107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21108 eval $as_var=C; export $as_var
21109 else
21110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021111 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021112done
Torok Edwin871384f2010-01-26 08:50:50 +000021113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021114# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021115if expr a : '\(a\)' >/dev/null 2>&1 &&
21116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21117 as_expr=expr
21118else
21119 as_expr=false
21120fi
21121
21122if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21123 as_basename=basename
21124else
21125 as_basename=false
21126fi
21127
21128
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021129# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021130as_me=`$as_basename -- "$0" ||
21131$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21132 X"$0" : 'X\(//\)$' \| \
21133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021134echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021135 sed '/^.*\/\([^/][^/]*\)\/*$/{
21136 s//\1/
21137 q
21138 }
21139 /^X\/\(\/\/\)$/{
21140 s//\1/
21141 q
21142 }
21143 /^X\/\(\/\).*/{
21144 s//\1/
21145 q
21146 }
21147 s/.*/./; q'`
21148
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021149# CDPATH.
21150$as_unset CDPATH
21151
21152
21153
21154 as_lineno_1=$LINENO
21155 as_lineno_2=$LINENO
21156 test "x$as_lineno_1" != "x$as_lineno_2" &&
21157 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21158
21159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21160 # uniformly replaced by the line number. The first 'sed' inserts a
21161 # line-number line after each line using $LINENO; the second 'sed'
21162 # does the real work. The second script uses 'N' to pair each
21163 # line-number line with the line containing $LINENO, and appends
21164 # trailing '-' during substitution so that $LINENO is not a special
21165 # case at line end.
21166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21167 # scripts with optimization help from Paolo Bonzini. Blame Lee
21168 # E. McMahon (1931-1989) for sed's syntax. :-)
21169 sed -n '
21170 p
21171 /[$]LINENO/=
21172 ' <$as_myself |
21173 sed '
21174 s/[$]LINENO.*/&-/
21175 t lineno
21176 b
21177 :lineno
21178 N
21179 :loop
21180 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21181 t loop
21182 s/-\n.*//
21183 ' >$as_me.lineno &&
21184 chmod +x "$as_me.lineno" ||
21185 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21186 { (exit 1); exit 1; }; }
21187
21188 # Don't try to exec as it changes $[0], causing all sort of problems
21189 # (the dirname of $[0] is not the place where we might find the
21190 # original and so on. Autoconf is especially sensitive to this).
21191 . "./$as_me.lineno"
21192 # Exit status is that of the last command.
21193 exit
21194}
21195
21196
21197if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21198 as_dirname=dirname
21199else
21200 as_dirname=false
21201fi
Reid Spencera773bd52006-08-04 18:18:08 +000021202
21203ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021204case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021205-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021206 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021207 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021208 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021209 esac;;
21210*)
21211 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021212esac
21213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021214if expr a : '\(a\)' >/dev/null 2>&1 &&
21215 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21216 as_expr=expr
21217else
21218 as_expr=false
21219fi
21220
John Criswell7a73b802003-06-30 21:59:07 +000021221rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021222if test -d conf$$.dir; then
21223 rm -f conf$$.dir/conf$$.file
21224else
21225 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021226 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021227fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021228echo >conf$$.file
21229if ln -s conf$$.file conf$$ 2>/dev/null; then
21230 as_ln_s='ln -s'
21231 # ... but there are two gotchas:
21232 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21233 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21234 # In both cases, we have to default to `cp -p'.
21235 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021236 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021237elif ln conf$$.file conf$$ 2>/dev/null; then
21238 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021239else
21240 as_ln_s='cp -p'
21241fi
Reid Spencera773bd52006-08-04 18:18:08 +000021242rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21243rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021244
John Criswell0c38eaf2003-09-10 15:17:25 +000021245if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021246 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021247else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021248 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021249 as_mkdir_p=false
21250fi
21251
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021252# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21253# systems may use methods other than mode bits to determine executability.
21254cat >conf$$.file <<_ASEOF
21255#! /bin/sh
21256exit 0
21257_ASEOF
21258chmod +x conf$$.file
21259if test -x conf$$.file >/dev/null 2>&1; then
21260 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021261else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021262 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021263fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021264rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021265
21266# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021267as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021268
21269# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021270as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021271
21272
John Criswell7a73b802003-06-30 21:59:07 +000021273exec 6>&1
21274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021275# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021276# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021277# values after options handling.
21278ac_log="
Eric Christopherb26697c2010-09-06 18:47:10 +000021279This file was extended by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021280generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021281
21282 CONFIG_FILES = $CONFIG_FILES
21283 CONFIG_HEADERS = $CONFIG_HEADERS
21284 CONFIG_LINKS = $CONFIG_LINKS
21285 CONFIG_COMMANDS = $CONFIG_COMMANDS
21286 $ $0 $@
21287
Reid Spencera773bd52006-08-04 18:18:08 +000021288on `(hostname || uname -n) 2>/dev/null | sed 1q`
21289"
21290
John Criswell7a73b802003-06-30 21:59:07 +000021291_ACEOF
21292
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021293cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021294# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021295config_files="$ac_config_files"
21296config_headers="$ac_config_headers"
21297config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021298
Reid Spencera773bd52006-08-04 18:18:08 +000021299_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021301cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021302ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021303\`$as_me' instantiates files from templates according to the
21304current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021306Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021307
21308 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021309 -V, --version print version number, then exit
21310 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021311 -d, --debug don't remove temporary files
21312 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021313 --file=FILE[:TEMPLATE]
21314 instantiate the configuration file FILE
21315 --header=FILE[:TEMPLATE]
21316 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021317
21318Configuration files:
21319$config_files
21320
21321Configuration headers:
21322$config_headers
21323
John Criswellc764fbc2003-09-06 15:17:13 +000021324Configuration commands:
21325$config_commands
21326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021327Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021328
Reid Spencera773bd52006-08-04 18:18:08 +000021329_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021330cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021331ac_cs_version="\\
Eric Christopherb26697c2010-09-06 18:47:10 +000021332llvm config.status 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021333configured by $0, generated by GNU Autoconf 2.60,
21334 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021336Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021337This config.status script is free software; the Free Software Foundation
21338gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021339
21340ac_pwd='$ac_pwd'
21341srcdir='$srcdir'
21342INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021343_ACEOF
21344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021345cat >>$CONFIG_STATUS <<\_ACEOF
21346# If no file are specified by the user, then we need to provide default
21347# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021348ac_need_defaults=:
21349while test $# != 0
21350do
21351 case $1 in
21352 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021353 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21354 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021355 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021356 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021357 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021358 ac_option=$1
21359 ac_optarg=$2
21360 ac_shift=shift
21361 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021362 esac
21363
John Criswell0c38eaf2003-09-10 15:17:25 +000021364 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021365 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021366 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21367 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021368 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021369 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021370 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021371 debug=: ;;
21372 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021373 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021374 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021375 ac_need_defaults=false;;
21376 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021377 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021378 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021379 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021380 --he | --h)
21381 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021382 { echo "$as_me: error: ambiguous option: $1
21383Try \`$0 --help' for more information." >&2
21384 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021385 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021386 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21388 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21389 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021390
21391 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021392 -*) { echo "$as_me: error: unrecognized option: $1
21393Try \`$0 --help' for more information." >&2
21394 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021396 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021397 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021398
21399 esac
21400 shift
21401done
21402
John Criswell0c38eaf2003-09-10 15:17:25 +000021403ac_configure_extra_args=
21404
21405if $ac_cs_silent; then
21406 exec 6>/dev/null
21407 ac_configure_extra_args="$ac_configure_extra_args --silent"
21408fi
21409
21410_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021411cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021412if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021413 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21414 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021415 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021416 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021417fi
21418
John Criswell7a73b802003-06-30 21:59:07 +000021419_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021420cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021421exec 5>>config.log
21422{
21423 echo
21424 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21425## Running $as_me. ##
21426_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021427 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021428} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021429
Reid Spencera773bd52006-08-04 18:18:08 +000021430_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021431cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021432#
Reid Spencera773bd52006-08-04 18:18:08 +000021433# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021434#
Reid Spencerc0682832005-02-24 19:05:19 +000021435llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021436
21437_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021439cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021440
21441# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021442for ac_config_target in $ac_config_targets
21443do
Reid Spencera773bd52006-08-04 18:18:08 +000021444 case $ac_config_target in
21445 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021446 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021447 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21448 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021449 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021450 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000021451 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021452 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021453 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021454 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021455 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21456 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21457 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21458 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21459 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21460 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021461 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021462 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21463 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021464 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021465 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21466 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21467 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021468 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21469 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021470
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021471 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21472echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21473 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021474 esac
21475done
21476
Reid Spencera773bd52006-08-04 18:18:08 +000021477
John Criswell7a73b802003-06-30 21:59:07 +000021478# If the user did not use the arguments to specify the items to instantiate,
21479# then the envvar interface is used. Set only those that are not.
21480# We use the long form for the default assignment because of an extremely
21481# bizarre bug on SunOS 4.1.3.
21482if $ac_need_defaults; then
21483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021485 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021486fi
21487
John Criswell0c38eaf2003-09-10 15:17:25 +000021488# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021489# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021490# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021491# Hook for its removal unless debugging.
21492# Note that there is a small window in which the directory will not be cleaned:
21493# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021494$debug ||
21495{
Reid Spencera773bd52006-08-04 18:18:08 +000021496 tmp=
21497 trap 'exit_status=$?
21498 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21499' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021500 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021501}
John Criswell7a73b802003-06-30 21:59:07 +000021502# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021503
John Criswell7a73b802003-06-30 21:59:07 +000021504{
Reid Spencera773bd52006-08-04 18:18:08 +000021505 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021506 test -n "$tmp" && test -d "$tmp"
21507} ||
21508{
Reid Spencera773bd52006-08-04 18:18:08 +000021509 tmp=./conf$$-$RANDOM
21510 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021511} ||
21512{
21513 echo "$me: cannot create a temporary directory in ." >&2
21514 { (exit 1); exit 1; }
21515}
John Criswell7a73b802003-06-30 21:59:07 +000021516
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021517#
21518# Set up the sed scripts for CONFIG_FILES section.
21519#
21520
21521# No need to generate the scripts if there are no CONFIG_FILES.
21522# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021523if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021524
21525_ACEOF
21526
Reid Spencera773bd52006-08-04 18:18:08 +000021527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021528
Reid Spencera773bd52006-08-04 18:18:08 +000021529ac_delim='%!_!# '
21530for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021531 cat >conf$$subs.sed <<_ACEOF
21532SHELL!$SHELL$ac_delim
21533PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21534PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21535PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21536PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21537PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21538PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21539exec_prefix!$exec_prefix$ac_delim
21540prefix!$prefix$ac_delim
21541program_transform_name!$program_transform_name$ac_delim
21542bindir!$bindir$ac_delim
21543sbindir!$sbindir$ac_delim
21544libexecdir!$libexecdir$ac_delim
21545datarootdir!$datarootdir$ac_delim
21546datadir!$datadir$ac_delim
21547sysconfdir!$sysconfdir$ac_delim
21548sharedstatedir!$sharedstatedir$ac_delim
21549localstatedir!$localstatedir$ac_delim
21550includedir!$includedir$ac_delim
21551oldincludedir!$oldincludedir$ac_delim
21552docdir!$docdir$ac_delim
21553infodir!$infodir$ac_delim
21554htmldir!$htmldir$ac_delim
21555dvidir!$dvidir$ac_delim
21556pdfdir!$pdfdir$ac_delim
21557psdir!$psdir$ac_delim
21558libdir!$libdir$ac_delim
21559localedir!$localedir$ac_delim
21560mandir!$mandir$ac_delim
21561DEFS!$DEFS$ac_delim
21562ECHO_C!$ECHO_C$ac_delim
21563ECHO_N!$ECHO_N$ac_delim
21564ECHO_T!$ECHO_T$ac_delim
21565LIBS!$LIBS$ac_delim
21566build_alias!$build_alias$ac_delim
21567host_alias!$host_alias$ac_delim
21568target_alias!$target_alias$ac_delim
21569LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21570subdirs!$subdirs$ac_delim
21571build!$build$ac_delim
21572build_cpu!$build_cpu$ac_delim
21573build_vendor!$build_vendor$ac_delim
21574build_os!$build_os$ac_delim
21575host!$host$ac_delim
21576host_cpu!$host_cpu$ac_delim
21577host_vendor!$host_vendor$ac_delim
21578host_os!$host_os$ac_delim
21579target!$target$ac_delim
21580target_cpu!$target_cpu$ac_delim
21581target_vendor!$target_vendor$ac_delim
21582target_os!$target_os$ac_delim
21583OS!$OS$ac_delim
21584HOST_OS!$HOST_OS$ac_delim
21585TARGET_OS!$TARGET_OS$ac_delim
21586LINKALL!$LINKALL$ac_delim
21587NOLINKALL!$NOLINKALL$ac_delim
21588LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21589LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21590ARCH!$ARCH$ac_delim
21591ENDIAN!$ENDIAN$ac_delim
21592CC!$CC$ac_delim
21593CFLAGS!$CFLAGS$ac_delim
21594LDFLAGS!$LDFLAGS$ac_delim
21595CPPFLAGS!$CPPFLAGS$ac_delim
21596ac_ct_CC!$ac_ct_CC$ac_delim
21597EXEEXT!$EXEEXT$ac_delim
21598OBJEXT!$OBJEXT$ac_delim
21599CPP!$CPP$ac_delim
21600GREP!$GREP$ac_delim
21601EGREP!$EGREP$ac_delim
21602LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21603BUILD_CC!$BUILD_CC$ac_delim
21604BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21605BUILD_CXX!$BUILD_CXX$ac_delim
21606CVSBUILD!$CVSBUILD$ac_delim
21607ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21608ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21609DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21610ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21611EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21612DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21613DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21614JIT!$JIT$ac_delim
21615TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21616ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21617ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21618ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021619ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021620ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021621TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21622LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21623LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21624LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21625LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21626ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021627CLANGPATH!$CLANGPATH$ac_delim
21628CLANGXXPATH!$CLANGXXPATH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021629_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021631 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021632 break
21633 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021634 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21635echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21636 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021637 else
21638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021639 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021640done
21641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021642ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21643if test -n "$ac_eof"; then
21644 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21645 ac_eof=`expr $ac_eof + 1`
21646fi
21647
21648cat >>$CONFIG_STATUS <<_ACEOF
21649cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21650/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021651_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021652sed '
21653s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21654s/^/s,@/; s/!/@,|#_!!_#|/
21655:n
21656t n
21657s/'"$ac_delim"'$/,g/; t
21658s/$/\\/; p
21659N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21660' >>$CONFIG_STATUS <conf$$subs.sed
21661rm -f conf$$subs.sed
21662cat >>$CONFIG_STATUS <<_ACEOF
21663CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021664_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021665
21666
21667ac_delim='%!_!# '
21668for ac_last_try in false false false false false :; do
21669 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbardd464df2010-05-10 20:11:56 +000021670ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021671OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021672EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21673BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021674CXX!$CXX$ac_delim
21675CXXFLAGS!$CXXFLAGS$ac_delim
21676ac_ct_CXX!$ac_ct_CXX$ac_delim
21677NM!$NM$ac_delim
21678ifGNUmake!$ifGNUmake$ac_delim
21679LN_S!$LN_S$ac_delim
21680CMP!$CMP$ac_delim
21681CP!$CP$ac_delim
21682DATE!$DATE$ac_delim
21683FIND!$FIND$ac_delim
21684MKDIR!$MKDIR$ac_delim
21685MV!$MV$ac_delim
21686RANLIB!$RANLIB$ac_delim
21687AR!$AR$ac_delim
21688RM!$RM$ac_delim
21689SED!$SED$ac_delim
21690TAR!$TAR$ac_delim
21691BINPWD!$BINPWD$ac_delim
21692GRAPHVIZ!$GRAPHVIZ$ac_delim
21693DOT!$DOT$ac_delim
21694FDP!$FDP$ac_delim
21695NEATO!$NEATO$ac_delim
21696TWOPI!$TWOPI$ac_delim
21697CIRCO!$CIRCO$ac_delim
21698GV!$GV$ac_delim
21699DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021700XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021701PERL!$PERL$ac_delim
21702HAVE_PERL!$HAVE_PERL$ac_delim
21703INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21704INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21705INSTALL_DATA!$INSTALL_DATA$ac_delim
21706BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021707CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021708DOXYGEN!$DOXYGEN$ac_delim
21709GROFF!$GROFF$ac_delim
21710GZIP!$GZIP$ac_delim
21711POD2HTML!$POD2HTML$ac_delim
21712POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021713PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021714RUNTEST!$RUNTEST$ac_delim
21715TCLSH!$TCLSH$ac_delim
21716ZIP!$ZIP$ac_delim
21717OCAMLC!$OCAMLC$ac_delim
21718OCAMLOPT!$OCAMLOPT$ac_delim
21719OCAMLDEP!$OCAMLDEP$ac_delim
21720OCAMLDOC!$OCAMLDOC$ac_delim
21721GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021722HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021723INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21724INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21725CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21726CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21727LIBADD_DL!$LIBADD_DL$ac_delim
21728LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21729LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21730LLVMGCC!$LLVMGCC$ac_delim
21731LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021732LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021733NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21734NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21735USE_UDIS86!$USE_UDIS86$ac_delim
21736USE_OPROFILE!$USE_OPROFILE$ac_delim
21737HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21738HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21739MMAP_FILE!$MMAP_FILE$ac_delim
21740LLVMCC1!$LLVMCC1$ac_delim
21741LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21742LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021743LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21744SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021745SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021746LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21747LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21748LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21749LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21750LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21751LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21752LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21753LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21754LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21755LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21756BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21757ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21758OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21759ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21760RPATH!$RPATH$ac_delim
21761RDYNAMIC!$RDYNAMIC$ac_delim
21762LIBOBJS!$LIBOBJS$ac_delim
21763LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021764_ACEOF
21765
Dan Gohman48fd5a72010-09-27 16:28:34 +000021766 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021767 break
21768 elif $ac_last_try; then
21769 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21770echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21771 { (exit 1); exit 1; }; }
21772 else
21773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21774 fi
21775done
21776
21777ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21778if test -n "$ac_eof"; then
21779 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21780 ac_eof=`expr $ac_eof + 1`
21781fi
21782
21783cat >>$CONFIG_STATUS <<_ACEOF
21784cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21785/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21786_ACEOF
21787sed '
21788s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21789s/^/s,@/; s/!/@,|#_!!_#|/
21790:n
21791t n
21792s/'"$ac_delim"'$/,g/; t
21793s/$/\\/; p
21794N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21795' >>$CONFIG_STATUS <conf$$subs.sed
21796rm -f conf$$subs.sed
21797cat >>$CONFIG_STATUS <<_ACEOF
21798:end
21799s/|#_!!_#|//g
21800CEOF$ac_eof
21801_ACEOF
21802
21803
Reid Spencera773bd52006-08-04 18:18:08 +000021804# VPATH may cause trouble with some makes, so we remove $(srcdir),
21805# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21806# trailing colons and then remove the whole line if VPATH becomes empty
21807# (actually we leave an empty line to preserve line numbers).
21808if test "x$srcdir" = x.; then
21809 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21810s/:*\$(srcdir):*/:/
21811s/:*\${srcdir}:*/:/
21812s/:*@srcdir@:*/:/
21813s/^\([^=]*=[ ]*\):*/\1/
21814s/:*$//
21815s/^[^=]*=[ ]*$//
21816}'
21817fi
21818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021819cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021820fi # test -n "$CONFIG_FILES"
21821
Reid Spencera773bd52006-08-04 18:18:08 +000021822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021823for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021824do
21825 case $ac_tag in
21826 :[FHLC]) ac_mode=$ac_tag; continue;;
21827 esac
21828 case $ac_mode$ac_tag in
21829 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021830 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21831echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21832 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021833 :[FH]-) ac_tag=-:-;;
21834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21835 esac
21836 ac_save_IFS=$IFS
21837 IFS=:
21838 set x $ac_tag
21839 IFS=$ac_save_IFS
21840 shift
21841 ac_file=$1
21842 shift
21843
21844 case $ac_mode in
21845 :L) ac_source=$1;;
21846 :[FH])
21847 ac_file_inputs=
21848 for ac_f
21849 do
21850 case $ac_f in
21851 -) ac_f="$tmp/stdin";;
21852 *) # Look for the file first in the build tree, then in the source tree
21853 # (if the path is not absolute). The absolute path cannot be DOS-style,
21854 # because $ac_f cannot contain `:'.
21855 test -f "$ac_f" ||
21856 case $ac_f in
21857 [\\/$]*) false;;
21858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21859 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021860 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21861echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21862 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021863 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021864 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021865 done
21866
21867 # Let's still pretend it is `configure' which instantiates (i.e., don't
21868 # use $as_me), people would be surprised to read:
21869 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021870 configure_input="Generated from "`IFS=:
21871 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021872 if test x"$ac_file" != x-; then
21873 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021874 { echo "$as_me:$LINENO: creating $ac_file" >&5
21875echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021876 fi
21877
21878 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021879 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021880 esac
21881 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021882 esac
21883
Reid Spencera773bd52006-08-04 18:18:08 +000021884 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021885$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021886 X"$ac_file" : 'X\(//\)[^/]' \| \
21887 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021888 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021889echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21891 s//\1/
21892 q
21893 }
21894 /^X\(\/\/\)[^/].*/{
21895 s//\1/
21896 q
21897 }
21898 /^X\(\/\/\)$/{
21899 s//\1/
21900 q
21901 }
21902 /^X\(\/\).*/{
21903 s//\1/
21904 q
21905 }
21906 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021907 { as_dir="$ac_dir"
21908 case $as_dir in #(
21909 -*) as_dir=./$as_dir;;
21910 esac
21911 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21912 as_dirs=
21913 while :; do
21914 case $as_dir in #(
21915 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21916 *) as_qdir=$as_dir;;
21917 esac
21918 as_dirs="'$as_qdir' $as_dirs"
21919 as_dir=`$as_dirname -- "$as_dir" ||
21920$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21921 X"$as_dir" : 'X\(//\)[^/]' \| \
21922 X"$as_dir" : 'X\(//\)$' \| \
21923 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21924echo X"$as_dir" |
21925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21926 s//\1/
21927 q
21928 }
21929 /^X\(\/\/\)[^/].*/{
21930 s//\1/
21931 q
21932 }
21933 /^X\(\/\/\)$/{
21934 s//\1/
21935 q
21936 }
21937 /^X\(\/\).*/{
21938 s//\1/
21939 q
21940 }
21941 s/.*/./; q'`
21942 test -d "$as_dir" && break
21943 done
21944 test -z "$as_dirs" || eval "mkdir $as_dirs"
21945 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21946echo "$as_me: error: cannot create directory $as_dir" >&2;}
21947 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021948 ac_builddir=.
21949
Reid Spencera773bd52006-08-04 18:18:08 +000021950case "$ac_dir" in
21951.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21952*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021953 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021954 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021955 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021956 case $ac_top_builddir_sub in
21957 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21958 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21959 esac ;;
21960esac
21961ac_abs_top_builddir=$ac_pwd
21962ac_abs_builddir=$ac_pwd$ac_dir_suffix
21963# for backward compatibility:
21964ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021965
21966case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021967 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021968 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021969 ac_top_srcdir=$ac_top_builddir_sub
21970 ac_abs_top_srcdir=$ac_pwd ;;
21971 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021972 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021973 ac_top_srcdir=$srcdir
21974 ac_abs_top_srcdir=$srcdir ;;
21975 *) # Relative name.
21976 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21977 ac_top_srcdir=$ac_top_build_prefix$srcdir
21978 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021979esac
Reid Spencera773bd52006-08-04 18:18:08 +000021980ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021981
John Criswell7a73b802003-06-30 21:59:07 +000021982
Reid Spencera773bd52006-08-04 18:18:08 +000021983 case $ac_mode in
21984 :F)
21985 #
21986 # CONFIG_FILE
21987 #
John Criswell7a73b802003-06-30 21:59:07 +000021988
21989 case $INSTALL in
21990 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021991 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021992 esac
John Criswell7a73b802003-06-30 21:59:07 +000021993_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021994
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021995cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021996# If the template does not know about datarootdir, expand it.
21997# FIXME: This hack should be removed a few years after 2.60.
21998ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021999
22000case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022001 p
22002 q
22003}
22004/@datadir@/p
22005/@docdir@/p
22006/@infodir@/p
22007/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022008/@mandir@/p
22009' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022010*datarootdir*) ac_datarootdir_seen=yes;;
22011*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022012 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22013echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022014_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022015cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022016 ac_datarootdir_hack='
22017 s&@datadir@&$datadir&g
22018 s&@docdir@&$docdir&g
22019 s&@infodir@&$infodir&g
22020 s&@localedir@&$localedir&g
22021 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022022 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022023esac
22024_ACEOF
22025
22026# Neutralize VPATH when `$srcdir' = `.'.
22027# Shell code in configure.ac might set extrasub.
22028# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022029cat >>$CONFIG_STATUS <<_ACEOF
22030 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022031$extrasub
22032_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022033cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022034:t
22035/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022036s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022037s&@top_builddir@&$ac_top_builddir_sub&;t t
22038s&@srcdir@&$ac_srcdir&;t t
22039s&@abs_srcdir@&$ac_abs_srcdir&;t t
22040s&@top_srcdir@&$ac_top_srcdir&;t t
22041s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22042s&@builddir@&$ac_builddir&;t t
22043s&@abs_builddir@&$ac_abs_builddir&;t t
22044s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22045s&@INSTALL@&$ac_INSTALL&;t t
22046$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022047" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022048
Reid Spencera773bd52006-08-04 18:18:08 +000022049test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22050 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22051 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022052 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022053which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022054echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022055which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022056
Reid Spencera773bd52006-08-04 18:18:08 +000022057 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022058 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022059 -) cat "$tmp/out"; rm -f "$tmp/out";;
22060 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22061 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022062 ;;
22063 :H)
22064 #
22065 # CONFIG_HEADER
22066 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022067_ACEOF
22068
22069# Transform confdefs.h into a sed script `conftest.defines', that
22070# substitutes the proper values into config.h.in to produce config.h.
22071rm -f conftest.defines conftest.tail
22072# First, append a space to every undef/define line, to ease matching.
22073echo 's/$/ /' >conftest.defines
22074# Then, protect against being on the right side of a sed subst, or in
22075# an unquoted here document, in config.status. If some macros were
22076# called several times there might be several #defines for the same
22077# symbol, which is useless. But do not sort them, since the last
22078# AC_DEFINE must be honored.
22079ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22080# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22081# NAME is the cpp macro being defined, VALUE is the value it is being given.
22082# PARAMS is the parameter list in the macro definition--in most cases, it's
22083# just an empty string.
22084ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22085ac_dB='\\)[ (].*,\\1define\\2'
22086ac_dC=' '
22087ac_dD=' ,'
22088
22089uniq confdefs.h |
22090 sed -n '
22091 t rset
22092 :rset
22093 s/^[ ]*#[ ]*define[ ][ ]*//
22094 t ok
22095 d
22096 :ok
22097 s/[\\&,]/\\&/g
22098 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22099 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22100 ' >>conftest.defines
22101
22102# Remove the space that was appended to ease matching.
22103# Then replace #undef with comments. This is necessary, for
22104# example, in the case of _POSIX_SOURCE, which is predefined and required
22105# on some systems where configure will not decide to define it.
22106# (The regexp can be short, since the line contains either #define or #undef.)
22107echo 's/ $//
22108s,^[ #]*u.*,/* & */,' >>conftest.defines
22109
22110# Break up conftest.defines:
22111ac_max_sed_lines=50
22112
22113# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22114# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22115# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22116# et cetera.
22117ac_in='$ac_file_inputs'
22118ac_out='"$tmp/out1"'
22119ac_nxt='"$tmp/out2"'
22120
22121while :
22122do
22123 # Write a here document:
22124 cat >>$CONFIG_STATUS <<_ACEOF
22125 # First, check the format of the line:
22126 cat >"\$tmp/defines.sed" <<\\CEOF
22127/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22128/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22129b
22130:def
22131_ACEOF
22132 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22133 echo 'CEOF
22134 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22135 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22136 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22137 grep . conftest.tail >/dev/null || break
22138 rm -f conftest.defines
22139 mv conftest.tail conftest.defines
22140done
22141rm -f conftest.defines conftest.tail
22142
22143echo "ac_result=$ac_in" >>$CONFIG_STATUS
22144cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022145 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022146 echo "/* $configure_input */" >"$tmp/config.h"
22147 cat "$ac_result" >>"$tmp/config.h"
22148 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22149 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22150echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022151 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022152 rm -f $ac_file
22153 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022154 fi
22155 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022156 echo "/* $configure_input */"
22157 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022158 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022159 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022160 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022161
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022162 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22163echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022164 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022165 esac
John Criswell7a73b802003-06-30 21:59:07 +000022166
Reid Spencera773bd52006-08-04 18:18:08 +000022167
22168 case $ac_file$ac_mode in
22169 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022170 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022171 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022172 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022173 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022174 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022175 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022176 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022177 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022178 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022179 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022180 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022181 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022182 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022183 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022184 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022185 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022186 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022187 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022188 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022189 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022190 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022191 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022192 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022193 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022194 ${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 +000022195
22196 esac
22197done # for ac_tag
22198
John Criswell7a73b802003-06-30 21:59:07 +000022199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022200{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022201_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022202chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022203ac_clean_files=$ac_clean_files_save
22204
22205
22206# configure is writing to config.log, and then calls config.status.
22207# config.status does its own redirection, appending to config.log.
22208# Unfortunately, on DOS this fails, as config.log is still kept open
22209# by configure, so config.status won't be able to write to it; its
22210# output is simply discarded. So we exec the FD to /dev/null,
22211# effectively closing config.log, so it can be properly (re)opened and
22212# appended to by config.status. When coming back to configure, we
22213# need to make the FD available again.
22214if test "$no_create" != yes; then
22215 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022216 ac_config_status_args=
22217 test "$silent" = yes &&
22218 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022219 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022221 exec 5>>config.log
22222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22223 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022224 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022225fi
22226
John Criswell12399a12003-09-30 15:55:44 +000022227#
22228# CONFIG_SUBDIRS section.
22229#
22230if test "$no_recursion" != yes; then
22231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022232 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022233 ac_sub_configure_args=
22234 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022235 eval "set x $ac_configure_args"
22236 shift
22237 for ac_arg
22238 do
John Criswell12399a12003-09-30 15:55:44 +000022239 if test -n "$ac_prev"; then
22240 ac_prev=
22241 continue
22242 fi
22243 case $ac_arg in
22244 -cache-file | --cache-file | --cache-fil | --cache-fi \
22245 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22246 ac_prev=cache_file ;;
22247 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22248 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22249 | --c=*)
22250 ;;
22251 --config-cache | -C)
22252 ;;
22253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22254 ac_prev=srcdir ;;
22255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22256 ;;
22257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22258 ac_prev=prefix ;;
22259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22260 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022261 *)
22262 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022263 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022264 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022265 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022266 esac
22267 done
22268
22269 # Always prepend --prefix to ensure using the same prefix
22270 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022271 ac_arg="--prefix=$prefix"
22272 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022273 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022274 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022275 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022276
22277 ac_popdir=`pwd`
22278 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22279
22280 # Do not complain, so a configure script can configure whichever
22281 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022282 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022283
Reid Spencera773bd52006-08-04 18:18:08 +000022284 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022285 echo "$as_me:$LINENO: $ac_msg" >&5
22286 echo "$ac_msg" >&6
22287 { as_dir="$ac_dir"
22288 case $as_dir in #(
22289 -*) as_dir=./$as_dir;;
22290 esac
22291 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22292 as_dirs=
22293 while :; do
22294 case $as_dir in #(
22295 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22296 *) as_qdir=$as_dir;;
22297 esac
22298 as_dirs="'$as_qdir' $as_dirs"
22299 as_dir=`$as_dirname -- "$as_dir" ||
22300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22301 X"$as_dir" : 'X\(//\)[^/]' \| \
22302 X"$as_dir" : 'X\(//\)$' \| \
22303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22304echo X"$as_dir" |
22305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22306 s//\1/
22307 q
22308 }
22309 /^X\(\/\/\)[^/].*/{
22310 s//\1/
22311 q
22312 }
22313 /^X\(\/\/\)$/{
22314 s//\1/
22315 q
22316 }
22317 /^X\(\/\).*/{
22318 s//\1/
22319 q
22320 }
22321 s/.*/./; q'`
22322 test -d "$as_dir" && break
22323 done
22324 test -z "$as_dirs" || eval "mkdir $as_dirs"
22325 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22326echo "$as_me: error: cannot create directory $as_dir" >&2;}
22327 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022328 ac_builddir=.
22329
Reid Spencera773bd52006-08-04 18:18:08 +000022330case "$ac_dir" in
22331.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22332*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022333 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022334 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022335 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022336 case $ac_top_builddir_sub in
22337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22339 esac ;;
22340esac
22341ac_abs_top_builddir=$ac_pwd
22342ac_abs_builddir=$ac_pwd$ac_dir_suffix
22343# for backward compatibility:
22344ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022345
22346case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022347 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022348 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022349 ac_top_srcdir=$ac_top_builddir_sub
22350 ac_abs_top_srcdir=$ac_pwd ;;
22351 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022352 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022353 ac_top_srcdir=$srcdir
22354 ac_abs_top_srcdir=$srcdir ;;
22355 *) # Relative name.
22356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22357 ac_top_srcdir=$ac_top_build_prefix$srcdir
22358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022359esac
Reid Spencera773bd52006-08-04 18:18:08 +000022360ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022361
22362
Reid Spencera773bd52006-08-04 18:18:08 +000022363 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022364
22365 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022366 if test -f "$ac_srcdir/configure.gnu"; then
22367 ac_sub_configure=$ac_srcdir/configure.gnu
22368 elif test -f "$ac_srcdir/configure"; then
22369 ac_sub_configure=$ac_srcdir/configure
22370 elif test -f "$ac_srcdir/configure.in"; then
22371 # This should be Cygnus configure.
22372 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022373 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022374 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22375echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022376 ac_sub_configure=
22377 fi
22378
22379 # The recursion is here.
22380 if test -n "$ac_sub_configure"; then
22381 # Make the cache file name correct relative to the subdirectory.
22382 case $cache_file in
22383 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022384 *) # Relative name.
22385 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022386 esac
22387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022388 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22389echo "$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 +000022390 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022391 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22392 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022393 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22394echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22395 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022396 fi
22397
Reid Spencera773bd52006-08-04 18:18:08 +000022398 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022399 done
22400fi
22401