blob: bfd61dd5e3efa319fdc7908ee2c9610fe6563002 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00003# Generated by GNU Autoconf 2.60 for llvm 3.1svn.
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#
Benjamin Kramerb73cd942011-06-12 15:26:54 +000012# Copyright (c) 2003-2011 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-'
Bill Wendlingde7ec8b2011-10-15 02:09:17 +0000564PACKAGE_VERSION='3.1svn'
565PACKAGE_STRING='llvm 3.1svn'
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
Eric Christopherffee5722011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000685ENABLE_LIBCPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000686ENABLE_OPTIMIZED
687ENABLE_PROFILING
688DISABLE_ASSERTIONS
689ENABLE_EXPENSIVE_CHECKS
690EXPENSIVE_CHECKS
691DEBUG_RUNTIME
692DEBUG_SYMBOLS
693JIT
694TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000695ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000696ENABLE_DOXYGEN
697ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000698ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000699ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000700ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000701ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000702ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703TARGETS_TO_BUILD
704LLVM_ENUM_TARGETS
705LLVM_ENUM_ASM_PRINTERS
706LLVM_ENUM_ASM_PARSERS
707LLVM_ENUM_DISASSEMBLERS
708ENABLE_CBE_PRINTF_A
709OPTIMIZE_OPTION
710EXTRA_OPTIONS
Daniel Dunbared344d22011-06-16 22:30:41 +0000711EXTRA_LD_OPTIONS
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +0000712CLANG_SRC_ROOT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000713BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000714NM
715ifGNUmake
716LN_S
717CMP
718CP
719DATE
720FIND
721MKDIR
722MV
723RANLIB
724AR
725RM
726SED
727TAR
728BINPWD
729GRAPHVIZ
730DOT
731FDP
732NEATO
733TWOPI
734CIRCO
735GV
736DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000737XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000738PERL
739HAVE_PERL
740INSTALL_PROGRAM
741INSTALL_SCRIPT
742INSTALL_DATA
743BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000744CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000745DOXYGEN
746GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000747GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000748POD2HTML
749POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000750PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000751RUNTEST
752TCLSH
753ZIP
754OCAMLC
755OCAMLOPT
756OCAMLDEP
757OCAMLDOC
758GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000759HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000760INSTALL_LTDL_TRUE
761INSTALL_LTDL_FALSE
762CONVENIENCE_LTDL_TRUE
763CONVENIENCE_LTDL_FALSE
764LIBADD_DL
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
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000772SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000773SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774LLVM_PREFIX
775LLVM_BINDIR
776LLVM_LIBDIR
777LLVM_DATADIR
778LLVM_DOCSDIR
779LLVM_ETCDIR
780LLVM_INCLUDEDIR
781LLVM_INFODIR
782LLVM_MANDIR
783LLVM_CONFIGTIME
784BINDINGS_TO_BUILD
785ALL_BINDINGS
786OCAML_LIBDIR
787ENABLE_VISIBILITY_INLINES_HIDDEN
788RPATH
789RDYNAMIC
790LIBOBJS
791LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000792ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000793 ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000800CXX
801CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000802CCC
803CPP'
John Criswell0157f502010-03-19 21:31:39 +0000804ac_subdirs_all='projects/llvm-gcc
805projects/test-suite
806projects/llvm-test
807projects/poolalloc
808projects/llvm-poolalloc
809projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000810projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000811projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000812projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/llvm-java
814projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000815projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000816projects/llvm-kernel
817tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000844# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000853includedir='${prefix}/include'
854oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856infodir='${datarootdir}/info'
857htmldir='${docdir}'
858dvidir='${docdir}'
859pdfdir='${docdir}'
860psdir='${docdir}'
861libdir='${exec_prefix}/lib'
862localedir='${datarootdir}/locale'
863mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000864
865ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000866ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000867for ac_option
868do
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000871 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000872 ac_prev=
873 continue
874 fi
875
Reid Spencera773bd52006-08-04 18:18:08 +0000876 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
879 esac
John Criswell7a73b802003-06-30 21:59:07 +0000880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
Reid Spencera773bd52006-08-04 18:18:08 +0000883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
Reid Spencera773bd52006-08-04 18:18:08 +0000907 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000908 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000910 datadir=$ac_optarg ;;
911
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
John Criswell7a73b802003-06-30 21:59:07 +0000919 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000921 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000937
938 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000940 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
Reid Spencera773bd52006-08-04 18:18:08 +0000972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
John Criswell7a73b802003-06-30 21:59:07 +0000978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
Reid Spencera773bd52006-08-04 18:18:08 +00001002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
John Criswell7a73b802003-06-30 21:59:07 +00001007 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001008 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001009 ac_prev=localstatedir ;;
1010 -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 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
Reid Spencera773bd52006-08-04 18:18:08 +00001076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
John Criswell7a73b802003-06-30 21:59:07 +00001086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001137 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001143
1144 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001146 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001182 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191 ;;
1192
1193 esac
1194done
1195
1196if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001200fi
1201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001203for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001207do
Reid Spencera773bd52006-08-04 18:18:08 +00001208 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001209 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001212 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001215done
1216
1217# There might be people who depend on the old broken behavior: `$host'
1218# used to hold the argument of --host etc.
1219# FIXME: To remove some day.
1220build=$build_alias
1221host=$host_alias
1222target=$target_alias
1223
1224# FIXME: To remove some day.
1225if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233fi
1234
1235ac_tool_prefix=
1236test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238test "$silent" = yes && exec 6>/dev/null
1239
1240
Reid Spencera773bd52006-08-04 18:18:08 +00001241ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242ac_ls_di=`ls -di .` &&
1243ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001249
1250
John Criswell7a73b802003-06-30 21:59:07 +00001251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001254 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001255 ac_confdir=`$as_dirname -- "$0" ||
1256$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001278 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001279 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001280 srcdir=..
1281 fi
1282else
1283 ac_srcdir_defaulted=no
1284fi
Reid Spencera773bd52006-08-04 18:18:08 +00001285if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001289fi
Reid Spencera773bd52006-08-04 18:18:08 +00001290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001294 pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 srcdir=.
1298fi
1299# Remove unnecessary trailing slashes from srcdir.
1300# Double slashes in file names in object file debugging info
1301# mess up M-x gdb in Emacs.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310done
John Criswell7a73b802003-06-30 21:59:07 +00001311
1312#
1313# Report the --help message.
1314#
1315if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1318 cat <<_ACEOF
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001319\`configure' configures llvm 3.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001320
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE. See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338
John Criswell7a73b802003-06-30 21:59:07 +00001339Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001341 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001372_ACEOF
1373
1374 cat <<\_ACEOF
1375
1376System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1380_ACEOF
1381fi
1382
1383if test -n "$ac_init_help"; then
1384 case $ac_init_help in
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001385 short | recursive ) echo "Configuration of llvm 3.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001386 esac
1387 cat <<\_ACEOF
1388
1389Optional Features:
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001392 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001393 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001394 --enable-optimized Compile with optimizations enabled (default is NO)
1395 --enable-profiling Compile with profiling enabled (default is NO)
1396 --enable-assertions Compile with assertion checks enabled (default is
1397 YES)
David Greenea696d242007-06-28 19:36:08 +00001398 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001399 Compile with expensive debug checks enabled (default
1400 is NO)
1401 --enable-debug-runtime Build runtime libs with debug symbols (default is
1402 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001403 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1404 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001405 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001406 --enable-docs Build documents (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)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001409 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001410 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001411 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001412 --enable-shared Build a shared library and link tools against it
1413 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001414 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001415 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001416 --enable-timestamps Enable embedding timestamp information in build
1417 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001418 --enable-targets Build specific host targets: all or
1419 target1,target2,... Valid targets are: host, x86,
Eric Christopherbee515f2011-11-11 22:51:42 +00001420 x86_64, sparc, powerpc, arm, mips, spu, xcore,
1421 msp430, ptx, cbe, and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001422 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1423 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001424 --enable-bindings Build specific language bindings:
1425 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001426 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001427 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001428
1429Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001432 --with-optimize-option Select the compiler options to use for optimized
1433 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001434 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001435 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001436 --with-ocaml-libdir Specify install location for ocaml bindings (default
1437 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001438 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001439 --with-clang-resource-dir
1440 Relative directory from the Clang binary for
1441 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001442 --with-c-include-dirs Colon separated list of directories clang will
1443 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001444 --with-cxx-include-root Directory with the libstdc++ headers.
1445 --with-cxx-include-arch Architecture of the libstdc++ headers.
1446 --with-cxx-include-32bit-dir
1447 32 bit multilib dir.
1448 --with-cxx-include-64bit-dir
1449 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001450 --with-binutils-include Specify path to binutils/include/ containing
1451 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001452 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001453 submitted (default=http://llvm.org/bugs/)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001454 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001455 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001456 --with-oprofile=<prefix>
1457 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001458
1459Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001460 CC C compiler command
1461 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001465 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001466 CXX C++ compiler command
1467 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001468 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
1473Report bugs to <llvmbugs@cs.uiuc.edu>.
1474_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001475ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001481 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001482 ac_builddir=.
1483
Reid Spencera773bd52006-08-04 18:18:08 +00001484case "$ac_dir" in
1485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001488 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494esac
1495ac_abs_top_builddir=$ac_pwd
1496ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497# for backward compatibility:
1498ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001499
1500case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001501 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001502 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001506 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001513esac
Reid Spencera773bd52006-08-04 18:18:08 +00001514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001515
Reid Spencera773bd52006-08-04 18:18:08 +00001516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001524 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001525 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001526 fi || ac_status=$?
1527 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001528 done
1529fi
1530
Reid Spencera773bd52006-08-04 18:18:08 +00001531test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001532if $ac_init_version; then
1533 cat <<\_ACEOF
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001534llvm configure 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001535generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001536
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15382002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001539This configure script is free software; the Free Software Foundation
1540gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001541
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001542Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001543_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001544 exit
John Criswell7a73b802003-06-30 21:59:07 +00001545fi
Reid Spencera773bd52006-08-04 18:18:08 +00001546cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001547This file contains any messages produced by compilers while
1548running configure, to aid debugging if configure makes a mistake.
1549
Bill Wendlingde7ec8b2011-10-15 02:09:17 +00001550It was created by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001551generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001552
1553 $ $0 $@
1554
1555_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001556exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001557{
1558cat <<_ASUNAME
1559## --------- ##
1560## Platform. ##
1561## --------- ##
1562
1563hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568
1569/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1571
1572/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1573/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1574/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001575/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001576/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1577/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1578/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1579
1580_ASUNAME
1581
1582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583for as_dir in $PATH
1584do
1585 IFS=$as_save_IFS
1586 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001587 echo "PATH: $as_dir"
1588done
Reid Spencera773bd52006-08-04 18:18:08 +00001589IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001590
1591} >&5
1592
1593cat >&5 <<_ACEOF
1594
1595
1596## ----------- ##
1597## Core tests. ##
1598## ----------- ##
1599
1600_ACEOF
1601
1602
1603# Keep a trace of the command line.
1604# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001605# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001606# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001607# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001608ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001609ac_configure_args0=
1610ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001611ac_must_keep_next=false
1612for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001613do
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 for ac_arg
1615 do
1616 case $ac_arg in
1617 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619 | -silent | --silent | --silen | --sile | --sil)
1620 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001621 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001622 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 esac
1624 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001625 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001629 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001631 case $ac_arg in
1632 *=* | --config-cache | -C | -disable-* | --disable-* \
1633 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635 | -with-* | --with-* | -without-* | --without-* | --x)
1636 case "$ac_configure_args0 " in
1637 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638 esac
1639 ;;
1640 -* ) ac_must_keep_next=true ;;
1641 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001642 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001643 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 ;;
1645 esac
1646 done
John Criswell7a73b802003-06-30 21:59:07 +00001647done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001648$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649$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 +00001650
1651# When interrupted or exit'd, cleanup temporary files, and complete
1652# config.log. We remove comments because anyway the quotes in there
1653# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001654# WARNING: Use '\'' to represent an apostrophe within the trap.
1655# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001656trap 'exit_status=$?
1657 # Save into config.log some information that might help in debugging.
1658 {
1659 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001660
John Criswell7a73b802003-06-30 21:59:07 +00001661 cat <<\_ASBOX
1662## ---------------- ##
1663## Cache variables. ##
1664## ---------------- ##
1665_ASBOX
1666 echo
1667 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001668(
1669 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670 eval ac_val=\$$ac_var
1671 case $ac_val in #(
1672 *${as_nl}*)
1673 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001674 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001676 esac
1677 case $ac_var in #(
1678 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001679 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001680 esac ;;
1681 esac
1682 done
John Criswell7a73b802003-06-30 21:59:07 +00001683 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001684 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001686 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001687 "s/'\''/'\''\\\\'\'''\''/g;
1688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001690 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001692 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001693 esac |
1694 sort
1695)
John Criswell7a73b802003-06-30 21:59:07 +00001696 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001697
1698 cat <<\_ASBOX
1699## ----------------- ##
1700## Output variables. ##
1701## ----------------- ##
1702_ASBOX
1703 echo
1704 for ac_var in $ac_subst_vars
1705 do
Reid Spencera773bd52006-08-04 18:18:08 +00001706 eval ac_val=\$$ac_var
1707 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001708 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001709 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001710 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001711 done | sort
1712 echo
1713
1714 if test -n "$ac_subst_files"; then
1715 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001716## ------------------- ##
1717## File substitutions. ##
1718## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001719_ASBOX
1720 echo
1721 for ac_var in $ac_subst_files
1722 do
Reid Spencera773bd52006-08-04 18:18:08 +00001723 eval ac_val=\$$ac_var
1724 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001726 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 done | sort
1729 echo
1730 fi
1731
John Criswell7a73b802003-06-30 21:59:07 +00001732 if test -s confdefs.h; then
1733 cat <<\_ASBOX
1734## ----------- ##
1735## confdefs.h. ##
1736## ----------- ##
1737_ASBOX
1738 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001739 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001740 echo
1741 fi
1742 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001743 echo "$as_me: caught signal $ac_signal"
1744 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001745 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001746 rm -f core *.core core.conftest.* &&
1747 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001748 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001749' 0
John Criswell7a73b802003-06-30 21:59:07 +00001750for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001751 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001752done
1753ac_signal=0
1754
1755# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001756rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001757
1758# Predefined preprocessor variables.
1759
1760cat >>confdefs.h <<_ACEOF
1761#define PACKAGE_NAME "$PACKAGE_NAME"
1762_ACEOF
1763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001764
John Criswell7a73b802003-06-30 21:59:07 +00001765cat >>confdefs.h <<_ACEOF
1766#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767_ACEOF
1768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001769
John Criswell7a73b802003-06-30 21:59:07 +00001770cat >>confdefs.h <<_ACEOF
1771#define PACKAGE_VERSION "$PACKAGE_VERSION"
1772_ACEOF
1773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001774
John Criswell7a73b802003-06-30 21:59:07 +00001775cat >>confdefs.h <<_ACEOF
1776#define PACKAGE_STRING "$PACKAGE_STRING"
1777_ACEOF
1778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001779
John Criswell7a73b802003-06-30 21:59:07 +00001780cat >>confdefs.h <<_ACEOF
1781#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782_ACEOF
1783
1784
1785# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001787if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001789elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001791else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$ac_default_prefix/share/config.site" \
1793 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001794fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795shift
1796for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001797do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798 if test -r "$ac_site_file"; then
1799 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001801 sed 's/^/| /' "$ac_site_file" >&5
1802 . "$ac_site_file"
1803 fi
1804done
1805
1806if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001807 # Some versions of bash will fail to source /dev/null (special
1808 # files actually), so we avoid doing that.
1809 if test -f "$cache_file"; then
1810 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001812 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001813 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001815 esac
1816 fi
1817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001818 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001820 >$cache_file
1821fi
1822
1823# Check that the precious variables saved in the cache have kept the same
1824# value.
1825ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001826for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001827 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001829 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001831 case $ac_old_set,$ac_new_set in
1832 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001833 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001835 ac_cache_corrupted=: ;;
1836 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001837 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001839 ac_cache_corrupted=: ;;
1840 ,);;
1841 *)
1842 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001843 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1846echo "$as_me: former value: $ac_old_val" >&2;}
1847 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1848echo "$as_me: current value: $ac_new_val" >&2;}
1849 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001850 fi;;
1851 esac
1852 # Pass precious variables to config.status.
1853 if test "$ac_new_set" = set; then
1854 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001855 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001856 *) ac_arg=$ac_var=$ac_new_val ;;
1857 esac
1858 case " $ac_configure_args " in
1859 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001860 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001861 esac
1862 fi
1863done
1864if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001865 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001870fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
Reid Spencera773bd52006-08-04 18:18:08 +00001895
John Criswell7a73b802003-06-30 21:59:07 +00001896ac_ext=c
1897ac_cpp='$CPP $CPPFLAGS'
1898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901
1902
1903
Benjamin Kramerb73cd942011-06-12 15:26:54 +00001904LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001905
1906
1907
1908
1909
1910
1911
John Criswell7a73b802003-06-30 21:59:07 +00001912ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001913for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001914 if test -f "$ac_dir/install-sh"; then
1915 ac_aux_dir=$ac_dir
1916 ac_install_sh="$ac_aux_dir/install-sh -c"
1917 break
1918 elif test -f "$ac_dir/install.sh"; then
1919 ac_aux_dir=$ac_dir
1920 ac_install_sh="$ac_aux_dir/install.sh -c"
1921 break
1922 elif test -f "$ac_dir/shtool"; then
1923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/shtool install -c"
1925 break
1926 fi
John Criswell7a73b802003-06-30 21:59:07 +00001927done
1928if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001929 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1930echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1931 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001932fi
Reid Spencera773bd52006-08-04 18:18:08 +00001933
1934# These three variables are undocumented and unsupported,
1935# and are intended to be withdrawn in a future Autoconf release.
1936# They can cause serious problems if a builder's source tree is in a directory
1937# whose full name contains unusual characters.
1938ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1939ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1940ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1941
John Criswell7a73b802003-06-30 21:59:07 +00001942
John Criswell392aaa32003-07-22 19:18:09 +00001943
Reid Spencer2706f8c2004-09-19 23:53:36 +00001944if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001945 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001946 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1947echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1948 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001949 fi
John Criswell93e1c722003-09-15 17:04:06 +00001950fi
1951
Nick Lewycky83fc4472009-09-29 05:48:51 +00001952ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001953ac_cpp='$CPP $CPPFLAGS'
1954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1956ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001957if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001958 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001959 do
1960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1961set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001962{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1964if test "${ac_cv_prog_CC+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001966else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001967 if test -n "$CC"; then
1968 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001969else
1970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971for as_dir in $PATH
1972do
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 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 +00001977 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001979 break 2
1980 fi
1981done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001982done
Reid Spencera773bd52006-08-04 18:18:08 +00001983IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001984
1985fi
1986fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001987CC=$ac_cv_prog_CC
1988if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001989 { echo "$as_me:$LINENO: result: $CC" >&5
1990echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001991else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001992 { echo "$as_me:$LINENO: result: no" >&5
1993echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00001994fi
1995
Reid Spencera773bd52006-08-04 18:18:08 +00001996
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001997 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00001998 done
1999fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002000if test -z "$CC"; then
2001 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002002 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002003do
2004 # Extract the first word of "$ac_prog", so it can be a program name with args.
2005set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002006{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2008if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002010else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002011 if test -n "$ac_ct_CC"; then
2012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002013else
2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015for as_dir in $PATH
2016do
2017 IFS=$as_save_IFS
2018 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 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 +00002021 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002023 break 2
2024 fi
2025done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002026done
Reid Spencera773bd52006-08-04 18:18:08 +00002027IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002028
2029fi
2030fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002031ac_ct_CC=$ac_cv_prog_ac_ct_CC
2032if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002033 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2034echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002035else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002036 { echo "$as_me:$LINENO: result: no" >&5
2037echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002038fi
2039
Reid Spencera773bd52006-08-04 18:18:08 +00002040
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002041 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002042done
John Criswell7a73b802003-06-30 21:59:07 +00002043
Reid Spencera773bd52006-08-04 18:18:08 +00002044 if test "x$ac_ct_CC" = x; then
2045 CC=""
2046 else
2047 case $cross_compiling:$ac_tool_warned in
2048yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002049{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2050whose name does not start with the host triplet. If you think this
2051configuration is useful to you, please write to autoconf@gnu.org." >&5
2052echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2053whose name does not start with the host triplet. If you think this
2054configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002055ac_tool_warned=yes ;;
2056esac
2057 CC=$ac_ct_CC
2058 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002059fi
2060
John Criswell7a73b802003-06-30 21:59:07 +00002061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002062test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2063See \`config.log' for more details." >&5
2064echo "$as_me: error: no acceptable C compiler found in \$PATH
2065See \`config.log' for more details." >&2;}
2066 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002067
John Criswell7a73b802003-06-30 21:59:07 +00002068# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002069echo "$as_me:$LINENO: checking for C compiler version" >&5
2070ac_compiler=`set X $ac_compile; echo $2`
2071{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002072case "(($ac_try" in
2073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074 *) ac_try_echo=$ac_try;;
2075esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2077 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002078 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }
2081{ (ac_try="$ac_compiler -v >&5"
2082case "(($ac_try" in
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2085esac
2086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2087 (eval "$ac_compiler -v >&5") 2>&5
2088 ac_status=$?
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }
2091{ (ac_try="$ac_compiler -V >&5"
2092case "(($ac_try" in
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2095esac
2096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097 (eval "$ac_compiler -V >&5") 2>&5
2098 ac_status=$?
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002102cat >conftest.$ac_ext <<_ACEOF
2103/* confdefs.h. */
2104_ACEOF
2105cat confdefs.h >>conftest.$ac_ext
2106cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002107/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002108
John Criswell7a73b802003-06-30 21:59:07 +00002109int
2110main ()
2111{
2112
2113 ;
2114 return 0;
2115}
2116_ACEOF
2117ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002118ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002119# Try to create an executable without -o first, disregard a.out.
2120# It will help us diagnose broken compilers, and finding out an intuition
2121# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002122{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2123echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2124ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2125#
2126# List of possible output files, starting from the most likely.
2127# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2128# only as a last resort. b.out is created by i960 compilers.
2129ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2130#
2131# The IRIX 6 linker writes into existing files which may not be
2132# executable, retaining their permissions. Remove them first so a
2133# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002134ac_rmfiles=
2135for ac_file in $ac_files
2136do
2137 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002139 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2140 esac
2141done
2142rm -f $ac_rmfiles
2143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002144if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002145case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002150 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002151 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002154 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2155# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2156# in a Makefile. We should not override ac_cv_exeext if it was cached,
2157# so that the user can short-circuit this test for compilers unknown to
2158# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002159for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002160do
2161 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002162 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002164 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002165 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002166 # We found the default executable, but exeext='' is most
2167 # certainly right.
2168 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002169 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002170 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002171 then :; else
2172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173 fi
2174 # We set ac_cv_exeext here because the later test for it is not
2175 # safe: cross compilers may not add the suffix if given an `-o'
2176 # argument, so we may need to know it at that point already.
2177 # Even if this section looks crufty: it has the advantage of
2178 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002179 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002180 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002181 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002182 esac
2183done
Reid Spencera773bd52006-08-04 18:18:08 +00002184test "$ac_cv_exeext" = no && ac_cv_exeext=
2185
John Criswell7a73b802003-06-30 21:59:07 +00002186else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002187 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002188sed 's/^/| /' conftest.$ac_ext >&5
2189
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002190{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2191See \`config.log' for more details." >&5
2192echo "$as_me: error: C compiler cannot create executables
2193See \`config.log' for more details." >&2;}
2194 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002195fi
John Criswell7a73b802003-06-30 21:59:07 +00002196
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002197ac_exeext=$ac_cv_exeext
2198{ echo "$as_me:$LINENO: result: $ac_file" >&5
2199echo "${ECHO_T}$ac_file" >&6; }
2200
2201# Check that the compiler produces executables we can run. If not, either
2202# the compiler is broken, or we cross compile.
2203{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2204echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2205# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2206# If not cross compiling, check that we can run a simple program.
2207if test "$cross_compiling" != yes; then
2208 if { ac_try='./$ac_file'
2209 { (case "(($ac_try" in
2210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211 *) ac_try_echo=$ac_try;;
2212esac
2213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2214 (eval "$ac_try") 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; }; then
2218 cross_compiling=no
2219 else
2220 if test "$cross_compiling" = maybe; then
2221 cross_compiling=yes
2222 else
2223 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2224If you meant to cross compile, use \`--host'.
2225See \`config.log' for more details." >&5
2226echo "$as_me: error: cannot run C compiled programs.
2227If you meant to cross compile, use \`--host'.
2228See \`config.log' for more details." >&2;}
2229 { (exit 1); exit 1; }; }
2230 fi
2231 fi
2232fi
2233{ echo "$as_me:$LINENO: result: yes" >&5
2234echo "${ECHO_T}yes" >&6; }
2235
2236rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002237ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002238# Check that the compiler produces executables we can run. If not, either
2239# the compiler is broken, or we cross compile.
2240{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2241echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2242{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2243echo "${ECHO_T}$cross_compiling" >&6; }
2244
2245{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2246echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2247if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002248case "(($ac_try" in
2249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250 *) ac_try_echo=$ac_try;;
2251esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002253 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002254 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002257 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2258# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2259# work properly (i.e., refer to `conftest.exe'), while it won't with
2260# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002261for ac_file in conftest.exe conftest conftest.*; do
2262 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002263 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002265 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002266 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002267 * ) break;;
2268 esac
2269done
2270else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002271 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2272See \`config.log' for more details." >&5
2273echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2274See \`config.log' for more details." >&2;}
2275 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002277
2278rm -f conftest$ac_cv_exeext
2279{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2280echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002281
2282rm -f conftest.$ac_ext
2283EXEEXT=$ac_cv_exeext
2284ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002285{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2286echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2287if test "${ac_cv_objext+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002289else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002290 cat >conftest.$ac_ext <<_ACEOF
2291/* confdefs.h. */
2292_ACEOF
2293cat confdefs.h >>conftest.$ac_ext
2294cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002295/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002296
John Criswell7a73b802003-06-30 21:59:07 +00002297int
2298main ()
2299{
2300
2301 ;
2302 return 0;
2303}
2304_ACEOF
2305rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002306if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002307case "(($ac_try" in
2308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309 *) ac_try_echo=$ac_try;;
2310esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002312 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002313 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002316 for ac_file in conftest.o conftest.obj conftest.*; do
2317 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002318 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002320 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2321 break;;
2322 esac
2323done
2324else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002325 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002326sed 's/^/| /' conftest.$ac_ext >&5
2327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002328{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2329See \`config.log' for more details." >&5
2330echo "$as_me: error: cannot compute suffix of object files: cannot compile
2331See \`config.log' for more details." >&2;}
2332 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002334
John Criswell7a73b802003-06-30 21:59:07 +00002335rm -f conftest.$ac_cv_objext conftest.$ac_ext
2336fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002337{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2338echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002339OBJEXT=$ac_cv_objext
2340ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002341{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2342echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2343if test "${ac_cv_c_compiler_gnu+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002345else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002346 cat >conftest.$ac_ext <<_ACEOF
2347/* confdefs.h. */
2348_ACEOF
2349cat confdefs.h >>conftest.$ac_ext
2350cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002351/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002352
John Criswell7a73b802003-06-30 21:59:07 +00002353int
2354main ()
2355{
2356#ifndef __GNUC__
2357 choke me
2358#endif
2359
2360 ;
2361 return 0;
2362}
2363_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002364rm -f conftest.$ac_objext
2365if { (ac_try="$ac_compile"
2366case "(($ac_try" in
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2369esac
2370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2371 (eval "$ac_compile") 2>conftest.er1
2372 ac_status=$?
2373 grep -v '^ *+' conftest.er1 >conftest.err
2374 rm -f conftest.er1
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2379 { (case "(($ac_try" in
2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2382esac
2383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2384 (eval "$ac_try") 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; } &&
2388 { ac_try='test -s conftest.$ac_objext'
2389 { (case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2392esac
2393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394 (eval "$ac_try") 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002398 ac_compiler_gnu=yes
2399else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002400 echo "$as_me: failed program was:" >&5
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002405
Reid Spencera773bd52006-08-04 18:18:08 +00002406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002407ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002408
2409fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002410{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2411echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2412GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002413ac_test_CFLAGS=${CFLAGS+set}
2414ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002415{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2416echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2417if test "${ac_cv_prog_cc_g+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002419else
Reid Spencera773bd52006-08-04 18:18:08 +00002420 ac_save_c_werror_flag=$ac_c_werror_flag
2421 ac_c_werror_flag=yes
2422 ac_cv_prog_cc_g=no
2423 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002424 cat >conftest.$ac_ext <<_ACEOF
2425/* confdefs.h. */
2426_ACEOF
2427cat confdefs.h >>conftest.$ac_ext
2428cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002429/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002430
John Criswell7a73b802003-06-30 21:59:07 +00002431int
2432main ()
2433{
2434
2435 ;
2436 return 0;
2437}
2438_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002439rm -f conftest.$ac_objext
2440if { (ac_try="$ac_compile"
2441case "(($ac_try" in
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2444esac
2445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446 (eval "$ac_compile") 2>conftest.er1
2447 ac_status=$?
2448 grep -v '^ *+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
2453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2454 { (case "(($ac_try" in
2455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456 *) ac_try_echo=$ac_try;;
2457esac
2458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2459 (eval "$ac_try") 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try='test -s conftest.$ac_objext'
2464 { (case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2467esac
2468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469 (eval "$ac_try") 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002474else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002475 echo "$as_me: failed program was:" >&5
2476sed 's/^/| /' conftest.$ac_ext >&5
2477
2478 CFLAGS=""
2479 cat >conftest.$ac_ext <<_ACEOF
2480/* confdefs.h. */
2481_ACEOF
2482cat confdefs.h >>conftest.$ac_ext
2483cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002484/* end confdefs.h. */
2485
2486int
2487main ()
2488{
2489
2490 ;
2491 return 0;
2492}
2493_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002494rm -f conftest.$ac_objext
2495if { (ac_try="$ac_compile"
2496case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2499esac
2500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_compile") 2>conftest.er1
2502 ac_status=$?
2503 grep -v '^ *+' conftest.er1 >conftest.err
2504 rm -f conftest.er1
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2509 { (case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2512esac
2513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514 (eval "$ac_try") 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; } &&
2518 { ac_try='test -s conftest.$ac_objext'
2519 { (case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2522esac
2523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_try") 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 :
Torok Edwin871384f2010-01-26 08:50:50 +00002529else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002530 echo "$as_me: failed program was:" >&5
2531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002534 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002535 cat >conftest.$ac_ext <<_ACEOF
2536/* confdefs.h. */
2537_ACEOF
2538cat confdefs.h >>conftest.$ac_ext
2539cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002540/* end confdefs.h. */
2541
2542int
2543main ()
2544{
2545
2546 ;
2547 return 0;
2548}
2549_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002550rm -f conftest.$ac_objext
2551if { (ac_try="$ac_compile"
2552case "(($ac_try" in
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2555esac
2556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557 (eval "$ac_compile") 2>conftest.er1
2558 ac_status=$?
2559 grep -v '^ *+' conftest.er1 >conftest.err
2560 rm -f conftest.er1
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2565 { (case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2568esac
2569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570 (eval "$ac_try") 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; } &&
2574 { ac_try='test -s conftest.$ac_objext'
2575 { (case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578esac
2579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_try") 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002584 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002585else
2586 echo "$as_me: failed program was:" >&5
2587sed 's/^/| /' conftest.$ac_ext >&5
2588
2589
John Criswell7a73b802003-06-30 21:59:07 +00002590fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002591
Reid Spencera773bd52006-08-04 18:18:08 +00002592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002593fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002594
Reid Spencera773bd52006-08-04 18:18:08 +00002595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002597
Reid Spencera773bd52006-08-04 18:18:08 +00002598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 ac_c_werror_flag=$ac_save_c_werror_flag
2600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002601{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2602echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002603if test "$ac_test_CFLAGS" = set; then
2604 CFLAGS=$ac_save_CFLAGS
2605elif test $ac_cv_prog_cc_g = yes; then
2606 if test "$GCC" = yes; then
2607 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002608 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002609 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002610 fi
2611else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002612 if test "$GCC" = yes; then
2613 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002614 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002615 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002616 fi
2617fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002618{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2619echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2620if test "${ac_cv_prog_cc_c89+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622else
Reid Spencera773bd52006-08-04 18:18:08 +00002623 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002625cat >conftest.$ac_ext <<_ACEOF
2626/* confdefs.h. */
2627_ACEOF
2628cat confdefs.h >>conftest.$ac_ext
2629cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630/* end confdefs.h. */
2631#include <stdarg.h>
2632#include <stdio.h>
2633#include <sys/types.h>
2634#include <sys/stat.h>
2635/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2636struct buf { int x; };
2637FILE * (*rcsopen) (struct buf *, struct stat *, int);
2638static char *e (p, i)
2639 char **p;
2640 int i;
2641{
2642 return p[i];
2643}
2644static char *f (char * (*g) (char **, int), char **p, ...)
2645{
2646 char *s;
2647 va_list v;
2648 va_start (v,p);
2649 s = g (p, va_arg (v,int));
2650 va_end (v);
2651 return s;
2652}
2653
2654/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2655 function prototypes and stuff, but not '\xHH' hex character constants.
2656 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002657 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2659 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002660 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002661int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2662
Reid Spencera773bd52006-08-04 18:18:08 +00002663/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2664 inside strings and character constants. */
2665#define FOO(x) 'x'
2666int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2667
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002668int test (int i, double x);
2669struct s1 {int (*f) (int a);};
2670struct s2 {int (*f) (double a);};
2671int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2672int argc;
2673char **argv;
2674int
2675main ()
2676{
2677return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2678 ;
2679 return 0;
2680}
2681_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002682for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2683 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002684do
2685 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002686 rm -f conftest.$ac_objext
2687if { (ac_try="$ac_compile"
2688case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2691esac
2692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693 (eval "$ac_compile") 2>conftest.er1
2694 ac_status=$?
2695 grep -v '^ *+' conftest.er1 >conftest.err
2696 rm -f conftest.er1
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2701 { (case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704esac
2705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_try") 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714esac
2715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_try") 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002720 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002721else
2722 echo "$as_me: failed program was:" >&5
2723sed 's/^/| /' conftest.$ac_ext >&5
2724
2725
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002726fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002727
Reid Spencera773bd52006-08-04 18:18:08 +00002728rm -f core conftest.err conftest.$ac_objext
2729 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002730done
Reid Spencera773bd52006-08-04 18:18:08 +00002731rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002732CC=$ac_save_CC
2733
2734fi
Reid Spencera773bd52006-08-04 18:18:08 +00002735# AC_CACHE_VAL
2736case "x$ac_cv_prog_cc_c89" in
2737 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002738 { echo "$as_me:$LINENO: result: none needed" >&5
2739echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002740 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002741 { echo "$as_me:$LINENO: result: unsupported" >&5
2742echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002743 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002744 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002745 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2746echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002747esac
2748
John Criswell0c38eaf2003-09-10 15:17:25 +00002749
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002750ac_ext=c
2751ac_cpp='$CPP $CPPFLAGS'
2752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755
Eric Christopherffee5722011-09-16 20:36:25 +00002756ac_ext=cpp
2757ac_cpp='$CXXCPP $CPPFLAGS'
2758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2761if test -z "$CXX"; then
2762 if test -n "$CCC"; then
2763 CXX=$CCC
2764 else
2765 if test -n "$ac_tool_prefix"; then
2766 for ac_prog in clang++ llvm-g++ g++
2767 do
2768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2769set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2772if test "${ac_cv_prog_CXX+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2774else
2775 if test -n "$CXX"; then
2776 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789done
2790done
2791IFS=$as_save_IFS
2792
2793fi
2794fi
2795CXX=$ac_cv_prog_CXX
2796if test -n "$CXX"; then
2797 { echo "$as_me:$LINENO: result: $CXX" >&5
2798echo "${ECHO_T}$CXX" >&6; }
2799else
2800 { echo "$as_me:$LINENO: result: no" >&5
2801echo "${ECHO_T}no" >&6; }
2802fi
2803
2804
2805 test -n "$CXX" && break
2806 done
2807fi
2808if test -z "$CXX"; then
2809 ac_ct_CXX=$CXX
2810 for ac_prog in clang++ llvm-g++ g++
2811do
2812 # Extract the first word of "$ac_prog", so it can be a program name with args.
2813set dummy $ac_prog; ac_word=$2
2814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2816if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else
2819 if test -n "$ac_ct_CXX"; then
2820 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2821else
2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2829 ac_cv_prog_ac_ct_CXX="$ac_prog"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833done
2834done
2835IFS=$as_save_IFS
2836
2837fi
2838fi
2839ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2840if test -n "$ac_ct_CXX"; then
2841 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2842echo "${ECHO_T}$ac_ct_CXX" >&6; }
2843else
2844 { echo "$as_me:$LINENO: result: no" >&5
2845echo "${ECHO_T}no" >&6; }
2846fi
2847
2848
2849 test -n "$ac_ct_CXX" && break
2850done
2851
2852 if test "x$ac_ct_CXX" = x; then
2853 CXX="g++"
2854 else
2855 case $cross_compiling:$ac_tool_warned in
2856yes:)
2857{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2858whose name does not start with the host triplet. If you think this
2859configuration is useful to you, please write to autoconf@gnu.org." >&5
2860echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2861whose name does not start with the host triplet. If you think this
2862configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2863ac_tool_warned=yes ;;
2864esac
2865 CXX=$ac_ct_CXX
2866 fi
2867fi
2868
2869 fi
2870fi
2871# Provide some information about the compiler.
2872echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2873ac_compiler=`set X $ac_compile; echo $2`
2874{ (ac_try="$ac_compiler --version >&5"
2875case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2878esac
2879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880 (eval "$ac_compiler --version >&5") 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }
2884{ (ac_try="$ac_compiler -v >&5"
2885case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compiler -v >&5") 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2894{ (ac_try="$ac_compiler -V >&5"
2895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compiler -V >&5") 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2904
2905{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2906echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2907if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909else
2910 cat >conftest.$ac_ext <<_ACEOF
2911/* confdefs.h. */
2912_ACEOF
2913cat confdefs.h >>conftest.$ac_ext
2914cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h. */
2916
2917int
2918main ()
2919{
2920#ifndef __GNUC__
2921 choke me
2922#endif
2923
2924 ;
2925 return 0;
2926}
2927_ACEOF
2928rm -f conftest.$ac_objext
2929if { (ac_try="$ac_compile"
2930case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933esac
2934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2943 { (case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946esac
2947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_try") 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; } &&
2952 { ac_try='test -s conftest.$ac_objext'
2953 { (case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956esac
2957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_try") 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
2962 ac_compiler_gnu=yes
2963else
2964 echo "$as_me: failed program was:" >&5
2965sed 's/^/| /' conftest.$ac_ext >&5
2966
2967 ac_compiler_gnu=no
2968fi
2969
2970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2972
2973fi
2974{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2975echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2976GXX=`test $ac_compiler_gnu = yes && echo yes`
2977ac_test_CXXFLAGS=${CXXFLAGS+set}
2978ac_save_CXXFLAGS=$CXXFLAGS
2979{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2980echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2981if test "${ac_cv_prog_cxx_g+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2983else
2984 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2985 ac_cxx_werror_flag=yes
2986 ac_cv_prog_cxx_g=no
2987 CXXFLAGS="-g"
2988 cat >conftest.$ac_ext <<_ACEOF
2989/* confdefs.h. */
2990_ACEOF
2991cat confdefs.h >>conftest.$ac_ext
2992cat >>conftest.$ac_ext <<_ACEOF
2993/* end confdefs.h. */
2994
2995int
2996main ()
2997{
2998
2999 ;
3000 return 0;
3001}
3002_ACEOF
3003rm -f conftest.$ac_objext
3004if { (ac_try="$ac_compile"
3005case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008esac
3009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010 (eval "$ac_compile") 2>conftest.er1
3011 ac_status=$?
3012 grep -v '^ *+' conftest.er1 >conftest.err
3013 rm -f conftest.er1
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } &&
3017 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3018 { (case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021esac
3022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_try") 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest.$ac_objext'
3028 { (case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031esac
3032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_try") 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; }; then
3037 ac_cv_prog_cxx_g=yes
3038else
3039 echo "$as_me: failed program was:" >&5
3040sed 's/^/| /' conftest.$ac_ext >&5
3041
3042 CXXFLAGS=""
3043 cat >conftest.$ac_ext <<_ACEOF
3044/* confdefs.h. */
3045_ACEOF
3046cat confdefs.h >>conftest.$ac_ext
3047cat >>conftest.$ac_ext <<_ACEOF
3048/* end confdefs.h. */
3049
3050int
3051main ()
3052{
3053
3054 ;
3055 return 0;
3056}
3057_ACEOF
3058rm -f conftest.$ac_objext
3059if { (ac_try="$ac_compile"
3060case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063esac
3064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compile") 2>conftest.er1
3066 ac_status=$?
3067 grep -v '^ *+' conftest.er1 >conftest.err
3068 rm -f conftest.er1
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } &&
3072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3073 { (case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076esac
3077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_try") 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; }; then
3092 :
3093else
3094 echo "$as_me: failed program was:" >&5
3095sed 's/^/| /' conftest.$ac_ext >&5
3096
3097 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3098 CXXFLAGS="-g"
3099 cat >conftest.$ac_ext <<_ACEOF
3100/* confdefs.h. */
3101_ACEOF
3102cat confdefs.h >>conftest.$ac_ext
3103cat >>conftest.$ac_ext <<_ACEOF
3104/* end confdefs.h. */
3105
3106int
3107main ()
3108{
3109
3110 ;
3111 return 0;
3112}
3113_ACEOF
3114rm -f conftest.$ac_objext
3115if { (ac_try="$ac_compile"
3116case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119esac
3120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_compile") 2>conftest.er1
3122 ac_status=$?
3123 grep -v '^ *+' conftest.er1 >conftest.err
3124 rm -f conftest.er1
3125 cat conftest.err >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } &&
3128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3129 { (case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_try") 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; } &&
3138 { ac_try='test -s conftest.$ac_objext'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142esac
3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3148 ac_cv_prog_cxx_g=yes
3149else
3150 echo "$as_me: failed program was:" >&5
3151sed 's/^/| /' conftest.$ac_ext >&5
3152
3153
3154fi
3155
3156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157fi
3158
3159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160fi
3161
3162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3164fi
3165{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3166echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3167if test "$ac_test_CXXFLAGS" = set; then
3168 CXXFLAGS=$ac_save_CXXFLAGS
3169elif test $ac_cv_prog_cxx_g = yes; then
3170 if test "$GXX" = yes; then
3171 CXXFLAGS="-g -O2"
3172 else
3173 CXXFLAGS="-g"
3174 fi
3175else
3176 if test "$GXX" = yes; then
3177 CXXFLAGS="-O2"
3178 else
3179 CXXFLAGS=
3180 fi
3181fi
3182ac_ext=c
3183ac_cpp='$CPP $CPPFLAGS'
3184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003187
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003188ac_ext=c
3189ac_cpp='$CPP $CPPFLAGS'
3190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3192ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003193{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3194echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003195# On Suns, sometimes $CPP names a directory.
3196if test -n "$CPP" && test -d "$CPP"; then
3197 CPP=
3198fi
3199if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003200 if test "${ac_cv_prog_CPP+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003202else
3203 # Double quotes because CPP needs to be expanded
3204 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3205 do
3206 ac_preproc_ok=false
3207for ac_c_preproc_warn_flag in '' yes
3208do
3209 # Use a header file that comes with gcc, so configuring glibc
3210 # with a fresh cross-compiler works.
3211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3212 # <limits.h> exists even on freestanding compilers.
3213 # On the NeXT, cc -E runs the code through the compiler's parser,
3214 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003215 cat >conftest.$ac_ext <<_ACEOF
3216/* confdefs.h. */
3217_ACEOF
3218cat confdefs.h >>conftest.$ac_ext
3219cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003220/* end confdefs.h. */
3221#ifdef __STDC__
3222# include <limits.h>
3223#else
3224# include <assert.h>
3225#endif
3226 Syntax error
3227_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003228if { (ac_try="$ac_cpp conftest.$ac_ext"
3229case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232esac
3233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3235 ac_status=$?
3236 grep -v '^ *+' conftest.er1 >conftest.err
3237 rm -f conftest.er1
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } >/dev/null; then
3241 if test -s conftest.err; then
3242 ac_cpp_err=$ac_c_preproc_warn_flag
3243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3244 else
3245 ac_cpp_err=
3246 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003247else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003248 ac_cpp_err=yes
3249fi
3250if test -z "$ac_cpp_err"; then
3251 :
3252else
3253 echo "$as_me: failed program was:" >&5
3254sed 's/^/| /' conftest.$ac_ext >&5
3255
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003256 # Broken: fails on valid input.
3257continue
3258fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003259
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003260rm -f conftest.err conftest.$ac_ext
3261
Reid Spencera773bd52006-08-04 18:18:08 +00003262 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003263 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003264 cat >conftest.$ac_ext <<_ACEOF
3265/* confdefs.h. */
3266_ACEOF
3267cat confdefs.h >>conftest.$ac_ext
3268cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003269/* end confdefs.h. */
3270#include <ac_nonexistent.h>
3271_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003272if { (ac_try="$ac_cpp conftest.$ac_ext"
3273case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276esac
3277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3279 ac_status=$?
3280 grep -v '^ *+' conftest.er1 >conftest.err
3281 rm -f conftest.er1
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } >/dev/null; then
3285 if test -s conftest.err; then
3286 ac_cpp_err=$ac_c_preproc_warn_flag
3287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3288 else
3289 ac_cpp_err=
3290 fi
3291else
3292 ac_cpp_err=yes
3293fi
3294if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003295 # Broken: success on invalid input.
3296continue
3297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003298 echo "$as_me: failed program was:" >&5
3299sed 's/^/| /' conftest.$ac_ext >&5
3300
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003301 # Passes both tests.
3302ac_preproc_ok=:
3303break
3304fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003305
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003306rm -f conftest.err conftest.$ac_ext
3307
3308done
3309# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3310rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003311if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003312 break
3313fi
3314
3315 done
3316 ac_cv_prog_CPP=$CPP
3317
3318fi
3319 CPP=$ac_cv_prog_CPP
3320else
3321 ac_cv_prog_CPP=$CPP
3322fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003323{ echo "$as_me:$LINENO: result: $CPP" >&5
3324echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003325ac_preproc_ok=false
3326for ac_c_preproc_warn_flag in '' yes
3327do
3328 # Use a header file that comes with gcc, so configuring glibc
3329 # with a fresh cross-compiler works.
3330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3331 # <limits.h> exists even on freestanding compilers.
3332 # On the NeXT, cc -E runs the code through the compiler's parser,
3333 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003334 cat >conftest.$ac_ext <<_ACEOF
3335/* confdefs.h. */
3336_ACEOF
3337cat confdefs.h >>conftest.$ac_ext
3338cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003339/* end confdefs.h. */
3340#ifdef __STDC__
3341# include <limits.h>
3342#else
3343# include <assert.h>
3344#endif
3345 Syntax error
3346_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003347if { (ac_try="$ac_cpp conftest.$ac_ext"
3348case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351esac
3352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3354 ac_status=$?
3355 grep -v '^ *+' conftest.er1 >conftest.err
3356 rm -f conftest.er1
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } >/dev/null; then
3360 if test -s conftest.err; then
3361 ac_cpp_err=$ac_c_preproc_warn_flag
3362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3363 else
3364 ac_cpp_err=
3365 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003366else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003367 ac_cpp_err=yes
3368fi
3369if test -z "$ac_cpp_err"; then
3370 :
3371else
3372 echo "$as_me: failed program was:" >&5
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003375 # Broken: fails on valid input.
3376continue
3377fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003378
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379rm -f conftest.err conftest.$ac_ext
3380
Reid Spencera773bd52006-08-04 18:18:08 +00003381 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003382 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003383 cat >conftest.$ac_ext <<_ACEOF
3384/* confdefs.h. */
3385_ACEOF
3386cat confdefs.h >>conftest.$ac_ext
3387cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003388/* end confdefs.h. */
3389#include <ac_nonexistent.h>
3390_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003391if { (ac_try="$ac_cpp conftest.$ac_ext"
3392case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395esac
3396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null; then
3404 if test -s conftest.err; then
3405 ac_cpp_err=$ac_c_preproc_warn_flag
3406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3407 else
3408 ac_cpp_err=
3409 fi
3410else
3411 ac_cpp_err=yes
3412fi
3413if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003414 # Broken: success on invalid input.
3415continue
3416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003417 echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003420 # Passes both tests.
3421ac_preproc_ok=:
3422break
3423fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003424
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003425rm -f conftest.err conftest.$ac_ext
3426
3427done
3428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3429rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003430if $ac_preproc_ok; then
3431 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003432else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003433 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3434See \`config.log' for more details." >&5
3435echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3436See \`config.log' for more details." >&2;}
3437 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003438fi
3439
John Criswell7a73b802003-06-30 21:59:07 +00003440ac_ext=c
3441ac_cpp='$CPP $CPPFLAGS'
3442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445
John Criswell7a73b802003-06-30 21:59:07 +00003446
Eric Christopherffee5722011-09-16 20:36:25 +00003447
3448
3449if test -d ${srcdir}/projects/llvm-gcc ; then
3450 subdirs="$subdirs projects/llvm-gcc"
3451
3452fi
3453
3454if test -d ${srcdir}/projects/test-suite ; then
3455 subdirs="$subdirs projects/test-suite"
3456
3457fi
3458
3459if test -d ${srcdir}/projects/llvm-test ; then
3460 subdirs="$subdirs projects/llvm-test"
3461
3462fi
3463
3464if test -d ${srcdir}/projects/poolalloc ; then
3465 subdirs="$subdirs projects/poolalloc"
3466
3467fi
3468
3469if test -d ${srcdir}/projects/llvm-poolalloc ; then
3470 subdirs="$subdirs projects/llvm-poolalloc"
3471
3472fi
3473
3474for i in `ls ${srcdir}/projects`
3475do
3476 if test -d ${srcdir}/projects/${i} ; then
3477 case ${i} in
3478 sample) subdirs="$subdirs projects/sample"
3479 ;;
3480 privbracket) subdirs="$subdirs projects/privbracket"
3481 ;;
3482 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3483 ;;
3484 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3485;;
3486 llvm-java) subdirs="$subdirs projects/llvm-java"
3487 ;;
3488 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3489 ;;
3490 safecode) subdirs="$subdirs projects/safecode"
3491 ;;
3492 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3493 ;;
3494 llvm-gcc) ;;
3495 test-suite) ;;
3496 llvm-test) ;;
3497 poolalloc) ;;
3498 llvm-poolalloc) ;;
3499 *)
3500 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3501echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3502 ;;
3503 esac
3504 fi
3505done
3506
3507# Check whether --enable-polly was given.
3508if test "${enable_polly+set}" = set; then
3509 enableval=$enable_polly;
3510else
3511 enableval=default
3512fi
3513
3514case "$enableval" in
3515 yes) ENABLE_POLLY=1
3516 ;;
3517 no) ENABLE_POLLY=0
3518 ;;
3519 default) ENABLE_POLLY=1
3520 ;;
3521 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3522echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3523 { (exit 1); exit 1; }; } ;;
3524esac
3525
3526
3527if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3528 LLVM_HAS_POLLY=1
3529
3530 subdirs="$subdirs tools/polly"
3531
3532fi
3533
3534
3535# Make sure we can run config.sub.
3536$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3537 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3538echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3539 { (exit 1); exit 1; }; }
3540
3541{ echo "$as_me:$LINENO: checking build system type" >&5
3542echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3543if test "${ac_cv_build+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 ac_build_alias=$build_alias
3547test "x$ac_build_alias" = x &&
3548 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3549test "x$ac_build_alias" = x &&
3550 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3551echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3552 { (exit 1); exit 1; }; }
3553ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3554 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3555echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3556 { (exit 1); exit 1; }; }
3557
3558fi
3559{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3560echo "${ECHO_T}$ac_cv_build" >&6; }
3561case $ac_cv_build in
3562*-*-*) ;;
3563*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3564echo "$as_me: error: invalid value of canonical build" >&2;}
3565 { (exit 1); exit 1; }; };;
3566esac
3567build=$ac_cv_build
3568ac_save_IFS=$IFS; IFS='-'
3569set x $ac_cv_build
3570shift
3571build_cpu=$1
3572build_vendor=$2
3573shift; shift
3574# Remember, the first character of IFS is used to create $*,
3575# except with old shells:
3576build_os=$*
3577IFS=$ac_save_IFS
3578case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3579
3580
3581{ echo "$as_me:$LINENO: checking host system type" >&5
3582echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3583if test "${ac_cv_host+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585else
3586 if test "x$host_alias" = x; then
3587 ac_cv_host=$ac_cv_build
3588else
3589 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3590 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3591echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3592 { (exit 1); exit 1; }; }
3593fi
3594
3595fi
3596{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3597echo "${ECHO_T}$ac_cv_host" >&6; }
3598case $ac_cv_host in
3599*-*-*) ;;
3600*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3601echo "$as_me: error: invalid value of canonical host" >&2;}
3602 { (exit 1); exit 1; }; };;
3603esac
3604host=$ac_cv_host
3605ac_save_IFS=$IFS; IFS='-'
3606set x $ac_cv_host
3607shift
3608host_cpu=$1
3609host_vendor=$2
3610shift; shift
3611# Remember, the first character of IFS is used to create $*,
3612# except with old shells:
3613host_os=$*
3614IFS=$ac_save_IFS
3615case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3616
3617
3618{ echo "$as_me:$LINENO: checking target system type" >&5
3619echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3620if test "${ac_cv_target+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622else
3623 if test "x$target_alias" = x; then
3624 ac_cv_target=$ac_cv_host
3625else
3626 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3627 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3628echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3629 { (exit 1); exit 1; }; }
3630fi
3631
3632fi
3633{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3634echo "${ECHO_T}$ac_cv_target" >&6; }
3635case $ac_cv_target in
3636*-*-*) ;;
3637*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3638echo "$as_me: error: invalid value of canonical target" >&2;}
3639 { (exit 1); exit 1; }; };;
3640esac
3641target=$ac_cv_target
3642ac_save_IFS=$IFS; IFS='-'
3643set x $ac_cv_target
3644shift
3645target_cpu=$1
3646target_vendor=$2
3647shift; shift
3648# Remember, the first character of IFS is used to create $*,
3649# except with old shells:
3650target_os=$*
3651IFS=$ac_save_IFS
3652case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3653
3654
3655# The aliases save the names the user supplied, while $host etc.
3656# will get canonicalized.
3657test -n "$target_alias" &&
3658 test "$program_prefix$program_suffix$program_transform_name" = \
3659 NONENONEs,x,x, &&
3660 program_prefix=${target_alias}-
3661
3662{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3663echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3664if test "${llvm_cv_os_type+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666else
3667 case $host in
3668 *-*-aix*)
3669 llvm_cv_link_all_option="-Wl,--whole-archive"
3670 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3671 llvm_cv_os_type="AIX"
3672 llvm_cv_platform_type="Unix" ;;
3673 *-*-irix*)
3674 llvm_cv_link_all_option="-Wl,--whole-archive"
3675 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3676 llvm_cv_os_type="IRIX"
3677 llvm_cv_platform_type="Unix" ;;
3678 *-*-cygwin*)
3679 llvm_cv_link_all_option="-Wl,--whole-archive"
3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681 llvm_cv_os_type="Cygwin"
3682 llvm_cv_platform_type="Unix" ;;
3683 *-*-darwin*)
3684 llvm_cv_link_all_option="-Wl,-all_load"
3685 llvm_cv_no_link_all_option="-Wl,-noall_load"
3686 llvm_cv_os_type="Darwin"
3687 llvm_cv_platform_type="Unix" ;;
3688 *-*-minix*)
3689 llvm_cv_link_all_option="-Wl,-all_load"
3690 llvm_cv_no_link_all_option="-Wl,-noall_load"
3691 llvm_cv_os_type="Minix"
3692 llvm_cv_platform_type="Unix" ;;
3693 *-*-freebsd*)
3694 llvm_cv_link_all_option="-Wl,--whole-archive"
3695 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3696 llvm_cv_os_type="FreeBSD"
3697 llvm_cv_platform_type="Unix" ;;
3698 *-*-openbsd*)
3699 llvm_cv_link_all_option="-Wl,--whole-archive"
3700 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3701 llvm_cv_os_type="OpenBSD"
3702 llvm_cv_platform_type="Unix" ;;
3703 *-*-netbsd*)
3704 llvm_cv_link_all_option="-Wl,--whole-archive"
3705 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706 llvm_cv_os_type="NetBSD"
3707 llvm_cv_platform_type="Unix" ;;
3708 *-*-dragonfly*)
3709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="DragonFly"
3712 llvm_cv_platform_type="Unix" ;;
3713 *-*-hpux*)
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="HP-UX"
3717 llvm_cv_platform_type="Unix" ;;
3718 *-*-interix*)
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="Interix"
3722 llvm_cv_platform_type="Unix" ;;
3723 *-*-linux*)
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="Linux"
3727 llvm_cv_platform_type="Unix" ;;
3728 *-*-solaris*)
3729 llvm_cv_link_all_option="-Wl,-z,allextract"
3730 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3731 llvm_cv_os_type="SunOS"
3732 llvm_cv_platform_type="Unix" ;;
3733 *-*-auroraux*)
3734 llvm_cv_link_all_option="-Wl,-z,allextract"
3735 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3736 llvm_cv_os_type="AuroraUX"
3737 llvm_cv_platform_type="Unix" ;;
3738 *-*-win32*)
3739 llvm_cv_link_all_option="-Wl,--whole-archive"
3740 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3741 llvm_cv_os_type="Win32"
3742 llvm_cv_platform_type="Win32" ;;
3743 *-*-mingw*)
3744 llvm_cv_link_all_option="-Wl,--whole-archive"
3745 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3746 llvm_cv_os_type="MingW"
3747 llvm_cv_platform_type="Win32" ;;
3748 *-*-haiku*)
3749 llvm_cv_link_all_option="-Wl,--whole-archive"
3750 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3751 llvm_cv_os_type="Haiku"
3752 llvm_cv_platform_type="Unix" ;;
3753 *-unknown-eabi*)
3754 llvm_cv_link_all_option="-Wl,--whole-archive"
3755 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3756 llvm_cv_os_type="Freestanding"
3757 llvm_cv_platform_type="Unix" ;;
3758 *-unknown-elf*)
3759 llvm_cv_link_all_option="-Wl,--whole-archive"
3760 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3761 llvm_cv_os_type="Freestanding"
3762 llvm_cv_platform_type="Unix" ;;
3763 *)
3764 llvm_cv_link_all_option=""
3765 llvm_cv_no_link_all_option=""
3766 llvm_cv_os_type="Unknown"
3767 llvm_cv_platform_type="Unknown" ;;
3768esac
3769fi
3770{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3771echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3772
3773{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3774echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3775if test "${llvm_cv_target_os_type+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777else
3778 case $target in
3779 *-*-aix*)
3780 llvm_cv_target_os_type="AIX" ;;
3781 *-*-irix*)
3782 llvm_cv_target_os_type="IRIX" ;;
3783 *-*-cygwin*)
3784 llvm_cv_target_os_type="Cygwin" ;;
3785 *-*-darwin*)
3786 llvm_cv_target_os_type="Darwin" ;;
3787 *-*-minix*)
3788 llvm_cv_target_os_type="Minix" ;;
3789 *-*-freebsd*)
3790 llvm_cv_target_os_type="FreeBSD" ;;
3791 *-*-openbsd*)
3792 llvm_cv_target_os_type="OpenBSD" ;;
3793 *-*-netbsd*)
3794 llvm_cv_target_os_type="NetBSD" ;;
3795 *-*-dragonfly*)
3796 llvm_cv_target_os_type="DragonFly" ;;
3797 *-*-hpux*)
3798 llvm_cv_target_os_type="HP-UX" ;;
3799 *-*-interix*)
3800 llvm_cv_target_os_type="Interix" ;;
3801 *-*-linux*)
3802 llvm_cv_target_os_type="Linux" ;;
3803 *-*-solaris*)
3804 llvm_cv_target_os_type="SunOS" ;;
3805 *-*-auroraux*)
3806 llvm_cv_target_os_type="AuroraUX" ;;
3807 *-*-win32*)
3808 llvm_cv_target_os_type="Win32" ;;
3809 *-*-mingw*)
3810 llvm_cv_target_os_type="MingW" ;;
3811 *-*-haiku*)
3812 llvm_cv_target_os_type="Haiku" ;;
3813 *-*-rtems*)
3814 llvm_cv_target_os_type="RTEMS" ;;
3815 *-*-nacl*)
3816 llvm_cv_target_os_type="NativeClient" ;;
3817 *-unknown-eabi*)
3818 llvm_cv_target_os_type="Freestanding" ;;
3819 *)
3820 llvm_cv_target_os_type="Unknown" ;;
3821esac
3822fi
3823{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3824echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3825
3826if test "$llvm_cv_os_type" = "Unknown" ; then
3827 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3828echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3829 { (exit 1); exit 1; }; }
3830fi
3831
3832OS=$llvm_cv_os_type
3833
3834HOST_OS=$llvm_cv_os_type
3835
3836TARGET_OS=$llvm_cv_target_os_type
3837
3838
3839LINKALL=$llvm_cv_link_all_option
3840
3841NOLINKALL=$llvm_cv_no_link_all_option
3842
3843
3844case $llvm_cv_platform_type in
3845 Unix)
3846
3847cat >>confdefs.h <<\_ACEOF
3848#define LLVM_ON_UNIX 1
3849_ACEOF
3850
3851 LLVM_ON_UNIX=1
3852
3853 LLVM_ON_WIN32=0
3854
3855 ;;
3856 Win32)
3857
3858cat >>confdefs.h <<\_ACEOF
3859#define LLVM_ON_WIN32 1
3860_ACEOF
3861
3862 LLVM_ON_UNIX=0
3863
3864 LLVM_ON_WIN32=1
3865
3866 ;;
3867esac
3868
3869{ echo "$as_me:$LINENO: checking target architecture" >&5
3870echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3871if test "${llvm_cv_target_arch+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3873else
3874 case $target in
3875 i?86-*) llvm_cv_target_arch="x86" ;;
3876 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3877 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3878 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003879 arm*-*) llvm_cv_target_arch="ARM" ;;
3880 mips-*) llvm_cv_target_arch="Mips" ;;
3881 xcore-*) llvm_cv_target_arch="XCore" ;;
3882 msp430-*) llvm_cv_target_arch="MSP430" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003883 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3884 ptx-*) llvm_cv_target_arch="PTX" ;;
3885 *) llvm_cv_target_arch="Unknown" ;;
3886esac
3887fi
3888{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3889echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3890
3891if test "$llvm_cv_target_arch" = "Unknown" ; then
3892 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3893echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3894fi
3895
3896# Determine the LLVM native architecture for the target
3897case "$llvm_cv_target_arch" in
3898 x86) LLVM_NATIVE_ARCH="X86" ;;
3899 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3900 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3901esac
3902
3903ARCH=$llvm_cv_target_arch
3904
3905
3906
3907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003908{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3909echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3910if test "${ac_cv_path_GREP+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003912else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003913 # Extract the first word of "grep ggrep" to use in msg output
3914if test -z "$GREP"; then
3915set dummy grep ggrep; ac_prog_name=$2
3916if test "${ac_cv_path_GREP+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
Reid Spencera773bd52006-08-04 18:18:08 +00003919 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003920# Loop through the user's path and test for each of PROGNAME-LIST
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003922for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003926 for ac_prog in grep ggrep; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3929 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3930 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003931 # Check for GNU $ac_path_GREP
3932case `"$ac_path_GREP" --version 2>&1` in
3933*GNU*)
3934 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3935*)
3936 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003937 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003938 while :
3939 do
3940 cat "conftest.in" "conftest.in" >"conftest.tmp"
3941 mv "conftest.tmp" "conftest.in"
3942 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003943 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003946 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_GREP="$ac_path_GREP"
3950 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003951 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3954 done
3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3956esac
3957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003958
3959 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003960 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003961done
3962
3963done
Reid Spencera773bd52006-08-04 18:18:08 +00003964IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003965
3966
3967fi
3968
3969GREP="$ac_cv_path_GREP"
3970if test -z "$GREP"; then
3971 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973 { (exit 1); exit 1; }; }
3974fi
3975
Reid Spencera773bd52006-08-04 18:18:08 +00003976else
3977 ac_cv_path_GREP=$GREP
3978fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003980
Reid Spencera773bd52006-08-04 18:18:08 +00003981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003982{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3983echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003984 GREP="$ac_cv_path_GREP"
3985
3986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003987{ echo "$as_me:$LINENO: checking for egrep" >&5
3988echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3989if test "${ac_cv_path_EGREP+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003991else
3992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993 then ac_cv_path_EGREP="$GREP -E"
3994 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003995 # Extract the first word of "egrep" to use in msg output
3996if test -z "$EGREP"; then
3997set dummy egrep; ac_prog_name=$2
3998if test "${ac_cv_path_EGREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000else
Reid Spencera773bd52006-08-04 18:18:08 +00004001 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004002# Loop through the user's path and test for each of PROGNAME-LIST
4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004004for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004008 for ac_prog in egrep; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4012 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004013 # Check for GNU $ac_path_EGREP
4014case `"$ac_path_EGREP" --version 2>&1` in
4015*GNU*)
4016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4017*)
4018 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004019 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004020 while :
4021 do
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004025 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004028 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_EGREP="$ac_path_EGREP"
4032 ac_path_EGREP_max=$ac_count
4033 fi
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4036 done
4037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038esac
4039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004040
4041 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004042 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004043done
4044
4045done
Reid Spencera773bd52006-08-04 18:18:08 +00004046IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004047
4048
4049fi
4050
4051EGREP="$ac_cv_path_EGREP"
4052if test -z "$EGREP"; then
4053 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055 { (exit 1); exit 1; }; }
4056fi
4057
Reid Spencera773bd52006-08-04 18:18:08 +00004058else
4059 ac_cv_path_EGREP=$EGREP
4060fi
4061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004062
Reid Spencera773bd52006-08-04 18:18:08 +00004063 fi
4064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004065{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4066echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004067 EGREP="$ac_cv_path_EGREP"
4068
4069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004070{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4071echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4072if test "${ac_cv_header_stdc+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004074else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004075 cat >conftest.$ac_ext <<_ACEOF
4076/* confdefs.h. */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004080/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004081#include <stdlib.h>
4082#include <stdarg.h>
4083#include <string.h>
4084#include <float.h>
4085
John Criswell0c38eaf2003-09-10 15:17:25 +00004086int
4087main ()
4088{
4089
4090 ;
4091 return 0;
4092}
John Criswell7a73b802003-06-30 21:59:07 +00004093_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004094rm -f conftest.$ac_objext
4095if { (ac_try="$ac_compile"
4096case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099esac
4100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112esac
4113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_try") 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122esac
4123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004128 ac_cv_header_stdc=yes
4129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004130 echo "$as_me: failed program was:" >&5
4131sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004135
Reid Spencera773bd52006-08-04 18:18:08 +00004136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004137
4138if test $ac_cv_header_stdc = yes; then
4139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004140 cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004145/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004146#include <string.h>
4147
4148_ACEOF
4149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004150 $EGREP "memchr" >/dev/null 2>&1; then
4151 :
John Criswell7a73b802003-06-30 21:59:07 +00004152else
4153 ac_cv_header_stdc=no
4154fi
4155rm -f conftest*
4156
4157fi
4158
4159if test $ac_cv_header_stdc = yes; then
4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004161 cat >conftest.$ac_ext <<_ACEOF
4162/* confdefs.h. */
4163_ACEOF
4164cat confdefs.h >>conftest.$ac_ext
4165cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004166/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004167#include <stdlib.h>
4168
4169_ACEOF
4170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004171 $EGREP "free" >/dev/null 2>&1; then
4172 :
John Criswell7a73b802003-06-30 21:59:07 +00004173else
4174 ac_cv_header_stdc=no
4175fi
4176rm -f conftest*
4177
4178fi
4179
4180if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004182 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004183 :
4184else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004185 cat >conftest.$ac_ext <<_ACEOF
4186/* confdefs.h. */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004190/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004191#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004192#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004193#if ((' ' & 0x0FF) == 0x020)
4194# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4196#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004197# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004198 (('a' <= (c) && (c) <= 'i') \
4199 || ('j' <= (c) && (c) <= 'r') \
4200 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004201# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202#endif
4203
4204#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4205int
4206main ()
4207{
4208 int i;
4209 for (i = 0; i < 256; i++)
4210 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004211 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004212 return 2;
4213 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004214}
4215_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004216rm -f conftest$ac_exeext
4217if { (ac_try="$ac_link"
4218case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_link") 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 :
John Criswell7a73b802003-06-30 21:59:07 +00004237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004238 echo "$as_me: program exited with status $ac_status" >&5
4239echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242( exit $ac_status )
4243ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004244fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004245rm -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 +00004246fi
4247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004248
John Criswell7a73b802003-06-30 21:59:07 +00004249fi
4250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004251{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004253if test $ac_cv_header_stdc = yes; then
4254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004255cat >>confdefs.h <<\_ACEOF
4256#define STDC_HEADERS 1
4257_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004258
4259fi
4260
Reid Spencera773bd52006-08-04 18:18:08 +00004261# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004262
4263
4264
4265
4266
4267
4268
4269
4270
Reid Spencera773bd52006-08-04 18:18:08 +00004271for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4272 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004273do
4274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4275{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279else
4280 cat >conftest.$ac_ext <<_ACEOF
4281/* confdefs.h. */
4282_ACEOF
4283cat confdefs.h >>conftest.$ac_ext
4284cat >>conftest.$ac_ext <<_ACEOF
4285/* end confdefs.h. */
4286$ac_includes_default
4287
4288#include <$ac_header>
4289_ACEOF
4290rm -f conftest.$ac_objext
4291if { (ac_try="$ac_compile"
4292case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295esac
4296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_compile") 2>conftest.er1
4298 ac_status=$?
4299 grep -v '^ *+' conftest.er1 >conftest.err
4300 rm -f conftest.er1
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305 { (case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308esac
4309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_try") 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318esac
4319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 eval "$as_ac_Header=yes"
4325else
4326 echo "$as_me: failed program was:" >&5
4327sed 's/^/| /' conftest.$ac_ext >&5
4328
4329 eval "$as_ac_Header=no"
4330fi
4331
4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333fi
4334ac_res=`eval echo '${'$as_ac_Header'}'`
4335 { echo "$as_me:$LINENO: result: $ac_res" >&5
4336echo "${ECHO_T}$ac_res" >&6; }
4337if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004338 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004340_ACEOF
4341
4342fi
4343
4344done
4345
4346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004347{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4348echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4349if test "${ac_cv_c_bigendian+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004352 # See if sys/param.h defines the BYTE_ORDER macro.
4353cat >conftest.$ac_ext <<_ACEOF
4354/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004355_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004356cat confdefs.h >>conftest.$ac_ext
4357cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004358/* end confdefs.h. */
4359#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004360#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004361
4362int
4363main ()
4364{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004365#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4366 bogus endian macros
4367#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004368
4369 ;
4370 return 0;
4371}
4372_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004373rm -f conftest.$ac_objext
4374if { (ac_try="$ac_compile"
4375case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378esac
4379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_compile") 2>conftest.er1
4381 ac_status=$?
4382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388 { (case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391esac
4392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_try") 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest.$ac_objext'
4398 { (case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401esac
4402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_try") 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004407 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004408cat >conftest.$ac_ext <<_ACEOF
4409/* confdefs.h. */
4410_ACEOF
4411cat confdefs.h >>conftest.$ac_ext
4412cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004413/* end confdefs.h. */
4414#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004415#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004416
4417int
4418main ()
4419{
4420#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004421 not big endian
4422#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004423
4424 ;
4425 return 0;
4426}
4427_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004428rm -f conftest.$ac_objext
4429if { (ac_try="$ac_compile"
4430case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433esac
4434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_compile") 2>conftest.er1
4436 ac_status=$?
4437 grep -v '^ *+' conftest.er1 >conftest.err
4438 rm -f conftest.er1
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4443 { (case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446esac
4447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_try") 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; } &&
4452 { ac_try='test -s conftest.$ac_objext'
4453 { (case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
4457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_try") 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004462 ac_cv_c_bigendian=yes
4463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004464 echo "$as_me: failed program was:" >&5
4465sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004467 ac_cv_c_bigendian=no
4468fi
4469
4470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471else
4472 echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475 # It does not; compile a test program.
4476if test "$cross_compiling" = yes; then
4477 # try to guess the endianness by grepping values into an object file
4478 ac_cv_c_bigendian=unknown
4479 cat >conftest.$ac_ext <<_ACEOF
4480/* confdefs.h. */
4481_ACEOF
4482cat confdefs.h >>conftest.$ac_ext
4483cat >>conftest.$ac_ext <<_ACEOF
4484/* end confdefs.h. */
4485short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4486short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4487void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4488short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4489short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4490void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004491int
4492main ()
4493{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004494 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004495 ;
4496 return 0;
4497}
4498_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004499rm -f conftest.$ac_objext
4500if { (ac_try="$ac_compile"
4501case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4504esac
4505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506 (eval "$ac_compile") 2>conftest.er1
4507 ac_status=$?
4508 grep -v '^ *+' conftest.er1 >conftest.err
4509 rm -f conftest.er1
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4514 { (case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4517esac
4518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_try") 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4527esac
4528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529 (eval "$ac_try") 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004534 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004535fi
4536if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4537 if test "$ac_cv_c_bigendian" = unknown; then
4538 ac_cv_c_bigendian=no
4539 else
4540 # finding both strings is unlikely to happen, but who knows?
4541 ac_cv_c_bigendian=unknown
4542 fi
4543fi
Reid Spencera773bd52006-08-04 18:18:08 +00004544else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004545 echo "$as_me: failed program was:" >&5
4546sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004548
Torok Edwin871384f2010-01-26 08:50:50 +00004549fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004550
Reid Spencera773bd52006-08-04 18:18:08 +00004551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553 cat >conftest.$ac_ext <<_ACEOF
4554/* confdefs.h. */
4555_ACEOF
4556cat confdefs.h >>conftest.$ac_ext
4557cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004558/* end confdefs.h. */
4559$ac_includes_default
4560int
4561main ()
4562{
4563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004564 /* Are we little or big endian? From Harbison&Steele. */
4565 union
4566 {
4567 long int l;
4568 char c[sizeof (long int)];
4569 } u;
4570 u.l = 1;
4571 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004572
4573 ;
4574 return 0;
4575}
4576_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004577rm -f conftest$ac_exeext
4578if { (ac_try="$ac_link"
4579case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582esac
4583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_link") 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591esac
4592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004597 ac_cv_c_bigendian=no
4598else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004599 echo "$as_me: program exited with status $ac_status" >&5
4600echo "$as_me: failed program was:" >&5
4601sed 's/^/| /' conftest.$ac_ext >&5
4602
4603( exit $ac_status )
4604ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004606rm -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 +00004607fi
4608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004609
Reid Spencera773bd52006-08-04 18:18:08 +00004610fi
4611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613fi
4614{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4615echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4616case $ac_cv_c_bigendian in
4617 yes)
4618 ENDIAN=big
4619 ;;
4620 no)
4621 ENDIAN=little
4622 ;;
4623 *)
4624 { { echo "$as_me:$LINENO: error: unknown endianness
4625presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4626echo "$as_me: error: unknown endianness
4627presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4628 { (exit 1); exit 1; }; } ;;
4629esac
Reid Spencera773bd52006-08-04 18:18:08 +00004630
4631
4632if test "$cross_compiling" = yes; then
4633 LLVM_CROSS_COMPILING=1
4634
4635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004636{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4637echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4638if test "${ac_cv_build_exeext+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004640else
4641 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4642 ac_cv_build_exeext=.exe
4643else
4644 ac_build_prefix=${build_alias}-
4645
4646 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4647set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004652else
4653 if test -n "$BUILD_CC"; then
4654 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 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 +00004663 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004665 break 2
4666 fi
4667done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004668done
Reid Spencera773bd52006-08-04 18:18:08 +00004669IFS=$as_save_IFS
4670
4671fi
4672fi
4673BUILD_CC=$ac_cv_prog_BUILD_CC
4674if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004675 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4676echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004677else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004678 { echo "$as_me:$LINENO: result: no" >&5
4679echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004680fi
4681
4682
4683 if test -z "$BUILD_CC"; then
4684 # Extract the first word of "gcc", so it can be a program name with args.
4685set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004690else
4691 if test -n "$BUILD_CC"; then
4692 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 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 +00004701 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004703 break 2
4704 fi
4705done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004706done
Reid Spencera773bd52006-08-04 18:18:08 +00004707IFS=$as_save_IFS
4708
4709fi
4710fi
4711BUILD_CC=$ac_cv_prog_BUILD_CC
4712if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004713 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4714echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004715else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004716 { echo "$as_me:$LINENO: result: no" >&5
4717echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004718fi
4719
4720
4721 if test -z "$BUILD_CC"; then
4722 # Extract the first word of "cc", so it can be a program name with args.
4723set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004728else
4729 if test -n "$BUILD_CC"; then
4730 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4731else
4732 ac_prog_rejected=no
4733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734for as_dir in $PATH
4735do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 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 +00004740 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4741 ac_prog_rejected=yes
4742 continue
4743 fi
4744 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004746 break 2
4747 fi
4748done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004749done
Reid Spencera773bd52006-08-04 18:18:08 +00004750IFS=$as_save_IFS
4751
4752if test $ac_prog_rejected = yes; then
4753 # We found a bogon in the path, so make sure we never use it.
4754 set dummy $ac_cv_prog_BUILD_CC
4755 shift
4756 if test $# != 0; then
4757 # We chose a different compiler from the bogus one.
4758 # However, it has the same basename, so the bogon will be chosen
4759 # first if we set BUILD_CC to just the basename; use the full file name.
4760 shift
4761 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4762 fi
4763fi
4764fi
4765fi
4766BUILD_CC=$ac_cv_prog_BUILD_CC
4767if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004768 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4769echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004770else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004771 { echo "$as_me:$LINENO: result: no" >&5
4772echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004773fi
4774
4775
4776 fi
4777 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4779echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4780 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004781 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4782 rm -f conftest*
4783 echo 'int main () { return 0; }' > conftest.$ac_ext
4784 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004785 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004786 (eval $ac_build_link) 2>&5
4787 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004790 for file in conftest.*; do
4791 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004792 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004793 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4794 esac
4795 done
4796 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004797 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4798echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4799 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004800 fi
4801 rm -f conftest*
4802 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4803fi
4804fi
4805
4806BUILD_EXEEXT=""
4807test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004808{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4809echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004810ac_build_exeext=$BUILD_EXEEXT
4811
Jim Grosbach673612e2008-10-02 22:56:44 +00004812 ac_build_prefix=${build_alias}-
4813 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4814set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004819else
4820 if test -n "$BUILD_CXX"; then
4821 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4822else
4823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH
4825do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 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 +00004830 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004832 break 2
4833 fi
4834done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004835done
Jim Grosbach673612e2008-10-02 22:56:44 +00004836IFS=$as_save_IFS
4837
4838fi
4839fi
4840BUILD_CXX=$ac_cv_prog_BUILD_CXX
4841if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004842 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4843echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004844else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004845 { echo "$as_me:$LINENO: result: no" >&5
4846echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004847fi
4848
4849
4850 if test -z "$BUILD_CXX"; then
4851 # Extract the first word of "g++", so it can be a program name with args.
4852set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004857else
4858 if test -n "$BUILD_CXX"; then
4859 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4860else
4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 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 +00004868 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004870 break 2
4871 fi
4872done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004873done
Jim Grosbach673612e2008-10-02 22:56:44 +00004874IFS=$as_save_IFS
4875
4876fi
4877fi
4878BUILD_CXX=$ac_cv_prog_BUILD_CXX
4879if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004880 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4881echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004882else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004883 { echo "$as_me:$LINENO: result: no" >&5
4884echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004885fi
4886
4887
4888 if test -z "$BUILD_CXX"; then
4889 # Extract the first word of "c++", so it can be a program name with args.
4890set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004895else
4896 if test -n "$BUILD_CXX"; then
4897 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4898else
4899 ac_prog_rejected=no
4900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH
4902do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 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 +00004907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4908 ac_prog_rejected=yes
4909 continue
4910 fi
4911 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004913 break 2
4914 fi
4915done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004916done
Jim Grosbach673612e2008-10-02 22:56:44 +00004917IFS=$as_save_IFS
4918
4919if test $ac_prog_rejected = yes; then
4920 # We found a bogon in the path, so make sure we never use it.
4921 set dummy $ac_cv_prog_BUILD_CXX
4922 shift
4923 if test $# != 0; then
4924 # We chose a different compiler from the bogus one.
4925 # However, it has the same basename, so the bogon will be chosen
4926 # first if we set BUILD_CXX to just the basename; use the full file name.
4927 shift
4928 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4929 fi
4930fi
4931fi
4932fi
4933BUILD_CXX=$ac_cv_prog_BUILD_CXX
4934if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004935 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4936echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004937else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004938 { echo "$as_me:$LINENO: result: no" >&5
4939echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004940fi
4941
4942
4943 fi
4944 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004945else
4946 LLVM_CROSS_COMPILING=0
4947
4948fi
4949
Dan Gohman56fb5f92010-08-04 16:25:01 +00004950if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004951 cvsbuild="yes"
4952 optimize="no"
4953 CVSBUILD=CVSBUILD=1
4954
4955else
4956 cvsbuild="no"
4957 optimize="yes"
4958fi
4959
4960
Eric Christopherbee515f2011-11-11 22:51:42 +00004961# Check whether --enable-libcpp was given.
4962if test "${enable_libcpp+set}" = set; then
4963 enableval=$enable_libcpp;
4964else
4965 enableval=default
4966fi
4967
4968case "$enableval" in
4969 yes) ENABLE_LIBCPP=1
4970 ;;
4971 no) ENABLE_LIBCPP=0
4972 ;;
4973 default) ENABLE_LIBCPP=0
4974;;
4975 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4976echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4977 { (exit 1); exit 1; }; } ;;
4978esac
4979
Reid Spencera773bd52006-08-04 18:18:08 +00004980# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004981if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004982 enableval=$enable_optimized;
4983else
4984 enableval=$optimize
4985fi
4986
4987if test ${enableval} = "no" ; then
4988 ENABLE_OPTIMIZED=
4989
4990else
4991 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4992
4993fi
4994
David Greene2a5a12c2009-04-17 14:50:39 +00004995# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004996if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004997 enableval=$enable_profiling;
4998else
4999 enableval="no"
5000fi
5001
5002if test ${enableval} = "no" ; then
5003 ENABLE_PROFILING=
5004
5005else
5006 ENABLE_PROFILING=ENABLE_PROFILING=1
5007
5008fi
5009
Reid Spencera773bd52006-08-04 18:18:08 +00005010# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005011if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005012 enableval=$enable_assertions;
5013else
5014 enableval="yes"
5015fi
5016
5017if test ${enableval} = "yes" ; then
5018 DISABLE_ASSERTIONS=
5019
5020else
5021 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5022
5023fi
5024
David Greenea696d242007-06-28 19:36:08 +00005025# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005026if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005027 enableval=$enable_expensive_checks;
5028else
5029 enableval="no"
5030fi
5031
5032if test ${enableval} = "yes" ; then
5033 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5034
5035 EXPENSIVE_CHECKS=yes
5036
5037else
5038 ENABLE_EXPENSIVE_CHECKS=
5039
5040 EXPENSIVE_CHECKS=no
5041
5042fi
5043
Reid Spencer8b2e1412006-11-17 03:32:33 +00005044# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005045if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005046 enableval=$enable_debug_runtime;
5047else
5048 enableval=no
5049fi
5050
5051if test ${enableval} = "no" ; then
5052 DEBUG_RUNTIME=
5053
5054else
5055 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5056
5057fi
5058
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005059# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005060if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005061 enableval=$enable_debug_symbols;
5062else
5063 enableval=no
5064fi
5065
5066if test ${enableval} = "no" ; then
5067 DEBUG_SYMBOLS=
5068
5069else
5070 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5071
5072fi
5073
Reid Spencera773bd52006-08-04 18:18:08 +00005074# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005075if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005076 enableval=$enable_jit;
5077else
5078 enableval=default
5079fi
5080
5081if test ${enableval} = "no"
5082then
5083 JIT=
5084
5085else
5086 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005087 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005088 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005089 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005090 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005091 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005092 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005093 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005094 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005095 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005096 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005097 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005098 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005099 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005100 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005101 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005102 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005103 MBlaze) TARGET_HAS_JIT=0
5104 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005105 PTX) TARGET_HAS_JIT=0
5106 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005107 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005108 ;;
5109 esac
5110fi
5111
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005112# Check whether --enable-docs was given.
5113if test "${enable_docs+set}" = set; then
5114 enableval=$enable_docs;
5115else
5116 enableval=default
5117fi
5118
5119case "$enableval" in
5120 yes) ENABLE_DOCS=1
5121 ;;
5122 no) ENABLE_DOCS=0
5123 ;;
5124 default) ENABLE_DOCS=1
5125 ;;
5126 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5127echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5128 { (exit 1); exit 1; }; } ;;
5129esac
5130
Reid Spencera773bd52006-08-04 18:18:08 +00005131# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005132if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005133 enableval=$enable_doxygen;
5134else
5135 enableval=default
5136fi
5137
5138case "$enableval" in
5139 yes) ENABLE_DOXYGEN=1
5140 ;;
5141 no) ENABLE_DOXYGEN=0
5142 ;;
5143 default) ENABLE_DOXYGEN=0
5144 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005145 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5146echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5147 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005148esac
5149
5150# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005151if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005152 enableval=$enable_threads;
5153else
Reid Spencer65c5d752006-11-05 17:08:18 +00005154 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005155fi
5156
5157case "$enableval" in
5158 yes) ENABLE_THREADS=1
5159 ;;
5160 no) ENABLE_THREADS=0
5161 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005162 default) ENABLE_THREADS=1
5163 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005164 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5165echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5166 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005167esac
5168
Owen Andersona8603702009-05-19 22:18:56 +00005169cat >>confdefs.h <<_ACEOF
5170#define ENABLE_THREADS $ENABLE_THREADS
5171_ACEOF
5172
5173
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005174# Check whether --enable-pthreads was given.
5175if test "${enable_pthreads+set}" = set; then
5176 enableval=$enable_pthreads;
5177else
5178 enableval=default
5179fi
5180
5181case "$enableval" in
5182 yes) ENABLE_PTHREADS=1
5183 ;;
5184 no) ENABLE_PTHREADS=0
5185 ;;
5186 default) ENABLE_PTHREADS=1
5187 ;;
5188 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5189echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5190 { (exit 1); exit 1; }; } ;;
5191esac
5192
Reid Spencer89b0d992006-12-16 22:07:52 +00005193# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005194if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005195 enableval=$enable_pic;
5196else
5197 enableval=default
5198fi
5199
5200case "$enableval" in
5201 yes) ENABLE_PIC=1
5202 ;;
5203 no) ENABLE_PIC=0
5204 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005205 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005206 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005207 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5208echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5209 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005210esac
5211
5212cat >>confdefs.h <<_ACEOF
5213#define ENABLE_PIC $ENABLE_PIC
5214_ACEOF
5215
5216
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005217# Check whether --enable-shared was given.
5218if test "${enable_shared+set}" = set; then
5219 enableval=$enable_shared;
5220else
5221 enableval=default
5222fi
5223
5224case "$enableval" in
5225 yes) ENABLE_SHARED=1
5226 ;;
5227 no) ENABLE_SHARED=0
5228 ;;
5229 default) ENABLE_SHARED=0
5230 ;;
5231 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5232echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5233 { (exit 1); exit 1; }; } ;;
5234esac
5235
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005236# Check whether --enable-embed-stdcxx was given.
5237if test "${enable_embed_stdcxx+set}" = set; then
5238 enableval=$enable_embed_stdcxx;
5239else
5240 enableval=default
5241fi
5242
5243case "$enableval" in
5244 yes) ENABLE_EMBED_STDCXX=1
5245 ;;
5246 no) ENABLE_EMBED_STDCXX=0
5247 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005248 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005249 ;;
5250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5251echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5253esac
5254
Daniel Dunbardd464df2010-05-10 20:11:56 +00005255# Check whether --enable-timestamps was given.
5256if test "${enable_timestamps+set}" = set; then
5257 enableval=$enable_timestamps;
5258else
5259 enableval=default
5260fi
5261
5262case "$enableval" in
5263 yes) ENABLE_TIMESTAMPS=1
5264 ;;
5265 no) ENABLE_TIMESTAMPS=0
5266 ;;
5267 default) ENABLE_TIMESTAMPS=1
5268 ;;
5269 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5270echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5272esac
5273
5274cat >>confdefs.h <<_ACEOF
5275#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5276_ACEOF
5277
5278
Reid Spencera773bd52006-08-04 18:18:08 +00005279TARGETS_TO_BUILD=""
5280# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005281if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005282 enableval=$enable_targets;
5283else
5284 enableval=all
5285fi
5286
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005287if test "$enableval" = host-only ; then
5288 enableval=host
5289fi
Reid Spencera773bd52006-08-04 18:18:08 +00005290case "$enableval" in
Dan Gohman33ba8b02011-10-27 22:56:32 +00005291 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005292 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5293 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005294 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5295 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5296 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5297 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005298 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5299 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5300 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005301 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5302 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005303 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005304 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005305 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005306 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005307 host) case "$llvm_cv_target_arch" in
5308 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5309 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5311 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005312 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5313 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005314 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005315 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005316 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5317 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005318 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005319 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5320echo "$as_me: error: Can not set target to build" >&2;}
5321 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005322 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005323 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5324echo "$as_me: error: Unrecognized target $a_target" >&2;}
5325 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005326 esac
5327 done
5328 ;;
5329esac
Reid Spencera773bd52006-08-04 18:18:08 +00005330TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5331
5332
Douglas Gregor0711c302009-06-17 00:43:20 +00005333# Determine whether we are building LLVM support for the native architecture.
5334# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5335for a_target in $TARGETS_TO_BUILD; do
5336 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5337
5338cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005339#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5340_ACEOF
5341
5342 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5343 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005344 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005345 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005346 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5347 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5348 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005349
5350cat >>confdefs.h <<_ACEOF
5351#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005352_ACEOF
5353
5354
5355cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005356#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5357_ACEOF
5358
5359
5360cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005361#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005362_ACEOF
5363
5364
5365cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005366#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005367_ACEOF
5368
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005369 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005370
5371cat >>confdefs.h <<_ACEOF
5372#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5373_ACEOF
5374
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005375 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005376 fi
5377done
5378
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005379# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5380# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005381LLVM_ENUM_TARGETS=""
5382LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005383LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005384LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005385for target_to_build in $TARGETS_TO_BUILD; do
5386 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005387 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005388 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5389 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005390 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5391 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5392 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005393 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5394 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5395 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005396done
5397
5398
5399
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005400
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005401
Reid Spencer65c5d752006-11-05 17:08:18 +00005402# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005403if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005404 enableval=$enable_cbe_printf_a;
5405else
5406 enableval=default
5407fi
5408
5409case "$enableval" in
5410 yes) ENABLE_CBE_PRINTF_A=1
5411 ;;
5412 no) ENABLE_CBE_PRINTF_A=0
5413 ;;
5414 default) ENABLE_CBE_PRINTF_A=1
5415 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005416 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5417echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5418 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005419esac
5420
5421cat >>confdefs.h <<_ACEOF
5422#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5423_ACEOF
5424
5425
Reid Spencera773bd52006-08-04 18:18:08 +00005426
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005427# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005428if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005429 withval=$with_optimize_option;
5430else
5431 withval=default
5432fi
5433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005434{ echo "$as_me:$LINENO: checking optimization flags" >&5
5435echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005436case "$withval" in
5437 default)
5438 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005439 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005440 MingW) optimize_option=-O2 ;;
5441 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005442 esac ;;
5443 *) optimize_option="$withval" ;;
5444esac
5445OPTIMIZE_OPTION=$optimize_option
5446
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005447{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5448echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005449
5450
Reid Spencera773bd52006-08-04 18:18:08 +00005451# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005452if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005453 withval=$with_extra_options;
5454else
5455 withval=default
5456fi
5457
5458case "$withval" in
5459 default) EXTRA_OPTIONS= ;;
5460 *) EXTRA_OPTIONS=$withval ;;
5461esac
5462EXTRA_OPTIONS=$EXTRA_OPTIONS
5463
5464
Daniel Dunbared344d22011-06-16 22:30:41 +00005465
5466# Check whether --with-extra-ld-options was given.
5467if test "${with_extra_ld_options+set}" = set; then
5468 withval=$with_extra_ld_options;
5469else
5470 withval=default
5471fi
5472
5473case "$withval" in
5474 default) EXTRA_LD_OPTIONS= ;;
5475 *) EXTRA_LD_OPTIONS=$withval ;;
5476esac
5477EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5478
5479
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005480# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005481if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005482 enableval=$enable_bindings;
5483else
5484 enableval=default
5485fi
5486
5487BINDINGS_TO_BUILD=""
5488case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005489 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005490 all ) BINDINGS_TO_BUILD="ocaml" ;;
5491 none | no) BINDINGS_TO_BUILD="" ;;
5492 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5493 case "$a_binding" in
5494 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005495 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5496echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5497 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005498 esac
5499 done
5500 ;;
5501esac
5502
Reid Spencera773bd52006-08-04 18:18:08 +00005503
Gordon Henriksenf0915682007-10-02 16:42:22 +00005504# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005505if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005506 withval=$with_ocaml_libdir;
5507else
5508 withval=auto
5509fi
5510
5511case "$withval" in
5512 auto) with_ocaml_libdir="$withval" ;;
5513 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005514 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5515echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5516 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005517esac
5518
5519
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005520# Check whether --with-clang-srcdir was given.
5521if test "${with_clang_srcdir+set}" = set; then
5522 withval=$with_clang_srcdir;
5523else
5524 withval="-"
5525fi
5526
5527case "$withval" in
5528 -) clang_src_root="" ;;
5529 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5530 *) clang_src_root="$ac_pwd/$withval" ;;
5531esac
5532CLANG_SRC_ROOT=$clang_src_root
5533
5534
5535
Chandler Carruth6b241162010-10-19 08:21:25 +00005536# Check whether --with-clang-resource-dir was given.
5537if test "${with_clang_resource_dir+set}" = set; then
5538 withval=$with_clang_resource_dir;
5539else
5540 withval=""
5541fi
5542
5543
5544cat >>confdefs.h <<_ACEOF
5545#define CLANG_RESOURCE_DIR "$withval"
5546_ACEOF
5547
5548
5549
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005550# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005551if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005552 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005553else
5554 withval=""
5555fi
5556
5557
5558cat >>confdefs.h <<_ACEOF
5559#define C_INCLUDE_DIRS "$withval"
5560_ACEOF
5561
5562
5563
Rafael Espindola420d23c2009-11-16 19:46:55 +00005564# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005565if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005566 withval=$with_cxx_include_root;
5567else
5568 withval=""
5569fi
5570
5571
5572cat >>confdefs.h <<_ACEOF
5573#define CXX_INCLUDE_ROOT "$withval"
5574_ACEOF
5575
5576
5577
5578# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005579if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005580 withval=$with_cxx_include_arch;
5581else
5582 withval=""
5583fi
5584
5585
5586cat >>confdefs.h <<_ACEOF
5587#define CXX_INCLUDE_ARCH "$withval"
5588_ACEOF
5589
5590
5591
5592# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005593if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005594 withval=$with_cxx_include_32bit_dir;
5595else
5596 withval=""
5597fi
5598
5599
5600cat >>confdefs.h <<_ACEOF
5601#define CXX_INCLUDE_32BIT_DIR "$withval"
5602_ACEOF
5603
5604
5605
5606# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005607if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005608 withval=$with_cxx_include_64bit_dir;
5609else
5610 withval=""
5611fi
5612
5613
5614cat >>confdefs.h <<_ACEOF
5615#define CXX_INCLUDE_64BIT_DIR "$withval"
5616_ACEOF
5617
5618
5619
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005620# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005621if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005622 withval=$with_binutils_include;
5623else
5624 withval=default
5625fi
5626
5627case "$withval" in
5628 default) WITH_BINUTILS_INCDIR=default ;;
5629 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005630 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5631echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5632 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005633esac
5634if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5635 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5636
5637 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5638 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005639 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5640echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5641 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005642 fi
5643fi
5644
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005645
5646# Check whether --with-bug-report-url was given.
5647if test "${with_bug_report_url+set}" = set; then
5648 withval=$with_bug_report_url;
5649else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005650 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005651fi
5652
5653
5654cat >>confdefs.h <<_ACEOF
5655#define BUG_REPORT_URL "$withval"
5656_ACEOF
5657
5658
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005659# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005660if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005661 enableval=$enable_libffi; case "$enableval" in
5662 yes) llvm_cv_enable_libffi="yes" ;;
5663 no) llvm_cv_enable_libffi="no" ;;
5664 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005665echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5666 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005667 esac
5668else
5669 llvm_cv_enable_libffi=no
5670fi
5671
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005672
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005674{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5675echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5676if test "${lt_cv_path_NM+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005678else
5679 if test -n "$NM"; then
5680 # Let the user override the test.
5681 lt_cv_path_NM="$NM"
5682else
5683 lt_nm_to_check="${ac_tool_prefix}nm"
5684 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5685 lt_nm_to_check="$lt_nm_to_check nm"
5686 fi
5687 for lt_tmp_nm in $lt_nm_to_check; do
5688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5689 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5690 IFS="$lt_save_ifs"
5691 test -z "$ac_dir" && ac_dir=.
5692 tmp_nm="$ac_dir/$lt_tmp_nm"
5693 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5694 # Check to see if the nm accepts a BSD-compat flag.
5695 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5696 # nm: unknown option "B" ignored
5697 # Tru64's nm complains that /dev/null is an invalid object file
5698 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5699 */dev/null* | *'Invalid file or object type'*)
5700 lt_cv_path_NM="$tmp_nm -B"
5701 break
5702 ;;
5703 *)
5704 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5705 */dev/null*)
5706 lt_cv_path_NM="$tmp_nm -p"
5707 break
5708 ;;
5709 *)
5710 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5711 continue # so that we can try to find one that supports BSD flags
5712 ;;
5713 esac
5714 ;;
5715 esac
5716 fi
5717 done
5718 IFS="$lt_save_ifs"
5719 done
5720 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5721fi
5722fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005723{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5724echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005725NM="$lt_cv_path_NM"
5726
5727
5728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005729{ echo "$as_me:$LINENO: checking for GNU make" >&5
5730echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5731if test "${llvm_cv_gnu_make_command+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005733else
5734 llvm_cv_gnu_make_command=''
5735 for a in "$MAKE" make gmake gnumake ; do
5736 if test -z "$a" ; then continue ; fi ;
5737 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5738 then
5739 llvm_cv_gnu_make_command=$a ;
5740 break;
5741 fi
5742 done
5743fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005744{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5745echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005746 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5747 ifGNUmake='' ;
5748 else
5749 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005750 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5751echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005752 fi
5753
5754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005755{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5756echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005757LN_S=$as_ln_s
5758if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005759 { echo "$as_me:$LINENO: result: yes" >&5
5760echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005761else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005762 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5763echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005764fi
5765
5766# Extract the first word of "cmp", so it can be a program name with args.
5767set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5770if test "${ac_cv_path_CMP+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005772else
5773 case $CMP in
5774 [\\/]* | ?:[\\/]*)
5775 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5776 ;;
5777 *)
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779for as_dir in $PATH
5780do
5781 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 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 +00005785 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005787 break 2
5788 fi
5789done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005790done
Reid Spencera773bd52006-08-04 18:18:08 +00005791IFS=$as_save_IFS
5792
5793 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5794 ;;
5795esac
5796fi
5797CMP=$ac_cv_path_CMP
5798if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005799 { echo "$as_me:$LINENO: result: $CMP" >&5
5800echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005801else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005802 { echo "$as_me:$LINENO: result: no" >&5
5803echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005804fi
5805
5806
5807# Extract the first word of "cp", so it can be a program name with args.
5808set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5811if test "${ac_cv_path_CP+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005813else
5814 case $CP in
5815 [\\/]* | ?:[\\/]*)
5816 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5817 ;;
5818 *)
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820for as_dir in $PATH
5821do
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 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 +00005826 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005828 break 2
5829 fi
5830done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005831done
Reid Spencera773bd52006-08-04 18:18:08 +00005832IFS=$as_save_IFS
5833
5834 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5835 ;;
5836esac
5837fi
5838CP=$ac_cv_path_CP
5839if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005840 { echo "$as_me:$LINENO: result: $CP" >&5
5841echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005842else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005843 { echo "$as_me:$LINENO: result: no" >&5
5844echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005845fi
5846
5847
5848# Extract the first word of "date", so it can be a program name with args.
5849set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5852if test "${ac_cv_path_DATE+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005854else
5855 case $DATE in
5856 [\\/]* | ?:[\\/]*)
5857 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5858 ;;
5859 *)
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861for as_dir in $PATH
5862do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 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 +00005867 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005869 break 2
5870 fi
5871done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005872done
Reid Spencera773bd52006-08-04 18:18:08 +00005873IFS=$as_save_IFS
5874
5875 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5876 ;;
5877esac
5878fi
5879DATE=$ac_cv_path_DATE
5880if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005881 { echo "$as_me:$LINENO: result: $DATE" >&5
5882echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005883else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005884 { echo "$as_me:$LINENO: result: no" >&5
5885echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005886fi
5887
5888
5889# Extract the first word of "find", so it can be a program name with args.
5890set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5893if test "${ac_cv_path_FIND+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005895else
5896 case $FIND in
5897 [\\/]* | ?:[\\/]*)
5898 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5899 ;;
5900 *)
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902for as_dir in $PATH
5903do
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 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 +00005908 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005910 break 2
5911 fi
5912done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005913done
Reid Spencera773bd52006-08-04 18:18:08 +00005914IFS=$as_save_IFS
5915
5916 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5917 ;;
5918esac
5919fi
5920FIND=$ac_cv_path_FIND
5921if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005922 { echo "$as_me:$LINENO: result: $FIND" >&5
5923echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005924else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005925 { echo "$as_me:$LINENO: result: no" >&5
5926echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005927fi
5928
5929
5930# Extract the first word of "grep", so it can be a program name with args.
5931set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005932{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5934if test "${ac_cv_path_GREP+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005936else
5937 case $GREP in
5938 [\\/]* | ?:[\\/]*)
5939 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5940 ;;
5941 *)
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943for as_dir in $PATH
5944do
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 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 +00005949 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005951 break 2
5952 fi
5953done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005954done
Reid Spencera773bd52006-08-04 18:18:08 +00005955IFS=$as_save_IFS
5956
5957 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5958 ;;
5959esac
5960fi
5961GREP=$ac_cv_path_GREP
5962if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005963 { echo "$as_me:$LINENO: result: $GREP" >&5
5964echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005965else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005966 { echo "$as_me:$LINENO: result: no" >&5
5967echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005968fi
5969
5970
5971# Extract the first word of "mkdir", so it can be a program name with args.
5972set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005973{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5975if test "${ac_cv_path_MKDIR+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005977else
5978 case $MKDIR in
5979 [\\/]* | ?:[\\/]*)
5980 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5981 ;;
5982 *)
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984for as_dir in $PATH
5985do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 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 +00005990 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005992 break 2
5993 fi
5994done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005995done
Reid Spencera773bd52006-08-04 18:18:08 +00005996IFS=$as_save_IFS
5997
5998 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5999 ;;
6000esac
6001fi
6002MKDIR=$ac_cv_path_MKDIR
6003if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006004 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6005echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006006else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006007 { echo "$as_me:$LINENO: result: no" >&5
6008echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006009fi
6010
6011
6012# Extract the first word of "mv", so it can be a program name with args.
6013set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6016if test "${ac_cv_path_MV+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006018else
6019 case $MV in
6020 [\\/]* | ?:[\\/]*)
6021 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6022 ;;
6023 *)
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025for as_dir in $PATH
6026do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 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 +00006031 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006033 break 2
6034 fi
6035done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006036done
Reid Spencera773bd52006-08-04 18:18:08 +00006037IFS=$as_save_IFS
6038
6039 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6040 ;;
6041esac
6042fi
6043MV=$ac_cv_path_MV
6044if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006045 { echo "$as_me:$LINENO: result: $MV" >&5
6046echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006047else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006048 { echo "$as_me:$LINENO: result: no" >&5
6049echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006050fi
6051
6052
6053if test -n "$ac_tool_prefix"; then
6054 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6055set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058if test "${ac_cv_prog_RANLIB+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006060else
6061 if test -n "$RANLIB"; then
6062 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6063else
6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065for as_dir in $PATH
6066do
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 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 +00006071 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006073 break 2
6074 fi
6075done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006076done
Reid Spencera773bd52006-08-04 18:18:08 +00006077IFS=$as_save_IFS
6078
6079fi
6080fi
6081RANLIB=$ac_cv_prog_RANLIB
6082if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006083 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6084echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006085else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006086 { echo "$as_me:$LINENO: result: no" >&5
6087echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006088fi
6089
6090
6091fi
6092if test -z "$ac_cv_prog_RANLIB"; then
6093 ac_ct_RANLIB=$RANLIB
6094 # Extract the first word of "ranlib", so it can be a program name with args.
6095set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006100else
6101 if test -n "$ac_ct_RANLIB"; then
6102 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6103else
6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105for as_dir in $PATH
6106do
6107 IFS=$as_save_IFS
6108 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 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 +00006111 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006113 break 2
6114 fi
6115done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006116done
Reid Spencera773bd52006-08-04 18:18:08 +00006117IFS=$as_save_IFS
6118
6119fi
6120fi
6121ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6122if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006123 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6124echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006125else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006126 { echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006128fi
6129
6130 if test "x$ac_ct_RANLIB" = x; then
6131 RANLIB=":"
6132 else
6133 case $cross_compiling:$ac_tool_warned in
6134yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006135{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6136whose name does not start with the host triplet. If you think this
6137configuration is useful to you, please write to autoconf@gnu.org." >&5
6138echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6139whose name does not start with the host triplet. If you think this
6140configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006141ac_tool_warned=yes ;;
6142esac
6143 RANLIB=$ac_ct_RANLIB
6144 fi
6145else
6146 RANLIB="$ac_cv_prog_RANLIB"
6147fi
6148
Torok Edwin871384f2010-01-26 08:50:50 +00006149if test -n "$ac_tool_prefix"; then
6150 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6151set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006152{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6154if test "${ac_cv_prog_AR+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006156else
6157 if test -n "$AR"; then
6158 ac_cv_prog_AR="$AR" # Let the user override the test.
6159else
6160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161for as_dir in $PATH
6162do
6163 IFS=$as_save_IFS
6164 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 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 +00006167 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006169 break 2
6170 fi
6171done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006172done
Torok Edwin871384f2010-01-26 08:50:50 +00006173IFS=$as_save_IFS
6174
6175fi
6176fi
6177AR=$ac_cv_prog_AR
6178if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006179 { echo "$as_me:$LINENO: result: $AR" >&5
6180echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006181else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006182 { echo "$as_me:$LINENO: result: no" >&5
6183echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006184fi
6185
6186
6187fi
6188if test -z "$ac_cv_prog_AR"; then
6189 ac_ct_AR=$AR
6190 # Extract the first word of "ar", so it can be a program name with args.
6191set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6194if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006196else
6197 if test -n "$ac_ct_AR"; then
6198 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6199else
6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 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 +00006207 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006209 break 2
6210 fi
6211done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006212done
Torok Edwin871384f2010-01-26 08:50:50 +00006213IFS=$as_save_IFS
6214
6215fi
6216fi
6217ac_ct_AR=$ac_cv_prog_ac_ct_AR
6218if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006219 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6220echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006221else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006222 { echo "$as_me:$LINENO: result: no" >&5
6223echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006224fi
6225
6226 if test "x$ac_ct_AR" = x; then
6227 AR="false"
6228 else
6229 case $cross_compiling:$ac_tool_warned in
6230yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006231{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6232whose name does not start with the host triplet. If you think this
6233configuration is useful to you, please write to autoconf@gnu.org." >&5
6234echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6235whose name does not start with the host triplet. If you think this
6236configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006237ac_tool_warned=yes ;;
6238esac
6239 AR=$ac_ct_AR
6240 fi
6241else
6242 AR="$ac_cv_prog_AR"
6243fi
6244
Reid Spencera773bd52006-08-04 18:18:08 +00006245# Extract the first word of "rm", so it can be a program name with args.
6246set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006247{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6249if test "${ac_cv_path_RM+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006251else
6252 case $RM in
6253 [\\/]* | ?:[\\/]*)
6254 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6255 ;;
6256 *)
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258for as_dir in $PATH
6259do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 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 +00006264 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006266 break 2
6267 fi
6268done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006269done
Reid Spencera773bd52006-08-04 18:18:08 +00006270IFS=$as_save_IFS
6271
6272 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6273 ;;
6274esac
6275fi
6276RM=$ac_cv_path_RM
6277if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006278 { echo "$as_me:$LINENO: result: $RM" >&5
6279echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006280else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006281 { echo "$as_me:$LINENO: result: no" >&5
6282echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006283fi
6284
6285
6286# Extract the first word of "sed", so it can be a program name with args.
6287set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6290if test "${ac_cv_path_SED+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006292else
6293 case $SED in
6294 [\\/]* | ?:[\\/]*)
6295 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6296 ;;
6297 *)
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299for as_dir in $PATH
6300do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 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 +00006305 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006307 break 2
6308 fi
6309done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006310done
Reid Spencera773bd52006-08-04 18:18:08 +00006311IFS=$as_save_IFS
6312
6313 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6314 ;;
6315esac
6316fi
6317SED=$ac_cv_path_SED
6318if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006319 { echo "$as_me:$LINENO: result: $SED" >&5
6320echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006321else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006322 { echo "$as_me:$LINENO: result: no" >&5
6323echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006324fi
6325
6326
6327# Extract the first word of "tar", so it can be a program name with args.
6328set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006329{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6331if test "${ac_cv_path_TAR+set}" = set; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006333else
6334 case $TAR in
6335 [\\/]* | ?:[\\/]*)
6336 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6337 ;;
6338 *)
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340for as_dir in $PATH
6341do
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 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 +00006346 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006348 break 2
6349 fi
6350done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006351done
Reid Spencera773bd52006-08-04 18:18:08 +00006352IFS=$as_save_IFS
6353
6354 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6355 ;;
6356esac
6357fi
6358TAR=$ac_cv_path_TAR
6359if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006360 { echo "$as_me:$LINENO: result: $TAR" >&5
6361echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006362else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006363 { echo "$as_me:$LINENO: result: no" >&5
6364echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006365fi
6366
6367
6368# Extract the first word of "pwd", so it can be a program name with args.
6369set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6372if test "${ac_cv_path_BINPWD+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006374else
6375 case $BINPWD in
6376 [\\/]* | ?:[\\/]*)
6377 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6378 ;;
6379 *)
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381for as_dir in $PATH
6382do
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 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 +00006387 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006389 break 2
6390 fi
6391done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006392done
Reid Spencera773bd52006-08-04 18:18:08 +00006393IFS=$as_save_IFS
6394
6395 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6396 ;;
6397esac
6398fi
6399BINPWD=$ac_cv_path_BINPWD
6400if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006401 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6402echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006404 { echo "$as_me:$LINENO: result: no" >&5
6405echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006406fi
6407
6408
6409
6410# Extract the first word of "Graphviz", so it can be a program name with args.
6411set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6414if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006416else
6417 case $GRAPHVIZ in
6418 [\\/]* | ?:[\\/]*)
6419 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6420 ;;
6421 *)
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 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 +00006429 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006431 break 2
6432 fi
6433done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006434done
Reid Spencera773bd52006-08-04 18:18:08 +00006435IFS=$as_save_IFS
6436
6437 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6438 ;;
6439esac
6440fi
6441GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6442if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006443 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6444echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006446 { echo "$as_me:$LINENO: result: no" >&5
6447echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006448fi
6449
6450
6451if test "$GRAPHVIZ" != "echo Graphviz" ; then
6452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006453cat >>confdefs.h <<\_ACEOF
6454#define HAVE_GRAPHVIZ 1
6455_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006456
Jeff Cohen28783c32007-01-12 18:22:38 +00006457 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006458 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6459 fi
6460
6461cat >>confdefs.h <<_ACEOF
6462#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6463_ACEOF
6464
6465fi
6466# Extract the first word of "dot", so it can be a program name with args.
6467set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6470if test "${ac_cv_path_DOT+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006472else
6473 case $DOT in
6474 [\\/]* | ?:[\\/]*)
6475 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6476 ;;
6477 *)
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479for as_dir in $PATH
6480do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 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 +00006485 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006487 break 2
6488 fi
6489done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006490done
Reid Spencera773bd52006-08-04 18:18:08 +00006491IFS=$as_save_IFS
6492
6493 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6494 ;;
6495esac
6496fi
6497DOT=$ac_cv_path_DOT
6498if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006499 { echo "$as_me:$LINENO: result: $DOT" >&5
6500echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006502 { echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006504fi
6505
6506
6507if test "$DOT" != "echo dot" ; then
6508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006509cat >>confdefs.h <<\_ACEOF
6510#define HAVE_DOT 1
6511_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006512
Jeff Cohen28783c32007-01-12 18:22:38 +00006513 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006514 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6515 fi
6516
6517cat >>confdefs.h <<_ACEOF
6518#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6519_ACEOF
6520
6521fi
David Greenef0b9eff2009-07-09 17:16:26 +00006522# Extract the first word of "fdp", so it can be a program name with args.
6523set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526if test "${ac_cv_path_FDP+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006528else
6529 case $FDP in
6530 [\\/]* | ?:[\\/]*)
6531 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6532 ;;
6533 *)
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 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 +00006541 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006543 break 2
6544 fi
6545done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006546done
David Greenef0b9eff2009-07-09 17:16:26 +00006547IFS=$as_save_IFS
6548
6549 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6550 ;;
6551esac
6552fi
6553FDP=$ac_cv_path_FDP
6554if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006555 { echo "$as_me:$LINENO: result: $FDP" >&5
6556echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006557else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006558 { echo "$as_me:$LINENO: result: no" >&5
6559echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006560fi
6561
6562
6563if test "$FDP" != "echo fdp" ; then
6564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006565cat >>confdefs.h <<\_ACEOF
6566#define HAVE_FDP 1
6567_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006568
6569 if test "$llvm_cv_os_type" = "MingW" ; then
6570 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6571 fi
6572
6573cat >>confdefs.h <<_ACEOF
6574#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6575_ACEOF
6576
6577fi
6578# Extract the first word of "neato", so it can be a program name with args.
6579set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582if test "${ac_cv_path_NEATO+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006584else
6585 case $NEATO in
6586 [\\/]* | ?:[\\/]*)
6587 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6588 ;;
6589 *)
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591for as_dir in $PATH
6592do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 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 +00006597 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006599 break 2
6600 fi
6601done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006602done
David Greenef0b9eff2009-07-09 17:16:26 +00006603IFS=$as_save_IFS
6604
6605 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6606 ;;
6607esac
6608fi
6609NEATO=$ac_cv_path_NEATO
6610if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006611 { echo "$as_me:$LINENO: result: $NEATO" >&5
6612echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006613else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006614 { echo "$as_me:$LINENO: result: no" >&5
6615echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006616fi
6617
6618
6619if test "$NEATO" != "echo neato" ; then
6620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006621cat >>confdefs.h <<\_ACEOF
6622#define HAVE_NEATO 1
6623_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006624
6625 if test "$llvm_cv_os_type" = "MingW" ; then
6626 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6627 fi
6628
6629cat >>confdefs.h <<_ACEOF
6630#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6631_ACEOF
6632
6633fi
6634# Extract the first word of "twopi", so it can be a program name with args.
6635set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638if test "${ac_cv_path_TWOPI+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006640else
6641 case $TWOPI in
6642 [\\/]* | ?:[\\/]*)
6643 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6644 ;;
6645 *)
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 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 +00006653 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006655 break 2
6656 fi
6657done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006658done
David Greenef0b9eff2009-07-09 17:16:26 +00006659IFS=$as_save_IFS
6660
6661 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6662 ;;
6663esac
6664fi
6665TWOPI=$ac_cv_path_TWOPI
6666if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006667 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6668echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006669else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006670 { echo "$as_me:$LINENO: result: no" >&5
6671echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006672fi
6673
6674
6675if test "$TWOPI" != "echo twopi" ; then
6676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006677cat >>confdefs.h <<\_ACEOF
6678#define HAVE_TWOPI 1
6679_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006680
6681 if test "$llvm_cv_os_type" = "MingW" ; then
6682 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6683 fi
6684
6685cat >>confdefs.h <<_ACEOF
6686#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6687_ACEOF
6688
6689fi
6690# Extract the first word of "circo", so it can be a program name with args.
6691set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694if test "${ac_cv_path_CIRCO+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006696else
6697 case $CIRCO in
6698 [\\/]* | ?:[\\/]*)
6699 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6700 ;;
6701 *)
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 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 +00006709 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006711 break 2
6712 fi
6713done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006714done
David Greenef0b9eff2009-07-09 17:16:26 +00006715IFS=$as_save_IFS
6716
6717 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6718 ;;
6719esac
6720fi
6721CIRCO=$ac_cv_path_CIRCO
6722if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006723 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6724echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006725else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006726 { echo "$as_me:$LINENO: result: no" >&5
6727echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006728fi
6729
6730
6731if test "$CIRCO" != "echo circo" ; then
6732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006733cat >>confdefs.h <<\_ACEOF
6734#define HAVE_CIRCO 1
6735_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006736
6737 if test "$llvm_cv_os_type" = "MingW" ; then
6738 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6739 fi
6740
6741cat >>confdefs.h <<_ACEOF
6742#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6743_ACEOF
6744
6745fi
Reid Spencera773bd52006-08-04 18:18:08 +00006746for ac_prog in gv gsview32
6747do
6748 # Extract the first word of "$ac_prog", so it can be a program name with args.
6749set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752if test "${ac_cv_path_GV+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006754else
6755 case $GV in
6756 [\\/]* | ?:[\\/]*)
6757 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6758 ;;
6759 *)
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 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 +00006767 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006769 break 2
6770 fi
6771done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006772done
Reid Spencera773bd52006-08-04 18:18:08 +00006773IFS=$as_save_IFS
6774
6775 ;;
6776esac
6777fi
6778GV=$ac_cv_path_GV
6779if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006780 { echo "$as_me:$LINENO: result: $GV" >&5
6781echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006782else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006783 { echo "$as_me:$LINENO: result: no" >&5
6784echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006785fi
6786
6787
6788 test -n "$GV" && break
6789done
6790test -n "$GV" || GV="echo gv"
6791
6792if test "$GV" != "echo gv" ; then
6793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006794cat >>confdefs.h <<\_ACEOF
6795#define HAVE_GV 1
6796_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006797
Jeff Cohen28783c32007-01-12 18:22:38 +00006798 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006799 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6800 fi
6801
6802cat >>confdefs.h <<_ACEOF
6803#define LLVM_PATH_GV "$GV${EXEEXT}"
6804_ACEOF
6805
6806fi
6807# Extract the first word of "dotty", so it can be a program name with args.
6808set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811if test "${ac_cv_path_DOTTY+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006813else
6814 case $DOTTY in
6815 [\\/]* | ?:[\\/]*)
6816 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6817 ;;
6818 *)
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 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 +00006826 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006828 break 2
6829 fi
6830done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006831done
Reid Spencera773bd52006-08-04 18:18:08 +00006832IFS=$as_save_IFS
6833
6834 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6835 ;;
6836esac
6837fi
6838DOTTY=$ac_cv_path_DOTTY
6839if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006840 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6841echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006842else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006843 { echo "$as_me:$LINENO: result: no" >&5
6844echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006845fi
6846
6847
6848if test "$DOTTY" != "echo dotty" ; then
6849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006850cat >>confdefs.h <<\_ACEOF
6851#define HAVE_DOTTY 1
6852_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006853
Jeff Cohen28783c32007-01-12 18:22:38 +00006854 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006855 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6856 fi
6857
6858cat >>confdefs.h <<_ACEOF
6859#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6860_ACEOF
6861
6862fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006863# Extract the first word of "xdot.py", so it can be a program name with args.
6864set dummy xdot.py; ac_word=$2
6865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867if test "${ac_cv_path_XDOT_PY+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869else
6870 case $XDOT_PY in
6871 [\\/]* | ?:[\\/]*)
6872 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6873 ;;
6874 *)
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876for as_dir in $PATH
6877do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 break 2
6885 fi
6886done
6887done
6888IFS=$as_save_IFS
6889
6890 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6891 ;;
6892esac
6893fi
6894XDOT_PY=$ac_cv_path_XDOT_PY
6895if test -n "$XDOT_PY"; then
6896 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6897echo "${ECHO_T}$XDOT_PY" >&6; }
6898else
6899 { echo "$as_me:$LINENO: result: no" >&5
6900echo "${ECHO_T}no" >&6; }
6901fi
6902
6903
6904if test "$XDOT_PY" != "echo xdot.py" ; then
6905
6906cat >>confdefs.h <<\_ACEOF
6907#define HAVE_XDOT_PY 1
6908_ACEOF
6909
6910 if test "$llvm_cv_os_type" = "MingW" ; then
6911 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6912 fi
6913
6914cat >>confdefs.h <<_ACEOF
6915#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6916_ACEOF
6917
6918fi
Reid Spencera773bd52006-08-04 18:18:08 +00006919
6920
6921# Extract the first word of "perl", so it can be a program name with args.
6922set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925if test "${ac_cv_path_PERL+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006927else
6928 case $PERL in
6929 [\\/]* | ?:[\\/]*)
6930 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6931 ;;
6932 *)
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934for as_dir in $PATH
6935do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 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 +00006940 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006942 break 2
6943 fi
6944done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006945done
Reid Spencera773bd52006-08-04 18:18:08 +00006946IFS=$as_save_IFS
6947
6948 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6949 ;;
6950esac
6951fi
6952PERL=$ac_cv_path_PERL
6953if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006954 { echo "$as_me:$LINENO: result: $PERL" >&5
6955echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006957 { echo "$as_me:$LINENO: result: no" >&5
6958echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006959fi
6960
6961
6962if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006963 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6964echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006965 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006966 { echo "$as_me:$LINENO: result: yes" >&5
6967echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006968 else
6969 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006970 { echo "$as_me:$LINENO: result: not found" >&5
6971echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006972 fi
6973fi
6974
6975
6976if test x"$PERL" = xnone; then
6977 HAVE_PERL=0
6978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006979 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6980echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6981 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00006982else
6983 HAVE_PERL=1
6984
6985fi
6986
6987# Find a good install program. We prefer a C program (faster),
6988# so one script is as good as another. But avoid the broken or
6989# incompatible versions:
6990# SysV /etc/install, /usr/sbin/install
6991# SunOS /usr/etc/install
6992# IRIX /sbin/install
6993# AIX /bin/install
6994# AmigaOS /C/install, which installs bootblocks on floppy discs
6995# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6996# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6997# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6998# OS/2's system install, which has a completely different semantic
6999# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007000{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7001echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007002if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007003if test "${ac_cv_path_install+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007005else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007for as_dir in $PATH
7008do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007011 # Account for people who put trailing slashes in PATH elements.
7012case $as_dir/ in
7013 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007014 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007015 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007016 /usr/ucb/* ) ;;
7017 *)
7018 # OSF1 and SCO ODT 3.0 have their own names for install.
7019 # Don't use installbsd from OSF since it installs stuff as root
7020 # by default.
7021 for ac_prog in ginstall scoinst install; do
7022 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007023 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 +00007024 if test $ac_prog = install &&
7025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7026 # AIX install. It has an incompatible calling convention.
7027 :
7028 elif test $ac_prog = install &&
7029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7030 # program-specific install script used by HP pwplus--don't use.
7031 :
7032 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7034 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007035 fi
7036 fi
7037 done
7038 done
7039 ;;
7040esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007041done
Reid Spencera773bd52006-08-04 18:18:08 +00007042IFS=$as_save_IFS
7043
7044
7045fi
7046 if test "${ac_cv_path_install+set}" = set; then
7047 INSTALL=$ac_cv_path_install
7048 else
7049 # As a last resort, use the slow shell script. Don't cache a
7050 # value for INSTALL within a source directory, because that will
7051 # break other packages using the cache if that directory is
7052 # removed, or if the value is a relative name.
7053 INSTALL=$ac_install_sh
7054 fi
7055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007056{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7057echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007058
7059# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7060# It thinks the first close brace ends the variable substitution.
7061test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7062
7063test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7064
7065test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7066
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007067case "$INSTALL" in
7068 [\\/$]* | ?:[\\/]* ) ;;
7069 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7070esac
Reid Spencera773bd52006-08-04 18:18:08 +00007071
7072# Extract the first word of "bzip2", so it can be a program name with args.
7073set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007074{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076if test "${ac_cv_path_BZIP2+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007078else
7079 case $BZIP2 in
7080 [\\/]* | ?:[\\/]*)
7081 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7082 ;;
7083 *)
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085for as_dir in $PATH
7086do
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 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 +00007091 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007093 break 2
7094 fi
7095done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007096done
Reid Spencera773bd52006-08-04 18:18:08 +00007097IFS=$as_save_IFS
7098
Reid Spencera773bd52006-08-04 18:18:08 +00007099 ;;
7100esac
7101fi
7102BZIP2=$ac_cv_path_BZIP2
7103if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007104 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7105echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007106else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007107 { echo "$as_me:$LINENO: result: no" >&5
7108echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007109fi
7110
7111
mike-m68cb3192010-05-06 23:45:43 +00007112# Extract the first word of "cat", so it can be a program name with args.
7113set dummy cat; ac_word=$2
7114{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116if test "${ac_cv_path_CAT+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119 case $CAT in
7120 [\\/]* | ?:[\\/]*)
7121 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7122 ;;
7123 *)
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
7127 IFS=$as_save_IFS
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7131 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 break 2
7134 fi
7135done
7136done
7137IFS=$as_save_IFS
7138
7139 ;;
7140esac
7141fi
7142CAT=$ac_cv_path_CAT
7143if test -n "$CAT"; then
7144 { echo "$as_me:$LINENO: result: $CAT" >&5
7145echo "${ECHO_T}$CAT" >&6; }
7146else
7147 { echo "$as_me:$LINENO: result: no" >&5
7148echo "${ECHO_T}no" >&6; }
7149fi
7150
7151
Reid Spencera773bd52006-08-04 18:18:08 +00007152# Extract the first word of "doxygen", so it can be a program name with args.
7153set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007154{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7156if test "${ac_cv_path_DOXYGEN+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007158else
7159 case $DOXYGEN in
7160 [\\/]* | ?:[\\/]*)
7161 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7162 ;;
7163 *)
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165for as_dir in $PATH
7166do
7167 IFS=$as_save_IFS
7168 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 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 +00007171 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007173 break 2
7174 fi
7175done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007176done
Reid Spencera773bd52006-08-04 18:18:08 +00007177IFS=$as_save_IFS
7178
Reid Spencera773bd52006-08-04 18:18:08 +00007179 ;;
7180esac
7181fi
7182DOXYGEN=$ac_cv_path_DOXYGEN
7183if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007184 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7185echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007186else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007187 { echo "$as_me:$LINENO: result: no" >&5
7188echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007189fi
7190
7191
Reid Spencera773bd52006-08-04 18:18:08 +00007192# Extract the first word of "groff", so it can be a program name with args.
7193set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007194{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196if test "${ac_cv_path_GROFF+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007198else
7199 case $GROFF in
7200 [\\/]* | ?:[\\/]*)
7201 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7202 ;;
7203 *)
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 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 +00007211 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007213 break 2
7214 fi
7215done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007216done
Reid Spencera773bd52006-08-04 18:18:08 +00007217IFS=$as_save_IFS
7218
Reid Spencera773bd52006-08-04 18:18:08 +00007219 ;;
7220esac
7221fi
7222GROFF=$ac_cv_path_GROFF
7223if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007224 { echo "$as_me:$LINENO: result: $GROFF" >&5
7225echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007226else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007227 { echo "$as_me:$LINENO: result: no" >&5
7228echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007229fi
7230
7231
7232# Extract the first word of "gzip", so it can be a program name with args.
7233set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007236if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007237 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007238else
Eric Christopher031d3072010-12-10 01:31:51 +00007239 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007240 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007241 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007242 ;;
7243 *)
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245for as_dir in $PATH
7246do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher031d3072010-12-10 01:31:51 +00007251 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007253 break 2
7254 fi
7255done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007256done
Reid Spencera773bd52006-08-04 18:18:08 +00007257IFS=$as_save_IFS
7258
Reid Spencera773bd52006-08-04 18:18:08 +00007259 ;;
7260esac
7261fi
Eric Christopher031d3072010-12-10 01:31:51 +00007262GZIPBIN=$ac_cv_path_GZIPBIN
7263if test -n "$GZIPBIN"; then
7264 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7265echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007267 { echo "$as_me:$LINENO: result: no" >&5
7268echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007269fi
7270
7271
7272# Extract the first word of "pod2html", so it can be a program name with args.
7273set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7276if test "${ac_cv_path_POD2HTML+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007278else
7279 case $POD2HTML in
7280 [\\/]* | ?:[\\/]*)
7281 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7282 ;;
7283 *)
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285for as_dir in $PATH
7286do
7287 IFS=$as_save_IFS
7288 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 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 +00007291 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007293 break 2
7294 fi
7295done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007296done
Reid Spencera773bd52006-08-04 18:18:08 +00007297IFS=$as_save_IFS
7298
Reid Spencera773bd52006-08-04 18:18:08 +00007299 ;;
7300esac
7301fi
7302POD2HTML=$ac_cv_path_POD2HTML
7303if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007304 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7305echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007306else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007307 { echo "$as_me:$LINENO: result: no" >&5
7308echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007309fi
7310
7311
7312# Extract the first word of "pod2man", so it can be a program name with args.
7313set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316if test "${ac_cv_path_POD2MAN+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007318else
7319 case $POD2MAN in
7320 [\\/]* | ?:[\\/]*)
7321 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7322 ;;
7323 *)
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325for as_dir in $PATH
7326do
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 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 +00007331 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007333 break 2
7334 fi
7335done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007336done
Reid Spencera773bd52006-08-04 18:18:08 +00007337IFS=$as_save_IFS
7338
Reid Spencera773bd52006-08-04 18:18:08 +00007339 ;;
7340esac
7341fi
7342POD2MAN=$ac_cv_path_POD2MAN
7343if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007344 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7345echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007346else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007347 { echo "$as_me:$LINENO: result: no" >&5
7348echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007349fi
7350
7351
mike-m68cb3192010-05-06 23:45:43 +00007352# Extract the first word of "pdfroff", so it can be a program name with args.
7353set dummy pdfroff; ac_word=$2
7354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356if test "${ac_cv_path_PDFROFF+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358else
7359 case $PDFROFF in
7360 [\\/]* | ?:[\\/]*)
7361 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7362 ;;
7363 *)
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 break 2
7374 fi
7375done
7376done
7377IFS=$as_save_IFS
7378
7379 ;;
7380esac
7381fi
7382PDFROFF=$ac_cv_path_PDFROFF
7383if test -n "$PDFROFF"; then
7384 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7385echo "${ECHO_T}$PDFROFF" >&6; }
7386else
7387 { echo "$as_me:$LINENO: result: no" >&5
7388echo "${ECHO_T}no" >&6; }
7389fi
7390
7391
Reid Spencera773bd52006-08-04 18:18:08 +00007392# Extract the first word of "runtest", so it can be a program name with args.
7393set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396if test "${ac_cv_path_RUNTEST+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007398else
7399 case $RUNTEST in
7400 [\\/]* | ?:[\\/]*)
7401 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7402 ;;
7403 *)
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405for as_dir in $PATH
7406do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 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 +00007411 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007413 break 2
7414 fi
7415done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007416done
Reid Spencera773bd52006-08-04 18:18:08 +00007417IFS=$as_save_IFS
7418
Reid Spencera773bd52006-08-04 18:18:08 +00007419 ;;
7420esac
7421fi
7422RUNTEST=$ac_cv_path_RUNTEST
7423if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007424 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7425echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007427 { echo "$as_me:$LINENO: result: no" >&5
7428echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007429fi
7430
7431
7432
7433no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007434{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7435echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007436
7437# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007438if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007439 withval=$with_tclinclude; with_tclinclude=${withval}
7440else
7441 with_tclinclude=''
7442fi
7443
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007444if test "${ac_cv_path_tclsh+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007446else
7447
7448if test x"${with_tclinclude}" != x ; then
7449 if test -f ${with_tclinclude}/tclsh ; then
7450 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7451 elif test -f ${with_tclinclude}/src/tclsh ; then
7452 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7453 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007454 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7455echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7456 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007457 fi
7458fi
Torok Edwin871384f2010-01-26 08:50:50 +00007459fi
7460
Reid Spencera773bd52006-08-04 18:18:08 +00007461
7462if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007463 { echo "$as_me:$LINENO: result: none" >&5
7464echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007465 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
7466do
7467 # Extract the first word of "$ac_prog", so it can be a program name with args.
7468set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007469{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7471if test "${ac_cv_path_TCLSH+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007473else
7474 case $TCLSH in
7475 [\\/]* | ?:[\\/]*)
7476 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7477 ;;
7478 *)
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480for as_dir in $PATH
7481do
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 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 +00007486 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007488 break 2
7489 fi
7490done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007491done
Reid Spencera773bd52006-08-04 18:18:08 +00007492IFS=$as_save_IFS
7493
7494 ;;
7495esac
7496fi
7497TCLSH=$ac_cv_path_TCLSH
7498if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007499 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7500echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007502 { echo "$as_me:$LINENO: result: no" >&5
7503echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007504fi
7505
7506
7507 test -n "$TCLSH" && break
7508done
7509
7510 if test x"${TCLSH}" = x ; then
7511 ac_cv_path_tclsh='';
7512 else
7513 ac_cv_path_tclsh="${TCLSH}";
7514 fi
7515else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007516 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7517echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007518 TCLSH="${ac_cv_path_tclsh}"
7519
7520fi
7521
Reid Spencera773bd52006-08-04 18:18:08 +00007522# Extract the first word of "zip", so it can be a program name with args.
7523set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526if test "${ac_cv_path_ZIP+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007528else
7529 case $ZIP in
7530 [\\/]* | ?:[\\/]*)
7531 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7532 ;;
7533 *)
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 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 +00007541 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007543 break 2
7544 fi
7545done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007546done
Reid Spencera773bd52006-08-04 18:18:08 +00007547IFS=$as_save_IFS
7548
Reid Spencera773bd52006-08-04 18:18:08 +00007549 ;;
7550esac
7551fi
7552ZIP=$ac_cv_path_ZIP
7553if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007554 { echo "$as_me:$LINENO: result: $ZIP" >&5
7555echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007556else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007557 { echo "$as_me:$LINENO: result: no" >&5
7558echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007559fi
7560
7561
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007562for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007563do
7564 # Extract the first word of "$ac_prog", so it can be a program name with args.
7565set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568if test "${ac_cv_path_OCAMLC+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007570else
7571 case $OCAMLC in
7572 [\\/]* | ?:[\\/]*)
7573 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7574 ;;
7575 *)
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577for as_dir in $PATH
7578do
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 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 +00007583 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007585 break 2
7586 fi
7587done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007588done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007589IFS=$as_save_IFS
7590
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007591 ;;
7592esac
7593fi
7594OCAMLC=$ac_cv_path_OCAMLC
7595if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007596 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7597echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007598else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007599 { echo "$as_me:$LINENO: result: no" >&5
7600echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007601fi
7602
7603
Gordon Henriksene7072162008-03-07 18:20:01 +00007604 test -n "$OCAMLC" && break
7605done
7606
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007607for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007608do
7609 # Extract the first word of "$ac_prog", so it can be a program name with args.
7610set dummy $ac_prog; 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_OCAMLOPT+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007615else
7616 case $OCAMLOPT in
7617 [\\/]* | ?:[\\/]*)
7618 ac_cv_path_OCAMLOPT="$OCAMLOPT" # 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
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007628 ac_cv_path_OCAMLOPT="$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
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007630 break 2
7631 fi
7632done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007633done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007634IFS=$as_save_IFS
7635
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007636 ;;
7637esac
7638fi
7639OCAMLOPT=$ac_cv_path_OCAMLOPT
7640if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007641 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7642echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007643else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007644 { echo "$as_me:$LINENO: result: no" >&5
7645echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007646fi
7647
7648
Gordon Henriksene7072162008-03-07 18:20:01 +00007649 test -n "$OCAMLOPT" && break
7650done
7651
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007652for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007653do
7654 # Extract the first word of "$ac_prog", so it can be a program name with args.
7655set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7658if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007660else
7661 case $OCAMLDEP in
7662 [\\/]* | ?:[\\/]*)
7663 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7664 ;;
7665 *)
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667for as_dir in $PATH
7668do
7669 IFS=$as_save_IFS
7670 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 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 +00007673 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007675 break 2
7676 fi
7677done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007678done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007679IFS=$as_save_IFS
7680
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007681 ;;
7682esac
7683fi
7684OCAMLDEP=$ac_cv_path_OCAMLDEP
7685if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007686 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7687echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007688else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007689 { echo "$as_me:$LINENO: result: no" >&5
7690echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007691fi
7692
7693
Gordon Henriksene7072162008-03-07 18:20:01 +00007694 test -n "$OCAMLDEP" && break
7695done
7696
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007697for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007698do
7699 # Extract the first word of "$ac_prog", so it can be a program name with args.
7700set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7703if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007705else
7706 case $OCAMLDOC in
7707 [\\/]* | ?:[\\/]*)
7708 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7709 ;;
7710 *)
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712for as_dir in $PATH
7713do
7714 IFS=$as_save_IFS
7715 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 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 +00007718 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007720 break 2
7721 fi
7722done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007723done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007724IFS=$as_save_IFS
7725
7726 ;;
7727esac
7728fi
7729OCAMLDOC=$ac_cv_path_OCAMLDOC
7730if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007731 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7732echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007733else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007734 { echo "$as_me:$LINENO: result: no" >&5
7735echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007736fi
7737
7738
7739 test -n "$OCAMLDOC" && break
7740done
7741
Torok Edwincc499a42008-10-22 09:56:27 +00007742for ac_prog in gas as
7743do
7744 # Extract the first word of "$ac_prog", so it can be a program name with args.
7745set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7748if test "${ac_cv_path_GAS+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007750else
7751 case $GAS in
7752 [\\/]* | ?:[\\/]*)
7753 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7754 ;;
7755 *)
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757for as_dir in $PATH
7758do
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 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 +00007763 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007765 break 2
7766 fi
7767done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007768done
Torok Edwincc499a42008-10-22 09:56:27 +00007769IFS=$as_save_IFS
7770
7771 ;;
7772esac
7773fi
7774GAS=$ac_cv_path_GAS
7775if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007776 { echo "$as_me:$LINENO: result: $GAS" >&5
7777echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007778else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007779 { echo "$as_me:$LINENO: result: no" >&5
7780echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007781fi
7782
7783
7784 test -n "$GAS" && break
7785done
7786
Reid Spencera773bd52006-08-04 18:18:08 +00007787
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007788{ echo "$as_me:$LINENO: checking for linker version" >&5
7789echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7790if test "${llvm_cv_link_version+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792else
7793
7794 version_string="$(ld -v 2>&1 | head -1)"
7795
7796 # Check for ld64.
7797 if (echo "$version_string" | grep -q "ld64"); then
7798 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7799 else
7800 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7801 fi
7802
7803fi
7804{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7805echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7806
7807cat >>confdefs.h <<_ACEOF
7808#define HOST_LINK_VERSION "$llvm_cv_link_version"
7809_ACEOF
7810
7811
7812
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007813{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7814echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7815if test "${llvm_cv_link_use_r+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007817else
7818 ac_ext=c
7819ac_cpp='$CPP $CPPFLAGS'
7820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823
7824 oldcflags="$CFLAGS"
7825 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007826 cat >conftest.$ac_ext <<_ACEOF
7827/* confdefs.h. */
7828_ACEOF
7829cat confdefs.h >>conftest.$ac_ext
7830cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007831/* end confdefs.h. */
7832
7833int
7834main ()
7835{
Dan Gohman39ed6782010-04-25 00:12:20 +00007836
Reid Spencera773bd52006-08-04 18:18:08 +00007837 ;
7838 return 0;
7839}
7840_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007841rm -f conftest.$ac_objext conftest$ac_exeext
7842if { (ac_try="$ac_link"
7843case "(($ac_try" in
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7846esac
7847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848 (eval "$ac_link") 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7856 { (case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859esac
7860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_try") 2>&5
7862 ac_status=$?
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; } &&
7865 { ac_try='test -s conftest$ac_exeext'
7866 { (case "(($ac_try" in
7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868 *) ac_try_echo=$ac_try;;
7869esac
7870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871 (eval "$ac_try") 2>&5
7872 ac_status=$?
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007875 llvm_cv_link_use_r=yes
7876else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007877 echo "$as_me: failed program was:" >&5
7878sed 's/^/| /' conftest.$ac_ext >&5
7879
7880 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007882
Bill Wendlingebcceee2009-04-18 11:20:33 +00007883rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007884 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007885 CFLAGS="$oldcflags"
7886 ac_ext=c
7887ac_cpp='$CPP $CPPFLAGS'
7888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890ac_compiler_gnu=$ac_cv_c_compiler_gnu
7891
7892
7893fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007894{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7895echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007896if test "$llvm_cv_link_use_r" = yes ; then
7897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007898cat >>confdefs.h <<\_ACEOF
7899#define HAVE_LINK_R 1
7900_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007901
7902 fi
7903
7904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007905{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7906echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7907if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007909else
7910 ac_ext=c
7911ac_cpp='$CPP $CPPFLAGS'
7912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915
7916 oldcflags="$CFLAGS"
7917 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007918 cat >conftest.$ac_ext <<_ACEOF
7919/* confdefs.h. */
7920_ACEOF
7921cat confdefs.h >>conftest.$ac_ext
7922cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007923/* end confdefs.h. */
7924
7925int
7926main ()
7927{
Dan Gohman39ed6782010-04-25 00:12:20 +00007928
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007929 ;
7930 return 0;
7931}
7932_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007933rm -f conftest.$ac_objext conftest$ac_exeext
7934if { (ac_try="$ac_link"
7935case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7938esac
7939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_link") 2>conftest.er1
7941 ac_status=$?
7942 grep -v '^ *+' conftest.er1 >conftest.err
7943 rm -f conftest.er1
7944 cat conftest.err >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7948 { (case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7951esac
7952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_try") 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; } &&
7957 { ac_try='test -s conftest$ac_exeext'
7958 { (case "(($ac_try" in
7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960 *) ac_try_echo=$ac_try;;
7961esac
7962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963 (eval "$ac_try") 2>&5
7964 ac_status=$?
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007967 llvm_cv_link_use_export_dynamic=yes
7968else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007969 echo "$as_me: failed program was:" >&5
7970sed 's/^/| /' conftest.$ac_ext >&5
7971
7972 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007973fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007974
Bill Wendlingebcceee2009-04-18 11:20:33 +00007975rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007976 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007977 CFLAGS="$oldcflags"
7978 ac_ext=c
7979ac_cpp='$CPP $CPPFLAGS'
7980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7982ac_compiler_gnu=$ac_cv_c_compiler_gnu
7983
7984
7985fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007986{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7987echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007988if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7989
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007990cat >>confdefs.h <<\_ACEOF
7991#define HAVE_LINK_EXPORT_DYNAMIC 1
7992_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007993
7994 fi
7995
7996
Dan Gohmanda612d62010-06-01 14:56:56 +00007997{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7998echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7999if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008000 echo $ECHO_N "(cached) $ECHO_C" >&6
8001else
8002 ac_ext=c
8003ac_cpp='$CPP $CPPFLAGS'
8004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8006ac_compiler_gnu=$ac_cv_c_compiler_gnu
8007
8008 oldcflags="$CFLAGS"
8009
8010 # The following code is from the autoconf manual,
8011 # "11.13: Limitations of Usual Tools".
8012 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8013 # Use mktemp if possible; otherwise fall back on mkdir,
8014 # with $RANDOM to make collisions less likely.
8015 : ${TMPDIR=/tmp}
8016 {
8017 tmp=`
8018 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8019 ` &&
8020 test -n "$tmp" && test -d "$tmp"
8021 } || {
8022 tmp=$TMPDIR/foo$$-$RANDOM
8023 (umask 077 && mkdir "$tmp")
8024 } || exit $?
8025
Dan Gohmanda612d62010-06-01 14:56:56 +00008026 echo "{" > "$tmp/export.map"
8027 echo " global: main;" >> "$tmp/export.map"
8028 echo " local: *;" >> "$tmp/export.map"
8029 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008030
Dan Gohmanda612d62010-06-01 14:56:56 +00008031 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008032 cat >conftest.$ac_ext <<_ACEOF
8033/* confdefs.h. */
8034_ACEOF
8035cat confdefs.h >>conftest.$ac_ext
8036cat >>conftest.$ac_ext <<_ACEOF
8037/* end confdefs.h. */
8038
8039int
8040main ()
8041{
Dan Gohman39ed6782010-04-25 00:12:20 +00008042
Dan Gohman391569c2010-04-16 22:59:06 +00008043 ;
8044 return 0;
8045}
8046_ACEOF
8047rm -f conftest.$ac_objext conftest$ac_exeext
8048if { (ac_try="$ac_link"
8049case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8052esac
8053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_link") 2>conftest.er1
8055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8062 { (case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065esac
8066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_try") 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; } &&
8071 { ac_try='test -s conftest$ac_exeext'
8072 { (case "(($ac_try" in
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8075esac
8076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_try") 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008081 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008082else
8083 echo "$as_me: failed program was:" >&5
8084sed 's/^/| /' conftest.$ac_ext >&5
8085
Dan Gohman943005e2010-06-01 16:22:27 +00008086 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008087fi
8088
8089rm -f core conftest.err conftest.$ac_objext \
8090 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008091 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008092 rmdir "$tmp"
8093 CFLAGS="$oldcflags"
8094 ac_ext=c
8095ac_cpp='$CPP $CPPFLAGS'
8096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8098ac_compiler_gnu=$ac_cv_c_compiler_gnu
8099
8100
8101fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008102{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8103echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8104if test "$llvm_cv_link_use_version_script" = yes ; then
8105 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008106
8107 fi
8108
8109
Reid Spencera773bd52006-08-04 18:18:08 +00008110
8111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008112{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8113echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8114if test "${ac_cv_c_const+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008116else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008117 cat >conftest.$ac_ext <<_ACEOF
8118/* confdefs.h. */
8119_ACEOF
8120cat confdefs.h >>conftest.$ac_ext
8121cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008122/* end confdefs.h. */
8123
8124int
8125main ()
8126{
8127/* FIXME: Include the comments suggested by Paul. */
8128#ifndef __cplusplus
8129 /* Ultrix mips cc rejects this. */
8130 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008131 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008132 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008133 char const *const *ccp;
8134 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008135 /* NEC SVR4.0.2 mips cc rejects this. */
8136 struct point {int x, y;};
8137 static struct point const zero = {0,0};
8138 /* AIX XL C 1.02.0.0 rejects this.
8139 It does not let you subtract one const X* pointer from another in
8140 an arm of an if-expression whose if-part is not a constant
8141 expression */
8142 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008143 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008144 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008145 ++ccp;
8146 p = (char**) ccp;
8147 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008148 { /* SCO 3.2v4 cc rejects this. */
8149 char *t;
8150 char const *s = 0 ? (char *) 0 : (char const *) 0;
8151
8152 *t++ = 0;
8153 if (s) return 0;
8154 }
8155 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8156 int x[] = {25, 17};
8157 const int *foo = &x[0];
8158 ++foo;
8159 }
8160 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8161 typedef const int *iptr;
8162 iptr p = 0;
8163 ++p;
8164 }
8165 { /* AIX XL C 1.02.0.0 rejects this saying
8166 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8167 struct s { int j; const int *ap[3]; };
8168 struct s *b; b->j = 5;
8169 }
8170 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8171 const int foo = 10;
8172 if (!foo) return 0;
8173 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008174 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008175#endif
8176
8177 ;
8178 return 0;
8179}
8180_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008181rm -f conftest.$ac_objext
8182if { (ac_try="$ac_compile"
8183case "(($ac_try" in
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8186esac
8187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_compile") 2>conftest.er1
8189 ac_status=$?
8190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
8195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8196 { (case "(($ac_try" in
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8199esac
8200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_try") 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; } &&
8205 { ac_try='test -s conftest.$ac_objext'
8206 { (case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8209esac
8210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_try") 2>&5
8212 ac_status=$?
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008215 ac_cv_c_const=yes
8216else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008217 echo "$as_me: failed program was:" >&5
8218sed 's/^/| /' conftest.$ac_ext >&5
8219
8220 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008221fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008222
Reid Spencera773bd52006-08-04 18:18:08 +00008223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008225{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8226echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008227if test $ac_cv_c_const = no; then
8228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008229cat >>confdefs.h <<\_ACEOF
8230#define const
8231_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008232
8233fi
8234
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008235
8236
8237
8238
8239
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008240ac_header_dirent=no
8241for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008242 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8243{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8244echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008247else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008248 cat >conftest.$ac_ext <<_ACEOF
8249/* confdefs.h. */
8250_ACEOF
8251cat confdefs.h >>conftest.$ac_ext
8252cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008253/* end confdefs.h. */
8254#include <sys/types.h>
8255#include <$ac_hdr>
8256
8257int
8258main ()
8259{
8260if ((DIR *) 0)
8261return 0;
8262 ;
8263 return 0;
8264}
8265_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008266rm -f conftest.$ac_objext
8267if { (ac_try="$ac_compile"
8268case "(($ac_try" in
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8271esac
8272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_compile") 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } &&
8280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8281 { (case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284esac
8285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_try") 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; } &&
8290 { ac_try='test -s conftest.$ac_objext'
8291 { (case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294esac
8295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_try") 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008300 eval "$as_ac_Header=yes"
8301else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008302 echo "$as_me: failed program was:" >&5
8303sed 's/^/| /' conftest.$ac_ext >&5
8304
8305 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008306fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008307
Reid Spencera773bd52006-08-04 18:18:08 +00008308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008309fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008310ac_res=`eval echo '${'$as_ac_Header'}'`
8311 { echo "$as_me:$LINENO: result: $ac_res" >&5
8312echo "${ECHO_T}$ac_res" >&6; }
8313if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008314 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008315#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008316_ACEOF
8317
8318ac_header_dirent=$ac_hdr; break
8319fi
8320
8321done
8322# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8323if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008324 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8325echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8326if test "${ac_cv_search_opendir+set}" = set; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008328else
8329 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008330cat >conftest.$ac_ext <<_ACEOF
8331/* confdefs.h. */
8332_ACEOF
8333cat confdefs.h >>conftest.$ac_ext
8334cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008335/* end confdefs.h. */
8336
Reid Spencera773bd52006-08-04 18:18:08 +00008337/* Override any GCC internal prototype to avoid an error.
8338 Use char because int might match the return type of a GCC
8339 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008340#ifdef __cplusplus
8341extern "C"
8342#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008343char opendir ();
8344int
8345main ()
8346{
Reid Spencera773bd52006-08-04 18:18:08 +00008347return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008348 ;
8349 return 0;
8350}
8351_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008352for ac_lib in '' dir; do
8353 if test -z "$ac_lib"; then
8354 ac_res="none required"
8355 else
8356 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008357 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008358 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008359 rm -f conftest.$ac_objext conftest$ac_exeext
8360if { (ac_try="$ac_link"
8361case "(($ac_try" in
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8364esac
8365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_link") 2>conftest.er1
8367 ac_status=$?
8368 grep -v '^ *+' conftest.er1 >conftest.err
8369 rm -f conftest.er1
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } &&
8373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8374 { (case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8377esac
8378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_try") 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; } &&
8383 { ac_try='test -s conftest$ac_exeext'
8384 { (case "(($ac_try" in
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8387esac
8388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389 (eval "$ac_try") 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008393 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008394else
8395 echo "$as_me: failed program was:" >&5
8396sed 's/^/| /' conftest.$ac_ext >&5
8397
8398
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008399fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008400
Bill Wendlingebcceee2009-04-18 11:20:33 +00008401rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008402 conftest$ac_exeext
8403 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008404 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008405fi
John Criswell7a73b802003-06-30 21:59:07 +00008406done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008407if test "${ac_cv_search_opendir+set}" = set; then
8408 :
Reid Spencera773bd52006-08-04 18:18:08 +00008409else
8410 ac_cv_search_opendir=no
8411fi
8412rm conftest.$ac_ext
8413LIBS=$ac_func_search_save_LIBS
8414fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008415{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8416echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008417ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008418if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008419 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008420
Reid Spencera773bd52006-08-04 18:18:08 +00008421fi
8422
8423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008424 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8425echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8426if test "${ac_cv_search_opendir+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008428else
8429 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008430cat >conftest.$ac_ext <<_ACEOF
8431/* confdefs.h. */
8432_ACEOF
8433cat confdefs.h >>conftest.$ac_ext
8434cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008435/* end confdefs.h. */
8436
8437/* Override any GCC internal prototype to avoid an error.
8438 Use char because int might match the return type of a GCC
8439 builtin and then its argument prototype would still apply. */
8440#ifdef __cplusplus
8441extern "C"
8442#endif
8443char opendir ();
8444int
8445main ()
8446{
8447return opendir ();
8448 ;
8449 return 0;
8450}
8451_ACEOF
8452for ac_lib in '' x; do
8453 if test -z "$ac_lib"; then
8454 ac_res="none required"
8455 else
8456 ac_res=-l$ac_lib
8457 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8458 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008459 rm -f conftest.$ac_objext conftest$ac_exeext
8460if { (ac_try="$ac_link"
8461case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464esac
8465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_link") 2>conftest.er1
8467 ac_status=$?
8468 grep -v '^ *+' conftest.er1 >conftest.err
8469 rm -f conftest.er1
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8474 { (case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477esac
8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_try") 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; } &&
8483 { ac_try='test -s conftest$ac_exeext'
8484 { (case "(($ac_try" in
8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8487esac
8488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489 (eval "$ac_try") 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008493 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008494else
8495 echo "$as_me: failed program was:" >&5
8496sed 's/^/| /' conftest.$ac_ext >&5
8497
8498
Reid Spencera773bd52006-08-04 18:18:08 +00008499fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008500
Bill Wendlingebcceee2009-04-18 11:20:33 +00008501rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008502 conftest$ac_exeext
8503 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008504 break
8505fi
8506done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008507if test "${ac_cv_search_opendir+set}" = set; then
8508 :
Reid Spencera773bd52006-08-04 18:18:08 +00008509else
8510 ac_cv_search_opendir=no
8511fi
8512rm conftest.$ac_ext
8513LIBS=$ac_func_search_save_LIBS
8514fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008515{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8516echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008517ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008518if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8520
8521fi
8522
8523fi
John Criswell7a73b802003-06-30 21:59:07 +00008524
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008525
John Criswell7a73b802003-06-30 21:59:07 +00008526for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008527do
8528as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534fi
8535ac_res=`eval echo '${'$as_ac_Header'}'`
8536 { echo "$as_me:$LINENO: result: $ac_res" >&5
8537echo "${ECHO_T}$ac_res" >&6; }
8538else
8539 # Is the header compilable?
8540{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8542cat >conftest.$ac_ext <<_ACEOF
8543/* confdefs.h. */
8544_ACEOF
8545cat confdefs.h >>conftest.$ac_ext
8546cat >>conftest.$ac_ext <<_ACEOF
8547/* end confdefs.h. */
8548$ac_includes_default
8549#include <$ac_header>
8550_ACEOF
8551rm -f conftest.$ac_objext
8552if { (ac_try="$ac_compile"
8553case "(($ac_try" in
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8556esac
8557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558 (eval "$ac_compile") 2>conftest.er1
8559 ac_status=$?
8560 grep -v '^ *+' conftest.er1 >conftest.err
8561 rm -f conftest.er1
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
8565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8566 { (case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569esac
8570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_try") 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; } &&
8575 { ac_try='test -s conftest.$ac_objext'
8576 { (case "(($ac_try" in
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8579esac
8580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581 (eval "$ac_try") 2>&5
8582 ac_status=$?
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8585 ac_header_compiler=yes
8586else
8587 echo "$as_me: failed program was:" >&5
8588sed 's/^/| /' conftest.$ac_ext >&5
8589
8590 ac_header_compiler=no
8591fi
8592
8593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8595echo "${ECHO_T}$ac_header_compiler" >&6; }
8596
8597# Is the header present?
8598{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8599echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8600cat >conftest.$ac_ext <<_ACEOF
8601/* confdefs.h. */
8602_ACEOF
8603cat confdefs.h >>conftest.$ac_ext
8604cat >>conftest.$ac_ext <<_ACEOF
8605/* end confdefs.h. */
8606#include <$ac_header>
8607_ACEOF
8608if { (ac_try="$ac_cpp conftest.$ac_ext"
8609case "(($ac_try" in
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8612esac
8613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8615 ac_status=$?
8616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } >/dev/null; then
8621 if test -s conftest.err; then
8622 ac_cpp_err=$ac_c_preproc_warn_flag
8623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8624 else
8625 ac_cpp_err=
8626 fi
8627else
8628 ac_cpp_err=yes
8629fi
8630if test -z "$ac_cpp_err"; then
8631 ac_header_preproc=yes
8632else
8633 echo "$as_me: failed program was:" >&5
8634sed 's/^/| /' conftest.$ac_ext >&5
8635
8636 ac_header_preproc=no
8637fi
8638
8639rm -f conftest.err conftest.$ac_ext
8640{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8641echo "${ECHO_T}$ac_header_preproc" >&6; }
8642
8643# So? What about this header?
8644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8645 yes:no: )
8646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8647echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8649echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8650 ac_header_preproc=yes
8651 ;;
8652 no:yes:* )
8653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8654echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8656echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8658echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8660echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8662echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8664echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8665 ( cat <<\_ASBOX
8666## ----------------------------------- ##
8667## Report this to llvmbugs@cs.uiuc.edu ##
8668## ----------------------------------- ##
8669_ASBOX
8670 ) | sed "s/^/$as_me: WARNING: /" >&2
8671 ;;
8672esac
8673{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677else
8678 eval "$as_ac_Header=\$ac_header_preproc"
8679fi
8680ac_res=`eval echo '${'$as_ac_Header'}'`
8681 { echo "$as_me:$LINENO: result: $ac_res" >&5
8682echo "${ECHO_T}$ac_res" >&6; }
8683
8684fi
8685if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008686 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008688_ACEOF
8689
8690fi
8691
8692done
8693
Reid Spencera773bd52006-08-04 18:18:08 +00008694# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008695if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008696 enableval=$enable_ltdl_install;
8697fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008698
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008700
8701
8702if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008703 INSTALL_LTDL_TRUE=
8704 INSTALL_LTDL_FALSE='#'
8705else
8706 INSTALL_LTDL_TRUE='#'
8707 INSTALL_LTDL_FALSE=
8708fi
8709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008710
8711
8712if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008713 CONVENIENCE_LTDL_TRUE=
8714 CONVENIENCE_LTDL_FALSE='#'
8715else
8716 CONVENIENCE_LTDL_TRUE='#'
8717 CONVENIENCE_LTDL_FALSE=
8718fi
8719
8720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008721{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8722echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008723library_names_spec=
8724libname_spec='lib$name'
8725soname_spec=
8726shrext_cmds=".so"
8727postinstall_cmds=
8728postuninstall_cmds=
8729finish_cmds=
8730finish_eval=
8731shlibpath_var=
8732shlibpath_overrides_runpath=unknown
8733version_type=none
8734dynamic_linker="$host_os ld.so"
8735sys_lib_dlsearch_path_spec="/lib /usr/lib"
8736if test "$GCC" = yes; then
8737 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8738 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8739 # if the path contains ";" then we assume it to be the separator
8740 # otherwise default to the standard path separator (i.e. ":") - it is
8741 # assumed that no part of a normal pathname contains ";" but that should
8742 # okay in the real world where ";" in dirpaths is itself problematic.
8743 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8744 else
8745 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8746 fi
8747else
8748 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8749fi
8750need_lib_prefix=unknown
8751hardcode_into_libs=no
8752
8753# when you set need_version to no, make sure it does not cause -set_version
8754# flags to be left without arguments
8755need_version=unknown
8756
8757case $host_os in
8758aix3*)
8759 version_type=linux
8760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8761 shlibpath_var=LIBPATH
8762
8763 # AIX 3 has no versioning support, so we append a major version to the name.
8764 soname_spec='${libname}${release}${shared_ext}$major'
8765 ;;
8766
8767aix4* | aix5*)
8768 version_type=linux
8769 need_lib_prefix=no
8770 need_version=no
8771 hardcode_into_libs=yes
8772 if test "$host_cpu" = ia64; then
8773 # AIX 5 supports IA64
8774 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8775 shlibpath_var=LD_LIBRARY_PATH
8776 else
8777 # With GCC up to 2.95.x, collect2 would create an import file
8778 # for dependence libraries. The import file would start with
8779 # the line `#! .'. This would cause the generated library to
8780 # depend on `.', always an invalid library. This was fixed in
8781 # development snapshots of GCC prior to 3.0.
8782 case $host_os in
8783 aix4 | aix4.[01] | aix4.[01].*)
8784 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8785 echo ' yes '
8786 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8787 :
8788 else
8789 can_build_shared=no
8790 fi
8791 ;;
8792 esac
8793 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8794 # soname into executable. Probably we can add versioning support to
8795 # collect2, so additional links can be useful in future.
8796 if test "$aix_use_runtimelinking" = yes; then
8797 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8798 # instead of lib<name>.a to let people know that these are not
8799 # typical AIX shared libraries.
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8801 else
8802 # We preserve .a as extension for shared libraries through AIX4.2
8803 # and later when we are not doing run time linking.
8804 library_names_spec='${libname}${release}.a $libname.a'
8805 soname_spec='${libname}${release}${shared_ext}$major'
8806 fi
8807 shlibpath_var=LIBPATH
8808 fi
8809 ;;
8810
8811amigaos*)
8812 library_names_spec='$libname.ixlibrary $libname.a'
8813 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8814 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'
8815 ;;
8816
8817beos*)
8818 library_names_spec='${libname}${shared_ext}'
8819 dynamic_linker="$host_os ld.so"
8820 shlibpath_var=LIBRARY_PATH
8821 ;;
8822
8823bsdi[45]*)
8824 version_type=linux
8825 need_version=no
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8827 soname_spec='${libname}${release}${shared_ext}$major'
8828 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8829 shlibpath_var=LD_LIBRARY_PATH
8830 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8831 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8832 # the default ld.so.conf also contains /usr/contrib/lib and
8833 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8834 # libtool to hard-code these into programs
8835 ;;
8836
8837cygwin* | mingw* | pw32*)
8838 version_type=windows
8839 shrext_cmds=".dll"
8840 need_version=no
8841 need_lib_prefix=no
8842
8843 case $GCC,$host_os in
8844 yes,cygwin* | yes,mingw* | yes,pw32*)
8845 library_names_spec='$libname.dll.a'
8846 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8847 postinstall_cmds='base_file=`basename \${file}`~
8848 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8849 dldir=$destdir/`dirname \$dlpath`~
8850 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008851 $install_prog $dir/$dlname \$dldir/$dlname~
8852 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008853 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8854 dlpath=$dir/\$dldll~
8855 $rm \$dlpath'
8856 shlibpath_overrides_runpath=yes
8857
8858 case $host_os in
8859 cygwin*)
8860 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8861 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8862 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8863 ;;
8864 mingw*)
8865 # MinGW DLLs use traditional 'lib' prefix
8866 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8867 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8868 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8869 # It is most probably a Windows format PATH printed by
8870 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8871 # path with ; separators, and with drive letters. We can handle the
8872 # drive letters (cygwin fileutils understands them), so leave them,
8873 # especially as we might pass files found there to a mingw objdump,
8874 # which wouldn't understand a cygwinified path. Ahh.
8875 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8876 else
8877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8878 fi
8879 ;;
8880 pw32*)
8881 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008882 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 +00008883 ;;
8884 esac
8885 ;;
8886
8887 *)
8888 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8889 ;;
8890 esac
8891 dynamic_linker='Win32 ld.exe'
8892 # FIXME: first we should search . and the directory the executable is in
8893 shlibpath_var=PATH
8894 ;;
8895
8896darwin* | rhapsody*)
8897 dynamic_linker="$host_os dyld"
8898 version_type=darwin
8899 need_lib_prefix=no
8900 need_version=no
8901 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8902 soname_spec='${libname}${release}${major}$shared_ext'
8903 shlibpath_overrides_runpath=yes
8904 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008905 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008906 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8907 if test "$GCC" = yes; then
8908 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"`
8909 else
8910 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8911 fi
8912 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8913 ;;
8914
8915dgux*)
8916 version_type=linux
8917 need_lib_prefix=no
8918 need_version=no
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 shlibpath_var=LD_LIBRARY_PATH
8922 ;;
8923
Eric Christopher360fa9a2011-10-26 00:42:12 +00008924freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008925 dynamic_linker=no
8926 ;;
8927
8928kfreebsd*-gnu)
8929 version_type=linux
8930 need_lib_prefix=no
8931 need_version=no
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 shlibpath_var=LD_LIBRARY_PATH
8935 shlibpath_overrides_runpath=no
8936 hardcode_into_libs=yes
8937 dynamic_linker='GNU ld.so'
8938 ;;
8939
Reid Spencera773bd52006-08-04 18:18:08 +00008940freebsd* | dragonfly*)
8941 # DragonFly does not have aout. When/if they implement a new
8942 # versioning mechanism, adjust this.
8943 if test -x /usr/bin/objformat; then
8944 objformat=`/usr/bin/objformat`
8945 else
8946 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008947 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008948 *) objformat=elf ;;
8949 esac
8950 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008951 version_type=freebsd-$objformat
8952 case $version_type in
8953 freebsd-elf*)
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8955 need_version=no
8956 need_lib_prefix=no
8957 ;;
8958 freebsd-*)
8959 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8960 need_version=yes
8961 ;;
8962 esac
8963 shlibpath_var=LD_LIBRARY_PATH
8964 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008965 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008966 shlibpath_overrides_runpath=yes
8967 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008968 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008969 shlibpath_overrides_runpath=yes
8970 hardcode_into_libs=yes
8971 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008972 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8973 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008974 shlibpath_overrides_runpath=no
8975 hardcode_into_libs=yes
8976 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008977 freebsd*) # from 4.6 on
8978 shlibpath_overrides_runpath=yes
8979 hardcode_into_libs=yes
8980 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008981 esac
8982 ;;
8983
8984gnu*)
8985 version_type=linux
8986 need_lib_prefix=no
8987 need_version=no
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 hardcode_into_libs=yes
8992 ;;
8993
8994hpux9* | hpux10* | hpux11*)
8995 # Give a soname corresponding to the major version so that dld.sl refuses to
8996 # link against other versions.
8997 version_type=sunos
8998 need_lib_prefix=no
8999 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009000 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009001 ia64*)
9002 shrext_cmds='.so'
9003 hardcode_into_libs=yes
9004 dynamic_linker="$host_os dld.so"
9005 shlibpath_var=LD_LIBRARY_PATH
9006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 if test "X$HPUX_IA64_MODE" = X32; then
9010 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9011 else
9012 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9013 fi
9014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9015 ;;
9016 hppa*64*)
9017 shrext_cmds='.sl'
9018 hardcode_into_libs=yes
9019 dynamic_linker="$host_os dld.sl"
9020 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9026 ;;
9027 *)
9028 shrext_cmds='.sl'
9029 dynamic_linker="$host_os dld.sl"
9030 shlibpath_var=SHLIB_PATH
9031 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 ;;
9035 esac
9036 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9037 postinstall_cmds='chmod 555 $lib'
9038 ;;
9039
Reid Spencera773bd52006-08-04 18:18:08 +00009040interix3*)
9041 version_type=linux
9042 need_lib_prefix=no
9043 need_version=no
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9045 soname_spec='${libname}${release}${shared_ext}$major'
9046 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=no
9049 hardcode_into_libs=yes
9050 ;;
9051
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009052irix5* | irix6* | nonstopux*)
9053 case $host_os in
9054 nonstopux*) version_type=nonstopux ;;
9055 *)
9056 if test "$lt_cv_prog_gnu_ld" = yes; then
9057 version_type=linux
9058 else
9059 version_type=irix
9060 fi ;;
9061 esac
9062 need_lib_prefix=no
9063 need_version=no
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9066 case $host_os in
9067 irix5* | nonstopux*)
9068 libsuff= shlibsuff=
9069 ;;
9070 *)
9071 case $LD in # libtool.m4 will add one of these switches to LD
9072 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9073 libsuff= shlibsuff= libmagic=32-bit;;
9074 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9075 libsuff=32 shlibsuff=N32 libmagic=N32;;
9076 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9077 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9078 *) libsuff= shlibsuff= libmagic=never-match;;
9079 esac
9080 ;;
9081 esac
9082 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9083 shlibpath_overrides_runpath=no
9084 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9085 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9086 hardcode_into_libs=yes
9087 ;;
9088
9089# No shared lib support for Linux oldld, aout, or coff.
9090linux*oldld* | linux*aout* | linux*coff*)
9091 dynamic_linker=no
9092 ;;
9093
9094# This must be Linux ELF.
9095linux*)
9096 version_type=linux
9097 need_lib_prefix=no
9098 need_version=no
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9102 shlibpath_var=LD_LIBRARY_PATH
9103 shlibpath_overrides_runpath=no
9104 # This implies no fast_install, which is unacceptable.
9105 # Some rework will be needed to allow for fast_install
9106 # before this can be enabled.
9107 hardcode_into_libs=yes
9108
9109 # Append ld.so.conf contents to the search path
9110 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009111 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 +00009112 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9113 fi
9114
9115 # We used to test for /lib/ld.so.1 and disable shared libraries on
9116 # powerpc, because MkLinux only supported shared libraries with the
9117 # GNU dynamic linker. Since this was broken with cross compilers,
9118 # most powerpc-linux boxes support dynamic linking these days and
9119 # people can always --disable-shared, the test was removed, and we
9120 # assume the GNU/Linux dynamic linker is in use.
9121 dynamic_linker='GNU/Linux ld.so'
9122 ;;
9123
9124knetbsd*-gnu)
9125 version_type=linux
9126 need_lib_prefix=no
9127 need_version=no
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 shlibpath_var=LD_LIBRARY_PATH
9131 shlibpath_overrides_runpath=no
9132 hardcode_into_libs=yes
9133 dynamic_linker='GNU ld.so'
9134 ;;
9135
9136netbsd*)
9137 version_type=sunos
9138 need_lib_prefix=no
9139 need_version=no
9140 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9143 dynamic_linker='NetBSD (a.out) ld.so'
9144 else
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 dynamic_linker='NetBSD ld.elf_so'
9148 fi
9149 shlibpath_var=LD_LIBRARY_PATH
9150 shlibpath_overrides_runpath=yes
9151 hardcode_into_libs=yes
9152 ;;
9153
9154newsos6)
9155 version_type=linux
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath=yes
9159 ;;
9160
9161nto-qnx*)
9162 version_type=linux
9163 need_lib_prefix=no
9164 need_version=no
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166 soname_spec='${libname}${release}${shared_ext}$major'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 shlibpath_overrides_runpath=yes
9169 ;;
9170
9171openbsd*)
9172 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009173 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009174 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009175 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9176 case $host_os in
9177 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9178 *) need_version=no ;;
9179 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9182 shlibpath_var=LD_LIBRARY_PATH
9183 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9184 case $host_os in
9185 openbsd2.[89] | openbsd2.[89].*)
9186 shlibpath_overrides_runpath=no
9187 ;;
9188 *)
9189 shlibpath_overrides_runpath=yes
9190 ;;
9191 esac
9192 else
9193 shlibpath_overrides_runpath=yes
9194 fi
9195 ;;
9196
9197os2*)
9198 libname_spec='$name'
9199 shrext_cmds=".dll"
9200 need_lib_prefix=no
9201 library_names_spec='$libname${shared_ext} $libname.a'
9202 dynamic_linker='OS/2 ld.exe'
9203 shlibpath_var=LIBPATH
9204 ;;
9205
9206osf3* | osf4* | osf5*)
9207 version_type=osf
9208 need_lib_prefix=no
9209 need_version=no
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212 shlibpath_var=LD_LIBRARY_PATH
9213 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9214 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9215 ;;
9216
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009217solaris*)
9218 version_type=linux
9219 need_lib_prefix=no
9220 need_version=no
9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9222 soname_spec='${libname}${release}${shared_ext}$major'
9223 shlibpath_var=LD_LIBRARY_PATH
9224 shlibpath_overrides_runpath=yes
9225 hardcode_into_libs=yes
9226 # ldd complains unless libraries are executable
9227 postinstall_cmds='chmod +x $lib'
9228 ;;
9229
9230sunos4*)
9231 version_type=sunos
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9233 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 shlibpath_overrides_runpath=yes
9236 if test "$with_gnu_ld" = yes; then
9237 need_lib_prefix=no
9238 fi
9239 need_version=yes
9240 ;;
9241
Reid Spencera773bd52006-08-04 18:18:08 +00009242sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009243 version_type=linux
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245 soname_spec='${libname}${release}${shared_ext}$major'
9246 shlibpath_var=LD_LIBRARY_PATH
9247 case $host_vendor in
9248 sni)
9249 shlibpath_overrides_runpath=no
9250 need_lib_prefix=no
9251 export_dynamic_flag_spec='${wl}-Blargedynsym'
9252 runpath_var=LD_RUN_PATH
9253 ;;
9254 siemens)
9255 need_lib_prefix=no
9256 ;;
9257 motorola)
9258 need_lib_prefix=no
9259 need_version=no
9260 shlibpath_overrides_runpath=no
9261 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9262 ;;
9263 esac
9264 ;;
9265
9266sysv4*MP*)
9267 if test -d /usr/nec ;then
9268 version_type=linux
9269 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9270 soname_spec='$libname${shared_ext}.$major'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 fi
9273 ;;
9274
Reid Spencera773bd52006-08-04 18:18:08 +00009275sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9276 version_type=freebsd-elf
9277 need_lib_prefix=no
9278 need_version=no
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9280 soname_spec='${libname}${release}${shared_ext}$major'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 hardcode_into_libs=yes
9283 if test "$with_gnu_ld" = yes; then
9284 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9285 shlibpath_overrides_runpath=no
9286 else
9287 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9288 shlibpath_overrides_runpath=yes
9289 case $host_os in
9290 sco3.2v5*)
9291 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9292 ;;
9293 esac
9294 fi
9295 sys_lib_dlsearch_path_spec='/usr/lib'
9296 ;;
9297
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009298uts4*)
9299 version_type=linux
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 ;;
9304
9305*)
9306 dynamic_linker=no
9307 ;;
9308esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009309{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9310echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009311test "$dynamic_linker" = no && can_build_shared=no
9312
Reid Spencera773bd52006-08-04 18:18:08 +00009313variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9314if test "$GCC" = yes; then
9315 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9316fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009317
Reid Spencera773bd52006-08-04 18:18:08 +00009318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009319{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9320echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9321if test "${libltdl_cv_shlibext+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009323else
9324
9325module=yes
9326eval libltdl_cv_shlibext=$shrext_cmds
9327
9328fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009329{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9330echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009331if test -n "$libltdl_cv_shlibext"; then
9332
9333cat >>confdefs.h <<_ACEOF
9334#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9335_ACEOF
9336
9337fi
9338
9339
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009340{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9341echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9342if test "${libltdl_cv_shlibpath_var+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009344else
9345 libltdl_cv_shlibpath_var="$shlibpath_var"
9346fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009347{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9348echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009349if test -n "$libltdl_cv_shlibpath_var"; then
9350
9351cat >>confdefs.h <<_ACEOF
9352#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9353_ACEOF
9354
9355fi
9356
9357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009358{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9359echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9360if test "${libltdl_cv_sys_search_path+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009362else
9363 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9364fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009365{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9366echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009367if test -n "$libltdl_cv_sys_search_path"; then
9368 sys_search_path=
9369 for dir in $libltdl_cv_sys_search_path; do
9370 if test -z "$sys_search_path"; then
9371 sys_search_path="$dir"
9372 else
9373 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9374 fi
9375 done
9376
9377cat >>confdefs.h <<_ACEOF
9378#define LTDL_SYSSEARCHPATH "$sys_search_path"
9379_ACEOF
9380
9381fi
9382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009383{ echo "$as_me:$LINENO: checking for objdir" >&5
9384echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9385if test "${libltdl_cv_objdir+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009387else
9388 libltdl_cv_objdir="$objdir"
9389 if test -n "$objdir"; then
9390 :
9391 else
9392 rm -f .libs 2>/dev/null
9393 mkdir .libs 2>/dev/null
9394 if test -d .libs; then
9395 libltdl_cv_objdir=.libs
9396 else
9397 # MS-DOS does not allow filenames that begin with a dot.
9398 libltdl_cv_objdir=_libs
9399 fi
9400 rmdir .libs 2>/dev/null
9401 fi
9402
9403fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009404{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9405echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009406
9407cat >>confdefs.h <<_ACEOF
9408#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9409_ACEOF
9410
9411
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009412
9413
9414
9415
9416# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009417{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9418echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9419if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009421else
9422
9423# These are sane defaults that work on at least a few old systems.
9424# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9425
9426# Character class describing NM global symbol codes.
9427symcode='[BCDEGRST]'
9428
9429# Regexp to match symbols that can be accessed directly from C.
9430sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9431
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009432# Transform an extracted symbol line into a proper C declaration
9433lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9434
9435# Transform an extracted symbol line into symbol name and symbol address
9436lt_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'"
9437
9438# Define system-specific variables.
9439case $host_os in
9440aix*)
9441 symcode='[BCDT]'
9442 ;;
9443cygwin* | mingw* | pw32*)
9444 symcode='[ABCDGISTW]'
9445 ;;
9446hpux*) # Its linker distinguishes data from code symbols
9447 if test "$host_cpu" = ia64; then
9448 symcode='[ABCDEGRST]'
9449 fi
9450 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9451 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'"
9452 ;;
9453linux*)
9454 if test "$host_cpu" = ia64; then
9455 symcode='[ABCDGIRSTW]'
9456 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9457 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'"
9458 fi
9459 ;;
9460irix* | nonstopux*)
9461 symcode='[BCDEGRST]'
9462 ;;
9463osf*)
9464 symcode='[BCDEGQRST]'
9465 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009466solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009467 symcode='[BDRT]'
9468 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009469sco3.2v5*)
9470 symcode='[DT]'
9471 ;;
9472sysv4.2uw2*)
9473 symcode='[DT]'
9474 ;;
9475sysv5* | sco5v6* | unixware* | OpenUNIX*)
9476 symcode='[ABDT]'
9477 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009478sysv4)
9479 symcode='[DFNSTU]'
9480 ;;
9481esac
9482
9483# Handle CRLF in mingw tool chain
9484opt_cr=
9485case $build_os in
9486mingw*)
9487 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9488 ;;
9489esac
9490
9491# If we're using GNU nm, then use its standard symbol codes.
9492case `$NM -V 2>&1` in
9493*GNU* | *'with BFD'*)
9494 symcode='[ABCDGIRSTW]' ;;
9495esac
9496
9497# Try without a prefix undercore, then with it.
9498for ac_symprfx in "" "_"; do
9499
Reid Spencera773bd52006-08-04 18:18:08 +00009500 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9501 symxfrm="\\1 $ac_symprfx\\2 \\2"
9502
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009503 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009504 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 +00009505
9506 # Check to see that the pipe works correctly.
9507 pipe_works=no
9508
9509 rm -f conftest*
9510 cat > conftest.$ac_ext <<EOF
9511#ifdef __cplusplus
9512extern "C" {
9513#endif
9514char nm_test_var;
9515void nm_test_func(){}
9516#ifdef __cplusplus
9517}
9518#endif
9519int main(){nm_test_var='a';nm_test_func();return(0);}
9520EOF
9521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009523 (eval $ac_compile) 2>&5
9524 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009527 # Now try to grab the symbols.
9528 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009529 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 +00009530 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9531 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009534 # Try sorting and uniquifying the output.
9535 if sort "$nlist" | uniq > "$nlist"T; then
9536 mv -f "$nlist"T "$nlist"
9537 else
9538 rm -f "$nlist"T
9539 fi
9540
9541 # Make sure that we snagged all the symbols we need.
9542 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9543 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9544 cat <<EOF > conftest.$ac_ext
9545#ifdef __cplusplus
9546extern "C" {
9547#endif
9548
9549EOF
9550 # Now generate the symbol file.
9551 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9552
9553 cat <<EOF >> conftest.$ac_ext
9554#if defined (__STDC__) && __STDC__
9555# define lt_ptr_t void *
9556#else
9557# define lt_ptr_t char *
9558# define const
9559#endif
9560
9561/* The mapping between symbol names and symbols. */
9562const struct {
9563 const char *name;
9564 lt_ptr_t address;
9565}
9566lt_preloaded_symbols[] =
9567{
9568EOF
9569 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9570 cat <<\EOF >> conftest.$ac_ext
9571 {0, (lt_ptr_t) 0}
9572};
9573
9574#ifdef __cplusplus
9575}
9576#endif
9577EOF
9578 # Now try linking the two files.
9579 mv conftest.$ac_objext conftstm.$ac_objext
9580 lt_save_LIBS="$LIBS"
9581 lt_save_CFLAGS="$CFLAGS"
9582 LIBS="conftstm.$ac_objext"
9583 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009585 (eval $ac_link) 2>&5
9586 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009589 pipe_works=yes
9590 fi
9591 LIBS="$lt_save_LIBS"
9592 CFLAGS="$lt_save_CFLAGS"
9593 else
9594 echo "cannot find nm_test_func in $nlist" >&5
9595 fi
9596 else
9597 echo "cannot find nm_test_var in $nlist" >&5
9598 fi
9599 else
9600 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9601 fi
9602 else
9603 echo "$progname: failed program was:" >&5
9604 cat conftest.$ac_ext >&5
9605 fi
9606 rm -f conftest* conftst*
9607
9608 # Do not use the global_symbol_pipe unless it works.
9609 if test "$pipe_works" = yes; then
9610 break
9611 else
9612 lt_cv_sys_global_symbol_pipe=
9613 fi
9614done
9615
9616fi
9617
9618if test -z "$lt_cv_sys_global_symbol_pipe"; then
9619 lt_cv_sys_global_symbol_to_cdecl=
9620fi
9621if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009622 { echo "$as_me:$LINENO: result: failed" >&5
9623echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009624else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009625 { echo "$as_me:$LINENO: result: ok" >&5
9626echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009627fi
9628
9629
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009630{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9631echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9632if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9633 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009634else
9635 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9636 libltdl_cv_preloaded_symbols=yes
9637 else
9638 libltdl_cv_preloaded_symbols=no
9639 fi
9640
9641fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009642{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9643echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009644if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009646cat >>confdefs.h <<\_ACEOF
9647#define HAVE_PRELOADED_SYMBOLS 1
9648_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009649
9650fi
9651
9652LIBADD_DL=
9653
9654ac_ext=c
9655ac_cpp='$CPP $CPPFLAGS'
9656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9658ac_compiler_gnu=$ac_cv_c_compiler_gnu
9659
9660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009661{ echo "$as_me:$LINENO: checking for shl_load" >&5
9662echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9663if test "${ac_cv_func_shl_load+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665else
9666 cat >conftest.$ac_ext <<_ACEOF
9667/* confdefs.h. */
9668_ACEOF
9669cat confdefs.h >>conftest.$ac_ext
9670cat >>conftest.$ac_ext <<_ACEOF
9671/* end confdefs.h. */
9672/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9674#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009676/* System header to define __stub macros and hopefully few prototypes,
9677 which can conflict with char shl_load (); below.
9678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9679 <limits.h> exists even on freestanding compilers. */
9680
9681#ifdef __STDC__
9682# include <limits.h>
9683#else
9684# include <assert.h>
9685#endif
9686
9687#undef shl_load
9688
9689/* Override any GCC internal prototype to avoid an error.
9690 Use char because int might match the return type of a GCC
9691 builtin and then its argument prototype would still apply. */
9692#ifdef __cplusplus
9693extern "C"
9694#endif
9695char shl_load ();
9696/* The GNU C library defines this for functions which it implements
9697 to always fail with ENOSYS. Some functions are actually named
9698 something starting with __ and the normal name is an alias. */
9699#if defined __stub_shl_load || defined __stub___shl_load
9700choke me
9701#endif
9702
9703int
9704main ()
9705{
9706return shl_load ();
9707 ;
9708 return 0;
9709}
9710_ACEOF
9711rm -f conftest.$ac_objext conftest$ac_exeext
9712if { (ac_try="$ac_link"
9713case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9716esac
9717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_link") 2>conftest.er1
9719 ac_status=$?
9720 grep -v '^ *+' conftest.er1 >conftest.err
9721 rm -f conftest.er1
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } &&
9725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9726 { (case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9729esac
9730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_try") 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; } &&
9735 { ac_try='test -s conftest$ac_exeext'
9736 { (case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9739esac
9740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_try") 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 ac_cv_func_shl_load=yes
9746else
9747 echo "$as_me: failed program was:" >&5
9748sed 's/^/| /' conftest.$ac_ext >&5
9749
9750 ac_cv_func_shl_load=no
9751fi
9752
9753rm -f core conftest.err conftest.$ac_objext \
9754 conftest$ac_exeext conftest.$ac_ext
9755fi
9756{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9757echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9758if test $ac_cv_func_shl_load = yes; then
9759
9760cat >>confdefs.h <<\_ACEOF
9761#define HAVE_SHL_LOAD 1
9762_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009763
9764else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009765 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9766echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9767if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009769else
9770 ac_check_lib_save_LIBS=$LIBS
9771LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009772cat >conftest.$ac_ext <<_ACEOF
9773/* confdefs.h. */
9774_ACEOF
9775cat confdefs.h >>conftest.$ac_ext
9776cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777/* end confdefs.h. */
9778
Reid Spencera773bd52006-08-04 18:18:08 +00009779/* Override any GCC internal prototype to avoid an error.
9780 Use char because int might match the return type of a GCC
9781 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009782#ifdef __cplusplus
9783extern "C"
9784#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009785char shl_load ();
9786int
9787main ()
9788{
Reid Spencera773bd52006-08-04 18:18:08 +00009789return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009790 ;
9791 return 0;
9792}
9793_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009794rm -f conftest.$ac_objext conftest$ac_exeext
9795if { (ac_try="$ac_link"
9796case "(($ac_try" in
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9799esac
9800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_link") 2>conftest.er1
9802 ac_status=$?
9803 grep -v '^ *+' conftest.er1 >conftest.err
9804 rm -f conftest.er1
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } &&
9808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9809 { (case "(($ac_try" in
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9812esac
9813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_try") 2>&5
9815 ac_status=$?
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; } &&
9818 { ac_try='test -s conftest$ac_exeext'
9819 { (case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9822esac
9823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_try") 2>&5
9825 ac_status=$?
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009828 ac_cv_lib_dld_shl_load=yes
9829else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009830 echo "$as_me: failed program was:" >&5
9831sed 's/^/| /' conftest.$ac_ext >&5
9832
9833 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009834fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009835
Bill Wendlingebcceee2009-04-18 11:20:33 +00009836rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009837 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838LIBS=$ac_check_lib_save_LIBS
9839fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009840{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9841echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9842if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009844cat >>confdefs.h <<\_ACEOF
9845#define HAVE_SHL_LOAD 1
9846_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009847
9848 LIBADD_DL="$LIBADD_DL -ldld"
9849else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009850 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9851echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9852if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854else
9855 ac_check_lib_save_LIBS=$LIBS
9856LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009857cat >conftest.$ac_ext <<_ACEOF
9858/* confdefs.h. */
9859_ACEOF
9860cat confdefs.h >>conftest.$ac_ext
9861cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009862/* end confdefs.h. */
9863
Reid Spencera773bd52006-08-04 18:18:08 +00009864/* Override any GCC internal prototype to avoid an error.
9865 Use char because int might match the return type of a GCC
9866 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009867#ifdef __cplusplus
9868extern "C"
9869#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009870char dlopen ();
9871int
9872main ()
9873{
Reid Spencera773bd52006-08-04 18:18:08 +00009874return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009875 ;
9876 return 0;
9877}
9878_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009879rm -f conftest.$ac_objext conftest$ac_exeext
9880if { (ac_try="$ac_link"
9881case "(($ac_try" in
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9884esac
9885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886 (eval "$ac_link") 2>conftest.er1
9887 ac_status=$?
9888 grep -v '^ *+' conftest.er1 >conftest.err
9889 rm -f conftest.er1
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } &&
9893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9894 { (case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897esac
9898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_try") 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; } &&
9903 { ac_try='test -s conftest$ac_exeext'
9904 { (case "(($ac_try" in
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9907esac
9908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_try") 2>&5
9910 ac_status=$?
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009913 ac_cv_lib_dl_dlopen=yes
9914else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009915 echo "$as_me: failed program was:" >&5
9916sed 's/^/| /' conftest.$ac_ext >&5
9917
9918 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009920
Bill Wendlingebcceee2009-04-18 11:20:33 +00009921rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009922 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009923LIBS=$ac_check_lib_save_LIBS
9924fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009925{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9926echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9927if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009929cat >>confdefs.h <<\_ACEOF
9930#define HAVE_LIBDL 1
9931_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009932
9933 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9934else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009935 cat >conftest.$ac_ext <<_ACEOF
9936/* confdefs.h. */
9937_ACEOF
9938cat confdefs.h >>conftest.$ac_ext
9939cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009940/* end confdefs.h. */
9941#if HAVE_DLFCN_H
9942# include <dlfcn.h>
9943#endif
9944
9945int
9946main ()
9947{
9948dlopen(0, 0);
9949 ;
9950 return 0;
9951}
9952_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009953rm -f conftest.$ac_objext conftest$ac_exeext
9954if { (ac_try="$ac_link"
9955case "(($ac_try" in
9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957 *) ac_try_echo=$ac_try;;
9958esac
9959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960 (eval "$ac_link") 2>conftest.er1
9961 ac_status=$?
9962 grep -v '^ *+' conftest.er1 >conftest.err
9963 rm -f conftest.er1
9964 cat conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } &&
9967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9968 { (case "(($ac_try" in
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9971esac
9972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973 (eval "$ac_try") 2>&5
9974 ac_status=$?
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; } &&
9977 { ac_try='test -s conftest$ac_exeext'
9978 { (case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9981esac
9982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_try") 2>&5
9984 ac_status=$?
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009988cat >>confdefs.h <<\_ACEOF
9989#define HAVE_LIBDL 1
9990_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991 libltdl_cv_func_dlopen="yes"
9992else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009993 echo "$as_me: failed program was:" >&5
9994sed 's/^/| /' conftest.$ac_ext >&5
9995
9996 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9997echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9998if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010000else
10001 ac_check_lib_save_LIBS=$LIBS
10002LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010003cat >conftest.$ac_ext <<_ACEOF
10004/* confdefs.h. */
10005_ACEOF
10006cat confdefs.h >>conftest.$ac_ext
10007cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008/* end confdefs.h. */
10009
Reid Spencera773bd52006-08-04 18:18:08 +000010010/* Override any GCC internal prototype to avoid an error.
10011 Use char because int might match the return type of a GCC
10012 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010013#ifdef __cplusplus
10014extern "C"
10015#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010016char dlopen ();
10017int
10018main ()
10019{
Reid Spencera773bd52006-08-04 18:18:08 +000010020return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021 ;
10022 return 0;
10023}
10024_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010025rm -f conftest.$ac_objext conftest$ac_exeext
10026if { (ac_try="$ac_link"
10027case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10030esac
10031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_link") 2>conftest.er1
10033 ac_status=$?
10034 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } &&
10039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10040 { (case "(($ac_try" in
10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042 *) ac_try_echo=$ac_try;;
10043esac
10044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045 (eval "$ac_try") 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; } &&
10049 { ac_try='test -s conftest$ac_exeext'
10050 { (case "(($ac_try" in
10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052 *) ac_try_echo=$ac_try;;
10053esac
10054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_try") 2>&5
10056 ac_status=$?
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010059 ac_cv_lib_svld_dlopen=yes
10060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010061 echo "$as_me: failed program was:" >&5
10062sed 's/^/| /' conftest.$ac_ext >&5
10063
10064 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010065fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010066
Bill Wendlingebcceee2009-04-18 11:20:33 +000010067rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010068 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010069LIBS=$ac_check_lib_save_LIBS
10070fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010071{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10072echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10073if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010075cat >>confdefs.h <<\_ACEOF
10076#define HAVE_LIBDL 1
10077_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010078
10079 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010081 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10082echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10083if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010085else
10086 ac_check_lib_save_LIBS=$LIBS
10087LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010088cat >conftest.$ac_ext <<_ACEOF
10089/* confdefs.h. */
10090_ACEOF
10091cat confdefs.h >>conftest.$ac_ext
10092cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010093/* end confdefs.h. */
10094
Reid Spencera773bd52006-08-04 18:18:08 +000010095/* Override any GCC internal prototype to avoid an error.
10096 Use char because int might match the return type of a GCC
10097 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010098#ifdef __cplusplus
10099extern "C"
10100#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010101char dld_link ();
10102int
10103main ()
10104{
Reid Spencera773bd52006-08-04 18:18:08 +000010105return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010106 ;
10107 return 0;
10108}
10109_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010110rm -f conftest.$ac_objext conftest$ac_exeext
10111if { (ac_try="$ac_link"
10112case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10115esac
10116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_link") 2>conftest.er1
10118 ac_status=$?
10119 grep -v '^ *+' conftest.er1 >conftest.err
10120 rm -f conftest.er1
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } &&
10124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10125 { (case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10128esac
10129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_try") 2>&5
10131 ac_status=$?
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; } &&
10134 { ac_try='test -s conftest$ac_exeext'
10135 { (case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138esac
10139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_try") 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010144 ac_cv_lib_dld_dld_link=yes
10145else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010146 echo "$as_me: failed program was:" >&5
10147sed 's/^/| /' conftest.$ac_ext >&5
10148
10149 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010150fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010151
Bill Wendlingebcceee2009-04-18 11:20:33 +000010152rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010153 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010154LIBS=$ac_check_lib_save_LIBS
10155fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010156{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10157echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10158if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010160cat >>confdefs.h <<\_ACEOF
10161#define HAVE_DLD 1
10162_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010163
10164 LIBADD_DL="$LIBADD_DL -ldld"
10165else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010166 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10167echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10168if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170else
10171 cat >conftest.$ac_ext <<_ACEOF
10172/* confdefs.h. */
10173_ACEOF
10174cat confdefs.h >>conftest.$ac_ext
10175cat >>conftest.$ac_ext <<_ACEOF
10176/* end confdefs.h. */
10177/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10179#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010181/* System header to define __stub macros and hopefully few prototypes,
10182 which can conflict with char _dyld_func_lookup (); below.
10183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10184 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010185
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010186#ifdef __STDC__
10187# include <limits.h>
10188#else
10189# include <assert.h>
10190#endif
10191
10192#undef _dyld_func_lookup
10193
10194/* Override any GCC internal prototype to avoid an error.
10195 Use char because int might match the return type of a GCC
10196 builtin and then its argument prototype would still apply. */
10197#ifdef __cplusplus
10198extern "C"
10199#endif
10200char _dyld_func_lookup ();
10201/* The GNU C library defines this for functions which it implements
10202 to always fail with ENOSYS. Some functions are actually named
10203 something starting with __ and the normal name is an alias. */
10204#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10205choke me
10206#endif
10207
10208int
10209main ()
10210{
10211return _dyld_func_lookup ();
10212 ;
10213 return 0;
10214}
10215_ACEOF
10216rm -f conftest.$ac_objext conftest$ac_exeext
10217if { (ac_try="$ac_link"
10218case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10221esac
10222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_link") 2>conftest.er1
10224 ac_status=$?
10225 grep -v '^ *+' conftest.er1 >conftest.err
10226 rm -f conftest.er1
10227 cat conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } &&
10230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10231 { (case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10234esac
10235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_try") 2>&5
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; } &&
10240 { ac_try='test -s conftest$ac_exeext'
10241 { (case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10244esac
10245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_try") 2>&5
10247 ac_status=$?
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; }; then
10250 ac_cv_func__dyld_func_lookup=yes
10251else
10252 echo "$as_me: failed program was:" >&5
10253sed 's/^/| /' conftest.$ac_ext >&5
10254
10255 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010256fi
Reid Spencera773bd52006-08-04 18:18:08 +000010257
Bill Wendlingebcceee2009-04-18 11:20:33 +000010258rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010259 conftest$ac_exeext conftest.$ac_ext
10260fi
10261{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10262echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10263if test $ac_cv_func__dyld_func_lookup = yes; then
10264
10265cat >>confdefs.h <<\_ACEOF
10266#define HAVE_DYLD 1
10267_ACEOF
10268
10269fi
10270
10271
10272fi
10273
10274
10275fi
10276
10277
10278fi
10279
10280rm -f core conftest.err conftest.$ac_objext \
10281 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010282
10283fi
10284
10285
10286fi
10287
10288
10289fi
10290
10291
10292if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10293then
10294 lt_save_LIBS="$LIBS"
10295 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010296
10297for ac_func in dlerror
10298do
10299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10300{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10302if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10304else
10305 cat >conftest.$ac_ext <<_ACEOF
10306/* confdefs.h. */
10307_ACEOF
10308cat confdefs.h >>conftest.$ac_ext
10309cat >>conftest.$ac_ext <<_ACEOF
10310/* end confdefs.h. */
10311/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10313#define $ac_func innocuous_$ac_func
10314
10315/* System header to define __stub macros and hopefully few prototypes,
10316 which can conflict with char $ac_func (); below.
10317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10318 <limits.h> exists even on freestanding compilers. */
10319
10320#ifdef __STDC__
10321# include <limits.h>
10322#else
10323# include <assert.h>
10324#endif
10325
10326#undef $ac_func
10327
10328/* Override any GCC internal prototype to avoid an error.
10329 Use char because int might match the return type of a GCC
10330 builtin and then its argument prototype would still apply. */
10331#ifdef __cplusplus
10332extern "C"
10333#endif
10334char $ac_func ();
10335/* The GNU C library defines this for functions which it implements
10336 to always fail with ENOSYS. Some functions are actually named
10337 something starting with __ and the normal name is an alias. */
10338#if defined __stub_$ac_func || defined __stub___$ac_func
10339choke me
10340#endif
10341
10342int
10343main ()
10344{
10345return $ac_func ();
10346 ;
10347 return 0;
10348}
10349_ACEOF
10350rm -f conftest.$ac_objext conftest$ac_exeext
10351if { (ac_try="$ac_link"
10352case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10355esac
10356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_link") 2>conftest.er1
10358 ac_status=$?
10359 grep -v '^ *+' conftest.er1 >conftest.err
10360 rm -f conftest.er1
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } &&
10364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10365 { (case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10368esac
10369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_try") 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; } &&
10374 { ac_try='test -s conftest$ac_exeext'
10375 { (case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10378esac
10379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_try") 2>&5
10381 ac_status=$?
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
10384 eval "$as_ac_var=yes"
10385else
10386 echo "$as_me: failed program was:" >&5
10387sed 's/^/| /' conftest.$ac_ext >&5
10388
10389 eval "$as_ac_var=no"
10390fi
10391
10392rm -f core conftest.err conftest.$ac_objext \
10393 conftest$ac_exeext conftest.$ac_ext
10394fi
10395ac_res=`eval echo '${'$as_ac_var'}'`
10396 { echo "$as_me:$LINENO: result: $ac_res" >&5
10397echo "${ECHO_T}$ac_res" >&6; }
10398if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010399 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010400#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010401_ACEOF
10402
10403fi
10404done
10405
10406 LIBS="$lt_save_LIBS"
10407fi
10408ac_ext=c
10409ac_cpp='$CPP $CPPFLAGS'
10410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10412ac_compiler_gnu=$ac_cv_c_compiler_gnu
10413
10414
10415
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010416{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10417echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10418if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010420else
10421 ac_cv_sys_symbol_underscore=no
10422 cat > conftest.$ac_ext <<EOF
10423void nm_test_func(){}
10424int main(){nm_test_func;return 0;}
10425EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010427 (eval $ac_compile) 2>&5
10428 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010431 # Now try to grab the symbols.
10432 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010433 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 +000010434 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10435 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010438 # See whether the symbols have a leading underscore.
10439 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10440 ac_cv_sys_symbol_underscore=yes
10441 else
10442 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10443 :
10444 else
10445 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10446 fi
10447 fi
10448 else
10449 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10450 fi
10451 else
10452 echo "configure: failed program was:" >&5
10453 cat conftest.c >&5
10454 fi
10455 rm -rf conftest*
10456
10457fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010458{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10459echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010460
10461
10462if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10463 if test x"$libltdl_cv_func_dlopen" = xyes ||
10464 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010465 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10466echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10467if test "${libltdl_cv_need_uscore+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010469else
10470 libltdl_cv_need_uscore=unknown
10471 save_LIBS="$LIBS"
10472 LIBS="$LIBS $LIBADD_DL"
10473 if test "$cross_compiling" = yes; then :
10474 libltdl_cv_need_uscore=cross
10475else
10476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10477 lt_status=$lt_dlunknown
10478 cat > conftest.$ac_ext <<EOF
Eric Christopherbee515f2011-11-11 22:51:42 +000010479#line 10479 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010480#include "confdefs.h"
10481
10482#if HAVE_DLFCN_H
10483#include <dlfcn.h>
10484#endif
10485
10486#include <stdio.h>
10487
10488#ifdef RTLD_GLOBAL
10489# define LT_DLGLOBAL RTLD_GLOBAL
10490#else
10491# ifdef DL_GLOBAL
10492# define LT_DLGLOBAL DL_GLOBAL
10493# else
10494# define LT_DLGLOBAL 0
10495# endif
10496#endif
10497
10498/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10499 find out it does not work in some platform. */
10500#ifndef LT_DLLAZY_OR_NOW
10501# ifdef RTLD_LAZY
10502# define LT_DLLAZY_OR_NOW RTLD_LAZY
10503# else
10504# ifdef DL_LAZY
10505# define LT_DLLAZY_OR_NOW DL_LAZY
10506# else
10507# ifdef RTLD_NOW
10508# define LT_DLLAZY_OR_NOW RTLD_NOW
10509# else
10510# ifdef DL_NOW
10511# define LT_DLLAZY_OR_NOW DL_NOW
10512# else
10513# define LT_DLLAZY_OR_NOW 0
10514# endif
10515# endif
10516# endif
10517# endif
10518#endif
10519
10520#ifdef __cplusplus
10521extern "C" void exit (int);
10522#endif
10523
10524void fnord() { int i=42;}
10525int main ()
10526{
10527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10528 int status = $lt_dlunknown;
10529
10530 if (self)
10531 {
10532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10533 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10534 /* dlclose (self); */
10535 }
Reid Spencera773bd52006-08-04 18:18:08 +000010536 else
10537 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010538
10539 exit (status);
10540}
10541EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010543 (eval $ac_link) 2>&5
10544 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010547 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010548 lt_status=$?
10549 case x$lt_status in
10550 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10551 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010552 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010553 esac
10554 else :
10555 # compilation failed
10556
10557 fi
10558fi
10559rm -fr conftest*
10560
10561 LIBS="$save_LIBS"
10562
10563fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010564{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10565echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010566 fi
10567fi
10568
10569if test x"$libltdl_cv_need_uscore" = xyes; then
10570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010571cat >>confdefs.h <<\_ACEOF
10572#define NEED_USCORE 1
10573_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010574
10575fi
10576
10577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010578{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10579echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10580if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010582else
10583 # PORTME does your system automatically load deplibs for dlopen?
10584 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10585 # For now, we just catch OSes we know something about -- in the
10586 # future, we'll try test this programmatically.
10587 libltdl_cv_sys_dlopen_deplibs=unknown
10588 case "$host_os" in
10589 aix3*|aix4.1.*|aix4.2.*)
10590 # Unknown whether this is true for these versions of AIX, but
10591 # we want this `case' here to explicitly catch those versions.
10592 libltdl_cv_sys_dlopen_deplibs=unknown
10593 ;;
10594 aix[45]*)
10595 libltdl_cv_sys_dlopen_deplibs=yes
10596 ;;
10597 darwin*)
10598 # Assuming the user has installed a libdl from somewhere, this is true
10599 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10600 libltdl_cv_sys_dlopen_deplibs=yes
10601 ;;
10602 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10603 # GNU and its variants, using gnu ld.so (Glibc)
10604 libltdl_cv_sys_dlopen_deplibs=yes
10605 ;;
10606 hpux10*|hpux11*)
10607 libltdl_cv_sys_dlopen_deplibs=yes
10608 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010609 interix*)
10610 libltdl_cv_sys_dlopen_deplibs=yes
10611 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010612 irix[12345]*|irix6.[01]*)
10613 # Catch all versions of IRIX before 6.2, and indicate that we don't
10614 # know how it worked for any of those versions.
10615 libltdl_cv_sys_dlopen_deplibs=unknown
10616 ;;
10617 irix*)
10618 # The case above catches anything before 6.2, and it's known that
10619 # at 6.2 and later dlopen does load deplibs.
10620 libltdl_cv_sys_dlopen_deplibs=yes
10621 ;;
10622 netbsd*)
10623 libltdl_cv_sys_dlopen_deplibs=yes
10624 ;;
10625 openbsd*)
10626 libltdl_cv_sys_dlopen_deplibs=yes
10627 ;;
10628 osf[1234]*)
10629 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10630 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010631 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010632 libltdl_cv_sys_dlopen_deplibs=no
10633 ;;
10634 osf5.0|osf5.0a|osf5.1)
10635 # dlopen *does* load deplibs and with the right loader patch applied
10636 # it even uses RPATH in a shared library to search for shared objects
10637 # that the library depends on, but there's no easy way to know if that
10638 # patch is installed. Since this is the case, all we can really
10639 # say is unknown -- it depends on the patch being installed. If
10640 # it is, this changes to `yes'. Without it, it would be `no'.
10641 libltdl_cv_sys_dlopen_deplibs=unknown
10642 ;;
10643 osf*)
10644 # the two cases above should catch all versions of osf <= 5.1. Read
10645 # the comments above for what we know about them.
10646 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10647 # is used to find them so we can finally say `yes'.
10648 libltdl_cv_sys_dlopen_deplibs=yes
10649 ;;
10650 solaris*)
10651 libltdl_cv_sys_dlopen_deplibs=yes
10652 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010653 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10654 libltdl_cv_sys_dlopen_deplibs=yes
10655 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010656 esac
10657
10658fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010659{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10660echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010661if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010663cat >>confdefs.h <<\_ACEOF
10664#define LTDL_DLOPEN_DEPLIBS 1
10665_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010666
10667fi
10668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010669
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010670for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010671do
10672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10678fi
10679ac_res=`eval echo '${'$as_ac_Header'}'`
10680 { echo "$as_me:$LINENO: result: $ac_res" >&5
10681echo "${ECHO_T}$ac_res" >&6; }
10682else
10683 # Is the header compilable?
10684{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10685echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10686cat >conftest.$ac_ext <<_ACEOF
10687/* confdefs.h. */
10688_ACEOF
10689cat confdefs.h >>conftest.$ac_ext
10690cat >>conftest.$ac_ext <<_ACEOF
10691/* end confdefs.h. */
10692$ac_includes_default
10693#include <$ac_header>
10694_ACEOF
10695rm -f conftest.$ac_objext
10696if { (ac_try="$ac_compile"
10697case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700esac
10701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_compile") 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10710 { (case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10713esac
10714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_try") 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try='test -s conftest.$ac_objext'
10720 { (case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10723esac
10724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_try") 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 ac_header_compiler=yes
10730else
10731 echo "$as_me: failed program was:" >&5
10732sed 's/^/| /' conftest.$ac_ext >&5
10733
10734 ac_header_compiler=no
10735fi
10736
10737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10738{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10739echo "${ECHO_T}$ac_header_compiler" >&6; }
10740
10741# Is the header present?
10742{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10743echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10744cat >conftest.$ac_ext <<_ACEOF
10745/* confdefs.h. */
10746_ACEOF
10747cat confdefs.h >>conftest.$ac_ext
10748cat >>conftest.$ac_ext <<_ACEOF
10749/* end confdefs.h. */
10750#include <$ac_header>
10751_ACEOF
10752if { (ac_try="$ac_cpp conftest.$ac_ext"
10753case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10756esac
10757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10759 ac_status=$?
10760 grep -v '^ *+' conftest.er1 >conftest.err
10761 rm -f conftest.er1
10762 cat conftest.err >&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } >/dev/null; then
10765 if test -s conftest.err; then
10766 ac_cpp_err=$ac_c_preproc_warn_flag
10767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10768 else
10769 ac_cpp_err=
10770 fi
10771else
10772 ac_cpp_err=yes
10773fi
10774if test -z "$ac_cpp_err"; then
10775 ac_header_preproc=yes
10776else
10777 echo "$as_me: failed program was:" >&5
10778sed 's/^/| /' conftest.$ac_ext >&5
10779
10780 ac_header_preproc=no
10781fi
10782
10783rm -f conftest.err conftest.$ac_ext
10784{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10785echo "${ECHO_T}$ac_header_preproc" >&6; }
10786
10787# So? What about this header?
10788case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10789 yes:no: )
10790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10791echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10793echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10794 ac_header_preproc=yes
10795 ;;
10796 no:yes:* )
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10798echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10800echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10802echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10804echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10806echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10808echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10809 ( cat <<\_ASBOX
10810## ----------------------------------- ##
10811## Report this to llvmbugs@cs.uiuc.edu ##
10812## ----------------------------------- ##
10813_ASBOX
10814 ) | sed "s/^/$as_me: WARNING: /" >&2
10815 ;;
10816esac
10817{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10821else
10822 eval "$as_ac_Header=\$ac_header_preproc"
10823fi
10824ac_res=`eval echo '${'$as_ac_Header'}'`
10825 { echo "$as_me:$LINENO: result: $ac_res" >&5
10826echo "${ECHO_T}$ac_res" >&6; }
10827
10828fi
10829if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010830 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010832_ACEOF
10833
10834fi
10835
10836done
10837
10838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010839{ echo "$as_me:$LINENO: checking for error_t" >&5
10840echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10841if test "${ac_cv_type_error_t+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10843else
10844 cat >conftest.$ac_ext <<_ACEOF
10845/* confdefs.h. */
10846_ACEOF
10847cat confdefs.h >>conftest.$ac_ext
10848cat >>conftest.$ac_ext <<_ACEOF
10849/* end confdefs.h. */
10850#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010851# include <argz.h>
10852#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010853
10854typedef error_t ac__type_new_;
10855int
10856main ()
10857{
10858if ((ac__type_new_ *) 0)
10859 return 0;
10860if (sizeof (ac__type_new_))
10861 return 0;
10862 ;
10863 return 0;
10864}
10865_ACEOF
10866rm -f conftest.$ac_objext
10867if { (ac_try="$ac_compile"
10868case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871esac
10872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_compile") 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10881 { (case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884esac
10885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_try") 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest.$ac_objext'
10891 { (case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894esac
10895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_try") 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 ac_cv_type_error_t=yes
10901else
10902 echo "$as_me: failed program was:" >&5
10903sed 's/^/| /' conftest.$ac_ext >&5
10904
10905 ac_cv_type_error_t=no
10906fi
10907
10908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10909fi
10910{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10911echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10912if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010913
10914cat >>confdefs.h <<_ACEOF
10915#define HAVE_ERROR_T 1
10916_ACEOF
10917
10918
10919else
10920
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010921cat >>confdefs.h <<\_ACEOF
10922#define error_t int
10923_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010924
10925fi
10926
10927
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010928
10929
10930
10931
10932
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010933for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010934do
10935as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10936{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10937echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10938if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940else
10941 cat >conftest.$ac_ext <<_ACEOF
10942/* confdefs.h. */
10943_ACEOF
10944cat confdefs.h >>conftest.$ac_ext
10945cat >>conftest.$ac_ext <<_ACEOF
10946/* end confdefs.h. */
10947/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10949#define $ac_func innocuous_$ac_func
10950
10951/* System header to define __stub macros and hopefully few prototypes,
10952 which can conflict with char $ac_func (); below.
10953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10954 <limits.h> exists even on freestanding compilers. */
10955
10956#ifdef __STDC__
10957# include <limits.h>
10958#else
10959# include <assert.h>
10960#endif
10961
10962#undef $ac_func
10963
10964/* Override any GCC internal prototype to avoid an error.
10965 Use char because int might match the return type of a GCC
10966 builtin and then its argument prototype would still apply. */
10967#ifdef __cplusplus
10968extern "C"
10969#endif
10970char $ac_func ();
10971/* The GNU C library defines this for functions which it implements
10972 to always fail with ENOSYS. Some functions are actually named
10973 something starting with __ and the normal name is an alias. */
10974#if defined __stub_$ac_func || defined __stub___$ac_func
10975choke me
10976#endif
10977
10978int
10979main ()
10980{
10981return $ac_func ();
10982 ;
10983 return 0;
10984}
10985_ACEOF
10986rm -f conftest.$ac_objext conftest$ac_exeext
10987if { (ac_try="$ac_link"
10988case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10991esac
10992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_link") 2>conftest.er1
10994 ac_status=$?
10995 grep -v '^ *+' conftest.er1 >conftest.err
10996 rm -f conftest.er1
10997 cat conftest.err >&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } &&
11000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11001 { (case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004esac
11005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_try") 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; } &&
11010 { ac_try='test -s conftest$ac_exeext'
11011 { (case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11014esac
11015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_try") 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 eval "$as_ac_var=yes"
11021else
11022 echo "$as_me: failed program was:" >&5
11023sed 's/^/| /' conftest.$ac_ext >&5
11024
11025 eval "$as_ac_var=no"
11026fi
11027
11028rm -f core conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext conftest.$ac_ext
11030fi
11031ac_res=`eval echo '${'$as_ac_var'}'`
11032 { echo "$as_me:$LINENO: result: $ac_res" >&5
11033echo "${ECHO_T}$ac_res" >&6; }
11034if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011035 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011036#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011037_ACEOF
11038
11039fi
11040done
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011061
11062
11063
11064
11065
11066
11067
11068
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011069for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11070 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011071do
11072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078fi
11079ac_res=`eval echo '${'$as_ac_Header'}'`
11080 { echo "$as_me:$LINENO: result: $ac_res" >&5
11081echo "${ECHO_T}$ac_res" >&6; }
11082else
11083 # Is the header compilable?
11084{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11085echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11086cat >conftest.$ac_ext <<_ACEOF
11087/* confdefs.h. */
11088_ACEOF
11089cat confdefs.h >>conftest.$ac_ext
11090cat >>conftest.$ac_ext <<_ACEOF
11091/* end confdefs.h. */
11092$ac_includes_default
11093#include <$ac_header>
11094_ACEOF
11095rm -f conftest.$ac_objext
11096if { (ac_try="$ac_compile"
11097case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11100esac
11101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_compile") 2>conftest.er1
11103 ac_status=$?
11104 grep -v '^ *+' conftest.er1 >conftest.err
11105 rm -f conftest.er1
11106 cat conftest.err >&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } &&
11109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11119 { ac_try='test -s conftest.$ac_objext'
11120 { (case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11123esac
11124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_try") 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
11129 ac_header_compiler=yes
11130else
11131 echo "$as_me: failed program was:" >&5
11132sed 's/^/| /' conftest.$ac_ext >&5
11133
11134 ac_header_compiler=no
11135fi
11136
11137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11138{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11139echo "${ECHO_T}$ac_header_compiler" >&6; }
11140
11141# Is the header present?
11142{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11143echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11144cat >conftest.$ac_ext <<_ACEOF
11145/* confdefs.h. */
11146_ACEOF
11147cat confdefs.h >>conftest.$ac_ext
11148cat >>conftest.$ac_ext <<_ACEOF
11149/* end confdefs.h. */
11150#include <$ac_header>
11151_ACEOF
11152if { (ac_try="$ac_cpp conftest.$ac_ext"
11153case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11156esac
11157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11159 ac_status=$?
11160 grep -v '^ *+' conftest.er1 >conftest.err
11161 rm -f conftest.er1
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } >/dev/null; then
11165 if test -s conftest.err; then
11166 ac_cpp_err=$ac_c_preproc_warn_flag
11167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11168 else
11169 ac_cpp_err=
11170 fi
11171else
11172 ac_cpp_err=yes
11173fi
11174if test -z "$ac_cpp_err"; then
11175 ac_header_preproc=yes
11176else
11177 echo "$as_me: failed program was:" >&5
11178sed 's/^/| /' conftest.$ac_ext >&5
11179
11180 ac_header_preproc=no
11181fi
11182
11183rm -f conftest.err conftest.$ac_ext
11184{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11185echo "${ECHO_T}$ac_header_preproc" >&6; }
11186
11187# So? What about this header?
11188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11189 yes:no: )
11190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11193echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11194 ac_header_preproc=yes
11195 ;;
11196 no:yes:* )
11197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11198echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11200echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11202echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11204echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11206echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11208echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11209 ( cat <<\_ASBOX
11210## ----------------------------------- ##
11211## Report this to llvmbugs@cs.uiuc.edu ##
11212## ----------------------------------- ##
11213_ASBOX
11214 ) | sed "s/^/$as_me: WARNING: /" >&2
11215 ;;
11216esac
11217{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11221else
11222 eval "$as_ac_Header=\$ac_header_preproc"
11223fi
11224ac_res=`eval echo '${'$as_ac_Header'}'`
11225 { echo "$as_me:$LINENO: result: $ac_res" >&5
11226echo "${ECHO_T}$ac_res" >&6; }
11227
11228fi
11229if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011230 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011232_ACEOF
11233
11234fi
11235
11236done
11237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011238
11239
11240
11241
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011242for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011243do
11244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11250fi
11251ac_res=`eval echo '${'$as_ac_Header'}'`
11252 { echo "$as_me:$LINENO: result: $ac_res" >&5
11253echo "${ECHO_T}$ac_res" >&6; }
11254else
11255 # Is the header compilable?
11256{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11257echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11258cat >conftest.$ac_ext <<_ACEOF
11259/* confdefs.h. */
11260_ACEOF
11261cat confdefs.h >>conftest.$ac_ext
11262cat >>conftest.$ac_ext <<_ACEOF
11263/* end confdefs.h. */
11264$ac_includes_default
11265#include <$ac_header>
11266_ACEOF
11267rm -f conftest.$ac_objext
11268if { (ac_try="$ac_compile"
11269case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272esac
11273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_compile") 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11282 { (case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11285esac
11286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287 (eval "$ac_try") 2>&5
11288 ac_status=$?
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; } &&
11291 { ac_try='test -s conftest.$ac_objext'
11292 { (case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11295esac
11296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_try") 2>&5
11298 ac_status=$?
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; }; then
11301 ac_header_compiler=yes
11302else
11303 echo "$as_me: failed program was:" >&5
11304sed 's/^/| /' conftest.$ac_ext >&5
11305
11306 ac_header_compiler=no
11307fi
11308
11309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11311echo "${ECHO_T}$ac_header_compiler" >&6; }
11312
11313# Is the header present?
11314{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11315echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11316cat >conftest.$ac_ext <<_ACEOF
11317/* confdefs.h. */
11318_ACEOF
11319cat confdefs.h >>conftest.$ac_ext
11320cat >>conftest.$ac_ext <<_ACEOF
11321/* end confdefs.h. */
11322#include <$ac_header>
11323_ACEOF
11324if { (ac_try="$ac_cpp conftest.$ac_ext"
11325case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11328esac
11329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11331 ac_status=$?
11332 grep -v '^ *+' conftest.er1 >conftest.err
11333 rm -f conftest.er1
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } >/dev/null; then
11337 if test -s conftest.err; then
11338 ac_cpp_err=$ac_c_preproc_warn_flag
11339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11340 else
11341 ac_cpp_err=
11342 fi
11343else
11344 ac_cpp_err=yes
11345fi
11346if test -z "$ac_cpp_err"; then
11347 ac_header_preproc=yes
11348else
11349 echo "$as_me: failed program was:" >&5
11350sed 's/^/| /' conftest.$ac_ext >&5
11351
11352 ac_header_preproc=no
11353fi
11354
11355rm -f conftest.err conftest.$ac_ext
11356{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11357echo "${ECHO_T}$ac_header_preproc" >&6; }
11358
11359# So? What about this header?
11360case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11361 yes:no: )
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11363echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11365echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11366 ac_header_preproc=yes
11367 ;;
11368 no:yes:* )
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11370echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11372echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11374echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11376echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11378echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11380echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11381 ( cat <<\_ASBOX
11382## ----------------------------------- ##
11383## Report this to llvmbugs@cs.uiuc.edu ##
11384## ----------------------------------- ##
11385_ASBOX
11386 ) | sed "s/^/$as_me: WARNING: /" >&2
11387 ;;
11388esac
11389{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11391if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11393else
11394 eval "$as_ac_Header=\$ac_header_preproc"
11395fi
11396ac_res=`eval echo '${'$as_ac_Header'}'`
11397 { echo "$as_me:$LINENO: result: $ac_res" >&5
11398echo "${ECHO_T}$ac_res" >&6; }
11399
11400fi
11401if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011402 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011403#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011404_ACEOF
11405
11406fi
11407
11408done
11409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011410
11411
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011412for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011413do
11414as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11418if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420fi
11421ac_res=`eval echo '${'$as_ac_Header'}'`
11422 { echo "$as_me:$LINENO: result: $ac_res" >&5
11423echo "${ECHO_T}$ac_res" >&6; }
11424else
11425 # Is the header compilable?
11426{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11427echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11428cat >conftest.$ac_ext <<_ACEOF
11429/* confdefs.h. */
11430_ACEOF
11431cat confdefs.h >>conftest.$ac_ext
11432cat >>conftest.$ac_ext <<_ACEOF
11433/* end confdefs.h. */
11434$ac_includes_default
11435#include <$ac_header>
11436_ACEOF
11437rm -f conftest.$ac_objext
11438if { (ac_try="$ac_compile"
11439case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11442esac
11443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_compile") 2>conftest.er1
11445 ac_status=$?
11446 grep -v '^ *+' conftest.er1 >conftest.err
11447 rm -f conftest.er1
11448 cat conftest.err >&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } &&
11451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11452 { (case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11455esac
11456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457 (eval "$ac_try") 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; } &&
11461 { ac_try='test -s conftest.$ac_objext'
11462 { (case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11465esac
11466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_try") 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 ac_header_compiler=yes
11472else
11473 echo "$as_me: failed program was:" >&5
11474sed 's/^/| /' conftest.$ac_ext >&5
11475
11476 ac_header_compiler=no
11477fi
11478
11479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11481echo "${ECHO_T}$ac_header_compiler" >&6; }
11482
11483# Is the header present?
11484{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11485echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11486cat >conftest.$ac_ext <<_ACEOF
11487/* confdefs.h. */
11488_ACEOF
11489cat confdefs.h >>conftest.$ac_ext
11490cat >>conftest.$ac_ext <<_ACEOF
11491/* end confdefs.h. */
11492#include <$ac_header>
11493_ACEOF
11494if { (ac_try="$ac_cpp conftest.$ac_ext"
11495case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498esac
11499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11501 ac_status=$?
11502 grep -v '^ *+' conftest.er1 >conftest.err
11503 rm -f conftest.er1
11504 cat conftest.err >&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } >/dev/null; then
11507 if test -s conftest.err; then
11508 ac_cpp_err=$ac_c_preproc_warn_flag
11509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11510 else
11511 ac_cpp_err=
11512 fi
11513else
11514 ac_cpp_err=yes
11515fi
11516if test -z "$ac_cpp_err"; then
11517 ac_header_preproc=yes
11518else
11519 echo "$as_me: failed program was:" >&5
11520sed 's/^/| /' conftest.$ac_ext >&5
11521
11522 ac_header_preproc=no
11523fi
11524
11525rm -f conftest.err conftest.$ac_ext
11526{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11527echo "${ECHO_T}$ac_header_preproc" >&6; }
11528
11529# So? What about this header?
11530case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11531 yes:no: )
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11533echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11535echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11536 ac_header_preproc=yes
11537 ;;
11538 no:yes:* )
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11540echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11542echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11544echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11546echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11548echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11550echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11551 ( cat <<\_ASBOX
11552## ----------------------------------- ##
11553## Report this to llvmbugs@cs.uiuc.edu ##
11554## ----------------------------------- ##
11555_ASBOX
11556 ) | sed "s/^/$as_me: WARNING: /" >&2
11557 ;;
11558esac
11559{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11562 echo $ECHO_N "(cached) $ECHO_C" >&6
11563else
11564 eval "$as_ac_Header=\$ac_header_preproc"
11565fi
11566ac_res=`eval echo '${'$as_ac_Header'}'`
11567 { echo "$as_me:$LINENO: result: $ac_res" >&5
11568echo "${ECHO_T}$ac_res" >&6; }
11569
11570fi
11571if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011572 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011574_ACEOF
11575 break
11576fi
11577
11578done
11579
11580
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011581
11582
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011583for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011584do
11585as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11586{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11587echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11588if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11590else
11591 cat >conftest.$ac_ext <<_ACEOF
11592/* confdefs.h. */
11593_ACEOF
11594cat confdefs.h >>conftest.$ac_ext
11595cat >>conftest.$ac_ext <<_ACEOF
11596/* end confdefs.h. */
11597/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11599#define $ac_func innocuous_$ac_func
11600
11601/* System header to define __stub macros and hopefully few prototypes,
11602 which can conflict with char $ac_func (); below.
11603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11604 <limits.h> exists even on freestanding compilers. */
11605
11606#ifdef __STDC__
11607# include <limits.h>
11608#else
11609# include <assert.h>
11610#endif
11611
11612#undef $ac_func
11613
11614/* Override any GCC internal prototype to avoid an error.
11615 Use char because int might match the return type of a GCC
11616 builtin and then its argument prototype would still apply. */
11617#ifdef __cplusplus
11618extern "C"
11619#endif
11620char $ac_func ();
11621/* The GNU C library defines this for functions which it implements
11622 to always fail with ENOSYS. Some functions are actually named
11623 something starting with __ and the normal name is an alias. */
11624#if defined __stub_$ac_func || defined __stub___$ac_func
11625choke me
11626#endif
11627
11628int
11629main ()
11630{
11631return $ac_func ();
11632 ;
11633 return 0;
11634}
11635_ACEOF
11636rm -f conftest.$ac_objext conftest$ac_exeext
11637if { (ac_try="$ac_link"
11638case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641esac
11642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_link") 2>conftest.er1
11644 ac_status=$?
11645 grep -v '^ *+' conftest.er1 >conftest.err
11646 rm -f conftest.er1
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11651 { (case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654esac
11655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_try") 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; } &&
11660 { ac_try='test -s conftest$ac_exeext'
11661 { (case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11664esac
11665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666 (eval "$ac_try") 2>&5
11667 ac_status=$?
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; }; then
11670 eval "$as_ac_var=yes"
11671else
11672 echo "$as_me: failed program was:" >&5
11673sed 's/^/| /' conftest.$ac_ext >&5
11674
11675 eval "$as_ac_var=no"
11676fi
11677
11678rm -f core conftest.err conftest.$ac_objext \
11679 conftest$ac_exeext conftest.$ac_ext
11680fi
11681ac_res=`eval echo '${'$as_ac_var'}'`
11682 { echo "$as_me:$LINENO: result: $ac_res" >&5
11683echo "${ECHO_T}$ac_res" >&6; }
11684if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011685 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011687_ACEOF
11688 break
11689fi
11690done
11691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011692
11693
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011694for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011695do
11696as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11697{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11698echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11699if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11701else
11702 cat >conftest.$ac_ext <<_ACEOF
11703/* confdefs.h. */
11704_ACEOF
11705cat confdefs.h >>conftest.$ac_ext
11706cat >>conftest.$ac_ext <<_ACEOF
11707/* end confdefs.h. */
11708/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11710#define $ac_func innocuous_$ac_func
11711
11712/* System header to define __stub macros and hopefully few prototypes,
11713 which can conflict with char $ac_func (); below.
11714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11715 <limits.h> exists even on freestanding compilers. */
11716
11717#ifdef __STDC__
11718# include <limits.h>
11719#else
11720# include <assert.h>
11721#endif
11722
11723#undef $ac_func
11724
11725/* Override any GCC internal prototype to avoid an error.
11726 Use char because int might match the return type of a GCC
11727 builtin and then its argument prototype would still apply. */
11728#ifdef __cplusplus
11729extern "C"
11730#endif
11731char $ac_func ();
11732/* The GNU C library defines this for functions which it implements
11733 to always fail with ENOSYS. Some functions are actually named
11734 something starting with __ and the normal name is an alias. */
11735#if defined __stub_$ac_func || defined __stub___$ac_func
11736choke me
11737#endif
11738
11739int
11740main ()
11741{
11742return $ac_func ();
11743 ;
11744 return 0;
11745}
11746_ACEOF
11747rm -f conftest.$ac_objext conftest$ac_exeext
11748if { (ac_try="$ac_link"
11749case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11752esac
11753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_link") 2>conftest.er1
11755 ac_status=$?
11756 grep -v '^ *+' conftest.er1 >conftest.err
11757 rm -f conftest.er1
11758 cat conftest.err >&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11762 { (case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11765esac
11766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_try") 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; } &&
11771 { ac_try='test -s conftest$ac_exeext'
11772 { (case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11775esac
11776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_try") 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 eval "$as_ac_var=yes"
11782else
11783 echo "$as_me: failed program was:" >&5
11784sed 's/^/| /' conftest.$ac_ext >&5
11785
11786 eval "$as_ac_var=no"
11787fi
11788
11789rm -f core conftest.err conftest.$ac_objext \
11790 conftest$ac_exeext conftest.$ac_ext
11791fi
11792ac_res=`eval echo '${'$as_ac_var'}'`
11793 { echo "$as_me:$LINENO: result: $ac_res" >&5
11794echo "${ECHO_T}$ac_res" >&6; }
11795if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011796 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011797#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011798_ACEOF
11799 break
11800fi
11801done
11802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011803
11804
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011805for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011806do
11807as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11808{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11809echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11810if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11812else
11813 cat >conftest.$ac_ext <<_ACEOF
11814/* confdefs.h. */
11815_ACEOF
11816cat confdefs.h >>conftest.$ac_ext
11817cat >>conftest.$ac_ext <<_ACEOF
11818/* end confdefs.h. */
11819/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11821#define $ac_func innocuous_$ac_func
11822
11823/* System header to define __stub macros and hopefully few prototypes,
11824 which can conflict with char $ac_func (); below.
11825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11826 <limits.h> exists even on freestanding compilers. */
11827
11828#ifdef __STDC__
11829# include <limits.h>
11830#else
11831# include <assert.h>
11832#endif
11833
11834#undef $ac_func
11835
11836/* Override any GCC internal prototype to avoid an error.
11837 Use char because int might match the return type of a GCC
11838 builtin and then its argument prototype would still apply. */
11839#ifdef __cplusplus
11840extern "C"
11841#endif
11842char $ac_func ();
11843/* The GNU C library defines this for functions which it implements
11844 to always fail with ENOSYS. Some functions are actually named
11845 something starting with __ and the normal name is an alias. */
11846#if defined __stub_$ac_func || defined __stub___$ac_func
11847choke me
11848#endif
11849
11850int
11851main ()
11852{
11853return $ac_func ();
11854 ;
11855 return 0;
11856}
11857_ACEOF
11858rm -f conftest.$ac_objext conftest$ac_exeext
11859if { (ac_try="$ac_link"
11860case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11863esac
11864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_link") 2>conftest.er1
11866 ac_status=$?
11867 grep -v '^ *+' conftest.er1 >conftest.err
11868 rm -f conftest.er1
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11873 { (case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11876esac
11877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_try") 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest$ac_exeext'
11883 { (case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11886esac
11887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_try") 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; }; then
11892 eval "$as_ac_var=yes"
11893else
11894 echo "$as_me: failed program was:" >&5
11895sed 's/^/| /' conftest.$ac_ext >&5
11896
11897 eval "$as_ac_var=no"
11898fi
11899
11900rm -f core conftest.err conftest.$ac_objext \
11901 conftest$ac_exeext conftest.$ac_ext
11902fi
11903ac_res=`eval echo '${'$as_ac_var'}'`
11904 { echo "$as_me:$LINENO: result: $ac_res" >&5
11905echo "${ECHO_T}$ac_res" >&6; }
11906if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011907 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011909_ACEOF
11910 break
11911fi
11912done
11913
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011914
11915
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011916for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011917do
11918as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11919{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11920echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11921if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11923else
11924 cat >conftest.$ac_ext <<_ACEOF
11925/* confdefs.h. */
11926_ACEOF
11927cat confdefs.h >>conftest.$ac_ext
11928cat >>conftest.$ac_ext <<_ACEOF
11929/* end confdefs.h. */
11930/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11932#define $ac_func innocuous_$ac_func
11933
11934/* System header to define __stub macros and hopefully few prototypes,
11935 which can conflict with char $ac_func (); below.
11936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11937 <limits.h> exists even on freestanding compilers. */
11938
11939#ifdef __STDC__
11940# include <limits.h>
11941#else
11942# include <assert.h>
11943#endif
11944
11945#undef $ac_func
11946
11947/* Override any GCC internal prototype to avoid an error.
11948 Use char because int might match the return type of a GCC
11949 builtin and then its argument prototype would still apply. */
11950#ifdef __cplusplus
11951extern "C"
11952#endif
11953char $ac_func ();
11954/* The GNU C library defines this for functions which it implements
11955 to always fail with ENOSYS. Some functions are actually named
11956 something starting with __ and the normal name is an alias. */
11957#if defined __stub_$ac_func || defined __stub___$ac_func
11958choke me
11959#endif
11960
11961int
11962main ()
11963{
11964return $ac_func ();
11965 ;
11966 return 0;
11967}
11968_ACEOF
11969rm -f conftest.$ac_objext conftest$ac_exeext
11970if { (ac_try="$ac_link"
11971case "(($ac_try" in
11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11974esac
11975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976 (eval "$ac_link") 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11984 { (case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11987esac
11988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_try") 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; } &&
11993 { ac_try='test -s conftest$ac_exeext'
11994 { (case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11997esac
11998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_try") 2>&5
12000 ac_status=$?
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; }; then
12003 eval "$as_ac_var=yes"
12004else
12005 echo "$as_me: failed program was:" >&5
12006sed 's/^/| /' conftest.$ac_ext >&5
12007
12008 eval "$as_ac_var=no"
12009fi
12010
12011rm -f core conftest.err conftest.$ac_objext \
12012 conftest$ac_exeext conftest.$ac_ext
12013fi
12014ac_res=`eval echo '${'$as_ac_var'}'`
12015 { echo "$as_me:$LINENO: result: $ac_res" >&5
12016echo "${ECHO_T}$ac_res" >&6; }
12017if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012018 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012019#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012020_ACEOF
12021
12022fi
12023done
12024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012025
12026
12027
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012028for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012029do
12030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12031{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12033if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035else
12036 cat >conftest.$ac_ext <<_ACEOF
12037/* confdefs.h. */
12038_ACEOF
12039cat confdefs.h >>conftest.$ac_ext
12040cat >>conftest.$ac_ext <<_ACEOF
12041/* end confdefs.h. */
12042/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12044#define $ac_func innocuous_$ac_func
12045
12046/* System header to define __stub macros and hopefully few prototypes,
12047 which can conflict with char $ac_func (); below.
12048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12049 <limits.h> exists even on freestanding compilers. */
12050
12051#ifdef __STDC__
12052# include <limits.h>
12053#else
12054# include <assert.h>
12055#endif
12056
12057#undef $ac_func
12058
12059/* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12062#ifdef __cplusplus
12063extern "C"
12064#endif
12065char $ac_func ();
12066/* The GNU C library defines this for functions which it implements
12067 to always fail with ENOSYS. Some functions are actually named
12068 something starting with __ and the normal name is an alias. */
12069#if defined __stub_$ac_func || defined __stub___$ac_func
12070choke me
12071#endif
12072
12073int
12074main ()
12075{
12076return $ac_func ();
12077 ;
12078 return 0;
12079}
12080_ACEOF
12081rm -f conftest.$ac_objext conftest$ac_exeext
12082if { (ac_try="$ac_link"
12083case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12086esac
12087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_link") 2>conftest.er1
12089 ac_status=$?
12090 grep -v '^ *+' conftest.er1 >conftest.err
12091 rm -f conftest.er1
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12096 { (case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099esac
12100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_try") 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; } &&
12105 { ac_try='test -s conftest$ac_exeext'
12106 { (case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109esac
12110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_try") 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 eval "$as_ac_var=yes"
12116else
12117 echo "$as_me: failed program was:" >&5
12118sed 's/^/| /' conftest.$ac_ext >&5
12119
12120 eval "$as_ac_var=no"
12121fi
12122
12123rm -f core conftest.err conftest.$ac_objext \
12124 conftest$ac_exeext conftest.$ac_ext
12125fi
12126ac_res=`eval echo '${'$as_ac_var'}'`
12127 { echo "$as_me:$LINENO: result: $ac_res" >&5
12128echo "${ECHO_T}$ac_res" >&6; }
12129if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012130 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012132_ACEOF
12133
12134fi
12135done
12136
12137
Douglas Gregor01746742009-05-11 18:05:52 +000012138
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012139{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12140echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012141
Reid Spencer86901802004-12-08 23:07:27 +000012142ICC=no
12143IXX=no
12144case $CC in
12145 icc*|icpc*)
12146 ICC=yes
12147 IXX=yes
12148 ;;
12149 *)
12150 ;;
12151esac
12152
Duraid Madina937c60a2006-02-15 07:57:42 +000012153if test "$GCC" != "yes" && test "$ICC" != "yes"
12154then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012155 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12156echo "$as_me: error: gcc|icc required but not found" >&2;}
12157 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012158fi
12159
12160if test "$GXX" != "yes" && test "$IXX" != "yes"
12161then
Eric Christopher73e36da2010-12-08 02:02:14 +000012162 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12163echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012164 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012165fi
12166
Reid Spencer86901802004-12-08 23:07:27 +000012167if test "$GCC" = "yes"
12168then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012169 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012170#if !defined(__GNUC__) || __GNUC__ < 3
12171#error Unsupported GCC version
12172#endif
12173
12174_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012175rm -f conftest.$ac_objext
12176if { (ac_try="$ac_compile"
12177case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12180esac
12181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_compile") 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12190 { (case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12193esac
12194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_try") 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; } &&
12199 { ac_try='test -s conftest.$ac_objext'
12200 { (case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12203esac
12204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_try") 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
12209 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012210else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012211 echo "$as_me: failed program was:" >&5
12212sed 's/^/| /' conftest.$ac_ext >&5
12213
12214 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12215echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12216 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012217fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012218
Chris Lattner399c7c72008-02-05 19:43:53 +000012219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012220fi
12221
12222if test -z "$llvm_cv_gnu_make_command"
12223then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012224 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12225echo "$as_me: error: GNU Make required but not found" >&2;}
12226 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012227fi
12228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012229{ echo "$as_me:$LINENO: result: ok" >&5
12230echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012232{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12233echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012234NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12235
12236NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012238{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12239echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012240
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012241
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012242
12243{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12244echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12245if test "${ac_cv_lib_m_sin+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012247else
12248 ac_check_lib_save_LIBS=$LIBS
12249LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012250cat >conftest.$ac_ext <<_ACEOF
12251/* confdefs.h. */
12252_ACEOF
12253cat confdefs.h >>conftest.$ac_ext
12254cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012255/* end confdefs.h. */
12256
Reid Spencera773bd52006-08-04 18:18:08 +000012257/* Override any GCC internal prototype to avoid an error.
12258 Use char because int might match the return type of a GCC
12259 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012260#ifdef __cplusplus
12261extern "C"
12262#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012263char sin ();
12264int
12265main ()
12266{
Reid Spencera773bd52006-08-04 18:18:08 +000012267return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012268 ;
12269 return 0;
12270}
12271_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012272rm -f conftest.$ac_objext conftest$ac_exeext
12273if { (ac_try="$ac_link"
12274case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12277esac
12278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_link") 2>conftest.er1
12280 ac_status=$?
12281 grep -v '^ *+' conftest.er1 >conftest.err
12282 rm -f conftest.er1
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12287 { (case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12290esac
12291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_try") 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; } &&
12296 { ac_try='test -s conftest$ac_exeext'
12297 { (case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12300esac
12301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_try") 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012306 ac_cv_lib_m_sin=yes
12307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012308 echo "$as_me: failed program was:" >&5
12309sed 's/^/| /' conftest.$ac_ext >&5
12310
12311 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012313
Bill Wendlingebcceee2009-04-18 11:20:33 +000012314rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012315 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012316LIBS=$ac_check_lib_save_LIBS
12317fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012318{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12319echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12320if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012321 cat >>confdefs.h <<_ACEOF
12322#define HAVE_LIBM 1
12323_ACEOF
12324
12325 LIBS="-lm $LIBS"
12326
12327fi
12328
Jeff Cohen28783c32007-01-12 18:22:38 +000012329if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012330
12331{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12332echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12333if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012335else
12336 ac_check_lib_save_LIBS=$LIBS
12337LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012338cat >conftest.$ac_ext <<_ACEOF
12339/* confdefs.h. */
12340_ACEOF
12341cat confdefs.h >>conftest.$ac_ext
12342cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012343/* end confdefs.h. */
12344
Reid Spencer48fdf912006-06-01 19:03:21 +000012345
Reid Spencer484fc8e2006-06-01 16:55:59 +000012346int
12347main ()
12348{
Reid Spencera773bd52006-08-04 18:18:08 +000012349return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012350 ;
12351 return 0;
12352}
12353_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012354rm -f conftest.$ac_objext conftest$ac_exeext
12355if { (ac_try="$ac_link"
12356case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12359esac
12360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_link") 2>conftest.er1
12362 ac_status=$?
12363 grep -v '^ *+' conftest.er1 >conftest.err
12364 rm -f conftest.er1
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_try") 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest$ac_exeext'
12379 { (case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12382esac
12383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_try") 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012388 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012389else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012390 echo "$as_me: failed program was:" >&5
12391sed 's/^/| /' conftest.$ac_ext >&5
12392
12393 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012394fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012395
Bill Wendlingebcceee2009-04-18 11:20:33 +000012396rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012397 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012398LIBS=$ac_check_lib_save_LIBS
12399fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012400{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12401echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12402if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012403 cat >>confdefs.h <<_ACEOF
12404#define HAVE_LIBIMAGEHLP 1
12405_ACEOF
12406
12407 LIBS="-limagehlp $LIBS"
12408
12409fi
12410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012411
12412{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12413echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12414if test "${ac_cv_lib_psapi_main+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012416else
12417 ac_check_lib_save_LIBS=$LIBS
12418LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012419cat >conftest.$ac_ext <<_ACEOF
12420/* confdefs.h. */
12421_ACEOF
12422cat confdefs.h >>conftest.$ac_ext
12423cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012424/* end confdefs.h. */
12425
Reid Spencer48fdf912006-06-01 19:03:21 +000012426
Reid Spencer484fc8e2006-06-01 16:55:59 +000012427int
12428main ()
12429{
Reid Spencera773bd52006-08-04 18:18:08 +000012430return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012431 ;
12432 return 0;
12433}
12434_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012435rm -f conftest.$ac_objext conftest$ac_exeext
12436if { (ac_try="$ac_link"
12437case "(($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_link") 2>conftest.er1
12443 ac_status=$?
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12450 { (case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12453esac
12454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_try") 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest$ac_exeext'
12460 { (case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12463esac
12464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_try") 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012469 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012470else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012471 echo "$as_me: failed program was:" >&5
12472sed 's/^/| /' conftest.$ac_ext >&5
12473
12474 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012475fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012476
Bill Wendlingebcceee2009-04-18 11:20:33 +000012477rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012478 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012479LIBS=$ac_check_lib_save_LIBS
12480fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012481{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12482echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12483if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012484 cat >>confdefs.h <<_ACEOF
12485#define HAVE_LIBPSAPI 1
12486_ACEOF
12487
12488 LIBS="-lpsapi $LIBS"
12489
12490fi
12491
12492fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012494{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12495echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12496if test "${ac_cv_search_dlopen+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012498else
12499 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012500cat >conftest.$ac_ext <<_ACEOF
12501/* confdefs.h. */
12502_ACEOF
12503cat confdefs.h >>conftest.$ac_ext
12504cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012505/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012506
Reid Spencera773bd52006-08-04 18:18:08 +000012507/* Override any GCC internal prototype to avoid an error.
12508 Use char because int might match the return type of a GCC
12509 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012510#ifdef __cplusplus
12511extern "C"
12512#endif
John Criswell7a73b802003-06-30 21:59:07 +000012513char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012514int
12515main ()
12516{
Reid Spencera773bd52006-08-04 18:18:08 +000012517return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012518 ;
12519 return 0;
12520}
12521_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012522for ac_lib in '' dl; do
12523 if test -z "$ac_lib"; then
12524 ac_res="none required"
12525 else
12526 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012528 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012529 rm -f conftest.$ac_objext conftest$ac_exeext
12530if { (ac_try="$ac_link"
12531case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12534esac
12535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_link") 2>conftest.er1
12537 ac_status=$?
12538 grep -v '^ *+' conftest.er1 >conftest.err
12539 rm -f conftest.er1
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } &&
12543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12544 { (case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12547esac
12548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_try") 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest$ac_exeext'
12554 { (case "(($ac_try" in
12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12557esac
12558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559 (eval "$ac_try") 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012563 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012564else
12565 echo "$as_me: failed program was:" >&5
12566sed 's/^/| /' conftest.$ac_ext >&5
12567
12568
John Criswell7a73b802003-06-30 21:59:07 +000012569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012570
Bill Wendlingebcceee2009-04-18 11:20:33 +000012571rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012572 conftest$ac_exeext
12573 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012574 break
John Criswell7a73b802003-06-30 21:59:07 +000012575fi
Reid Spencera773bd52006-08-04 18:18:08 +000012576done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012577if test "${ac_cv_search_dlopen+set}" = set; then
12578 :
Reid Spencera773bd52006-08-04 18:18:08 +000012579else
12580 ac_cv_search_dlopen=no
12581fi
12582rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012583LIBS=$ac_func_search_save_LIBS
12584fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012585{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12586echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012587ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012588if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012591cat >>confdefs.h <<\_ACEOF
12592#define HAVE_DLOPEN 1
12593_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012594
12595else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012596 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12597echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012598fi
12599
12600
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012601if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012602 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12603echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12604if test "${ac_cv_search_ffi_call+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012606else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012607 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012608cat >conftest.$ac_ext <<_ACEOF
12609/* confdefs.h. */
12610_ACEOF
12611cat confdefs.h >>conftest.$ac_ext
12612cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012613/* end confdefs.h. */
12614
12615/* Override any GCC internal prototype to avoid an error.
12616 Use char because int might match the return type of a GCC
12617 builtin and then its argument prototype would still apply. */
12618#ifdef __cplusplus
12619extern "C"
12620#endif
12621char ffi_call ();
12622int
12623main ()
12624{
12625return ffi_call ();
12626 ;
12627 return 0;
12628}
12629_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012630for ac_lib in '' ffi; do
12631 if test -z "$ac_lib"; then
12632 ac_res="none required"
12633 else
12634 ac_res=-l$ac_lib
12635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12636 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012637 rm -f conftest.$ac_objext conftest$ac_exeext
12638if { (ac_try="$ac_link"
12639case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12642esac
12643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_link") 2>conftest.er1
12645 ac_status=$?
12646 grep -v '^ *+' conftest.er1 >conftest.err
12647 rm -f conftest.er1
12648 cat conftest.err >&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } &&
12651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12652 { (case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12655esac
12656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657 (eval "$ac_try") 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; } &&
12661 { ac_try='test -s conftest$ac_exeext'
12662 { (case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12665esac
12666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_try") 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012671 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012672else
12673 echo "$as_me: failed program was:" >&5
12674sed 's/^/| /' conftest.$ac_ext >&5
12675
12676
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012677fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012678
Bill Wendlingebcceee2009-04-18 11:20:33 +000012679rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012680 conftest$ac_exeext
12681 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012682 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012683fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012684done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012685if test "${ac_cv_search_ffi_call+set}" = set; then
12686 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012687else
12688 ac_cv_search_ffi_call=no
12689fi
12690rm conftest.$ac_ext
12691LIBS=$ac_func_search_save_LIBS
12692fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012693{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12694echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012695ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012696if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012697 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012699cat >>confdefs.h <<\_ACEOF
12700#define HAVE_FFI_CALL 1
12701_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012702
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012703else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012704 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12705echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12706 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012707fi
12708
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012709fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012710
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012711{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12712echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12713if test "${ac_cv_search_mallinfo+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012715else
12716 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012717cat >conftest.$ac_ext <<_ACEOF
12718/* confdefs.h. */
12719_ACEOF
12720cat confdefs.h >>conftest.$ac_ext
12721cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012722/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012723
Reid Spencera773bd52006-08-04 18:18:08 +000012724/* Override any GCC internal prototype to avoid an error.
12725 Use char because int might match the return type of a GCC
12726 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012727#ifdef __cplusplus
12728extern "C"
12729#endif
John Criswell7a73b802003-06-30 21:59:07 +000012730char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012731int
12732main ()
12733{
Reid Spencera773bd52006-08-04 18:18:08 +000012734return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012735 ;
12736 return 0;
12737}
12738_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012739for ac_lib in '' malloc; do
12740 if test -z "$ac_lib"; then
12741 ac_res="none required"
12742 else
12743 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012745 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012746 rm -f conftest.$ac_objext conftest$ac_exeext
12747if { (ac_try="$ac_link"
12748case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12751esac
12752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_link") 2>conftest.er1
12754 ac_status=$?
12755 grep -v '^ *+' conftest.er1 >conftest.err
12756 rm -f conftest.er1
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
12760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12761 { (case "(($ac_try" in
12762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12764esac
12765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_try") 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; } &&
12770 { ac_try='test -s conftest$ac_exeext'
12771 { (case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774esac
12775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_try") 2>&5
12777 ac_status=$?
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012780 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012781else
12782 echo "$as_me: failed program was:" >&5
12783sed 's/^/| /' conftest.$ac_ext >&5
12784
12785
John Criswell7a73b802003-06-30 21:59:07 +000012786fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012787
Bill Wendlingebcceee2009-04-18 11:20:33 +000012788rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012789 conftest$ac_exeext
12790 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012791 break
John Criswell7a73b802003-06-30 21:59:07 +000012792fi
Reid Spencera773bd52006-08-04 18:18:08 +000012793done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012794if test "${ac_cv_search_mallinfo+set}" = set; then
12795 :
Reid Spencera773bd52006-08-04 18:18:08 +000012796else
12797 ac_cv_search_mallinfo=no
12798fi
12799rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012800LIBS=$ac_func_search_save_LIBS
12801fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012802{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12803echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012804ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012805if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012808cat >>confdefs.h <<\_ACEOF
12809#define HAVE_MALLINFO 1
12810_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012811
12812fi
12813
12814
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000012815if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012816
12817{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12818echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12819if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012821else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012822 ac_check_lib_save_LIBS=$LIBS
12823LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012824cat >conftest.$ac_ext <<_ACEOF
12825/* confdefs.h. */
12826_ACEOF
12827cat confdefs.h >>conftest.$ac_ext
12828cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012829/* end confdefs.h. */
12830
Reid Spencera773bd52006-08-04 18:18:08 +000012831/* Override any GCC internal prototype to avoid an error.
12832 Use char because int might match the return type of a GCC
12833 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012834#ifdef __cplusplus
12835extern "C"
12836#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012837char pthread_mutex_init ();
12838int
12839main ()
12840{
Reid Spencera773bd52006-08-04 18:18:08 +000012841return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012842 ;
12843 return 0;
12844}
12845_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012846rm -f conftest.$ac_objext conftest$ac_exeext
12847if { (ac_try="$ac_link"
12848case "(($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_link") 2>conftest.er1
12854 ac_status=$?
12855 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1
12857 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
12860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12861 { (case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12864esac
12865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_try") 2>&5
12867 ac_status=$?
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; } &&
12870 { ac_try='test -s conftest$ac_exeext'
12871 { (case "(($ac_try" in
12872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873 *) ac_try_echo=$ac_try;;
12874esac
12875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12876 (eval "$ac_try") 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012880 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012881else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012882 echo "$as_me: failed program was:" >&5
12883sed 's/^/| /' conftest.$ac_ext >&5
12884
12885 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012886fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012887
Bill Wendlingebcceee2009-04-18 11:20:33 +000012888rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012889 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012890LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012891fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012892{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12893echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12894if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012895 cat >>confdefs.h <<_ACEOF
12896#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012897_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012898
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012899 LIBS="-lpthread $LIBS"
12900
Reid Spencer22177fe2005-07-12 15:24:20 +000012901fi
12902
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012903 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12904echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12905if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012907else
12908 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012909cat >conftest.$ac_ext <<_ACEOF
12910/* confdefs.h. */
12911_ACEOF
12912cat confdefs.h >>conftest.$ac_ext
12913cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012914/* end confdefs.h. */
12915
Reid Spencera773bd52006-08-04 18:18:08 +000012916/* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012919#ifdef __cplusplus
12920extern "C"
12921#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012922char pthread_mutex_lock ();
12923int
12924main ()
12925{
Reid Spencera773bd52006-08-04 18:18:08 +000012926return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012927 ;
12928 return 0;
12929}
12930_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012931for ac_lib in '' pthread; do
12932 if test -z "$ac_lib"; then
12933 ac_res="none required"
12934 else
12935 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012937 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012938 rm -f conftest.$ac_objext conftest$ac_exeext
12939if { (ac_try="$ac_link"
12940case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12943esac
12944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_link") 2>conftest.er1
12946 ac_status=$?
12947 grep -v '^ *+' conftest.er1 >conftest.err
12948 rm -f conftest.er1
12949 cat conftest.err >&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } &&
12952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12953 { (case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12956esac
12957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_try") 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; } &&
12962 { ac_try='test -s conftest$ac_exeext'
12963 { (case "(($ac_try" in
12964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965 *) ac_try_echo=$ac_try;;
12966esac
12967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12968 (eval "$ac_try") 2>&5
12969 ac_status=$?
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012972 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012973else
12974 echo "$as_me: failed program was:" >&5
12975sed 's/^/| /' conftest.$ac_ext >&5
12976
12977
Brian Gaeke5f268f72003-12-05 19:29:01 +000012978fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012979
Bill Wendlingebcceee2009-04-18 11:20:33 +000012980rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012981 conftest$ac_exeext
12982 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012983 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012984fi
Reid Spencera773bd52006-08-04 18:18:08 +000012985done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012986if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12987 :
Reid Spencera773bd52006-08-04 18:18:08 +000012988else
12989 ac_cv_search_pthread_mutex_lock=no
12990fi
12991rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012992LIBS=$ac_func_search_save_LIBS
12993fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012994{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12995echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012996ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012997if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012999
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013000cat >>confdefs.h <<\_ACEOF
13001#define HAVE_PTHREAD_MUTEX_LOCK 1
13002_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013003
13004fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013006 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13007echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13008if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013010else
13011 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013012cat >conftest.$ac_ext <<_ACEOF
13013/* confdefs.h. */
13014_ACEOF
13015cat confdefs.h >>conftest.$ac_ext
13016cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013017/* end confdefs.h. */
13018
13019/* Override any GCC internal prototype to avoid an error.
13020 Use char because int might match the return type of a GCC
13021 builtin and then its argument prototype would still apply. */
13022#ifdef __cplusplus
13023extern "C"
13024#endif
13025char pthread_rwlock_init ();
13026int
13027main ()
13028{
13029return pthread_rwlock_init ();
13030 ;
13031 return 0;
13032}
13033_ACEOF
13034for ac_lib in '' pthread; do
13035 if test -z "$ac_lib"; then
13036 ac_res="none required"
13037 else
13038 ac_res=-l$ac_lib
13039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13040 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013041 rm -f conftest.$ac_objext conftest$ac_exeext
13042if { (ac_try="$ac_link"
13043case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13046esac
13047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_link") 2>conftest.er1
13049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13056 { (case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13059esac
13060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_try") 2>&5
13062 ac_status=$?
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest$ac_exeext'
13066 { (case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069esac
13070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_try") 2>&5
13072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013075 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013076else
13077 echo "$as_me: failed program was:" >&5
13078sed 's/^/| /' conftest.$ac_ext >&5
13079
13080
Owen Andersonde8aed22009-06-16 18:20:20 +000013081fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013082
Owen Andersonde8aed22009-06-16 18:20:20 +000013083rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013084 conftest$ac_exeext
13085 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013086 break
13087fi
13088done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013089if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13090 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013091else
13092 ac_cv_search_pthread_rwlock_init=no
13093fi
13094rm conftest.$ac_ext
13095LIBS=$ac_func_search_save_LIBS
13096fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013097{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13098echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013099ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013100if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13102
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013103cat >>confdefs.h <<\_ACEOF
13104#define HAVE_PTHREAD_RWLOCK_INIT 1
13105_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013106
13107fi
13108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013109 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13110echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13111if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013113else
13114 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013115cat >conftest.$ac_ext <<_ACEOF
13116/* confdefs.h. */
13117_ACEOF
13118cat confdefs.h >>conftest.$ac_ext
13119cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013120/* end confdefs.h. */
13121
13122/* Override any GCC internal prototype to avoid an error.
13123 Use char because int might match the return type of a GCC
13124 builtin and then its argument prototype would still apply. */
13125#ifdef __cplusplus
13126extern "C"
13127#endif
13128char pthread_getspecific ();
13129int
13130main ()
13131{
13132return pthread_getspecific ();
13133 ;
13134 return 0;
13135}
13136_ACEOF
13137for ac_lib in '' pthread; do
13138 if test -z "$ac_lib"; then
13139 ac_res="none required"
13140 else
13141 ac_res=-l$ac_lib
13142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13143 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013144 rm -f conftest.$ac_objext conftest$ac_exeext
13145if { (ac_try="$ac_link"
13146case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13149esac
13150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_link") 2>conftest.er1
13152 ac_status=$?
13153 grep -v '^ *+' conftest.er1 >conftest.err
13154 rm -f conftest.er1
13155 cat conftest.err >&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13159 { (case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13162esac
13163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_try") 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; } &&
13168 { ac_try='test -s conftest$ac_exeext'
13169 { (case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13172esac
13173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_try") 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013178 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013179else
13180 echo "$as_me: failed program was:" >&5
13181sed 's/^/| /' conftest.$ac_ext >&5
13182
13183
Owen Anderson27fcfe12009-06-25 23:10:26 +000013184fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013185
Owen Anderson27fcfe12009-06-25 23:10:26 +000013186rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013187 conftest$ac_exeext
13188 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013189 break
13190fi
13191done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013192if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13193 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013194else
13195 ac_cv_search_pthread_getspecific=no
13196fi
13197rm conftest.$ac_ext
13198LIBS=$ac_func_search_save_LIBS
13199fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013200{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13201echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013202ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013203if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013206cat >>confdefs.h <<\_ACEOF
13207#define HAVE_PTHREAD_GETSPECIFIC 1
13208_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013209
13210fi
13211
Reid Spencer0a262ba2005-08-24 10:07:20 +000013212fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013213
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013214
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013215# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013216if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013217 withval=$with_udis86;
13218 USE_UDIS86=1
13219
13220 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013221 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013222 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13223 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013224
13225{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13226echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13227if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13228 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013229else
13230 ac_check_lib_save_LIBS=$LIBS
13231LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013232cat >conftest.$ac_ext <<_ACEOF
13233/* confdefs.h. */
13234_ACEOF
13235cat confdefs.h >>conftest.$ac_ext
13236cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013237/* end confdefs.h. */
13238
13239/* Override any GCC internal prototype to avoid an error.
13240 Use char because int might match the return type of a GCC
13241 builtin and then its argument prototype would still apply. */
13242#ifdef __cplusplus
13243extern "C"
13244#endif
13245char ud_init ();
13246int
13247main ()
13248{
13249return ud_init ();
13250 ;
13251 return 0;
13252}
13253_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013254rm -f conftest.$ac_objext conftest$ac_exeext
13255if { (ac_try="$ac_link"
13256case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13259esac
13260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_link") 2>conftest.er1
13262 ac_status=$?
13263 grep -v '^ *+' conftest.er1 >conftest.err
13264 rm -f conftest.er1
13265 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } &&
13268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13269 { (case "(($ac_try" in
13270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271 *) ac_try_echo=$ac_try;;
13272esac
13273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274 (eval "$ac_try") 2>&5
13275 ac_status=$?
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; } &&
13278 { ac_try='test -s conftest$ac_exeext'
13279 { (case "(($ac_try" in
13280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281 *) ac_try_echo=$ac_try;;
13282esac
13283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13284 (eval "$ac_try") 2>&5
13285 ac_status=$?
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013288 ac_cv_lib_udis86_ud_init=yes
13289else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013290 echo "$as_me: failed program was:" >&5
13291sed 's/^/| /' conftest.$ac_ext >&5
13292
13293 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013294fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013295
Bill Wendlingebcceee2009-04-18 11:20:33 +000013296rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013297 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013298LIBS=$ac_check_lib_save_LIBS
13299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013300{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13301echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13302if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013303 cat >>confdefs.h <<_ACEOF
13304#define HAVE_LIBUDIS86 1
13305_ACEOF
13306
13307 LIBS="-ludis86 $LIBS"
13308
13309else
13310
13311 echo "Error! You need to have libudis86 around."
13312 exit -1
13313
13314fi
13315
13316
13317else
13318 USE_UDIS86=0
13319
13320fi
13321
13322
13323cat >>confdefs.h <<_ACEOF
13324#define USE_UDIS86 $USE_UDIS86
13325_ACEOF
13326
13327
13328
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013329# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013330if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013331 withval=$with_oprofile;
13332 USE_OPROFILE=1
13333
13334 case "$withval" in
13335 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013336 no) llvm_cv_oppath=
13337 USE_OPROFILE=0
13338 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013339 *) llvm_cv_oppath="${withval}/lib/oprofile"
13340 CPPFLAGS="-I${withval}/include";;
13341 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013342 if test -n "$llvm_cv_oppath" ; then
13343 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013344 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13345echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13346if test "${ac_cv_search_bfd_init+set}" = set; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013348else
13349 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013350cat >conftest.$ac_ext <<_ACEOF
13351/* confdefs.h. */
13352_ACEOF
13353cat confdefs.h >>conftest.$ac_ext
13354cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013355/* end confdefs.h. */
13356
13357/* Override any GCC internal prototype to avoid an error.
13358 Use char because int might match the return type of a GCC
13359 builtin and then its argument prototype would still apply. */
13360#ifdef __cplusplus
13361extern "C"
13362#endif
13363char bfd_init ();
13364int
13365main ()
13366{
13367return bfd_init ();
13368 ;
13369 return 0;
13370}
13371_ACEOF
13372for ac_lib in '' bfd; do
13373 if test -z "$ac_lib"; then
13374 ac_res="none required"
13375 else
13376 ac_res=-l$ac_lib
13377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13378 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013379 rm -f conftest.$ac_objext conftest$ac_exeext
13380if { (ac_try="$ac_link"
13381case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384esac
13385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_link") 2>conftest.er1
13387 ac_status=$?
13388 grep -v '^ *+' conftest.er1 >conftest.err
13389 rm -f conftest.er1
13390 cat conftest.err >&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } &&
13393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13394 { (case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13397esac
13398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_try") 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; } &&
13403 { ac_try='test -s conftest$ac_exeext'
13404 { (case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13407esac
13408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_try") 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013413 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013414else
13415 echo "$as_me: failed program was:" >&5
13416sed 's/^/| /' conftest.$ac_ext >&5
13417
13418
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013420
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013421rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013422 conftest$ac_exeext
13423 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013424 break
13425fi
13426done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013427if test "${ac_cv_search_bfd_init+set}" = set; then
13428 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013429else
13430 ac_cv_search_bfd_init=no
13431fi
13432rm conftest.$ac_ext
13433LIBS=$ac_func_search_save_LIBS
13434fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013435{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13436echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013437ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013438if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013439 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13440
13441fi
13442
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013443 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13444echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13445if test "${ac_cv_search_op_open_agent+set}" = set; then
13446 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013447else
13448 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013449cat >conftest.$ac_ext <<_ACEOF
13450/* confdefs.h. */
13451_ACEOF
13452cat confdefs.h >>conftest.$ac_ext
13453cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013454/* end confdefs.h. */
13455
13456/* Override any GCC internal prototype to avoid an error.
13457 Use char because int might match the return type of a GCC
13458 builtin and then its argument prototype would still apply. */
13459#ifdef __cplusplus
13460extern "C"
13461#endif
13462char op_open_agent ();
13463int
13464main ()
13465{
13466return op_open_agent ();
13467 ;
13468 return 0;
13469}
13470_ACEOF
13471for ac_lib in '' opagent; do
13472 if test -z "$ac_lib"; then
13473 ac_res="none required"
13474 else
13475 ac_res=-l$ac_lib
13476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13477 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013478 rm -f conftest.$ac_objext conftest$ac_exeext
13479if { (ac_try="$ac_link"
13480case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13483esac
13484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_link") 2>conftest.er1
13486 ac_status=$?
13487 grep -v '^ *+' conftest.er1 >conftest.err
13488 rm -f conftest.er1
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13493 { (case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13496esac
13497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_try") 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; } &&
13502 { ac_try='test -s conftest$ac_exeext'
13503 { (case "(($ac_try" in
13504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13506esac
13507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_try") 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013512 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013513else
13514 echo "$as_me: failed program was:" >&5
13515sed 's/^/| /' conftest.$ac_ext >&5
13516
13517
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013518fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013519
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013520rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013521 conftest$ac_exeext
13522 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013523 break
13524fi
13525done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013526if test "${ac_cv_search_op_open_agent+set}" = set; then
13527 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013528else
13529 ac_cv_search_op_open_agent=no
13530fi
13531rm conftest.$ac_ext
13532LIBS=$ac_func_search_save_LIBS
13533fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013534{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13535echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013536ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013537if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13539
13540else
13541
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013542 echo "Error! You need to have libopagent around."
13543 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013544
13545fi
13546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013547 if test "${ac_cv_header_opagent_h+set}" = set; then
13548 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13549echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13550if test "${ac_cv_header_opagent_h+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13552fi
13553{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13554echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13555else
13556 # Is the header compilable?
13557{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13558echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13559cat >conftest.$ac_ext <<_ACEOF
13560/* confdefs.h. */
13561_ACEOF
13562cat confdefs.h >>conftest.$ac_ext
13563cat >>conftest.$ac_ext <<_ACEOF
13564/* end confdefs.h. */
13565$ac_includes_default
13566#include <opagent.h>
13567_ACEOF
13568rm -f conftest.$ac_objext
13569if { (ac_try="$ac_compile"
13570case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573esac
13574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_compile") 2>conftest.er1
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } &&
13582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13583 { (case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13586esac
13587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_try") 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; } &&
13592 { ac_try='test -s conftest.$ac_objext'
13593 { (case "(($ac_try" in
13594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595 *) ac_try_echo=$ac_try;;
13596esac
13597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13598 (eval "$ac_try") 2>&5
13599 ac_status=$?
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); }; }; then
13602 ac_header_compiler=yes
13603else
13604 echo "$as_me: failed program was:" >&5
13605sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013607 ac_header_compiler=no
13608fi
13609
13610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13611{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13612echo "${ECHO_T}$ac_header_compiler" >&6; }
13613
13614# Is the header present?
13615{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13616echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13617cat >conftest.$ac_ext <<_ACEOF
13618/* confdefs.h. */
13619_ACEOF
13620cat confdefs.h >>conftest.$ac_ext
13621cat >>conftest.$ac_ext <<_ACEOF
13622/* end confdefs.h. */
13623#include <opagent.h>
13624_ACEOF
13625if { (ac_try="$ac_cpp conftest.$ac_ext"
13626case "(($ac_try" in
13627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628 *) ac_try_echo=$ac_try;;
13629esac
13630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13632 ac_status=$?
13633 grep -v '^ *+' conftest.er1 >conftest.err
13634 rm -f conftest.er1
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } >/dev/null; then
13638 if test -s conftest.err; then
13639 ac_cpp_err=$ac_c_preproc_warn_flag
13640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13641 else
13642 ac_cpp_err=
13643 fi
13644else
13645 ac_cpp_err=yes
13646fi
13647if test -z "$ac_cpp_err"; then
13648 ac_header_preproc=yes
13649else
13650 echo "$as_me: failed program was:" >&5
13651sed 's/^/| /' conftest.$ac_ext >&5
13652
13653 ac_header_preproc=no
13654fi
13655
13656rm -f conftest.err conftest.$ac_ext
13657{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13658echo "${ECHO_T}$ac_header_preproc" >&6; }
13659
13660# So? What about this header?
13661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13662 yes:no: )
13663 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13664echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13666echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13667 ac_header_preproc=yes
13668 ;;
13669 no:yes:* )
13670 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13671echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13672 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13673echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13674 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13675echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13676 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13677echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13678 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13679echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13680 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13681echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13682 ( cat <<\_ASBOX
13683## ----------------------------------- ##
13684## Report this to llvmbugs@cs.uiuc.edu ##
13685## ----------------------------------- ##
13686_ASBOX
13687 ) | sed "s/^/$as_me: WARNING: /" >&2
13688 ;;
13689esac
13690{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13691echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13692if test "${ac_cv_header_opagent_h+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13694else
13695 ac_cv_header_opagent_h=$ac_header_preproc
13696fi
13697{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13698echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13699
13700fi
13701if test $ac_cv_header_opagent_h = yes; then
13702 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013703else
13704
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013705 echo "Error! You need to have opagent.h around."
13706 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013707
13708fi
13709
13710
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013711 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013712
13713else
13714
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013715 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013716
13717
13718fi
13719
13720
13721cat >>confdefs.h <<_ACEOF
13722#define USE_OPROFILE $USE_OPROFILE
13723_ACEOF
13724
13725
13726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013727
13728
13729
13730
13731
Reid Spencer59473af2004-12-25 07:31:29 +000013732ac_header_dirent=no
13733for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013734 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13735{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13736echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013739else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013740 cat >conftest.$ac_ext <<_ACEOF
13741/* confdefs.h. */
13742_ACEOF
13743cat confdefs.h >>conftest.$ac_ext
13744cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013745/* end confdefs.h. */
13746#include <sys/types.h>
13747#include <$ac_hdr>
13748
13749int
13750main ()
13751{
13752if ((DIR *) 0)
13753return 0;
13754 ;
13755 return 0;
13756}
13757_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013758rm -f conftest.$ac_objext
13759if { (ac_try="$ac_compile"
13760case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13763esac
13764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_compile") 2>conftest.er1
13766 ac_status=$?
13767 grep -v '^ *+' conftest.er1 >conftest.err
13768 rm -f conftest.er1
13769 cat conftest.err >&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13773 { (case "(($ac_try" in
13774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775 *) ac_try_echo=$ac_try;;
13776esac
13777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778 (eval "$ac_try") 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; } &&
13782 { ac_try='test -s conftest.$ac_objext'
13783 { (case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13786esac
13787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_try") 2>&5
13789 ac_status=$?
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013792 eval "$as_ac_Header=yes"
13793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013794 echo "$as_me: failed program was:" >&5
13795sed 's/^/| /' conftest.$ac_ext >&5
13796
13797 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013798fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013799
Reid Spencera773bd52006-08-04 18:18:08 +000013800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013801fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013802ac_res=`eval echo '${'$as_ac_Header'}'`
13803 { echo "$as_me:$LINENO: result: $ac_res" >&5
13804echo "${ECHO_T}$ac_res" >&6; }
13805if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000013806 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013807#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000013808_ACEOF
13809
13810ac_header_dirent=$ac_hdr; break
13811fi
13812
13813done
13814# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13815if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013816 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13817echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13818if test "${ac_cv_search_opendir+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013820else
13821 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013822cat >conftest.$ac_ext <<_ACEOF
13823/* confdefs.h. */
13824_ACEOF
13825cat confdefs.h >>conftest.$ac_ext
13826cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013827/* end confdefs.h. */
13828
Reid Spencera773bd52006-08-04 18:18:08 +000013829/* Override any GCC internal prototype to avoid an error.
13830 Use char because int might match the return type of a GCC
13831 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013832#ifdef __cplusplus
13833extern "C"
13834#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013835char opendir ();
13836int
13837main ()
13838{
Reid Spencera773bd52006-08-04 18:18:08 +000013839return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013840 ;
13841 return 0;
13842}
13843_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013844for ac_lib in '' dir; do
13845 if test -z "$ac_lib"; then
13846 ac_res="none required"
13847 else
13848 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013850 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013851 rm -f conftest.$ac_objext conftest$ac_exeext
13852if { (ac_try="$ac_link"
13853case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13856esac
13857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_link") 2>conftest.er1
13859 ac_status=$?
13860 grep -v '^ *+' conftest.er1 >conftest.err
13861 rm -f conftest.er1
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } &&
13865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13866 { (case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869esac
13870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_try") 2>&5
13872 ac_status=$?
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; } &&
13875 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013885 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013886else
13887 echo "$as_me: failed program was:" >&5
13888sed 's/^/| /' conftest.$ac_ext >&5
13889
13890
Reid Spencer59473af2004-12-25 07:31:29 +000013891fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013892
Bill Wendlingebcceee2009-04-18 11:20:33 +000013893rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013894 conftest$ac_exeext
13895 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013896 break
Reid Spencer59473af2004-12-25 07:31:29 +000013897fi
Reid Spencera773bd52006-08-04 18:18:08 +000013898done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013899if test "${ac_cv_search_opendir+set}" = set; then
13900 :
Reid Spencera773bd52006-08-04 18:18:08 +000013901else
13902 ac_cv_search_opendir=no
13903fi
13904rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000013905LIBS=$ac_func_search_save_LIBS
13906fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013907{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13908echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013909ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013910if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000013912
13913fi
13914
13915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013916 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13917echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13918if test "${ac_cv_search_opendir+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013920else
13921 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013922cat >conftest.$ac_ext <<_ACEOF
13923/* confdefs.h. */
13924_ACEOF
13925cat confdefs.h >>conftest.$ac_ext
13926cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013927/* end confdefs.h. */
13928
Reid Spencera773bd52006-08-04 18:18:08 +000013929/* Override any GCC internal prototype to avoid an error.
13930 Use char because int might match the return type of a GCC
13931 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000013932#ifdef __cplusplus
13933extern "C"
13934#endif
Reid Spencer59473af2004-12-25 07:31:29 +000013935char opendir ();
13936int
13937main ()
13938{
Reid Spencera773bd52006-08-04 18:18:08 +000013939return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000013940 ;
13941 return 0;
13942}
13943_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013944for ac_lib in '' x; do
13945 if test -z "$ac_lib"; then
13946 ac_res="none required"
13947 else
13948 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000013949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013950 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013951 rm -f conftest.$ac_objext conftest$ac_exeext
13952if { (ac_try="$ac_link"
13953case "(($ac_try" in
13954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13956esac
13957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958 (eval "$ac_link") 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13966 { (case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13969esac
13970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_try") 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } &&
13975 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013985 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013986else
13987 echo "$as_me: failed program was:" >&5
13988sed 's/^/| /' conftest.$ac_ext >&5
13989
13990
Reid Spencer59473af2004-12-25 07:31:29 +000013991fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013992
Bill Wendlingebcceee2009-04-18 11:20:33 +000013993rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013994 conftest$ac_exeext
13995 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013996 break
Reid Spencer59473af2004-12-25 07:31:29 +000013997fi
Reid Spencera773bd52006-08-04 18:18:08 +000013998done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013999if test "${ac_cv_search_opendir+set}" = set; then
14000 :
Reid Spencera773bd52006-08-04 18:18:08 +000014001else
14002 ac_cv_search_opendir=no
14003fi
14004rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014005LIBS=$ac_func_search_save_LIBS
14006fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014007{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14008echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014009ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014010if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014012
14013fi
14014
14015fi
14016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014017{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14018echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14019if test "${ac_cv_header_mmap_anon+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014021else
14022 ac_ext=c
14023ac_cpp='$CPP $CPPFLAGS'
14024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14026ac_compiler_gnu=$ac_cv_c_compiler_gnu
14027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014028 cat >conftest.$ac_ext <<_ACEOF
14029/* confdefs.h. */
14030_ACEOF
14031cat confdefs.h >>conftest.$ac_ext
14032cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014033/* end confdefs.h. */
14034#include <sys/mman.h>
14035#include <unistd.h>
14036#include <fcntl.h>
14037int
14038main ()
14039{
14040mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14041 ;
14042 return 0;
14043}
14044_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014045rm -f conftest.$ac_objext
14046if { (ac_try="$ac_compile"
14047case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14050esac
14051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_compile") 2>conftest.er1
14053 ac_status=$?
14054 grep -v '^ *+' conftest.er1 >conftest.err
14055 rm -f conftest.er1
14056 cat conftest.err >&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } &&
14059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14060 { (case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14063esac
14064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_try") 2>&5
14066 ac_status=$?
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; } &&
14069 { ac_try='test -s conftest.$ac_objext'
14070 { (case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14073esac
14074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075 (eval "$ac_try") 2>&5
14076 ac_status=$?
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014079 ac_cv_header_mmap_anon=yes
14080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014081 echo "$as_me: failed program was:" >&5
14082sed 's/^/| /' conftest.$ac_ext >&5
14083
14084 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014086
Reid Spencera773bd52006-08-04 18:18:08 +000014087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014088 ac_ext=c
14089ac_cpp='$CPP $CPPFLAGS'
14090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14092ac_compiler_gnu=$ac_cv_c_compiler_gnu
14093
14094
14095fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014096{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14097echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014098if test "$ac_cv_header_mmap_anon" = yes; then
14099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014100cat >>confdefs.h <<\_ACEOF
14101#define HAVE_MMAP_ANONYMOUS 1
14102_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014103
14104fi
14105
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014106{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14107echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14108if test "${ac_cv_header_stat_broken+set}" = set; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014110else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014111 cat >conftest.$ac_ext <<_ACEOF
14112/* confdefs.h. */
14113_ACEOF
14114cat confdefs.h >>conftest.$ac_ext
14115cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014116/* end confdefs.h. */
14117#include <sys/types.h>
14118#include <sys/stat.h>
14119
Reid Spencera773bd52006-08-04 18:18:08 +000014120#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014121# if S_ISBLK (S_IFDIR)
14122You lose.
14123# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014124#endif
14125
Reid Spencera773bd52006-08-04 18:18:08 +000014126#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014127# if S_ISBLK (S_IFCHR)
14128You lose.
14129# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014130#endif
14131
Reid Spencera773bd52006-08-04 18:18:08 +000014132#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014133# if S_ISLNK (S_IFREG)
14134You lose.
14135# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014136#endif
14137
Reid Spencera773bd52006-08-04 18:18:08 +000014138#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014139# if S_ISSOCK (S_IFREG)
14140You lose.
14141# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014142#endif
14143
14144_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14146 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014147 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014148else
14149 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014150fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014151rm -f conftest*
14152
Reid Spencer59473af2004-12-25 07:31:29 +000014153fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014154{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14155echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014156if test $ac_cv_header_stat_broken = yes; then
14157
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014158cat >>confdefs.h <<\_ACEOF
14159#define STAT_MACROS_BROKEN 1
14160_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014161
14162fi
14163
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014164{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14165echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14166if test "${ac_cv_header_sys_wait_h+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014168else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014169 cat >conftest.$ac_ext <<_ACEOF
14170/* confdefs.h. */
14171_ACEOF
14172cat confdefs.h >>conftest.$ac_ext
14173cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014174/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014175#include <sys/types.h>
14176#include <sys/wait.h>
14177#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014178# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014179#endif
14180#ifndef WIFEXITED
14181# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14182#endif
14183
John Criswell7a73b802003-06-30 21:59:07 +000014184int
14185main ()
14186{
14187 int s;
14188 wait (&s);
14189 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14190 ;
14191 return 0;
14192}
14193_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014194rm -f conftest.$ac_objext
14195if { (ac_try="$ac_compile"
14196case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14199esac
14200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201 (eval "$ac_compile") 2>conftest.er1
14202 ac_status=$?
14203 grep -v '^ *+' conftest.er1 >conftest.err
14204 rm -f conftest.er1
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
14208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14209 { (case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14212esac
14213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_try") 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; } &&
14218 { ac_try='test -s conftest.$ac_objext'
14219 { (case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14222esac
14223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_try") 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014228 ac_cv_header_sys_wait_h=yes
14229else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014230 echo "$as_me: failed program was:" >&5
14231sed 's/^/| /' conftest.$ac_ext >&5
14232
14233 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014234fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014235
Reid Spencera773bd52006-08-04 18:18:08 +000014236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014237fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014238{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14239echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014240if test $ac_cv_header_sys_wait_h = yes; then
14241
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014242cat >>confdefs.h <<\_ACEOF
14243#define HAVE_SYS_WAIT_H 1
14244_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014245
14246fi
14247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014248{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14249echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14250if test "${ac_cv_header_time+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014252else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014253 cat >conftest.$ac_ext <<_ACEOF
14254/* confdefs.h. */
14255_ACEOF
14256cat confdefs.h >>conftest.$ac_ext
14257cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014258/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014259#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014260#include <sys/time.h>
14261#include <time.h>
14262
14263int
14264main ()
14265{
14266if ((struct tm *) 0)
14267return 0;
14268 ;
14269 return 0;
14270}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014271_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014272rm -f conftest.$ac_objext
14273if { (ac_try="$ac_compile"
14274case "(($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_compile") 2>conftest.er1
14280 ac_status=$?
14281 grep -v '^ *+' conftest.er1 >conftest.err
14282 rm -f conftest.er1
14283 cat conftest.err >&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } &&
14286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14287 { (case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14290esac
14291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_try") 2>&5
14293 ac_status=$?
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; } &&
14296 { ac_try='test -s conftest.$ac_objext'
14297 { (case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14300esac
14301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_try") 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014306 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014308 echo "$as_me: failed program was:" >&5
14309sed 's/^/| /' conftest.$ac_ext >&5
14310
14311 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014313
Reid Spencera773bd52006-08-04 18:18:08 +000014314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014316{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14317echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014318if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014320cat >>confdefs.h <<\_ACEOF
14321#define TIME_WITH_SYS_TIME 1
14322_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014323
14324fi
14325
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014327
14328
14329
14330
14331
14332
Reid Spencer59473af2004-12-25 07:31:29 +000014333for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334do
14335as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14340 echo $ECHO_N "(cached) $ECHO_C" >&6
14341fi
14342ac_res=`eval echo '${'$as_ac_Header'}'`
14343 { echo "$as_me:$LINENO: result: $ac_res" >&5
14344echo "${ECHO_T}$ac_res" >&6; }
14345else
14346 # Is the header compilable?
14347{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14348echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14349cat >conftest.$ac_ext <<_ACEOF
14350/* confdefs.h. */
14351_ACEOF
14352cat confdefs.h >>conftest.$ac_ext
14353cat >>conftest.$ac_ext <<_ACEOF
14354/* end confdefs.h. */
14355$ac_includes_default
14356#include <$ac_header>
14357_ACEOF
14358rm -f conftest.$ac_objext
14359if { (ac_try="$ac_compile"
14360case "(($ac_try" in
14361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362 *) ac_try_echo=$ac_try;;
14363esac
14364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365 (eval "$ac_compile") 2>conftest.er1
14366 ac_status=$?
14367 grep -v '^ *+' conftest.er1 >conftest.err
14368 rm -f conftest.er1
14369 cat conftest.err >&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } &&
14372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14373 { (case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14376esac
14377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_try") 2>&5
14379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; } &&
14382 { ac_try='test -s conftest.$ac_objext'
14383 { (case "(($ac_try" in
14384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385 *) ac_try_echo=$ac_try;;
14386esac
14387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_try") 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14392 ac_header_compiler=yes
14393else
14394 echo "$as_me: failed program was:" >&5
14395sed 's/^/| /' conftest.$ac_ext >&5
14396
14397 ac_header_compiler=no
14398fi
14399
14400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14401{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14402echo "${ECHO_T}$ac_header_compiler" >&6; }
14403
14404# Is the header present?
14405{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14407cat >conftest.$ac_ext <<_ACEOF
14408/* confdefs.h. */
14409_ACEOF
14410cat confdefs.h >>conftest.$ac_ext
14411cat >>conftest.$ac_ext <<_ACEOF
14412/* end confdefs.h. */
14413#include <$ac_header>
14414_ACEOF
14415if { (ac_try="$ac_cpp conftest.$ac_ext"
14416case "(($ac_try" in
14417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418 *) ac_try_echo=$ac_try;;
14419esac
14420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14422 ac_status=$?
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } >/dev/null; then
14428 if test -s conftest.err; then
14429 ac_cpp_err=$ac_c_preproc_warn_flag
14430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14431 else
14432 ac_cpp_err=
14433 fi
14434else
14435 ac_cpp_err=yes
14436fi
14437if test -z "$ac_cpp_err"; then
14438 ac_header_preproc=yes
14439else
14440 echo "$as_me: failed program was:" >&5
14441sed 's/^/| /' conftest.$ac_ext >&5
14442
14443 ac_header_preproc=no
14444fi
14445
14446rm -f conftest.err conftest.$ac_ext
14447{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14448echo "${ECHO_T}$ac_header_preproc" >&6; }
14449
14450# So? What about this header?
14451case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14452 yes:no: )
14453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14454echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14456echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14457 ac_header_preproc=yes
14458 ;;
14459 no:yes:* )
14460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14461echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14463echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14465echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14467echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14469echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14471echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14472 ( cat <<\_ASBOX
14473## ----------------------------------- ##
14474## Report this to llvmbugs@cs.uiuc.edu ##
14475## ----------------------------------- ##
14476_ASBOX
14477 ) | sed "s/^/$as_me: WARNING: /" >&2
14478 ;;
14479esac
14480{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14484else
14485 eval "$as_ac_Header=\$ac_header_preproc"
14486fi
14487ac_res=`eval echo '${'$as_ac_Header'}'`
14488 { echo "$as_me:$LINENO: result: $ac_res" >&5
14489echo "${ECHO_T}$ac_res" >&6; }
14490
14491fi
14492if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014493 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014495_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014496
14497fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014498
Reid Spencer59473af2004-12-25 07:31:29 +000014499done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014501
14502
14503
14504
14505
14506
Douglas Gregor071d73d2009-05-18 17:21:34 +000014507for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014508do
14509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14515fi
14516ac_res=`eval echo '${'$as_ac_Header'}'`
14517 { echo "$as_me:$LINENO: result: $ac_res" >&5
14518echo "${ECHO_T}$ac_res" >&6; }
14519else
14520 # Is the header compilable?
14521{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14522echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14523cat >conftest.$ac_ext <<_ACEOF
14524/* confdefs.h. */
14525_ACEOF
14526cat confdefs.h >>conftest.$ac_ext
14527cat >>conftest.$ac_ext <<_ACEOF
14528/* end confdefs.h. */
14529$ac_includes_default
14530#include <$ac_header>
14531_ACEOF
14532rm -f conftest.$ac_objext
14533if { (ac_try="$ac_compile"
14534case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14537esac
14538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_compile") 2>conftest.er1
14540 ac_status=$?
14541 grep -v '^ *+' conftest.er1 >conftest.err
14542 rm -f conftest.er1
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14547 { (case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14550esac
14551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_try") 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try='test -s conftest.$ac_objext'
14557 { (case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14560esac
14561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_try") 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 ac_header_compiler=yes
14567else
14568 echo "$as_me: failed program was:" >&5
14569sed 's/^/| /' conftest.$ac_ext >&5
14570
14571 ac_header_compiler=no
14572fi
14573
14574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14575{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14576echo "${ECHO_T}$ac_header_compiler" >&6; }
14577
14578# Is the header present?
14579{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14580echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14581cat >conftest.$ac_ext <<_ACEOF
14582/* confdefs.h. */
14583_ACEOF
14584cat confdefs.h >>conftest.$ac_ext
14585cat >>conftest.$ac_ext <<_ACEOF
14586/* end confdefs.h. */
14587#include <$ac_header>
14588_ACEOF
14589if { (ac_try="$ac_cpp conftest.$ac_ext"
14590case "(($ac_try" in
14591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14592 *) ac_try_echo=$ac_try;;
14593esac
14594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14596 ac_status=$?
14597 grep -v '^ *+' conftest.er1 >conftest.err
14598 rm -f conftest.er1
14599 cat conftest.err >&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); } >/dev/null; then
14602 if test -s conftest.err; then
14603 ac_cpp_err=$ac_c_preproc_warn_flag
14604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14605 else
14606 ac_cpp_err=
14607 fi
14608else
14609 ac_cpp_err=yes
14610fi
14611if test -z "$ac_cpp_err"; then
14612 ac_header_preproc=yes
14613else
14614 echo "$as_me: failed program was:" >&5
14615sed 's/^/| /' conftest.$ac_ext >&5
14616
14617 ac_header_preproc=no
14618fi
14619
14620rm -f conftest.err conftest.$ac_ext
14621{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14622echo "${ECHO_T}$ac_header_preproc" >&6; }
14623
14624# So? What about this header?
14625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14626 yes:no: )
14627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14631 ac_header_preproc=yes
14632 ;;
14633 no:yes:* )
14634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14637echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14641echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14646 ( cat <<\_ASBOX
14647## ----------------------------------- ##
14648## Report this to llvmbugs@cs.uiuc.edu ##
14649## ----------------------------------- ##
14650_ASBOX
14651 ) | sed "s/^/$as_me: WARNING: /" >&2
14652 ;;
14653esac
14654{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14658else
14659 eval "$as_ac_Header=\$ac_header_preproc"
14660fi
14661ac_res=`eval echo '${'$as_ac_Header'}'`
14662 { echo "$as_me:$LINENO: result: $ac_res" >&5
14663echo "${ECHO_T}$ac_res" >&6; }
14664
14665fi
14666if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014667 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014669_ACEOF
14670
14671fi
14672
14673done
14674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014675
14676
Douglas Gregor071d73d2009-05-18 17:21:34 +000014677for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014678do
14679as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14685fi
14686ac_res=`eval echo '${'$as_ac_Header'}'`
14687 { echo "$as_me:$LINENO: result: $ac_res" >&5
14688echo "${ECHO_T}$ac_res" >&6; }
14689else
14690 # Is the header compilable?
14691{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14692echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14693cat >conftest.$ac_ext <<_ACEOF
14694/* confdefs.h. */
14695_ACEOF
14696cat confdefs.h >>conftest.$ac_ext
14697cat >>conftest.$ac_ext <<_ACEOF
14698/* end confdefs.h. */
14699$ac_includes_default
14700#include <$ac_header>
14701_ACEOF
14702rm -f conftest.$ac_objext
14703if { (ac_try="$ac_compile"
14704case "(($ac_try" in
14705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706 *) ac_try_echo=$ac_try;;
14707esac
14708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14709 (eval "$ac_compile") 2>conftest.er1
14710 ac_status=$?
14711 grep -v '^ *+' conftest.er1 >conftest.err
14712 rm -f conftest.er1
14713 cat conftest.err >&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } &&
14716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14717 { (case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14720esac
14721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_try") 2>&5
14723 ac_status=$?
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; } &&
14726 { ac_try='test -s conftest.$ac_objext'
14727 { (case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14730esac
14731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_try") 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; }; then
14736 ac_header_compiler=yes
14737else
14738 echo "$as_me: failed program was:" >&5
14739sed 's/^/| /' conftest.$ac_ext >&5
14740
14741 ac_header_compiler=no
14742fi
14743
14744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14746echo "${ECHO_T}$ac_header_compiler" >&6; }
14747
14748# Is the header present?
14749{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14750echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14751cat >conftest.$ac_ext <<_ACEOF
14752/* confdefs.h. */
14753_ACEOF
14754cat confdefs.h >>conftest.$ac_ext
14755cat >>conftest.$ac_ext <<_ACEOF
14756/* end confdefs.h. */
14757#include <$ac_header>
14758_ACEOF
14759if { (ac_try="$ac_cpp conftest.$ac_ext"
14760case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14763esac
14764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } >/dev/null; then
14772 if test -s conftest.err; then
14773 ac_cpp_err=$ac_c_preproc_warn_flag
14774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14775 else
14776 ac_cpp_err=
14777 fi
14778else
14779 ac_cpp_err=yes
14780fi
14781if test -z "$ac_cpp_err"; then
14782 ac_header_preproc=yes
14783else
14784 echo "$as_me: failed program was:" >&5
14785sed 's/^/| /' conftest.$ac_ext >&5
14786
14787 ac_header_preproc=no
14788fi
14789
14790rm -f conftest.err conftest.$ac_ext
14791{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14792echo "${ECHO_T}$ac_header_preproc" >&6; }
14793
14794# So? What about this header?
14795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14796 yes:no: )
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14798echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14800echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14801 ac_header_preproc=yes
14802 ;;
14803 no:yes:* )
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14805echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14807echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14809echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14811echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14815echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14816 ( cat <<\_ASBOX
14817## ----------------------------------- ##
14818## Report this to llvmbugs@cs.uiuc.edu ##
14819## ----------------------------------- ##
14820_ASBOX
14821 ) | sed "s/^/$as_me: WARNING: /" >&2
14822 ;;
14823esac
14824{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14826if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14828else
14829 eval "$as_ac_Header=\$ac_header_preproc"
14830fi
14831ac_res=`eval echo '${'$as_ac_Header'}'`
14832 { echo "$as_me:$LINENO: result: $ac_res" >&5
14833echo "${ECHO_T}$ac_res" >&6; }
14834
14835fi
14836if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000014837 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014838#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000014839_ACEOF
14840
14841fi
14842
14843done
Reid Spencer59473af2004-12-25 07:31:29 +000014844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014845
14846
14847
14848
Daniel Dunbar3e462932011-02-03 02:40:02 +000014849
14850for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014851do
14852as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14858fi
14859ac_res=`eval echo '${'$as_ac_Header'}'`
14860 { echo "$as_me:$LINENO: result: $ac_res" >&5
14861echo "${ECHO_T}$ac_res" >&6; }
14862else
14863 # Is the header compilable?
14864{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14865echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14866cat >conftest.$ac_ext <<_ACEOF
14867/* confdefs.h. */
14868_ACEOF
14869cat confdefs.h >>conftest.$ac_ext
14870cat >>conftest.$ac_ext <<_ACEOF
14871/* end confdefs.h. */
14872$ac_includes_default
14873#include <$ac_header>
14874_ACEOF
14875rm -f conftest.$ac_objext
14876if { (ac_try="$ac_compile"
14877case "(($ac_try" in
14878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879 *) ac_try_echo=$ac_try;;
14880esac
14881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882 (eval "$ac_compile") 2>conftest.er1
14883 ac_status=$?
14884 grep -v '^ *+' conftest.er1 >conftest.err
14885 rm -f conftest.er1
14886 cat conftest.err >&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } &&
14889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14890 { (case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14893esac
14894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_try") 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; } &&
14899 { ac_try='test -s conftest.$ac_objext'
14900 { (case "(($ac_try" in
14901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902 *) ac_try_echo=$ac_try;;
14903esac
14904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905 (eval "$ac_try") 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 ac_header_compiler=yes
14910else
14911 echo "$as_me: failed program was:" >&5
14912sed 's/^/| /' conftest.$ac_ext >&5
14913
14914 ac_header_compiler=no
14915fi
14916
14917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14918{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14919echo "${ECHO_T}$ac_header_compiler" >&6; }
14920
14921# Is the header present?
14922{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14923echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14924cat >conftest.$ac_ext <<_ACEOF
14925/* confdefs.h. */
14926_ACEOF
14927cat confdefs.h >>conftest.$ac_ext
14928cat >>conftest.$ac_ext <<_ACEOF
14929/* end confdefs.h. */
14930#include <$ac_header>
14931_ACEOF
14932if { (ac_try="$ac_cpp conftest.$ac_ext"
14933case "(($ac_try" in
14934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14935 *) ac_try_echo=$ac_try;;
14936esac
14937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14939 ac_status=$?
14940 grep -v '^ *+' conftest.er1 >conftest.err
14941 rm -f conftest.er1
14942 cat conftest.err >&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } >/dev/null; then
14945 if test -s conftest.err; then
14946 ac_cpp_err=$ac_c_preproc_warn_flag
14947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14948 else
14949 ac_cpp_err=
14950 fi
14951else
14952 ac_cpp_err=yes
14953fi
14954if test -z "$ac_cpp_err"; then
14955 ac_header_preproc=yes
14956else
14957 echo "$as_me: failed program was:" >&5
14958sed 's/^/| /' conftest.$ac_ext >&5
14959
14960 ac_header_preproc=no
14961fi
14962
14963rm -f conftest.err conftest.$ac_ext
14964{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14965echo "${ECHO_T}$ac_header_preproc" >&6; }
14966
14967# So? What about this header?
14968case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14969 yes:no: )
14970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14971echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14973echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14974 ac_header_preproc=yes
14975 ;;
14976 no:yes:* )
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14978echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14980echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14982echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14984echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14988echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14989 ( cat <<\_ASBOX
14990## ----------------------------------- ##
14991## Report this to llvmbugs@cs.uiuc.edu ##
14992## ----------------------------------- ##
14993_ASBOX
14994 ) | sed "s/^/$as_me: WARNING: /" >&2
14995 ;;
14996esac
14997{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14999if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15001else
15002 eval "$as_ac_Header=\$ac_header_preproc"
15003fi
15004ac_res=`eval echo '${'$as_ac_Header'}'`
15005 { echo "$as_me:$LINENO: result: $ac_res" >&5
15006echo "${ECHO_T}$ac_res" >&6; }
15007
15008fi
15009if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015010 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015011#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015012_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015013
15014fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015015
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015016done
15017
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015018
15019
15020
15021
Douglas Gregor01746742009-05-11 18:05:52 +000015022for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015023do
15024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15030fi
15031ac_res=`eval echo '${'$as_ac_Header'}'`
15032 { echo "$as_me:$LINENO: result: $ac_res" >&5
15033echo "${ECHO_T}$ac_res" >&6; }
15034else
15035 # Is the header compilable?
15036{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15038cat >conftest.$ac_ext <<_ACEOF
15039/* confdefs.h. */
15040_ACEOF
15041cat confdefs.h >>conftest.$ac_ext
15042cat >>conftest.$ac_ext <<_ACEOF
15043/* end confdefs.h. */
15044$ac_includes_default
15045#include <$ac_header>
15046_ACEOF
15047rm -f conftest.$ac_objext
15048if { (ac_try="$ac_compile"
15049case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15052esac
15053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_compile") 2>conftest.er1
15055 ac_status=$?
15056 grep -v '^ *+' conftest.er1 >conftest.err
15057 rm -f conftest.er1
15058 cat conftest.err >&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } &&
15061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15062 { (case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15065esac
15066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_try") 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; } &&
15071 { ac_try='test -s conftest.$ac_objext'
15072 { (case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15075esac
15076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_try") 2>&5
15078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15081 ac_header_compiler=yes
15082else
15083 echo "$as_me: failed program was:" >&5
15084sed 's/^/| /' conftest.$ac_ext >&5
15085
15086 ac_header_compiler=no
15087fi
15088
15089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15090{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15091echo "${ECHO_T}$ac_header_compiler" >&6; }
15092
15093# Is the header present?
15094{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15095echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15096cat >conftest.$ac_ext <<_ACEOF
15097/* confdefs.h. */
15098_ACEOF
15099cat confdefs.h >>conftest.$ac_ext
15100cat >>conftest.$ac_ext <<_ACEOF
15101/* end confdefs.h. */
15102#include <$ac_header>
15103_ACEOF
15104if { (ac_try="$ac_cpp conftest.$ac_ext"
15105case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15108esac
15109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15111 ac_status=$?
15112 grep -v '^ *+' conftest.er1 >conftest.err
15113 rm -f conftest.er1
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } >/dev/null; then
15117 if test -s conftest.err; then
15118 ac_cpp_err=$ac_c_preproc_warn_flag
15119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15120 else
15121 ac_cpp_err=
15122 fi
15123else
15124 ac_cpp_err=yes
15125fi
15126if test -z "$ac_cpp_err"; then
15127 ac_header_preproc=yes
15128else
15129 echo "$as_me: failed program was:" >&5
15130sed 's/^/| /' conftest.$ac_ext >&5
15131
15132 ac_header_preproc=no
15133fi
15134
15135rm -f conftest.err conftest.$ac_ext
15136{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15137echo "${ECHO_T}$ac_header_preproc" >&6; }
15138
15139# So? What about this header?
15140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15141 yes:no: )
15142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15146 ac_header_preproc=yes
15147 ;;
15148 no:yes:* )
15149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15156echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15161 ( cat <<\_ASBOX
15162## ----------------------------------- ##
15163## Report this to llvmbugs@cs.uiuc.edu ##
15164## ----------------------------------- ##
15165_ASBOX
15166 ) | sed "s/^/$as_me: WARNING: /" >&2
15167 ;;
15168esac
15169{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15173else
15174 eval "$as_ac_Header=\$ac_header_preproc"
15175fi
15176ac_res=`eval echo '${'$as_ac_Header'}'`
15177 { echo "$as_me:$LINENO: result: $ac_res" >&5
15178echo "${ECHO_T}$ac_res" >&6; }
15179
15180fi
15181if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015182 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015184_ACEOF
15185
15186fi
15187
15188done
15189
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015190
15191for ac_header in valgrind/valgrind.h
15192do
15193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15199fi
15200ac_res=`eval echo '${'$as_ac_Header'}'`
15201 { echo "$as_me:$LINENO: result: $ac_res" >&5
15202echo "${ECHO_T}$ac_res" >&6; }
15203else
15204 # Is the header compilable?
15205{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15207cat >conftest.$ac_ext <<_ACEOF
15208/* confdefs.h. */
15209_ACEOF
15210cat confdefs.h >>conftest.$ac_ext
15211cat >>conftest.$ac_ext <<_ACEOF
15212/* end confdefs.h. */
15213$ac_includes_default
15214#include <$ac_header>
15215_ACEOF
15216rm -f conftest.$ac_objext
15217if { (ac_try="$ac_compile"
15218case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15221esac
15222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_compile") 2>conftest.er1
15224 ac_status=$?
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
15230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15231 { (case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15234esac
15235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_try") 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; } &&
15240 { ac_try='test -s conftest.$ac_objext'
15241 { (case "(($ac_try" in
15242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15243 *) ac_try_echo=$ac_try;;
15244esac
15245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15246 (eval "$ac_try") 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15250 ac_header_compiler=yes
15251else
15252 echo "$as_me: failed program was:" >&5
15253sed 's/^/| /' conftest.$ac_ext >&5
15254
15255 ac_header_compiler=no
15256fi
15257
15258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15260echo "${ECHO_T}$ac_header_compiler" >&6; }
15261
15262# Is the header present?
15263{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15265cat >conftest.$ac_ext <<_ACEOF
15266/* confdefs.h. */
15267_ACEOF
15268cat confdefs.h >>conftest.$ac_ext
15269cat >>conftest.$ac_ext <<_ACEOF
15270/* end confdefs.h. */
15271#include <$ac_header>
15272_ACEOF
15273if { (ac_try="$ac_cpp conftest.$ac_ext"
15274case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277esac
15278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15280 ac_status=$?
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } >/dev/null; then
15286 if test -s conftest.err; then
15287 ac_cpp_err=$ac_c_preproc_warn_flag
15288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15289 else
15290 ac_cpp_err=
15291 fi
15292else
15293 ac_cpp_err=yes
15294fi
15295if test -z "$ac_cpp_err"; then
15296 ac_header_preproc=yes
15297else
15298 echo "$as_me: failed program was:" >&5
15299sed 's/^/| /' conftest.$ac_ext >&5
15300
15301 ac_header_preproc=no
15302fi
15303
15304rm -f conftest.err conftest.$ac_ext
15305{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15306echo "${ECHO_T}$ac_header_preproc" >&6; }
15307
15308# So? What about this header?
15309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15310 yes:no: )
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15312echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15314echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15315 ac_header_preproc=yes
15316 ;;
15317 no:yes:* )
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15319echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15321echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15323echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15325echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15327echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15329echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15330 ( cat <<\_ASBOX
15331## ----------------------------------- ##
15332## Report this to llvmbugs@cs.uiuc.edu ##
15333## ----------------------------------- ##
15334_ASBOX
15335 ) | sed "s/^/$as_me: WARNING: /" >&2
15336 ;;
15337esac
15338{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15342else
15343 eval "$as_ac_Header=\$ac_header_preproc"
15344fi
15345ac_res=`eval echo '${'$as_ac_Header'}'`
15346 { echo "$as_me:$LINENO: result: $ac_res" >&5
15347echo "${ECHO_T}$ac_res" >&6; }
15348
15349fi
15350if test `eval echo '${'$as_ac_Header'}'` = yes; then
15351 cat >>confdefs.h <<_ACEOF
15352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15353_ACEOF
15354
15355fi
15356
15357done
15358
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015359
15360for ac_header in fenv.h
15361do
15362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368fi
15369ac_res=`eval echo '${'$as_ac_Header'}'`
15370 { echo "$as_me:$LINENO: result: $ac_res" >&5
15371echo "${ECHO_T}$ac_res" >&6; }
15372else
15373 # Is the header compilable?
15374{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15376cat >conftest.$ac_ext <<_ACEOF
15377/* confdefs.h. */
15378_ACEOF
15379cat confdefs.h >>conftest.$ac_ext
15380cat >>conftest.$ac_ext <<_ACEOF
15381/* end confdefs.h. */
15382$ac_includes_default
15383#include <$ac_header>
15384_ACEOF
15385rm -f conftest.$ac_objext
15386if { (ac_try="$ac_compile"
15387case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15390esac
15391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392 (eval "$ac_compile") 2>conftest.er1
15393 ac_status=$?
15394 grep -v '^ *+' conftest.er1 >conftest.err
15395 rm -f conftest.er1
15396 cat conftest.err >&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } &&
15399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15400 { (case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15403esac
15404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_try") 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; } &&
15409 { ac_try='test -s conftest.$ac_objext'
15410 { (case "(($ac_try" in
15411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15413esac
15414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_try") 2>&5
15416 ac_status=$?
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 ac_header_compiler=yes
15420else
15421 echo "$as_me: failed program was:" >&5
15422sed 's/^/| /' conftest.$ac_ext >&5
15423
15424 ac_header_compiler=no
15425fi
15426
15427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15428{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15429echo "${ECHO_T}$ac_header_compiler" >&6; }
15430
15431# Is the header present?
15432{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15433echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15434cat >conftest.$ac_ext <<_ACEOF
15435/* confdefs.h. */
15436_ACEOF
15437cat confdefs.h >>conftest.$ac_ext
15438cat >>conftest.$ac_ext <<_ACEOF
15439/* end confdefs.h. */
15440#include <$ac_header>
15441_ACEOF
15442if { (ac_try="$ac_cpp conftest.$ac_ext"
15443case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15446esac
15447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15449 ac_status=$?
15450 grep -v '^ *+' conftest.er1 >conftest.err
15451 rm -f conftest.er1
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } >/dev/null; then
15455 if test -s conftest.err; then
15456 ac_cpp_err=$ac_c_preproc_warn_flag
15457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15458 else
15459 ac_cpp_err=
15460 fi
15461else
15462 ac_cpp_err=yes
15463fi
15464if test -z "$ac_cpp_err"; then
15465 ac_header_preproc=yes
15466else
15467 echo "$as_me: failed program was:" >&5
15468sed 's/^/| /' conftest.$ac_ext >&5
15469
15470 ac_header_preproc=no
15471fi
15472
15473rm -f conftest.err conftest.$ac_ext
15474{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15475echo "${ECHO_T}$ac_header_preproc" >&6; }
15476
15477# So? What about this header?
15478case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15479 yes:no: )
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15481echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15483echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15484 ac_header_preproc=yes
15485 ;;
15486 no:yes:* )
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15488echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15490echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15492echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15494echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15496echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15498echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15499 ( cat <<\_ASBOX
15500## ----------------------------------- ##
15501## Report this to llvmbugs@cs.uiuc.edu ##
15502## ----------------------------------- ##
15503_ASBOX
15504 ) | sed "s/^/$as_me: WARNING: /" >&2
15505 ;;
15506esac
15507{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15510 echo $ECHO_N "(cached) $ECHO_C" >&6
15511else
15512 eval "$as_ac_Header=\$ac_header_preproc"
15513fi
15514ac_res=`eval echo '${'$as_ac_Header'}'`
15515 { echo "$as_me:$LINENO: result: $ac_res" >&5
15516echo "${ECHO_T}$ac_res" >&6; }
15517
15518fi
15519if test `eval echo '${'$as_ac_Header'}'` = yes; then
15520 cat >>confdefs.h <<_ACEOF
15521#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15522_ACEOF
15523
15524fi
15525
15526done
15527
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000015528if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015529
15530for ac_header in pthread.h
15531do
15532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15533if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15538fi
15539ac_res=`eval echo '${'$as_ac_Header'}'`
15540 { echo "$as_me:$LINENO: result: $ac_res" >&5
15541echo "${ECHO_T}$ac_res" >&6; }
15542else
15543 # Is the header compilable?
15544{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15545echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15546cat >conftest.$ac_ext <<_ACEOF
15547/* confdefs.h. */
15548_ACEOF
15549cat confdefs.h >>conftest.$ac_ext
15550cat >>conftest.$ac_ext <<_ACEOF
15551/* end confdefs.h. */
15552$ac_includes_default
15553#include <$ac_header>
15554_ACEOF
15555rm -f conftest.$ac_objext
15556if { (ac_try="$ac_compile"
15557case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15560esac
15561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_compile") 2>conftest.er1
15563 ac_status=$?
15564 grep -v '^ *+' conftest.er1 >conftest.err
15565 rm -f conftest.er1
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } &&
15569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15570 { (case "(($ac_try" in
15571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 *) ac_try_echo=$ac_try;;
15573esac
15574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575 (eval "$ac_try") 2>&5
15576 ac_status=$?
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; } &&
15579 { ac_try='test -s conftest.$ac_objext'
15580 { (case "(($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_try") 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; }; then
15589 ac_header_compiler=yes
15590else
15591 echo "$as_me: failed program was:" >&5
15592sed 's/^/| /' conftest.$ac_ext >&5
15593
15594 ac_header_compiler=no
15595fi
15596
15597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15598{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15599echo "${ECHO_T}$ac_header_compiler" >&6; }
15600
15601# Is the header present?
15602{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15603echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15604cat >conftest.$ac_ext <<_ACEOF
15605/* confdefs.h. */
15606_ACEOF
15607cat confdefs.h >>conftest.$ac_ext
15608cat >>conftest.$ac_ext <<_ACEOF
15609/* end confdefs.h. */
15610#include <$ac_header>
15611_ACEOF
15612if { (ac_try="$ac_cpp conftest.$ac_ext"
15613case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15616esac
15617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15619 ac_status=$?
15620 grep -v '^ *+' conftest.er1 >conftest.err
15621 rm -f conftest.er1
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } >/dev/null; then
15625 if test -s conftest.err; then
15626 ac_cpp_err=$ac_c_preproc_warn_flag
15627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15628 else
15629 ac_cpp_err=
15630 fi
15631else
15632 ac_cpp_err=yes
15633fi
15634if test -z "$ac_cpp_err"; then
15635 ac_header_preproc=yes
15636else
15637 echo "$as_me: failed program was:" >&5
15638sed 's/^/| /' conftest.$ac_ext >&5
15639
15640 ac_header_preproc=no
15641fi
15642
15643rm -f conftest.err conftest.$ac_ext
15644{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15645echo "${ECHO_T}$ac_header_preproc" >&6; }
15646
15647# So? What about this header?
15648case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15649 yes:no: )
15650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15651echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15653echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15654 ac_header_preproc=yes
15655 ;;
15656 no:yes:* )
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15658echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15660echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15662echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15664echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15666echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15668echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15669 ( cat <<\_ASBOX
15670## ----------------------------------- ##
15671## Report this to llvmbugs@cs.uiuc.edu ##
15672## ----------------------------------- ##
15673_ASBOX
15674 ) | sed "s/^/$as_me: WARNING: /" >&2
15675 ;;
15676esac
15677{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15680 echo $ECHO_N "(cached) $ECHO_C" >&6
15681else
15682 eval "$as_ac_Header=\$ac_header_preproc"
15683fi
15684ac_res=`eval echo '${'$as_ac_Header'}'`
15685 { echo "$as_me:$LINENO: result: $ac_res" >&5
15686echo "${ECHO_T}$ac_res" >&6; }
15687
15688fi
15689if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015690 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015691#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015692_ACEOF
15693 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015694
15695else
15696 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015697
15698fi
15699
Reid Spencerbe3e4192007-08-17 05:45:26 +000015700done
Reid Spencer1000b732006-12-01 00:37:14 +000015701
15702else
15703 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015704
15705fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015706
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015707if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015708
15709
15710for ac_header in ffi.h ffi/ffi.h
15711do
15712as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15713if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15716if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15718fi
15719ac_res=`eval echo '${'$as_ac_Header'}'`
15720 { echo "$as_me:$LINENO: result: $ac_res" >&5
15721echo "${ECHO_T}$ac_res" >&6; }
15722else
15723 # Is the header compilable?
15724{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15725echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15726cat >conftest.$ac_ext <<_ACEOF
15727/* confdefs.h. */
15728_ACEOF
15729cat confdefs.h >>conftest.$ac_ext
15730cat >>conftest.$ac_ext <<_ACEOF
15731/* end confdefs.h. */
15732$ac_includes_default
15733#include <$ac_header>
15734_ACEOF
15735rm -f conftest.$ac_objext
15736if { (ac_try="$ac_compile"
15737case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15740esac
15741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_compile") 2>conftest.er1
15743 ac_status=$?
15744 grep -v '^ *+' conftest.er1 >conftest.err
15745 rm -f conftest.er1
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15750 { (case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15753esac
15754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755 (eval "$ac_try") 2>&5
15756 ac_status=$?
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; } &&
15759 { ac_try='test -s conftest.$ac_objext'
15760 { (case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15763esac
15764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765 (eval "$ac_try") 2>&5
15766 ac_status=$?
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769 ac_header_compiler=yes
15770else
15771 echo "$as_me: failed program was:" >&5
15772sed 's/^/| /' conftest.$ac_ext >&5
15773
15774 ac_header_compiler=no
15775fi
15776
15777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15778{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15779echo "${ECHO_T}$ac_header_compiler" >&6; }
15780
15781# Is the header present?
15782{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15783echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15784cat >conftest.$ac_ext <<_ACEOF
15785/* confdefs.h. */
15786_ACEOF
15787cat confdefs.h >>conftest.$ac_ext
15788cat >>conftest.$ac_ext <<_ACEOF
15789/* end confdefs.h. */
15790#include <$ac_header>
15791_ACEOF
15792if { (ac_try="$ac_cpp conftest.$ac_ext"
15793case "(($ac_try" in
15794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795 *) ac_try_echo=$ac_try;;
15796esac
15797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15799 ac_status=$?
15800 grep -v '^ *+' conftest.er1 >conftest.err
15801 rm -f conftest.er1
15802 cat conftest.err >&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } >/dev/null; then
15805 if test -s conftest.err; then
15806 ac_cpp_err=$ac_c_preproc_warn_flag
15807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15808 else
15809 ac_cpp_err=
15810 fi
15811else
15812 ac_cpp_err=yes
15813fi
15814if test -z "$ac_cpp_err"; then
15815 ac_header_preproc=yes
15816else
15817 echo "$as_me: failed program was:" >&5
15818sed 's/^/| /' conftest.$ac_ext >&5
15819
15820 ac_header_preproc=no
15821fi
15822
15823rm -f conftest.err conftest.$ac_ext
15824{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15825echo "${ECHO_T}$ac_header_preproc" >&6; }
15826
15827# So? What about this header?
15828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15829 yes:no: )
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15831echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15833echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15834 ac_header_preproc=yes
15835 ;;
15836 no:yes:* )
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15838echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15840echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15842echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15844echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15846echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15848echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15849 ( cat <<\_ASBOX
15850## ----------------------------------- ##
15851## Report this to llvmbugs@cs.uiuc.edu ##
15852## ----------------------------------- ##
15853_ASBOX
15854 ) | sed "s/^/$as_me: WARNING: /" >&2
15855 ;;
15856esac
15857{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15861else
15862 eval "$as_ac_Header=\$ac_header_preproc"
15863fi
15864ac_res=`eval echo '${'$as_ac_Header'}'`
15865 { echo "$as_me:$LINENO: result: $ac_res" >&5
15866echo "${ECHO_T}$ac_res" >&6; }
15867
15868fi
15869if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015870 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015871#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015872_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015873
15874fi
15875
15876done
15877
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015878fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015879
Nick Lewycky2ab1d862009-01-20 00:52:24 +000015880
Eric Christopher654dee42010-06-22 21:01:04 +000015881for ac_header in CrashReporterClient.h
15882do
15883as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15889fi
15890ac_res=`eval echo '${'$as_ac_Header'}'`
15891 { echo "$as_me:$LINENO: result: $ac_res" >&5
15892echo "${ECHO_T}$ac_res" >&6; }
15893else
15894 # Is the header compilable?
15895{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15896echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15897cat >conftest.$ac_ext <<_ACEOF
15898/* confdefs.h. */
15899_ACEOF
15900cat confdefs.h >>conftest.$ac_ext
15901cat >>conftest.$ac_ext <<_ACEOF
15902/* end confdefs.h. */
15903$ac_includes_default
15904#include <$ac_header>
15905_ACEOF
15906rm -f conftest.$ac_objext
15907if { (ac_try="$ac_compile"
15908case "(($ac_try" in
15909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910 *) ac_try_echo=$ac_try;;
15911esac
15912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15913 (eval "$ac_compile") 2>conftest.er1
15914 ac_status=$?
15915 grep -v '^ *+' conftest.er1 >conftest.err
15916 rm -f conftest.er1
15917 cat conftest.err >&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } &&
15920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15921 { (case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15924esac
15925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_try") 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; } &&
15930 { ac_try='test -s conftest.$ac_objext'
15931 { (case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15934esac
15935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936 (eval "$ac_try") 2>&5
15937 ac_status=$?
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 ac_header_compiler=yes
15941else
15942 echo "$as_me: failed program was:" >&5
15943sed 's/^/| /' conftest.$ac_ext >&5
15944
15945 ac_header_compiler=no
15946fi
15947
15948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15950echo "${ECHO_T}$ac_header_compiler" >&6; }
15951
15952# Is the header present?
15953{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15954echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15955cat >conftest.$ac_ext <<_ACEOF
15956/* confdefs.h. */
15957_ACEOF
15958cat confdefs.h >>conftest.$ac_ext
15959cat >>conftest.$ac_ext <<_ACEOF
15960/* end confdefs.h. */
15961#include <$ac_header>
15962_ACEOF
15963if { (ac_try="$ac_cpp conftest.$ac_ext"
15964case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15967esac
15968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15970 ac_status=$?
15971 grep -v '^ *+' conftest.er1 >conftest.err
15972 rm -f conftest.er1
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } >/dev/null; then
15976 if test -s conftest.err; then
15977 ac_cpp_err=$ac_c_preproc_warn_flag
15978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15979 else
15980 ac_cpp_err=
15981 fi
15982else
15983 ac_cpp_err=yes
15984fi
15985if test -z "$ac_cpp_err"; then
15986 ac_header_preproc=yes
15987else
15988 echo "$as_me: failed program was:" >&5
15989sed 's/^/| /' conftest.$ac_ext >&5
15990
15991 ac_header_preproc=no
15992fi
15993
15994rm -f conftest.err conftest.$ac_ext
15995{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15996echo "${ECHO_T}$ac_header_preproc" >&6; }
15997
15998# So? What about this header?
15999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16000 yes:no: )
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16002echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16004echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16005 ac_header_preproc=yes
16006 ;;
16007 no:yes:* )
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16009echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16011echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16013echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16015echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16017echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16019echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16020 ( cat <<\_ASBOX
16021## ----------------------------------- ##
16022## Report this to llvmbugs@cs.uiuc.edu ##
16023## ----------------------------------- ##
16024_ASBOX
16025 ) | sed "s/^/$as_me: WARNING: /" >&2
16026 ;;
16027esac
16028{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16032else
16033 eval "$as_ac_Header=\$ac_header_preproc"
16034fi
16035ac_res=`eval echo '${'$as_ac_Header'}'`
16036 { echo "$as_me:$LINENO: result: $ac_res" >&5
16037echo "${ECHO_T}$ac_res" >&6; }
16038
16039fi
16040if test `eval echo '${'$as_ac_Header'}'` = yes; then
16041 cat >>confdefs.h <<_ACEOF
16042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16043_ACEOF
16044
16045fi
16046
16047done
16048
16049
Eric Christopher51e57132010-12-07 02:05:42 +000016050{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16051echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016052cat >conftest.$ac_ext <<_ACEOF
16053/* confdefs.h. */
16054_ACEOF
16055cat confdefs.h >>conftest.$ac_ext
16056cat >>conftest.$ac_ext <<_ACEOF
16057/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016058extern const char *__crashreporter_info__;
16059 int main() {
16060 __crashreporter_info__ = "test";
16061 return 0;
16062 }
Eric Christopher481d4022010-12-03 07:45:22 +000016063
Eric Christopher481d4022010-12-03 07:45:22 +000016064_ACEOF
16065rm -f conftest.$ac_objext conftest$ac_exeext
16066if { (ac_try="$ac_link"
16067case "(($ac_try" in
16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069 *) ac_try_echo=$ac_try;;
16070esac
16071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072 (eval "$ac_link") 2>conftest.er1
16073 ac_status=$?
16074 grep -v '^ *+' conftest.er1 >conftest.err
16075 rm -f conftest.er1
16076 cat conftest.err >&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
16079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16080 { (case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16083esac
16084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_try") 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; } &&
16089 { ac_try='test -s conftest$ac_exeext'
16090 { (case "(($ac_try" in
16091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16092 *) ac_try_echo=$ac_try;;
16093esac
16094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16095 (eval "$ac_try") 2>&5
16096 ac_status=$?
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016099 { echo "$as_me:$LINENO: result: yes" >&5
16100echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016101
16102cat >>confdefs.h <<\_ACEOF
16103#define HAVE_CRASHREPORTER_INFO 1
16104_ACEOF
16105
Eric Christopher51e57132010-12-07 02:05:42 +000016106else
16107 echo "$as_me: failed program was:" >&5
16108sed 's/^/| /' conftest.$ac_ext >&5
16109
16110 { echo "$as_me:$LINENO: result: no" >&5
16111echo "${ECHO_T}no" >&6; }
16112
16113cat >>confdefs.h <<\_ACEOF
16114#define HAVE_CRASHREPORTER_INFO 0
16115_ACEOF
16116
Eric Christopher481d4022010-12-03 07:45:22 +000016117fi
Eric Christopher654dee42010-06-22 21:01:04 +000016118
Eric Christopher51e57132010-12-07 02:05:42 +000016119rm -f core conftest.err conftest.$ac_objext \
16120 conftest$ac_exeext conftest.$ac_ext
16121
16122
Reid Spencer8085cff2005-01-16 02:58:39 +000016123
Torok Edwin871384f2010-01-26 08:50:50 +000016124
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016125 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16126echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16127if test "${ac_cv_huge_val_sanity+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016129else
16130
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016131 ac_ext=cpp
16132ac_cpp='$CXXCPP $CPPFLAGS'
16133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016136
Eric Christopherc7718502010-03-02 05:06:54 +000016137 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016138 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016139 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016140 ac_cv_huge_val_sanity=yes
16141else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016142 cat >conftest.$ac_ext <<_ACEOF
16143/* confdefs.h. */
16144_ACEOF
16145cat confdefs.h >>conftest.$ac_ext
16146cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016147/* end confdefs.h. */
16148#include <math.h>
16149int
16150main ()
16151{
16152double x = HUGE_VAL; return x != x;
16153 ;
16154 return 0;
16155}
16156_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016157rm -f conftest$ac_exeext
16158if { (ac_try="$ac_link"
16159case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16162esac
16163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_link") 2>&5
16165 ac_status=$?
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16168 { (case "(($ac_try" in
16169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170 *) ac_try_echo=$ac_try;;
16171esac
16172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173 (eval "$ac_try") 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016177 ac_cv_huge_val_sanity=yes
16178else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016179 echo "$as_me: program exited with status $ac_status" >&5
16180echo "$as_me: failed program was:" >&5
16181sed 's/^/| /' conftest.$ac_ext >&5
16182
16183( exit $ac_status )
16184ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016185fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016186rm -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 +000016187fi
16188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016189
Eric Christopherc7718502010-03-02 05:06:54 +000016190 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016191 ac_ext=c
16192ac_cpp='$CPP $CPPFLAGS'
16193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16195ac_compiler_gnu=$ac_cv_c_compiler_gnu
16196
16197
16198fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016199{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16200echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016201 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16202
16203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016204{ echo "$as_me:$LINENO: checking for pid_t" >&5
16205echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16206if test "${ac_cv_type_pid_t+set}" = set; then
16207 echo $ECHO_N "(cached) $ECHO_C" >&6
16208else
16209 cat >conftest.$ac_ext <<_ACEOF
16210/* confdefs.h. */
16211_ACEOF
16212cat confdefs.h >>conftest.$ac_ext
16213cat >>conftest.$ac_ext <<_ACEOF
16214/* end confdefs.h. */
16215$ac_includes_default
16216typedef pid_t ac__type_new_;
16217int
16218main ()
16219{
16220if ((ac__type_new_ *) 0)
16221 return 0;
16222if (sizeof (ac__type_new_))
16223 return 0;
16224 ;
16225 return 0;
16226}
16227_ACEOF
16228rm -f conftest.$ac_objext
16229if { (ac_try="$ac_compile"
16230case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16233esac
16234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_compile") 2>conftest.er1
16236 ac_status=$?
16237 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } &&
16242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16243 { (case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16246esac
16247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_try") 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; } &&
16252 { ac_try='test -s conftest.$ac_objext'
16253 { (case "(($ac_try" in
16254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255 *) ac_try_echo=$ac_try;;
16256esac
16257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258 (eval "$ac_try") 2>&5
16259 ac_status=$?
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
16262 ac_cv_type_pid_t=yes
16263else
16264 echo "$as_me: failed program was:" >&5
16265sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016266
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016267 ac_cv_type_pid_t=no
16268fi
16269
16270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16271fi
16272{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16273echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16274if test $ac_cv_type_pid_t = yes; then
16275 :
John Criswell7a73b802003-06-30 21:59:07 +000016276else
16277
16278cat >>confdefs.h <<_ACEOF
16279#define pid_t int
16280_ACEOF
16281
16282fi
16283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016284{ echo "$as_me:$LINENO: checking for size_t" >&5
16285echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16286if test "${ac_cv_type_size_t+set}" = set; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16288else
16289 cat >conftest.$ac_ext <<_ACEOF
16290/* confdefs.h. */
16291_ACEOF
16292cat confdefs.h >>conftest.$ac_ext
16293cat >>conftest.$ac_ext <<_ACEOF
16294/* end confdefs.h. */
16295$ac_includes_default
16296typedef size_t ac__type_new_;
16297int
16298main ()
16299{
16300if ((ac__type_new_ *) 0)
16301 return 0;
16302if (sizeof (ac__type_new_))
16303 return 0;
16304 ;
16305 return 0;
16306}
16307_ACEOF
16308rm -f conftest.$ac_objext
16309if { (ac_try="$ac_compile"
16310case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313esac
16314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_compile") 2>conftest.er1
16316 ac_status=$?
16317 grep -v '^ *+' conftest.er1 >conftest.err
16318 rm -f conftest.er1
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } &&
16322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16323 { (case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16326esac
16327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_try") 2>&5
16329 ac_status=$?
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; } &&
16332 { ac_try='test -s conftest.$ac_objext'
16333 { (case "(($ac_try" in
16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335 *) ac_try_echo=$ac_try;;
16336esac
16337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_try") 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; }; then
16342 ac_cv_type_size_t=yes
16343else
16344 echo "$as_me: failed program was:" >&5
16345sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016347 ac_cv_type_size_t=no
16348fi
16349
16350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16351fi
16352{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16353echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16354if test $ac_cv_type_size_t = yes; then
16355 :
John Criswell7a73b802003-06-30 21:59:07 +000016356else
16357
16358cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016359#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016360_ACEOF
16361
16362fi
16363
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016364
16365cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016366#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016367_ACEOF
16368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016369{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16370echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16371if test "${ac_cv_struct_tm+set}" = set; then
16372 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016374 cat >conftest.$ac_ext <<_ACEOF
16375/* confdefs.h. */
16376_ACEOF
16377cat confdefs.h >>conftest.$ac_ext
16378cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016379/* end confdefs.h. */
16380#include <sys/types.h>
16381#include <time.h>
16382
16383int
16384main ()
16385{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016386struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016387 ;
16388 return 0;
16389}
16390_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016391rm -f conftest.$ac_objext
16392if { (ac_try="$ac_compile"
16393case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16396esac
16397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_compile") 2>conftest.er1
16399 ac_status=$?
16400 grep -v '^ *+' conftest.er1 >conftest.err
16401 rm -f conftest.er1
16402 cat conftest.err >&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
16405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16406 { (case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16409esac
16410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_try") 2>&5
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest.$ac_objext'
16416 { (case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16419esac
16420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_try") 2>&5
16422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016425 ac_cv_struct_tm=time.h
16426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016427 echo "$as_me: failed program was:" >&5
16428sed 's/^/| /' conftest.$ac_ext >&5
16429
16430 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016432
Reid Spencera773bd52006-08-04 18:18:08 +000016433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016434fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016435{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16436echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016437if test $ac_cv_struct_tm = sys/time.h; then
16438
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016439cat >>confdefs.h <<\_ACEOF
16440#define TM_IN_SYS_TIME 1
16441_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016442
16443fi
16444
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016445{ echo "$as_me:$LINENO: checking for int64_t" >&5
16446echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16447if test "${ac_cv_type_int64_t+set}" = set; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16449else
16450 cat >conftest.$ac_ext <<_ACEOF
16451/* confdefs.h. */
16452_ACEOF
16453cat confdefs.h >>conftest.$ac_ext
16454cat >>conftest.$ac_ext <<_ACEOF
16455/* end confdefs.h. */
16456$ac_includes_default
16457typedef int64_t ac__type_new_;
16458int
16459main ()
16460{
16461if ((ac__type_new_ *) 0)
16462 return 0;
16463if (sizeof (ac__type_new_))
16464 return 0;
16465 ;
16466 return 0;
16467}
16468_ACEOF
16469rm -f conftest.$ac_objext
16470if { (ac_try="$ac_compile"
16471case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16474esac
16475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_compile") 2>conftest.er1
16477 ac_status=$?
16478 grep -v '^ *+' conftest.er1 >conftest.err
16479 rm -f conftest.er1
16480 cat conftest.err >&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); } &&
16483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16484 { (case "(($ac_try" in
16485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486 *) ac_try_echo=$ac_try;;
16487esac
16488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489 (eval "$ac_try") 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; } &&
16493 { ac_try='test -s conftest.$ac_objext'
16494 { (case "(($ac_try" in
16495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496 *) ac_try_echo=$ac_try;;
16497esac
16498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499 (eval "$ac_try") 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503 ac_cv_type_int64_t=yes
16504else
16505 echo "$as_me: failed program was:" >&5
16506sed 's/^/| /' conftest.$ac_ext >&5
16507
16508 ac_cv_type_int64_t=no
16509fi
16510
16511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16512fi
16513{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16514echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16515if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016516
16517cat >>confdefs.h <<_ACEOF
16518#define HAVE_INT64_T 1
16519_ACEOF
16520
16521
16522else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016523 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16524echo "$as_me: error: Type int64_t required but not found" >&2;}
16525 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016526fi
16527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016528{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16529echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16530if test "${ac_cv_type_uint64_t+set}" = set; then
16531 echo $ECHO_N "(cached) $ECHO_C" >&6
16532else
16533 cat >conftest.$ac_ext <<_ACEOF
16534/* confdefs.h. */
16535_ACEOF
16536cat confdefs.h >>conftest.$ac_ext
16537cat >>conftest.$ac_ext <<_ACEOF
16538/* end confdefs.h. */
16539$ac_includes_default
16540typedef uint64_t ac__type_new_;
16541int
16542main ()
16543{
16544if ((ac__type_new_ *) 0)
16545 return 0;
16546if (sizeof (ac__type_new_))
16547 return 0;
16548 ;
16549 return 0;
16550}
16551_ACEOF
16552rm -f conftest.$ac_objext
16553if { (ac_try="$ac_compile"
16554case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16557esac
16558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559 (eval "$ac_compile") 2>conftest.er1
16560 ac_status=$?
16561 grep -v '^ *+' conftest.er1 >conftest.err
16562 rm -f conftest.er1
16563 cat conftest.err >&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } &&
16566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16567 { (case "(($ac_try" in
16568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569 *) ac_try_echo=$ac_try;;
16570esac
16571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572 (eval "$ac_try") 2>&5
16573 ac_status=$?
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; } &&
16576 { ac_try='test -s conftest.$ac_objext'
16577 { (case "(($ac_try" in
16578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579 *) ac_try_echo=$ac_try;;
16580esac
16581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582 (eval "$ac_try") 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 ac_cv_type_uint64_t=yes
16587else
16588 echo "$as_me: failed program was:" >&5
16589sed 's/^/| /' conftest.$ac_ext >&5
16590
16591 ac_cv_type_uint64_t=no
16592fi
16593
16594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595fi
16596{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16597echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16598if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016599
16600cat >>confdefs.h <<_ACEOF
16601#define HAVE_UINT64_T 1
16602_ACEOF
16603
16604
16605else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016606 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16607echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16608if test "${ac_cv_type_u_int64_t+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16610else
16611 cat >conftest.$ac_ext <<_ACEOF
16612/* confdefs.h. */
16613_ACEOF
16614cat confdefs.h >>conftest.$ac_ext
16615cat >>conftest.$ac_ext <<_ACEOF
16616/* end confdefs.h. */
16617$ac_includes_default
16618typedef u_int64_t ac__type_new_;
16619int
16620main ()
16621{
16622if ((ac__type_new_ *) 0)
16623 return 0;
16624if (sizeof (ac__type_new_))
16625 return 0;
16626 ;
16627 return 0;
16628}
16629_ACEOF
16630rm -f conftest.$ac_objext
16631if { (ac_try="$ac_compile"
16632case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635esac
16636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_compile") 2>conftest.er1
16638 ac_status=$?
16639 grep -v '^ *+' conftest.er1 >conftest.err
16640 rm -f conftest.er1
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } &&
16644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16645 { (case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16648esac
16649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650 (eval "$ac_try") 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; } &&
16654 { ac_try='test -s conftest.$ac_objext'
16655 { (case "(($ac_try" in
16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16658esac
16659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660 (eval "$ac_try") 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_cv_type_u_int64_t=yes
16665else
16666 echo "$as_me: failed program was:" >&5
16667sed 's/^/| /' conftest.$ac_ext >&5
16668
16669 ac_cv_type_u_int64_t=no
16670fi
16671
16672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16673fi
16674{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16675echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16676if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016677
16678cat >>confdefs.h <<_ACEOF
16679#define HAVE_U_INT64_T 1
16680_ACEOF
16681
16682
Misha Brukmanceca9042004-09-02 23:02:30 +000016683else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016684 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16685echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16686 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016687fi
16688
John Criswell679ff312004-09-02 18:44:44 +000016689fi
16690
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016691
16692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016693
16694
16695
16696
16697
16698
16699
Reid Spencerdf3be822006-01-23 08:15:53 +000016700for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016701do
16702as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16703{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16704echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16705if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16707else
16708 cat >conftest.$ac_ext <<_ACEOF
16709/* confdefs.h. */
16710_ACEOF
16711cat confdefs.h >>conftest.$ac_ext
16712cat >>conftest.$ac_ext <<_ACEOF
16713/* end confdefs.h. */
16714/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16716#define $ac_func innocuous_$ac_func
16717
16718/* System header to define __stub macros and hopefully few prototypes,
16719 which can conflict with char $ac_func (); below.
16720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16721 <limits.h> exists even on freestanding compilers. */
16722
16723#ifdef __STDC__
16724# include <limits.h>
16725#else
16726# include <assert.h>
16727#endif
16728
16729#undef $ac_func
16730
16731/* Override any GCC internal prototype to avoid an error.
16732 Use char because int might match the return type of a GCC
16733 builtin and then its argument prototype would still apply. */
16734#ifdef __cplusplus
16735extern "C"
16736#endif
16737char $ac_func ();
16738/* The GNU C library defines this for functions which it implements
16739 to always fail with ENOSYS. Some functions are actually named
16740 something starting with __ and the normal name is an alias. */
16741#if defined __stub_$ac_func || defined __stub___$ac_func
16742choke me
16743#endif
16744
16745int
16746main ()
16747{
16748return $ac_func ();
16749 ;
16750 return 0;
16751}
16752_ACEOF
16753rm -f conftest.$ac_objext conftest$ac_exeext
16754if { (ac_try="$ac_link"
16755case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16758esac
16759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_link") 2>conftest.er1
16761 ac_status=$?
16762 grep -v '^ *+' conftest.er1 >conftest.err
16763 rm -f conftest.er1
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
16767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16768 { (case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16771esac
16772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_try") 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest$ac_exeext'
16778 { (case "(($ac_try" in
16779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780 *) ac_try_echo=$ac_try;;
16781esac
16782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783 (eval "$ac_try") 2>&5
16784 ac_status=$?
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; }; then
16787 eval "$as_ac_var=yes"
16788else
16789 echo "$as_me: failed program was:" >&5
16790sed 's/^/| /' conftest.$ac_ext >&5
16791
16792 eval "$as_ac_var=no"
16793fi
16794
16795rm -f core conftest.err conftest.$ac_objext \
16796 conftest$ac_exeext conftest.$ac_ext
16797fi
16798ac_res=`eval echo '${'$as_ac_var'}'`
16799 { echo "$as_me:$LINENO: result: $ac_res" >&5
16800echo "${ECHO_T}$ac_res" >&6; }
16801if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016802 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016803#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000016804_ACEOF
16805
16806fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016807done
John Criswell7a73b802003-06-30 21:59:07 +000016808
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016809
16810
16811
16812
Reid Spencer96cf5872007-07-13 10:05:30 +000016813for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016814do
16815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16816{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16818if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16820else
16821 cat >conftest.$ac_ext <<_ACEOF
16822/* confdefs.h. */
16823_ACEOF
16824cat confdefs.h >>conftest.$ac_ext
16825cat >>conftest.$ac_ext <<_ACEOF
16826/* end confdefs.h. */
16827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16829#define $ac_func innocuous_$ac_func
16830
16831/* System header to define __stub macros and hopefully few prototypes,
16832 which can conflict with char $ac_func (); below.
16833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16834 <limits.h> exists even on freestanding compilers. */
16835
16836#ifdef __STDC__
16837# include <limits.h>
16838#else
16839# include <assert.h>
16840#endif
16841
16842#undef $ac_func
16843
16844/* Override any GCC internal prototype to avoid an error.
16845 Use char because int might match the return type of a GCC
16846 builtin and then its argument prototype would still apply. */
16847#ifdef __cplusplus
16848extern "C"
16849#endif
16850char $ac_func ();
16851/* The GNU C library defines this for functions which it implements
16852 to always fail with ENOSYS. Some functions are actually named
16853 something starting with __ and the normal name is an alias. */
16854#if defined __stub_$ac_func || defined __stub___$ac_func
16855choke me
16856#endif
16857
16858int
16859main ()
16860{
16861return $ac_func ();
16862 ;
16863 return 0;
16864}
16865_ACEOF
16866rm -f conftest.$ac_objext conftest$ac_exeext
16867if { (ac_try="$ac_link"
16868case "(($ac_try" in
16869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870 *) ac_try_echo=$ac_try;;
16871esac
16872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873 (eval "$ac_link") 2>conftest.er1
16874 ac_status=$?
16875 grep -v '^ *+' conftest.er1 >conftest.err
16876 rm -f conftest.er1
16877 cat conftest.err >&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } &&
16880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16881 { (case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16884esac
16885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_try") 2>&5
16887 ac_status=$?
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; } &&
16890 { ac_try='test -s conftest$ac_exeext'
16891 { (case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16894esac
16895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_try") 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; }; then
16900 eval "$as_ac_var=yes"
16901else
16902 echo "$as_me: failed program was:" >&5
16903sed 's/^/| /' conftest.$ac_ext >&5
16904
16905 eval "$as_ac_var=no"
16906fi
16907
16908rm -f core conftest.err conftest.$ac_objext \
16909 conftest$ac_exeext conftest.$ac_ext
16910fi
16911ac_res=`eval echo '${'$as_ac_var'}'`
16912 { echo "$as_me:$LINENO: result: $ac_res" >&5
16913echo "${ECHO_T}$ac_res" >&6; }
16914if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000016915 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016916#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000016917_ACEOF
16918
16919fi
16920done
16921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016922
16923
16924
16925
16926
Reid Spencerb90645c2007-02-16 19:17:20 +000016927for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016928do
16929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16930{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16932if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16933 echo $ECHO_N "(cached) $ECHO_C" >&6
16934else
16935 cat >conftest.$ac_ext <<_ACEOF
16936/* confdefs.h. */
16937_ACEOF
16938cat confdefs.h >>conftest.$ac_ext
16939cat >>conftest.$ac_ext <<_ACEOF
16940/* end confdefs.h. */
16941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16943#define $ac_func innocuous_$ac_func
16944
16945/* System header to define __stub macros and hopefully few prototypes,
16946 which can conflict with char $ac_func (); below.
16947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16948 <limits.h> exists even on freestanding compilers. */
16949
16950#ifdef __STDC__
16951# include <limits.h>
16952#else
16953# include <assert.h>
16954#endif
16955
16956#undef $ac_func
16957
16958/* Override any GCC internal prototype to avoid an error.
16959 Use char because int might match the return type of a GCC
16960 builtin and then its argument prototype would still apply. */
16961#ifdef __cplusplus
16962extern "C"
16963#endif
16964char $ac_func ();
16965/* The GNU C library defines this for functions which it implements
16966 to always fail with ENOSYS. Some functions are actually named
16967 something starting with __ and the normal name is an alias. */
16968#if defined __stub_$ac_func || defined __stub___$ac_func
16969choke me
16970#endif
16971
16972int
16973main ()
16974{
16975return $ac_func ();
16976 ;
16977 return 0;
16978}
16979_ACEOF
16980rm -f conftest.$ac_objext conftest$ac_exeext
16981if { (ac_try="$ac_link"
16982case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985esac
16986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_link") 2>conftest.er1
16988 ac_status=$?
16989 grep -v '^ *+' conftest.er1 >conftest.err
16990 rm -f conftest.er1
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16995 { (case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16998esac
16999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_try") 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest$ac_exeext'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17008esac
17009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17011 ac_status=$?
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17014 eval "$as_ac_var=yes"
17015else
17016 echo "$as_me: failed program was:" >&5
17017sed 's/^/| /' conftest.$ac_ext >&5
17018
17019 eval "$as_ac_var=no"
17020fi
17021
17022rm -f core conftest.err conftest.$ac_objext \
17023 conftest$ac_exeext conftest.$ac_ext
17024fi
17025ac_res=`eval echo '${'$as_ac_var'}'`
17026 { echo "$as_me:$LINENO: result: $ac_res" >&5
17027echo "${ECHO_T}$ac_res" >&6; }
17028if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017029 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017031_ACEOF
17032
17033fi
17034done
17035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017036
17037
17038
Reid Spencerb90645c2007-02-16 19:17:20 +000017039for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017040do
17041as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17042{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17043echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17044if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17045 echo $ECHO_N "(cached) $ECHO_C" >&6
17046else
17047 cat >conftest.$ac_ext <<_ACEOF
17048/* confdefs.h. */
17049_ACEOF
17050cat confdefs.h >>conftest.$ac_ext
17051cat >>conftest.$ac_ext <<_ACEOF
17052/* end confdefs.h. */
17053/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17055#define $ac_func innocuous_$ac_func
17056
17057/* System header to define __stub macros and hopefully few prototypes,
17058 which can conflict with char $ac_func (); below.
17059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17060 <limits.h> exists even on freestanding compilers. */
17061
17062#ifdef __STDC__
17063# include <limits.h>
17064#else
17065# include <assert.h>
17066#endif
17067
17068#undef $ac_func
17069
17070/* Override any GCC internal prototype to avoid an error.
17071 Use char because int might match the return type of a GCC
17072 builtin and then its argument prototype would still apply. */
17073#ifdef __cplusplus
17074extern "C"
17075#endif
17076char $ac_func ();
17077/* The GNU C library defines this for functions which it implements
17078 to always fail with ENOSYS. Some functions are actually named
17079 something starting with __ and the normal name is an alias. */
17080#if defined __stub_$ac_func || defined __stub___$ac_func
17081choke me
17082#endif
17083
17084int
17085main ()
17086{
17087return $ac_func ();
17088 ;
17089 return 0;
17090}
17091_ACEOF
17092rm -f conftest.$ac_objext conftest$ac_exeext
17093if { (ac_try="$ac_link"
17094case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17097esac
17098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_link") 2>conftest.er1
17100 ac_status=$?
17101 grep -v '^ *+' conftest.er1 >conftest.err
17102 rm -f conftest.er1
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } &&
17106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17107 { (case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17110esac
17111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_try") 2>&5
17113 ac_status=$?
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; } &&
17116 { ac_try='test -s conftest$ac_exeext'
17117 { (case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17120esac
17121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122 (eval "$ac_try") 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 eval "$as_ac_var=yes"
17127else
17128 echo "$as_me: failed program was:" >&5
17129sed 's/^/| /' conftest.$ac_ext >&5
17130
17131 eval "$as_ac_var=no"
17132fi
17133
17134rm -f core conftest.err conftest.$ac_objext \
17135 conftest$ac_exeext conftest.$ac_ext
17136fi
17137ac_res=`eval echo '${'$as_ac_var'}'`
17138 { echo "$as_me:$LINENO: result: $ac_res" >&5
17139echo "${ECHO_T}$ac_res" >&6; }
17140if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017141 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017142#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017143_ACEOF
17144
17145fi
17146done
17147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017148
17149
17150
17151
17152
Eric Christophere4291822010-04-16 05:14:21 +000017153
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017154
17155for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017156do
17157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17158{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17160if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17162else
17163 cat >conftest.$ac_ext <<_ACEOF
17164/* confdefs.h. */
17165_ACEOF
17166cat confdefs.h >>conftest.$ac_ext
17167cat >>conftest.$ac_ext <<_ACEOF
17168/* end confdefs.h. */
17169/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17171#define $ac_func innocuous_$ac_func
17172
17173/* System header to define __stub macros and hopefully few prototypes,
17174 which can conflict with char $ac_func (); below.
17175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17176 <limits.h> exists even on freestanding compilers. */
17177
17178#ifdef __STDC__
17179# include <limits.h>
17180#else
17181# include <assert.h>
17182#endif
17183
17184#undef $ac_func
17185
17186/* Override any GCC internal prototype to avoid an error.
17187 Use char because int might match the return type of a GCC
17188 builtin and then its argument prototype would still apply. */
17189#ifdef __cplusplus
17190extern "C"
17191#endif
17192char $ac_func ();
17193/* The GNU C library defines this for functions which it implements
17194 to always fail with ENOSYS. Some functions are actually named
17195 something starting with __ and the normal name is an alias. */
17196#if defined __stub_$ac_func || defined __stub___$ac_func
17197choke me
17198#endif
17199
17200int
17201main ()
17202{
17203return $ac_func ();
17204 ;
17205 return 0;
17206}
17207_ACEOF
17208rm -f conftest.$ac_objext conftest$ac_exeext
17209if { (ac_try="$ac_link"
17210case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213esac
17214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_link") 2>conftest.er1
17216 ac_status=$?
17217 grep -v '^ *+' conftest.er1 >conftest.err
17218 rm -f conftest.er1
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } &&
17222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223 { (case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226esac
17227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_try") 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest$ac_exeext'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17236esac
17237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 eval "$as_ac_var=yes"
17243else
17244 echo "$as_me: failed program was:" >&5
17245sed 's/^/| /' conftest.$ac_ext >&5
17246
17247 eval "$as_ac_var=no"
17248fi
17249
17250rm -f core conftest.err conftest.$ac_objext \
17251 conftest$ac_exeext conftest.$ac_ext
17252fi
17253ac_res=`eval echo '${'$as_ac_var'}'`
17254 { echo "$as_me:$LINENO: result: $ac_res" >&5
17255echo "${ECHO_T}$ac_res" >&6; }
17256if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017257 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017259_ACEOF
17260
17261fi
17262done
Reid Spencerdf3be822006-01-23 08:15:53 +000017263
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017264
17265
17266
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017267for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017268do
17269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17270{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17272if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17274else
17275 cat >conftest.$ac_ext <<_ACEOF
17276/* confdefs.h. */
17277_ACEOF
17278cat confdefs.h >>conftest.$ac_ext
17279cat >>conftest.$ac_ext <<_ACEOF
17280/* end confdefs.h. */
17281/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17283#define $ac_func innocuous_$ac_func
17284
17285/* System header to define __stub macros and hopefully few prototypes,
17286 which can conflict with char $ac_func (); below.
17287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17288 <limits.h> exists even on freestanding compilers. */
17289
17290#ifdef __STDC__
17291# include <limits.h>
17292#else
17293# include <assert.h>
17294#endif
17295
17296#undef $ac_func
17297
17298/* Override any GCC internal prototype to avoid an error.
17299 Use char because int might match the return type of a GCC
17300 builtin and then its argument prototype would still apply. */
17301#ifdef __cplusplus
17302extern "C"
17303#endif
17304char $ac_func ();
17305/* The GNU C library defines this for functions which it implements
17306 to always fail with ENOSYS. Some functions are actually named
17307 something starting with __ and the normal name is an alias. */
17308#if defined __stub_$ac_func || defined __stub___$ac_func
17309choke me
17310#endif
17311
17312int
17313main ()
17314{
17315return $ac_func ();
17316 ;
17317 return 0;
17318}
17319_ACEOF
17320rm -f conftest.$ac_objext conftest$ac_exeext
17321if { (ac_try="$ac_link"
17322case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17325esac
17326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_link") 2>conftest.er1
17328 ac_status=$?
17329 grep -v '^ *+' conftest.er1 >conftest.err
17330 rm -f conftest.er1
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } &&
17334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17335 { (case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17338esac
17339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_try") 2>&5
17341 ac_status=$?
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; } &&
17344 { ac_try='test -s conftest$ac_exeext'
17345 { (case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17348esac
17349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_try") 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 eval "$as_ac_var=yes"
17355else
17356 echo "$as_me: failed program was:" >&5
17357sed 's/^/| /' conftest.$ac_ext >&5
17358
17359 eval "$as_ac_var=no"
17360fi
17361
17362rm -f core conftest.err conftest.$ac_objext \
17363 conftest$ac_exeext conftest.$ac_ext
17364fi
17365ac_res=`eval echo '${'$as_ac_var'}'`
17366 { echo "$as_me:$LINENO: result: $ac_res" >&5
17367echo "${ECHO_T}$ac_res" >&6; }
17368if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017369 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017371_ACEOF
17372
17373fi
17374done
17375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017376
17377
17378
17379
Chris Lattner511f11d2005-11-14 07:25:50 +000017380for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017381do
17382as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17383{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17384echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17385if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17386 echo $ECHO_N "(cached) $ECHO_C" >&6
17387else
17388 cat >conftest.$ac_ext <<_ACEOF
17389/* confdefs.h. */
17390_ACEOF
17391cat confdefs.h >>conftest.$ac_ext
17392cat >>conftest.$ac_ext <<_ACEOF
17393/* end confdefs.h. */
17394/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17396#define $ac_func innocuous_$ac_func
17397
17398/* System header to define __stub macros and hopefully few prototypes,
17399 which can conflict with char $ac_func (); below.
17400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17401 <limits.h> exists even on freestanding compilers. */
17402
17403#ifdef __STDC__
17404# include <limits.h>
17405#else
17406# include <assert.h>
17407#endif
17408
17409#undef $ac_func
17410
17411/* Override any GCC internal prototype to avoid an error.
17412 Use char because int might match the return type of a GCC
17413 builtin and then its argument prototype would still apply. */
17414#ifdef __cplusplus
17415extern "C"
17416#endif
17417char $ac_func ();
17418/* The GNU C library defines this for functions which it implements
17419 to always fail with ENOSYS. Some functions are actually named
17420 something starting with __ and the normal name is an alias. */
17421#if defined __stub_$ac_func || defined __stub___$ac_func
17422choke me
17423#endif
17424
17425int
17426main ()
17427{
17428return $ac_func ();
17429 ;
17430 return 0;
17431}
17432_ACEOF
17433rm -f conftest.$ac_objext conftest$ac_exeext
17434if { (ac_try="$ac_link"
17435case "(($ac_try" in
17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437 *) ac_try_echo=$ac_try;;
17438esac
17439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440 (eval "$ac_link") 2>conftest.er1
17441 ac_status=$?
17442 grep -v '^ *+' conftest.er1 >conftest.err
17443 rm -f conftest.er1
17444 cat conftest.err >&5
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); } &&
17447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17448 { (case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17451esac
17452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_try") 2>&5
17454 ac_status=$?
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; } &&
17457 { ac_try='test -s conftest$ac_exeext'
17458 { (case "(($ac_try" in
17459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17460 *) ac_try_echo=$ac_try;;
17461esac
17462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17463 (eval "$ac_try") 2>&5
17464 ac_status=$?
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; }; then
17467 eval "$as_ac_var=yes"
17468else
17469 echo "$as_me: failed program was:" >&5
17470sed 's/^/| /' conftest.$ac_ext >&5
17471
17472 eval "$as_ac_var=no"
17473fi
17474
17475rm -f core conftest.err conftest.$ac_objext \
17476 conftest$ac_exeext conftest.$ac_ext
17477fi
17478ac_res=`eval echo '${'$as_ac_var'}'`
17479 { echo "$as_me:$LINENO: result: $ac_res" >&5
17480echo "${ECHO_T}$ac_res" >&6; }
17481if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017482 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017483#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017484_ACEOF
17485
17486fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017487done
John Criswell7a73b802003-06-30 21:59:07 +000017488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017489
17490
17491
17492
Daniel Dunbar3e462932011-02-03 02:40:02 +000017493
17494for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017495do
17496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17497{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17499if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17501else
17502 cat >conftest.$ac_ext <<_ACEOF
17503/* confdefs.h. */
17504_ACEOF
17505cat confdefs.h >>conftest.$ac_ext
17506cat >>conftest.$ac_ext <<_ACEOF
17507/* end confdefs.h. */
17508/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17510#define $ac_func innocuous_$ac_func
17511
17512/* System header to define __stub macros and hopefully few prototypes,
17513 which can conflict with char $ac_func (); below.
17514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17515 <limits.h> exists even on freestanding compilers. */
17516
17517#ifdef __STDC__
17518# include <limits.h>
17519#else
17520# include <assert.h>
17521#endif
17522
17523#undef $ac_func
17524
17525/* Override any GCC internal prototype to avoid an error.
17526 Use char because int might match the return type of a GCC
17527 builtin and then its argument prototype would still apply. */
17528#ifdef __cplusplus
17529extern "C"
17530#endif
17531char $ac_func ();
17532/* The GNU C library defines this for functions which it implements
17533 to always fail with ENOSYS. Some functions are actually named
17534 something starting with __ and the normal name is an alias. */
17535#if defined __stub_$ac_func || defined __stub___$ac_func
17536choke me
17537#endif
17538
17539int
17540main ()
17541{
17542return $ac_func ();
17543 ;
17544 return 0;
17545}
17546_ACEOF
17547rm -f conftest.$ac_objext conftest$ac_exeext
17548if { (ac_try="$ac_link"
17549case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17552esac
17553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_link") 2>conftest.er1
17555 ac_status=$?
17556 grep -v '^ *+' conftest.er1 >conftest.err
17557 rm -f conftest.er1
17558 cat conftest.err >&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } &&
17561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17562 { (case "(($ac_try" in
17563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564 *) ac_try_echo=$ac_try;;
17565esac
17566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17567 (eval "$ac_try") 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } &&
17571 { ac_try='test -s conftest$ac_exeext'
17572 { (case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17575esac
17576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_try") 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; }; then
17581 eval "$as_ac_var=yes"
17582else
17583 echo "$as_me: failed program was:" >&5
17584sed 's/^/| /' conftest.$ac_ext >&5
17585
17586 eval "$as_ac_var=no"
17587fi
17588
17589rm -f core conftest.err conftest.$ac_objext \
17590 conftest$ac_exeext conftest.$ac_ext
17591fi
17592ac_res=`eval echo '${'$as_ac_var'}'`
17593 { echo "$as_me:$LINENO: result: $ac_res" >&5
17594echo "${ECHO_T}$ac_res" >&6; }
17595if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017596 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017597#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017598_ACEOF
17599
17600fi
17601done
17602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017603{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17604echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17605if test "${llvm_cv_c_printf_a+set}" = set; then
17606 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017607else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017608 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017609ac_cpp='$CPP $CPPFLAGS'
17610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17612ac_compiler_gnu=$ac_cv_c_compiler_gnu
17613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017614 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017615 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017616else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017617 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017619 /* confdefs.h. */
17620_ACEOF
17621cat confdefs.h >>conftest.$ac_ext
17622cat >>conftest.$ac_ext <<_ACEOF
17623/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017624
John Criswella0137d32003-10-13 16:22:01 +000017625#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017626#include <stdlib.h>
17627
John Criswella0137d32003-10-13 16:22:01 +000017628int
17629main ()
17630{
17631
Reid Spencer2706f8c2004-09-19 23:53:36 +000017632volatile double A, B;
17633char Buffer[100];
17634A = 1;
17635A /= 10.0;
17636sprintf(Buffer, "%a", A);
17637B = atof(Buffer);
17638if (A != B)
17639 return (1);
17640if (A != 0x1.999999999999ap-4)
17641 return (1);
17642return (0);
John Criswella0137d32003-10-13 16:22:01 +000017643 ;
17644 return 0;
17645}
17646_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017647rm -f conftest$ac_exeext
17648if { (ac_try="$ac_link"
17649case "(($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_link") 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17658 { (case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17661esac
17662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_try") 2>&5
17664 ac_status=$?
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017667 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017669 echo "$as_me: program exited with status $ac_status" >&5
17670echo "$as_me: failed program was:" >&5
17671sed 's/^/| /' conftest.$ac_ext >&5
17672
17673( exit $ac_status )
17674llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017675fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017676rm -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 +000017677fi
Reid Spencera773bd52006-08-04 18:18:08 +000017678
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017679
Reid Spencer2706f8c2004-09-19 23:53:36 +000017680 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017681ac_cpp='$CPP $CPPFLAGS'
17682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17684ac_compiler_gnu=$ac_cv_c_compiler_gnu
17685
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017686fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017687{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17688echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017689 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017691cat >>confdefs.h <<\_ACEOF
17692#define HAVE_PRINTF_A 1
17693_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017694
Reid Spencer2706f8c2004-09-19 23:53:36 +000017695 fi
John Criswella0137d32003-10-13 16:22:01 +000017696
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017698{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17699echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17700if test "${ac_cv_func_rand48+set}" = set; then
17701 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017702else
Reid Spencera773bd52006-08-04 18:18:08 +000017703 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017704ac_cpp='$CXXCPP $CPPFLAGS'
17705ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17706ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17707ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17708
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017709 cat >conftest.$ac_ext <<_ACEOF
17710/* confdefs.h. */
17711_ACEOF
17712cat confdefs.h >>conftest.$ac_ext
17713cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017714/* end confdefs.h. */
17715#include <stdlib.h>
17716int
17717main ()
17718{
17719srand48(0);lrand48();drand48();
17720 ;
17721 return 0;
17722}
17723_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017724rm -f conftest.$ac_objext
17725if { (ac_try="$ac_compile"
17726case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729esac
17730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_compile") 2>conftest.er1
17732 ac_status=$?
17733 grep -v '^ *+' conftest.er1 >conftest.err
17734 rm -f conftest.er1
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } &&
17738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17739 { (case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17742esac
17743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_try") 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest.$ac_objext'
17749 { (case "(($ac_try" in
17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751 *) ac_try_echo=$ac_try;;
17752esac
17753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754 (eval "$ac_try") 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017758 ac_cv_func_rand48=yes
17759else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017760 echo "$as_me: failed program was:" >&5
17761sed 's/^/| /' conftest.$ac_ext >&5
17762
17763 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017764fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017765
Reid Spencera773bd52006-08-04 18:18:08 +000017766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017767 ac_ext=c
17768ac_cpp='$CPP $CPPFLAGS'
17769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17771ac_compiler_gnu=$ac_cv_c_compiler_gnu
17772
17773fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017774{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17775echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017776
17777if test "$ac_cv_func_rand48" = "yes" ; then
17778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017779cat >>confdefs.h <<\_ACEOF
17780#define HAVE_RAND48 1
17781_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017782
17783fi
John Criswell0021c312004-02-13 21:57:29 +000017784
17785
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017786{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17787echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17788if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17789 echo $ECHO_N "(cached) $ECHO_C" >&6
17790else
17791 cat >conftest.$ac_ext <<_ACEOF
17792/* confdefs.h. */
17793_ACEOF
17794cat confdefs.h >>conftest.$ac_ext
17795cat >>conftest.$ac_ext <<_ACEOF
17796/* end confdefs.h. */
17797$ac_includes_default
17798int
17799main ()
17800{
17801#ifndef strerror_s
17802 char *p = (char *) strerror_s;
17803 return !p;
17804#endif
17805
17806 ;
17807 return 0;
17808}
17809_ACEOF
17810rm -f conftest.$ac_objext
17811if { (ac_try="$ac_compile"
17812case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17815esac
17816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_compile") 2>conftest.er1
17818 ac_status=$?
17819 grep -v '^ *+' conftest.er1 >conftest.err
17820 rm -f conftest.er1
17821 cat conftest.err >&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } &&
17824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17825 { (case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17828esac
17829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_try") 2>&5
17831 ac_status=$?
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; } &&
17834 { ac_try='test -s conftest.$ac_objext'
17835 { (case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17838esac
17839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_try") 2>&5
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 ac_cv_have_decl_strerror_s=yes
17845else
17846 echo "$as_me: failed program was:" >&5
17847sed 's/^/| /' conftest.$ac_ext >&5
17848
17849 ac_cv_have_decl_strerror_s=no
17850fi
17851
17852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17853fi
17854{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17855echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17856if test $ac_cv_have_decl_strerror_s = yes; then
17857
17858cat >>confdefs.h <<_ACEOF
17859#define HAVE_DECL_STRERROR_S 1
17860_ACEOF
17861
17862
17863else
17864 cat >>confdefs.h <<_ACEOF
17865#define HAVE_DECL_STRERROR_S 0
17866_ACEOF
17867
17868
17869fi
17870
17871
17872
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000017873if test "$llvm_cv_os_type" = "MingW" ; then
17874 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17875echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17876if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17877 echo $ECHO_N "(cached) $ECHO_C" >&6
17878else
17879 ac_check_lib_save_LIBS=$LIBS
17880LIBS="-lgcc $LIBS"
17881cat >conftest.$ac_ext <<_ACEOF
17882/* confdefs.h. */
17883_ACEOF
17884cat confdefs.h >>conftest.$ac_ext
17885cat >>conftest.$ac_ext <<_ACEOF
17886/* end confdefs.h. */
17887
17888/* Override any GCC internal prototype to avoid an error.
17889 Use char because int might match the return type of a GCC
17890 builtin and then its argument prototype would still apply. */
17891#ifdef __cplusplus
17892extern "C"
17893#endif
17894char _alloca ();
17895int
17896main ()
17897{
17898return _alloca ();
17899 ;
17900 return 0;
17901}
17902_ACEOF
17903rm -f conftest.$ac_objext conftest$ac_exeext
17904if { (ac_try="$ac_link"
17905case "(($ac_try" in
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907 *) ac_try_echo=$ac_try;;
17908esac
17909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910 (eval "$ac_link") 2>conftest.er1
17911 ac_status=$?
17912 grep -v '^ *+' conftest.er1 >conftest.err
17913 rm -f conftest.er1
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17918 { (case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17921esac
17922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923 (eval "$ac_try") 2>&5
17924 ac_status=$?
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; } &&
17927 { ac_try='test -s conftest$ac_exeext'
17928 { (case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17931esac
17932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_try") 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; }; then
17937 ac_cv_lib_gcc__alloca=yes
17938else
17939 echo "$as_me: failed program was:" >&5
17940sed 's/^/| /' conftest.$ac_ext >&5
17941
17942 ac_cv_lib_gcc__alloca=no
17943fi
17944
17945rm -f core conftest.err conftest.$ac_objext \
17946 conftest$ac_exeext conftest.$ac_ext
17947LIBS=$ac_check_lib_save_LIBS
17948fi
17949{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17950echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17951if test $ac_cv_lib_gcc__alloca = yes; then
17952
17953cat >>confdefs.h <<\_ACEOF
17954#define HAVE__ALLOCA 1
17955_ACEOF
17956
17957fi
17958
17959 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17960echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17961if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17963else
17964 ac_check_lib_save_LIBS=$LIBS
17965LIBS="-lgcc $LIBS"
17966cat >conftest.$ac_ext <<_ACEOF
17967/* confdefs.h. */
17968_ACEOF
17969cat confdefs.h >>conftest.$ac_ext
17970cat >>conftest.$ac_ext <<_ACEOF
17971/* end confdefs.h. */
17972
17973/* Override any GCC internal prototype to avoid an error.
17974 Use char because int might match the return type of a GCC
17975 builtin and then its argument prototype would still apply. */
17976#ifdef __cplusplus
17977extern "C"
17978#endif
17979char __alloca ();
17980int
17981main ()
17982{
17983return __alloca ();
17984 ;
17985 return 0;
17986}
17987_ACEOF
17988rm -f conftest.$ac_objext conftest$ac_exeext
17989if { (ac_try="$ac_link"
17990case "(($ac_try" in
17991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992 *) ac_try_echo=$ac_try;;
17993esac
17994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995 (eval "$ac_link") 2>conftest.er1
17996 ac_status=$?
17997 grep -v '^ *+' conftest.er1 >conftest.err
17998 rm -f conftest.er1
17999 cat conftest.err >&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
18002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18003 { (case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18006esac
18007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_try") 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; } &&
18012 { ac_try='test -s conftest$ac_exeext'
18013 { (case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18016esac
18017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_try") 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 ac_cv_lib_gcc___alloca=yes
18023else
18024 echo "$as_me: failed program was:" >&5
18025sed 's/^/| /' conftest.$ac_ext >&5
18026
18027 ac_cv_lib_gcc___alloca=no
18028fi
18029
18030rm -f core conftest.err conftest.$ac_objext \
18031 conftest$ac_exeext conftest.$ac_ext
18032LIBS=$ac_check_lib_save_LIBS
18033fi
18034{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18035echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18036if test $ac_cv_lib_gcc___alloca = yes; then
18037
18038cat >>confdefs.h <<\_ACEOF
18039#define HAVE___ALLOCA 1
18040_ACEOF
18041
18042fi
18043
18044 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18045echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18046if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18048else
18049 ac_check_lib_save_LIBS=$LIBS
18050LIBS="-lgcc $LIBS"
18051cat >conftest.$ac_ext <<_ACEOF
18052/* confdefs.h. */
18053_ACEOF
18054cat confdefs.h >>conftest.$ac_ext
18055cat >>conftest.$ac_ext <<_ACEOF
18056/* end confdefs.h. */
18057
18058/* Override any GCC internal prototype to avoid an error.
18059 Use char because int might match the return type of a GCC
18060 builtin and then its argument prototype would still apply. */
18061#ifdef __cplusplus
18062extern "C"
18063#endif
18064char __chkstk ();
18065int
18066main ()
18067{
18068return __chkstk ();
18069 ;
18070 return 0;
18071}
18072_ACEOF
18073rm -f conftest.$ac_objext conftest$ac_exeext
18074if { (ac_try="$ac_link"
18075case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18078esac
18079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_link") 2>conftest.er1
18081 ac_status=$?
18082 grep -v '^ *+' conftest.er1 >conftest.err
18083 rm -f conftest.er1
18084 cat conftest.err >&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
18087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18088 { (case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18091esac
18092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_try") 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; } &&
18097 { ac_try='test -s conftest$ac_exeext'
18098 { (case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18101esac
18102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_try") 2>&5
18104 ac_status=$?
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; }; then
18107 ac_cv_lib_gcc___chkstk=yes
18108else
18109 echo "$as_me: failed program was:" >&5
18110sed 's/^/| /' conftest.$ac_ext >&5
18111
18112 ac_cv_lib_gcc___chkstk=no
18113fi
18114
18115rm -f core conftest.err conftest.$ac_objext \
18116 conftest$ac_exeext conftest.$ac_ext
18117LIBS=$ac_check_lib_save_LIBS
18118fi
18119{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18120echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18121if test $ac_cv_lib_gcc___chkstk = yes; then
18122
18123cat >>confdefs.h <<\_ACEOF
18124#define HAVE___CHKSTK 1
18125_ACEOF
18126
18127fi
18128
18129 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18130echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18131if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18133else
18134 ac_check_lib_save_LIBS=$LIBS
18135LIBS="-lgcc $LIBS"
18136cat >conftest.$ac_ext <<_ACEOF
18137/* confdefs.h. */
18138_ACEOF
18139cat confdefs.h >>conftest.$ac_ext
18140cat >>conftest.$ac_ext <<_ACEOF
18141/* end confdefs.h. */
18142
18143/* Override any GCC internal prototype to avoid an error.
18144 Use char because int might match the return type of a GCC
18145 builtin and then its argument prototype would still apply. */
18146#ifdef __cplusplus
18147extern "C"
18148#endif
18149char ___chkstk ();
18150int
18151main ()
18152{
18153return ___chkstk ();
18154 ;
18155 return 0;
18156}
18157_ACEOF
18158rm -f conftest.$ac_objext conftest$ac_exeext
18159if { (ac_try="$ac_link"
18160case "(($ac_try" in
18161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18163esac
18164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165 (eval "$ac_link") 2>conftest.er1
18166 ac_status=$?
18167 grep -v '^ *+' conftest.er1 >conftest.err
18168 rm -f conftest.er1
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18173 { (case "(($ac_try" in
18174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175 *) ac_try_echo=$ac_try;;
18176esac
18177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178 (eval "$ac_try") 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; } &&
18182 { ac_try='test -s conftest$ac_exeext'
18183 { (case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18186esac
18187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_try") 2>&5
18189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; }; then
18192 ac_cv_lib_gcc____chkstk=yes
18193else
18194 echo "$as_me: failed program was:" >&5
18195sed 's/^/| /' conftest.$ac_ext >&5
18196
18197 ac_cv_lib_gcc____chkstk=no
18198fi
18199
18200rm -f core conftest.err conftest.$ac_objext \
18201 conftest$ac_exeext conftest.$ac_ext
18202LIBS=$ac_check_lib_save_LIBS
18203fi
18204{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18205echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18206if test $ac_cv_lib_gcc____chkstk = yes; then
18207
18208cat >>confdefs.h <<\_ACEOF
18209#define HAVE____CHKSTK 1
18210_ACEOF
18211
18212fi
18213
18214
18215 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18216echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18217if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18218 echo $ECHO_N "(cached) $ECHO_C" >&6
18219else
18220 ac_check_lib_save_LIBS=$LIBS
18221LIBS="-lgcc $LIBS"
18222cat >conftest.$ac_ext <<_ACEOF
18223/* confdefs.h. */
18224_ACEOF
18225cat confdefs.h >>conftest.$ac_ext
18226cat >>conftest.$ac_ext <<_ACEOF
18227/* end confdefs.h. */
18228
18229/* Override any GCC internal prototype to avoid an error.
18230 Use char because int might match the return type of a GCC
18231 builtin and then its argument prototype would still apply. */
18232#ifdef __cplusplus
18233extern "C"
18234#endif
18235char __ashldi3 ();
18236int
18237main ()
18238{
18239return __ashldi3 ();
18240 ;
18241 return 0;
18242}
18243_ACEOF
18244rm -f conftest.$ac_objext conftest$ac_exeext
18245if { (ac_try="$ac_link"
18246case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18249esac
18250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_link") 2>conftest.er1
18252 ac_status=$?
18253 grep -v '^ *+' conftest.er1 >conftest.err
18254 rm -f conftest.er1
18255 cat conftest.err >&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } &&
18258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18259 { (case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18262esac
18263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_try") 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; } &&
18268 { ac_try='test -s conftest$ac_exeext'
18269 { (case "(($ac_try" in
18270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18271 *) ac_try_echo=$ac_try;;
18272esac
18273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18274 (eval "$ac_try") 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; }; then
18278 ac_cv_lib_gcc___ashldi3=yes
18279else
18280 echo "$as_me: failed program was:" >&5
18281sed 's/^/| /' conftest.$ac_ext >&5
18282
18283 ac_cv_lib_gcc___ashldi3=no
18284fi
18285
18286rm -f core conftest.err conftest.$ac_objext \
18287 conftest$ac_exeext conftest.$ac_ext
18288LIBS=$ac_check_lib_save_LIBS
18289fi
18290{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18291echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18292if test $ac_cv_lib_gcc___ashldi3 = yes; then
18293
18294cat >>confdefs.h <<\_ACEOF
18295#define HAVE___ASHLDI3 1
18296_ACEOF
18297
18298fi
18299
18300 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18301echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18302if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18303 echo $ECHO_N "(cached) $ECHO_C" >&6
18304else
18305 ac_check_lib_save_LIBS=$LIBS
18306LIBS="-lgcc $LIBS"
18307cat >conftest.$ac_ext <<_ACEOF
18308/* confdefs.h. */
18309_ACEOF
18310cat confdefs.h >>conftest.$ac_ext
18311cat >>conftest.$ac_ext <<_ACEOF
18312/* end confdefs.h. */
18313
18314/* Override any GCC internal prototype to avoid an error.
18315 Use char because int might match the return type of a GCC
18316 builtin and then its argument prototype would still apply. */
18317#ifdef __cplusplus
18318extern "C"
18319#endif
18320char __ashrdi3 ();
18321int
18322main ()
18323{
18324return __ashrdi3 ();
18325 ;
18326 return 0;
18327}
18328_ACEOF
18329rm -f conftest.$ac_objext conftest$ac_exeext
18330if { (ac_try="$ac_link"
18331case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18334esac
18335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_link") 2>conftest.er1
18337 ac_status=$?
18338 grep -v '^ *+' conftest.er1 >conftest.err
18339 rm -f conftest.er1
18340 cat conftest.err >&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } &&
18343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18344 { (case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18347esac
18348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_try") 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; } &&
18353 { ac_try='test -s conftest$ac_exeext'
18354 { (case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18357esac
18358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_try") 2>&5
18360 ac_status=$?
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 ac_cv_lib_gcc___ashrdi3=yes
18364else
18365 echo "$as_me: failed program was:" >&5
18366sed 's/^/| /' conftest.$ac_ext >&5
18367
18368 ac_cv_lib_gcc___ashrdi3=no
18369fi
18370
18371rm -f core conftest.err conftest.$ac_objext \
18372 conftest$ac_exeext conftest.$ac_ext
18373LIBS=$ac_check_lib_save_LIBS
18374fi
18375{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18376echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18377if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18378
18379cat >>confdefs.h <<\_ACEOF
18380#define HAVE___ASHRDI3 1
18381_ACEOF
18382
18383fi
18384
18385 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18386echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18387if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18389else
18390 ac_check_lib_save_LIBS=$LIBS
18391LIBS="-lgcc $LIBS"
18392cat >conftest.$ac_ext <<_ACEOF
18393/* confdefs.h. */
18394_ACEOF
18395cat confdefs.h >>conftest.$ac_ext
18396cat >>conftest.$ac_ext <<_ACEOF
18397/* end confdefs.h. */
18398
18399/* Override any GCC internal prototype to avoid an error.
18400 Use char because int might match the return type of a GCC
18401 builtin and then its argument prototype would still apply. */
18402#ifdef __cplusplus
18403extern "C"
18404#endif
18405char __divdi3 ();
18406int
18407main ()
18408{
18409return __divdi3 ();
18410 ;
18411 return 0;
18412}
18413_ACEOF
18414rm -f conftest.$ac_objext conftest$ac_exeext
18415if { (ac_try="$ac_link"
18416case "(($ac_try" in
18417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18419esac
18420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_link") 2>conftest.er1
18422 ac_status=$?
18423 grep -v '^ *+' conftest.er1 >conftest.err
18424 rm -f conftest.er1
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } &&
18428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18429 { (case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18432esac
18433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_try") 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; } &&
18438 { ac_try='test -s conftest$ac_exeext'
18439 { (case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18442esac
18443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_try") 2>&5
18445 ac_status=$?
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; }; then
18448 ac_cv_lib_gcc___divdi3=yes
18449else
18450 echo "$as_me: failed program was:" >&5
18451sed 's/^/| /' conftest.$ac_ext >&5
18452
18453 ac_cv_lib_gcc___divdi3=no
18454fi
18455
18456rm -f core conftest.err conftest.$ac_objext \
18457 conftest$ac_exeext conftest.$ac_ext
18458LIBS=$ac_check_lib_save_LIBS
18459fi
18460{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18461echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18462if test $ac_cv_lib_gcc___divdi3 = yes; then
18463
18464cat >>confdefs.h <<\_ACEOF
18465#define HAVE___DIVDI3 1
18466_ACEOF
18467
18468fi
18469
18470 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18471echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18472if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18474else
18475 ac_check_lib_save_LIBS=$LIBS
18476LIBS="-lgcc $LIBS"
18477cat >conftest.$ac_ext <<_ACEOF
18478/* confdefs.h. */
18479_ACEOF
18480cat confdefs.h >>conftest.$ac_ext
18481cat >>conftest.$ac_ext <<_ACEOF
18482/* end confdefs.h. */
18483
18484/* Override any GCC internal prototype to avoid an error.
18485 Use char because int might match the return type of a GCC
18486 builtin and then its argument prototype would still apply. */
18487#ifdef __cplusplus
18488extern "C"
18489#endif
18490char __fixdfdi ();
18491int
18492main ()
18493{
18494return __fixdfdi ();
18495 ;
18496 return 0;
18497}
18498_ACEOF
18499rm -f conftest.$ac_objext conftest$ac_exeext
18500if { (ac_try="$ac_link"
18501case "(($ac_try" in
18502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503 *) ac_try_echo=$ac_try;;
18504esac
18505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506 (eval "$ac_link") 2>conftest.er1
18507 ac_status=$?
18508 grep -v '^ *+' conftest.er1 >conftest.err
18509 rm -f conftest.er1
18510 cat conftest.err >&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } &&
18513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18514 { (case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18517esac
18518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_try") 2>&5
18520 ac_status=$?
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; } &&
18523 { ac_try='test -s conftest$ac_exeext'
18524 { (case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18527esac
18528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_try") 2>&5
18530 ac_status=$?
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_cv_lib_gcc___fixdfdi=yes
18534else
18535 echo "$as_me: failed program was:" >&5
18536sed 's/^/| /' conftest.$ac_ext >&5
18537
18538 ac_cv_lib_gcc___fixdfdi=no
18539fi
18540
18541rm -f core conftest.err conftest.$ac_objext \
18542 conftest$ac_exeext conftest.$ac_ext
18543LIBS=$ac_check_lib_save_LIBS
18544fi
18545{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18546echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18547if test $ac_cv_lib_gcc___fixdfdi = yes; then
18548
18549cat >>confdefs.h <<\_ACEOF
18550#define HAVE___FIXDFDI 1
18551_ACEOF
18552
18553fi
18554
18555 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18556echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18557if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18558 echo $ECHO_N "(cached) $ECHO_C" >&6
18559else
18560 ac_check_lib_save_LIBS=$LIBS
18561LIBS="-lgcc $LIBS"
18562cat >conftest.$ac_ext <<_ACEOF
18563/* confdefs.h. */
18564_ACEOF
18565cat confdefs.h >>conftest.$ac_ext
18566cat >>conftest.$ac_ext <<_ACEOF
18567/* end confdefs.h. */
18568
18569/* Override any GCC internal prototype to avoid an error.
18570 Use char because int might match the return type of a GCC
18571 builtin and then its argument prototype would still apply. */
18572#ifdef __cplusplus
18573extern "C"
18574#endif
18575char __fixsfdi ();
18576int
18577main ()
18578{
18579return __fixsfdi ();
18580 ;
18581 return 0;
18582}
18583_ACEOF
18584rm -f conftest.$ac_objext conftest$ac_exeext
18585if { (ac_try="$ac_link"
18586case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18589esac
18590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591 (eval "$ac_link") 2>conftest.er1
18592 ac_status=$?
18593 grep -v '^ *+' conftest.er1 >conftest.err
18594 rm -f conftest.er1
18595 cat conftest.err >&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); } &&
18598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18599 { (case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18602esac
18603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_try") 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; } &&
18608 { ac_try='test -s conftest$ac_exeext'
18609 { (case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18612esac
18613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_try") 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_cv_lib_gcc___fixsfdi=yes
18619else
18620 echo "$as_me: failed program was:" >&5
18621sed 's/^/| /' conftest.$ac_ext >&5
18622
18623 ac_cv_lib_gcc___fixsfdi=no
18624fi
18625
18626rm -f core conftest.err conftest.$ac_objext \
18627 conftest$ac_exeext conftest.$ac_ext
18628LIBS=$ac_check_lib_save_LIBS
18629fi
18630{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18631echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18632if test $ac_cv_lib_gcc___fixsfdi = yes; then
18633
18634cat >>confdefs.h <<\_ACEOF
18635#define HAVE___FIXSFDI 1
18636_ACEOF
18637
18638fi
18639
18640 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18641echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18642if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18644else
18645 ac_check_lib_save_LIBS=$LIBS
18646LIBS="-lgcc $LIBS"
18647cat >conftest.$ac_ext <<_ACEOF
18648/* confdefs.h. */
18649_ACEOF
18650cat confdefs.h >>conftest.$ac_ext
18651cat >>conftest.$ac_ext <<_ACEOF
18652/* end confdefs.h. */
18653
18654/* Override any GCC internal prototype to avoid an error.
18655 Use char because int might match the return type of a GCC
18656 builtin and then its argument prototype would still apply. */
18657#ifdef __cplusplus
18658extern "C"
18659#endif
18660char __floatdidf ();
18661int
18662main ()
18663{
18664return __floatdidf ();
18665 ;
18666 return 0;
18667}
18668_ACEOF
18669rm -f conftest.$ac_objext conftest$ac_exeext
18670if { (ac_try="$ac_link"
18671case "(($ac_try" in
18672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673 *) ac_try_echo=$ac_try;;
18674esac
18675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18676 (eval "$ac_link") 2>conftest.er1
18677 ac_status=$?
18678 grep -v '^ *+' conftest.er1 >conftest.err
18679 rm -f conftest.er1
18680 cat conftest.err >&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } &&
18683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18684 { (case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18687esac
18688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_try") 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; } &&
18693 { ac_try='test -s conftest$ac_exeext'
18694 { (case "(($ac_try" in
18695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696 *) ac_try_echo=$ac_try;;
18697esac
18698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699 (eval "$ac_try") 2>&5
18700 ac_status=$?
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; }; then
18703 ac_cv_lib_gcc___floatdidf=yes
18704else
18705 echo "$as_me: failed program was:" >&5
18706sed 's/^/| /' conftest.$ac_ext >&5
18707
18708 ac_cv_lib_gcc___floatdidf=no
18709fi
18710
18711rm -f core conftest.err conftest.$ac_objext \
18712 conftest$ac_exeext conftest.$ac_ext
18713LIBS=$ac_check_lib_save_LIBS
18714fi
18715{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18716echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18717if test $ac_cv_lib_gcc___floatdidf = yes; then
18718
18719cat >>confdefs.h <<\_ACEOF
18720#define HAVE___FLOATDIDF 1
18721_ACEOF
18722
18723fi
18724
18725 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18726echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18727if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18729else
18730 ac_check_lib_save_LIBS=$LIBS
18731LIBS="-lgcc $LIBS"
18732cat >conftest.$ac_ext <<_ACEOF
18733/* confdefs.h. */
18734_ACEOF
18735cat confdefs.h >>conftest.$ac_ext
18736cat >>conftest.$ac_ext <<_ACEOF
18737/* end confdefs.h. */
18738
18739/* Override any GCC internal prototype to avoid an error.
18740 Use char because int might match the return type of a GCC
18741 builtin and then its argument prototype would still apply. */
18742#ifdef __cplusplus
18743extern "C"
18744#endif
18745char __lshrdi3 ();
18746int
18747main ()
18748{
18749return __lshrdi3 ();
18750 ;
18751 return 0;
18752}
18753_ACEOF
18754rm -f conftest.$ac_objext conftest$ac_exeext
18755if { (ac_try="$ac_link"
18756case "(($ac_try" in
18757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758 *) ac_try_echo=$ac_try;;
18759esac
18760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761 (eval "$ac_link") 2>conftest.er1
18762 ac_status=$?
18763 grep -v '^ *+' conftest.er1 >conftest.err
18764 rm -f conftest.er1
18765 cat conftest.err >&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); } &&
18768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18769 { (case "(($ac_try" in
18770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771 *) ac_try_echo=$ac_try;;
18772esac
18773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774 (eval "$ac_try") 2>&5
18775 ac_status=$?
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; } &&
18778 { ac_try='test -s conftest$ac_exeext'
18779 { (case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18782esac
18783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_try") 2>&5
18785 ac_status=$?
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; }; then
18788 ac_cv_lib_gcc___lshrdi3=yes
18789else
18790 echo "$as_me: failed program was:" >&5
18791sed 's/^/| /' conftest.$ac_ext >&5
18792
18793 ac_cv_lib_gcc___lshrdi3=no
18794fi
18795
18796rm -f core conftest.err conftest.$ac_objext \
18797 conftest$ac_exeext conftest.$ac_ext
18798LIBS=$ac_check_lib_save_LIBS
18799fi
18800{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18801echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18802if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18803
18804cat >>confdefs.h <<\_ACEOF
18805#define HAVE___LSHRDI3 1
18806_ACEOF
18807
18808fi
18809
18810 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18811echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18812if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18813 echo $ECHO_N "(cached) $ECHO_C" >&6
18814else
18815 ac_check_lib_save_LIBS=$LIBS
18816LIBS="-lgcc $LIBS"
18817cat >conftest.$ac_ext <<_ACEOF
18818/* confdefs.h. */
18819_ACEOF
18820cat confdefs.h >>conftest.$ac_ext
18821cat >>conftest.$ac_ext <<_ACEOF
18822/* end confdefs.h. */
18823
18824/* Override any GCC internal prototype to avoid an error.
18825 Use char because int might match the return type of a GCC
18826 builtin and then its argument prototype would still apply. */
18827#ifdef __cplusplus
18828extern "C"
18829#endif
18830char __moddi3 ();
18831int
18832main ()
18833{
18834return __moddi3 ();
18835 ;
18836 return 0;
18837}
18838_ACEOF
18839rm -f conftest.$ac_objext conftest$ac_exeext
18840if { (ac_try="$ac_link"
18841case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18844esac
18845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_link") 2>conftest.er1
18847 ac_status=$?
18848 grep -v '^ *+' conftest.er1 >conftest.err
18849 rm -f conftest.er1
18850 cat conftest.err >&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } &&
18853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18854 { (case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18857esac
18858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_try") 2>&5
18860 ac_status=$?
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; } &&
18863 { ac_try='test -s conftest$ac_exeext'
18864 { (case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18867esac
18868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_try") 2>&5
18870 ac_status=$?
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; }; then
18873 ac_cv_lib_gcc___moddi3=yes
18874else
18875 echo "$as_me: failed program was:" >&5
18876sed 's/^/| /' conftest.$ac_ext >&5
18877
18878 ac_cv_lib_gcc___moddi3=no
18879fi
18880
18881rm -f core conftest.err conftest.$ac_objext \
18882 conftest$ac_exeext conftest.$ac_ext
18883LIBS=$ac_check_lib_save_LIBS
18884fi
18885{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18886echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18887if test $ac_cv_lib_gcc___moddi3 = yes; then
18888
18889cat >>confdefs.h <<\_ACEOF
18890#define HAVE___MODDI3 1
18891_ACEOF
18892
18893fi
18894
18895 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18896echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18897if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18898 echo $ECHO_N "(cached) $ECHO_C" >&6
18899else
18900 ac_check_lib_save_LIBS=$LIBS
18901LIBS="-lgcc $LIBS"
18902cat >conftest.$ac_ext <<_ACEOF
18903/* confdefs.h. */
18904_ACEOF
18905cat confdefs.h >>conftest.$ac_ext
18906cat >>conftest.$ac_ext <<_ACEOF
18907/* end confdefs.h. */
18908
18909/* Override any GCC internal prototype to avoid an error.
18910 Use char because int might match the return type of a GCC
18911 builtin and then its argument prototype would still apply. */
18912#ifdef __cplusplus
18913extern "C"
18914#endif
18915char __udivdi3 ();
18916int
18917main ()
18918{
18919return __udivdi3 ();
18920 ;
18921 return 0;
18922}
18923_ACEOF
18924rm -f conftest.$ac_objext conftest$ac_exeext
18925if { (ac_try="$ac_link"
18926case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18929esac
18930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_link") 2>conftest.er1
18932 ac_status=$?
18933 grep -v '^ *+' conftest.er1 >conftest.err
18934 rm -f conftest.er1
18935 cat conftest.err >&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); } &&
18938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18939 { (case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18942esac
18943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944 (eval "$ac_try") 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; } &&
18948 { ac_try='test -s conftest$ac_exeext'
18949 { (case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18952esac
18953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_try") 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; }; then
18958 ac_cv_lib_gcc___udivdi3=yes
18959else
18960 echo "$as_me: failed program was:" >&5
18961sed 's/^/| /' conftest.$ac_ext >&5
18962
18963 ac_cv_lib_gcc___udivdi3=no
18964fi
18965
18966rm -f core conftest.err conftest.$ac_objext \
18967 conftest$ac_exeext conftest.$ac_ext
18968LIBS=$ac_check_lib_save_LIBS
18969fi
18970{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18971echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18972if test $ac_cv_lib_gcc___udivdi3 = yes; then
18973
18974cat >>confdefs.h <<\_ACEOF
18975#define HAVE___UDIVDI3 1
18976_ACEOF
18977
18978fi
18979
18980 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18981echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18982if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18983 echo $ECHO_N "(cached) $ECHO_C" >&6
18984else
18985 ac_check_lib_save_LIBS=$LIBS
18986LIBS="-lgcc $LIBS"
18987cat >conftest.$ac_ext <<_ACEOF
18988/* confdefs.h. */
18989_ACEOF
18990cat confdefs.h >>conftest.$ac_ext
18991cat >>conftest.$ac_ext <<_ACEOF
18992/* end confdefs.h. */
18993
18994/* Override any GCC internal prototype to avoid an error.
18995 Use char because int might match the return type of a GCC
18996 builtin and then its argument prototype would still apply. */
18997#ifdef __cplusplus
18998extern "C"
18999#endif
19000char __umoddi3 ();
19001int
19002main ()
19003{
19004return __umoddi3 ();
19005 ;
19006 return 0;
19007}
19008_ACEOF
19009rm -f conftest.$ac_objext conftest$ac_exeext
19010if { (ac_try="$ac_link"
19011case "(($ac_try" in
19012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013 *) ac_try_echo=$ac_try;;
19014esac
19015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016 (eval "$ac_link") 2>conftest.er1
19017 ac_status=$?
19018 grep -v '^ *+' conftest.er1 >conftest.err
19019 rm -f conftest.er1
19020 cat conftest.err >&5
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); } &&
19023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19024 { (case "(($ac_try" in
19025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026 *) ac_try_echo=$ac_try;;
19027esac
19028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029 (eval "$ac_try") 2>&5
19030 ac_status=$?
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; } &&
19033 { ac_try='test -s conftest$ac_exeext'
19034 { (case "(($ac_try" in
19035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036 *) ac_try_echo=$ac_try;;
19037esac
19038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039 (eval "$ac_try") 2>&5
19040 ac_status=$?
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; }; then
19043 ac_cv_lib_gcc___umoddi3=yes
19044else
19045 echo "$as_me: failed program was:" >&5
19046sed 's/^/| /' conftest.$ac_ext >&5
19047
19048 ac_cv_lib_gcc___umoddi3=no
19049fi
19050
19051rm -f core conftest.err conftest.$ac_objext \
19052 conftest$ac_exeext conftest.$ac_ext
19053LIBS=$ac_check_lib_save_LIBS
19054fi
19055{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19056echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19057if test $ac_cv_lib_gcc___umoddi3 = yes; then
19058
19059cat >>confdefs.h <<\_ACEOF
19060#define HAVE___UMODDI3 1
19061_ACEOF
19062
19063fi
19064
19065
19066 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19067echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19068if test "${ac_cv_lib_gcc___main+set}" = set; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19070else
19071 ac_check_lib_save_LIBS=$LIBS
19072LIBS="-lgcc $LIBS"
19073cat >conftest.$ac_ext <<_ACEOF
19074/* confdefs.h. */
19075_ACEOF
19076cat confdefs.h >>conftest.$ac_ext
19077cat >>conftest.$ac_ext <<_ACEOF
19078/* end confdefs.h. */
19079
19080/* Override any GCC internal prototype to avoid an error.
19081 Use char because int might match the return type of a GCC
19082 builtin and then its argument prototype would still apply. */
19083#ifdef __cplusplus
19084extern "C"
19085#endif
19086char __main ();
19087int
19088main ()
19089{
19090return __main ();
19091 ;
19092 return 0;
19093}
19094_ACEOF
19095rm -f conftest.$ac_objext conftest$ac_exeext
19096if { (ac_try="$ac_link"
19097case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19100esac
19101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_link") 2>conftest.er1
19103 ac_status=$?
19104 grep -v '^ *+' conftest.er1 >conftest.err
19105 rm -f conftest.er1
19106 cat conftest.err >&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } &&
19109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19110 { (case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19113esac
19114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_try") 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; } &&
19119 { ac_try='test -s conftest$ac_exeext'
19120 { (case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19123esac
19124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_try") 2>&5
19126 ac_status=$?
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129 ac_cv_lib_gcc___main=yes
19130else
19131 echo "$as_me: failed program was:" >&5
19132sed 's/^/| /' conftest.$ac_ext >&5
19133
19134 ac_cv_lib_gcc___main=no
19135fi
19136
19137rm -f core conftest.err conftest.$ac_objext \
19138 conftest$ac_exeext conftest.$ac_ext
19139LIBS=$ac_check_lib_save_LIBS
19140fi
19141{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19142echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19143if test $ac_cv_lib_gcc___main = yes; then
19144
19145cat >>confdefs.h <<\_ACEOF
19146#define HAVE___MAIN 1
19147_ACEOF
19148
19149fi
19150
19151 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19152echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19153if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19154 echo $ECHO_N "(cached) $ECHO_C" >&6
19155else
19156 ac_check_lib_save_LIBS=$LIBS
19157LIBS="-lgcc $LIBS"
19158cat >conftest.$ac_ext <<_ACEOF
19159/* confdefs.h. */
19160_ACEOF
19161cat confdefs.h >>conftest.$ac_ext
19162cat >>conftest.$ac_ext <<_ACEOF
19163/* end confdefs.h. */
19164
19165/* Override any GCC internal prototype to avoid an error.
19166 Use char because int might match the return type of a GCC
19167 builtin and then its argument prototype would still apply. */
19168#ifdef __cplusplus
19169extern "C"
19170#endif
19171char __cmpdi2 ();
19172int
19173main ()
19174{
19175return __cmpdi2 ();
19176 ;
19177 return 0;
19178}
19179_ACEOF
19180rm -f conftest.$ac_objext conftest$ac_exeext
19181if { (ac_try="$ac_link"
19182case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185esac
19186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_link") 2>conftest.er1
19188 ac_status=$?
19189 grep -v '^ *+' conftest.er1 >conftest.err
19190 rm -f conftest.er1
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19195 { (case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19198esac
19199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_try") 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try='test -s conftest$ac_exeext'
19205 { (case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19208esac
19209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_try") 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; }; then
19214 ac_cv_lib_gcc___cmpdi2=yes
19215else
19216 echo "$as_me: failed program was:" >&5
19217sed 's/^/| /' conftest.$ac_ext >&5
19218
19219 ac_cv_lib_gcc___cmpdi2=no
19220fi
19221
19222rm -f core conftest.err conftest.$ac_objext \
19223 conftest$ac_exeext conftest.$ac_ext
19224LIBS=$ac_check_lib_save_LIBS
19225fi
19226{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19227echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19228if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19229
19230cat >>confdefs.h <<\_ACEOF
19231#define HAVE___CMPDI2 1
19232_ACEOF
19233
19234fi
19235
19236fi
19237
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019238if test "$llvm_cv_os_type" = "MingW" ; then
19239 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19240echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19241 cat >conftest.$ac_ext <<_ACEOF
19242#include <windows.h>
19243#include <imagehlp.h>
19244extern void foo(PENUMLOADED_MODULES_CALLBACK);
19245extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19246_ACEOF
19247rm -f conftest.$ac_objext
19248if { (ac_try="$ac_compile"
19249case "(($ac_try" in
19250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251 *) ac_try_echo=$ac_try;;
19252esac
19253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254 (eval "$ac_compile") 2>conftest.er1
19255 ac_status=$?
19256 grep -v '^ *+' conftest.er1 >conftest.err
19257 rm -f conftest.er1
19258 cat conftest.err >&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); } &&
19261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19262 { (case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19265esac
19266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_try") 2>&5
19268 ac_status=$?
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; } &&
19271 { ac_try='test -s conftest.$ac_objext'
19272 { (case "(($ac_try" in
19273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19275esac
19276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277 (eval "$ac_try") 2>&5
19278 ac_status=$?
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; }; then
19281
19282 { echo "$as_me:$LINENO: result: yes" >&5
19283echo "${ECHO_T}yes" >&6; }
19284 llvm_cv_win32_elmcb_pcstr="PCSTR"
19285
19286else
19287 echo "$as_me: failed program was:" >&5
19288sed 's/^/| /' conftest.$ac_ext >&5
19289
19290
19291 { echo "$as_me:$LINENO: result: no" >&5
19292echo "${ECHO_T}no" >&6; }
19293 llvm_cv_win32_elmcb_pcstr="PSTR"
19294
19295fi
19296
19297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19298
19299cat >>confdefs.h <<_ACEOF
19300#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19301_ACEOF
19302
19303fi
19304
Torok Edwin871384f2010-01-26 08:50:50 +000019305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019306{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19307echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19308if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19309 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019310else
Reid Spencera773bd52006-08-04 18:18:08 +000019311 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019312ac_cpp='$CXXCPP $CPPFLAGS'
19313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019317 cat >conftest.$ac_ext <<_ACEOF
19318/* confdefs.h. */
19319_ACEOF
19320cat confdefs.h >>conftest.$ac_ext
19321cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019322/* end confdefs.h. */
19323#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019324int
19325main ()
19326{
19327float f; isnan(f);
19328 ;
19329 return 0;
19330}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019331_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019332rm -f conftest.$ac_objext
19333if { (ac_try="$ac_compile"
19334case "(($ac_try" in
19335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336 *) ac_try_echo=$ac_try;;
19337esac
19338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339 (eval "$ac_compile") 2>conftest.er1
19340 ac_status=$?
19341 grep -v '^ *+' conftest.er1 >conftest.err
19342 rm -f conftest.er1
19343 cat conftest.err >&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } &&
19346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19347 { (case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19350esac
19351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_try") 2>&5
19353 ac_status=$?
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; } &&
19356 { ac_try='test -s conftest.$ac_objext'
19357 { (case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19360esac
19361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_try") 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019366 ac_cv_func_isnan_in_math_h=yes
19367else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019368 echo "$as_me: failed program was:" >&5
19369sed 's/^/| /' conftest.$ac_ext >&5
19370
19371 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019372fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019373
Reid Spencera773bd52006-08-04 18:18:08 +000019374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019375 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019376ac_cpp='$CPP $CPPFLAGS'
19377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19379ac_compiler_gnu=$ac_cv_c_compiler_gnu
19380
19381fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019382{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19383echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019384
19385
19386if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019388cat >>confdefs.h <<\_ACEOF
19389#define HAVE_ISNAN_IN_MATH_H 1
19390_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019391
Reid Spencerabec8f92004-10-27 23:03:44 +000019392fi
19393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019394{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19395echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19396if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019398else
Reid Spencera773bd52006-08-04 18:18:08 +000019399 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019400ac_cpp='$CXXCPP $CPPFLAGS'
19401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19404
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019405 cat >conftest.$ac_ext <<_ACEOF
19406/* confdefs.h. */
19407_ACEOF
19408cat confdefs.h >>conftest.$ac_ext
19409cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019410/* end confdefs.h. */
19411#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019412int
19413main ()
19414{
19415float f; isnan(f);
19416 ;
19417 return 0;
19418}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019419_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019420rm -f conftest.$ac_objext
19421if { (ac_try="$ac_compile"
19422case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19425esac
19426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_compile") 2>conftest.er1
19428 ac_status=$?
19429 grep -v '^ *+' conftest.er1 >conftest.err
19430 rm -f conftest.er1
19431 cat conftest.err >&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } &&
19434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19435 { (case "(($ac_try" in
19436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437 *) ac_try_echo=$ac_try;;
19438esac
19439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440 (eval "$ac_try") 2>&5
19441 ac_status=$?
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; } &&
19444 { ac_try='test -s conftest.$ac_objext'
19445 { (case "(($ac_try" in
19446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447 *) ac_try_echo=$ac_try;;
19448esac
19449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19450 (eval "$ac_try") 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019454 ac_cv_func_isnan_in_cmath=yes
19455else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019456 echo "$as_me: failed program was:" >&5
19457sed 's/^/| /' conftest.$ac_ext >&5
19458
19459 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019460fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019461
Reid Spencera773bd52006-08-04 18:18:08 +000019462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019463 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019464ac_cpp='$CPP $CPPFLAGS'
19465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19467ac_compiler_gnu=$ac_cv_c_compiler_gnu
19468
19469fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019470{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19471echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019472
19473if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019475cat >>confdefs.h <<\_ACEOF
19476#define HAVE_ISNAN_IN_CMATH 1
19477_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019478
Reid Spencerabec8f92004-10-27 23:03:44 +000019479fi
19480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019481{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19482echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19483if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19484 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019485else
Reid Spencera773bd52006-08-04 18:18:08 +000019486 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019487ac_cpp='$CXXCPP $CPPFLAGS'
19488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19491
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019492 cat >conftest.$ac_ext <<_ACEOF
19493/* confdefs.h. */
19494_ACEOF
19495cat confdefs.h >>conftest.$ac_ext
19496cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019497/* end confdefs.h. */
19498#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019499int
19500main ()
19501{
19502float f; std::isnan(f);
19503 ;
19504 return 0;
19505}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019506_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019507rm -f conftest.$ac_objext
19508if { (ac_try="$ac_compile"
19509case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19512esac
19513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_compile") 2>conftest.er1
19515 ac_status=$?
19516 grep -v '^ *+' conftest.er1 >conftest.err
19517 rm -f conftest.er1
19518 cat conftest.err >&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } &&
19521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19522 { (case "(($ac_try" in
19523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524 *) ac_try_echo=$ac_try;;
19525esac
19526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527 (eval "$ac_try") 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; } &&
19531 { ac_try='test -s conftest.$ac_objext'
19532 { (case "(($ac_try" in
19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19535esac
19536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19537 (eval "$ac_try") 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019541 ac_cv_func_std_isnan_in_cmath=yes
19542else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019543 echo "$as_me: failed program was:" >&5
19544sed 's/^/| /' conftest.$ac_ext >&5
19545
19546 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019547fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019548
Reid Spencera773bd52006-08-04 18:18:08 +000019549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019550 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019551ac_cpp='$CPP $CPPFLAGS'
19552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19554ac_compiler_gnu=$ac_cv_c_compiler_gnu
19555
19556fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019557{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19558echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019559
19560if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019562cat >>confdefs.h <<\_ACEOF
19563#define HAVE_STD_ISNAN_IN_CMATH 1
19564_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019565
Reid Spencerabec8f92004-10-27 23:03:44 +000019566fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019567
19568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019569{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19570echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19571if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019573else
Reid Spencera773bd52006-08-04 18:18:08 +000019574 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019575ac_cpp='$CXXCPP $CPPFLAGS'
19576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19579
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019580 cat >conftest.$ac_ext <<_ACEOF
19581/* confdefs.h. */
19582_ACEOF
19583cat confdefs.h >>conftest.$ac_ext
19584cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019585/* end confdefs.h. */
19586#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019587int
19588main ()
19589{
19590float f; isinf(f);
19591 ;
19592 return 0;
19593}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019594_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019595rm -f conftest.$ac_objext
19596if { (ac_try="$ac_compile"
19597case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19600esac
19601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_compile") 2>conftest.er1
19603 ac_status=$?
19604 grep -v '^ *+' conftest.er1 >conftest.err
19605 rm -f conftest.er1
19606 cat conftest.err >&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } &&
19609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19610 { (case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19613esac
19614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_try") 2>&5
19616 ac_status=$?
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; } &&
19619 { ac_try='test -s conftest.$ac_objext'
19620 { (case "(($ac_try" in
19621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622 *) ac_try_echo=$ac_try;;
19623esac
19624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19625 (eval "$ac_try") 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019629 ac_cv_func_isinf_in_math_h=yes
19630else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019631 echo "$as_me: failed program was:" >&5
19632sed 's/^/| /' conftest.$ac_ext >&5
19633
19634 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019635fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019636
Reid Spencera773bd52006-08-04 18:18:08 +000019637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019638 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019639ac_cpp='$CPP $CPPFLAGS'
19640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19642ac_compiler_gnu=$ac_cv_c_compiler_gnu
19643
19644fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019645{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19646echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019647
19648if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019650cat >>confdefs.h <<\_ACEOF
19651#define HAVE_ISINF_IN_MATH_H 1
19652_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019653
Reid Spencerabec8f92004-10-27 23:03:44 +000019654fi
19655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019656{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19657echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19658if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19659 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019660else
Reid Spencera773bd52006-08-04 18:18:08 +000019661 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019662ac_cpp='$CXXCPP $CPPFLAGS'
19663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019667 cat >conftest.$ac_ext <<_ACEOF
19668/* confdefs.h. */
19669_ACEOF
19670cat confdefs.h >>conftest.$ac_ext
19671cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019672/* end confdefs.h. */
19673#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019674int
19675main ()
19676{
19677float f; isinf(f);
19678 ;
19679 return 0;
19680}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019681_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019682rm -f conftest.$ac_objext
19683if { (ac_try="$ac_compile"
19684case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687esac
19688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_compile") 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } &&
19696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19697 { (case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19700esac
19701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_try") 2>&5
19703 ac_status=$?
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); }; } &&
19706 { ac_try='test -s conftest.$ac_objext'
19707 { (case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19710esac
19711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712 (eval "$ac_try") 2>&5
19713 ac_status=$?
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019716 ac_cv_func_isinf_in_cmath=yes
19717else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019718 echo "$as_me: failed program was:" >&5
19719sed 's/^/| /' conftest.$ac_ext >&5
19720
19721 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019722fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019723
Reid Spencera773bd52006-08-04 18:18:08 +000019724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019725 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019726ac_cpp='$CPP $CPPFLAGS'
19727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19729ac_compiler_gnu=$ac_cv_c_compiler_gnu
19730
19731fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019732{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19733echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019734
19735if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019737cat >>confdefs.h <<\_ACEOF
19738#define HAVE_ISINF_IN_CMATH 1
19739_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019740
Reid Spencerabec8f92004-10-27 23:03:44 +000019741fi
19742
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019743{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19744echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19745if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19746 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019747else
Reid Spencera773bd52006-08-04 18:18:08 +000019748 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019749ac_cpp='$CXXCPP $CPPFLAGS'
19750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019754 cat >conftest.$ac_ext <<_ACEOF
19755/* confdefs.h. */
19756_ACEOF
19757cat confdefs.h >>conftest.$ac_ext
19758cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019759/* end confdefs.h. */
19760#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019761int
19762main ()
19763{
19764float f; std::isinf(f)}
19765 ;
19766 return 0;
19767}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019768_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019769rm -f conftest.$ac_objext
19770if { (ac_try="$ac_compile"
19771case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19774esac
19775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_compile") 2>conftest.er1
19777 ac_status=$?
19778 grep -v '^ *+' conftest.er1 >conftest.err
19779 rm -f conftest.er1
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } &&
19783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19784 { (case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19787esac
19788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_try") 2>&5
19790 ac_status=$?
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; } &&
19793 { ac_try='test -s conftest.$ac_objext'
19794 { (case "(($ac_try" in
19795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796 *) ac_try_echo=$ac_try;;
19797esac
19798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799 (eval "$ac_try") 2>&5
19800 ac_status=$?
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019803 ac_cv_func_std_isinf_in_cmath=yes
19804else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019805 echo "$as_me: failed program was:" >&5
19806sed 's/^/| /' conftest.$ac_ext >&5
19807
19808 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019809fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019810
Reid Spencera773bd52006-08-04 18:18:08 +000019811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019812 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019813ac_cpp='$CPP $CPPFLAGS'
19814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19816ac_compiler_gnu=$ac_cv_c_compiler_gnu
19817
19818fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019819{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19820echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019821
19822if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019824cat >>confdefs.h <<\_ACEOF
19825#define HAVE_STD_ISINF_IN_CMATH 1
19826_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019827
Reid Spencerabec8f92004-10-27 23:03:44 +000019828fi
19829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019830{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19831echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19832if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19833 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019834else
Reid Spencera773bd52006-08-04 18:18:08 +000019835 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019836ac_cpp='$CXXCPP $CPPFLAGS'
19837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019841 cat >conftest.$ac_ext <<_ACEOF
19842/* confdefs.h. */
19843_ACEOF
19844cat confdefs.h >>conftest.$ac_ext
19845cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019846/* end confdefs.h. */
19847#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019848int
19849main ()
19850{
19851float f; finite(f);
19852 ;
19853 return 0;
19854}
Brian Gaeked59a6472004-07-21 03:33:58 +000019855_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019856rm -f conftest.$ac_objext
19857if { (ac_try="$ac_compile"
19858case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19861esac
19862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_compile") 2>conftest.er1
19864 ac_status=$?
19865 grep -v '^ *+' conftest.er1 >conftest.err
19866 rm -f conftest.er1
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
19870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19871 { (case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19874esac
19875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_try") 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; } &&
19880 { ac_try='test -s conftest.$ac_objext'
19881 { (case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19884esac
19885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_try") 2>&5
19887 ac_status=$?
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019890 ac_cv_func_finite_in_ieeefp_h=yes
19891else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019892 echo "$as_me: failed program was:" >&5
19893sed 's/^/| /' conftest.$ac_ext >&5
19894
19895 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019896fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019897
Reid Spencera773bd52006-08-04 18:18:08 +000019898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019899 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019900ac_cpp='$CPP $CPPFLAGS'
19901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19903ac_compiler_gnu=$ac_cv_c_compiler_gnu
19904
19905fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019906{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19907echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019908
Brian Gaeke6802b552004-10-28 05:06:45 +000019909if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019911cat >>confdefs.h <<\_ACEOF
19912#define HAVE_FINITE_IN_IEEEFP_H 1
19913_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019914
Reid Spencerabec8f92004-10-27 23:03:44 +000019915fi
19916
19917
19918
Reid Spencer30fe5262007-01-20 07:48:49 +000019919if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019920
19921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019922for ac_header in stdlib.h unistd.h
19923do
19924as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19930fi
19931ac_res=`eval echo '${'$as_ac_Header'}'`
19932 { echo "$as_me:$LINENO: result: $ac_res" >&5
19933echo "${ECHO_T}$ac_res" >&6; }
19934else
19935 # Is the header compilable?
19936{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19937echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19938cat >conftest.$ac_ext <<_ACEOF
19939/* confdefs.h. */
19940_ACEOF
19941cat confdefs.h >>conftest.$ac_ext
19942cat >>conftest.$ac_ext <<_ACEOF
19943/* end confdefs.h. */
19944$ac_includes_default
19945#include <$ac_header>
19946_ACEOF
19947rm -f conftest.$ac_objext
19948if { (ac_try="$ac_compile"
19949case "(($ac_try" in
19950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951 *) ac_try_echo=$ac_try;;
19952esac
19953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954 (eval "$ac_compile") 2>conftest.er1
19955 ac_status=$?
19956 grep -v '^ *+' conftest.er1 >conftest.err
19957 rm -f conftest.er1
19958 cat conftest.err >&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); } &&
19961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19962 { (case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19965esac
19966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_try") 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; } &&
19971 { ac_try='test -s conftest.$ac_objext'
19972 { (case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19975esac
19976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_try") 2>&5
19978 ac_status=$?
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; }; then
19981 ac_header_compiler=yes
19982else
19983 echo "$as_me: failed program was:" >&5
19984sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019985
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019986 ac_header_compiler=no
19987fi
19988
19989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19990{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19991echo "${ECHO_T}$ac_header_compiler" >&6; }
19992
19993# Is the header present?
19994{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19995echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19996cat >conftest.$ac_ext <<_ACEOF
19997/* confdefs.h. */
19998_ACEOF
19999cat confdefs.h >>conftest.$ac_ext
20000cat >>conftest.$ac_ext <<_ACEOF
20001/* end confdefs.h. */
20002#include <$ac_header>
20003_ACEOF
20004if { (ac_try="$ac_cpp conftest.$ac_ext"
20005case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20008esac
20009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20011 ac_status=$?
20012 grep -v '^ *+' conftest.er1 >conftest.err
20013 rm -f conftest.er1
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } >/dev/null; then
20017 if test -s conftest.err; then
20018 ac_cpp_err=$ac_c_preproc_warn_flag
20019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20020 else
20021 ac_cpp_err=
20022 fi
20023else
20024 ac_cpp_err=yes
20025fi
20026if test -z "$ac_cpp_err"; then
20027 ac_header_preproc=yes
20028else
20029 echo "$as_me: failed program was:" >&5
20030sed 's/^/| /' conftest.$ac_ext >&5
20031
20032 ac_header_preproc=no
20033fi
20034
20035rm -f conftest.err conftest.$ac_ext
20036{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20037echo "${ECHO_T}$ac_header_preproc" >&6; }
20038
20039# So? What about this header?
20040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20041 yes:no: )
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20043echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20045echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20046 ac_header_preproc=yes
20047 ;;
20048 no:yes:* )
20049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20050echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20052echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20054echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20056echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20058echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20060echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20061 ( cat <<\_ASBOX
20062## ----------------------------------- ##
20063## Report this to llvmbugs@cs.uiuc.edu ##
20064## ----------------------------------- ##
20065_ASBOX
20066 ) | sed "s/^/$as_me: WARNING: /" >&2
20067 ;;
20068esac
20069{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20072 echo $ECHO_N "(cached) $ECHO_C" >&6
20073else
20074 eval "$as_ac_Header=\$ac_header_preproc"
20075fi
20076ac_res=`eval echo '${'$as_ac_Header'}'`
20077 { echo "$as_me:$LINENO: result: $ac_res" >&5
20078echo "${ECHO_T}$ac_res" >&6; }
20079
20080fi
20081if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020082 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020084_ACEOF
20085
20086fi
20087
20088done
20089
20090
20091for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020092do
20093as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20094{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20095echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20096if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20098else
20099 cat >conftest.$ac_ext <<_ACEOF
20100/* confdefs.h. */
20101_ACEOF
20102cat confdefs.h >>conftest.$ac_ext
20103cat >>conftest.$ac_ext <<_ACEOF
20104/* end confdefs.h. */
20105/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20107#define $ac_func innocuous_$ac_func
20108
20109/* System header to define __stub macros and hopefully few prototypes,
20110 which can conflict with char $ac_func (); below.
20111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20112 <limits.h> exists even on freestanding compilers. */
20113
20114#ifdef __STDC__
20115# include <limits.h>
20116#else
20117# include <assert.h>
20118#endif
20119
20120#undef $ac_func
20121
20122/* Override any GCC internal prototype to avoid an error.
20123 Use char because int might match the return type of a GCC
20124 builtin and then its argument prototype would still apply. */
20125#ifdef __cplusplus
20126extern "C"
20127#endif
20128char $ac_func ();
20129/* The GNU C library defines this for functions which it implements
20130 to always fail with ENOSYS. Some functions are actually named
20131 something starting with __ and the normal name is an alias. */
20132#if defined __stub_$ac_func || defined __stub___$ac_func
20133choke me
20134#endif
20135
20136int
20137main ()
20138{
20139return $ac_func ();
20140 ;
20141 return 0;
20142}
20143_ACEOF
20144rm -f conftest.$ac_objext conftest$ac_exeext
20145if { (ac_try="$ac_link"
20146case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20149esac
20150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_link") 2>conftest.er1
20152 ac_status=$?
20153 grep -v '^ *+' conftest.er1 >conftest.err
20154 rm -f conftest.er1
20155 cat conftest.err >&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); } &&
20158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20159 { (case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20162esac
20163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164 (eval "$ac_try") 2>&5
20165 ac_status=$?
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; } &&
20168 { ac_try='test -s conftest$ac_exeext'
20169 { (case "(($ac_try" in
20170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171 *) ac_try_echo=$ac_try;;
20172esac
20173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174 (eval "$ac_try") 2>&5
20175 ac_status=$?
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20178 eval "$as_ac_var=yes"
20179else
20180 echo "$as_me: failed program was:" >&5
20181sed 's/^/| /' conftest.$ac_ext >&5
20182
20183 eval "$as_ac_var=no"
20184fi
20185
20186rm -f core conftest.err conftest.$ac_objext \
20187 conftest$ac_exeext conftest.$ac_ext
20188fi
20189ac_res=`eval echo '${'$as_ac_var'}'`
20190 { echo "$as_me:$LINENO: result: $ac_res" >&5
20191echo "${ECHO_T}$ac_res" >&6; }
20192if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020193 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020195_ACEOF
20196
20197fi
20198done
20199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020200{ echo "$as_me:$LINENO: checking for working mmap" >&5
20201echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20202if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020204else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020205 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020206 ac_cv_func_mmap_fixed_mapped=no
20207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020208 cat >conftest.$ac_ext <<_ACEOF
20209/* confdefs.h. */
20210_ACEOF
20211cat confdefs.h >>conftest.$ac_ext
20212cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020213/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020214$ac_includes_default
20215/* malloc might have been renamed as rpl_malloc. */
20216#undef malloc
20217
20218/* Thanks to Mike Haertel and Jim Avera for this test.
20219 Here is a matrix of mmap possibilities:
20220 mmap private not fixed
20221 mmap private fixed at somewhere currently unmapped
20222 mmap private fixed at somewhere already mapped
20223 mmap shared not fixed
20224 mmap shared fixed at somewhere currently unmapped
20225 mmap shared fixed at somewhere already mapped
20226 For private mappings, we should verify that changes cannot be read()
20227 back from the file, nor mmap's back from the file at a different
20228 address. (There have been systems where private was not correctly
20229 implemented like the infamous i386 svr4.0, and systems where the
20230 VM page cache was not coherent with the file system buffer cache
20231 like early versions of FreeBSD and possibly contemporary NetBSD.)
20232 For shared mappings, we should conversely verify that changes get
20233 propagated back to all the places they're supposed to be.
20234
20235 Grep wants private fixed already mapped.
20236 The main things grep needs to know about mmap are:
20237 * does it exist and is it safe to write into the mmap'd area
20238 * how to use it (BSD variants) */
20239
20240#include <fcntl.h>
20241#include <sys/mman.h>
20242
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020243#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020244char *malloc ();
20245#endif
20246
20247/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020248#if !HAVE_GETPAGESIZE
20249/* Assume that all systems that can run configure have sys/param.h. */
20250# if !HAVE_SYS_PARAM_H
20251# define HAVE_SYS_PARAM_H 1
20252# endif
20253
John Criswell7a73b802003-06-30 21:59:07 +000020254# ifdef _SC_PAGESIZE
20255# define getpagesize() sysconf(_SC_PAGESIZE)
20256# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020257# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020258# include <sys/param.h>
20259# ifdef EXEC_PAGESIZE
20260# define getpagesize() EXEC_PAGESIZE
20261# else /* no EXEC_PAGESIZE */
20262# ifdef NBPG
20263# define getpagesize() NBPG * CLSIZE
20264# ifndef CLSIZE
20265# define CLSIZE 1
20266# endif /* no CLSIZE */
20267# else /* no NBPG */
20268# ifdef NBPC
20269# define getpagesize() NBPC
20270# else /* no NBPC */
20271# ifdef PAGESIZE
20272# define getpagesize() PAGESIZE
20273# endif /* PAGESIZE */
20274# endif /* no NBPC */
20275# endif /* no NBPG */
20276# endif /* no EXEC_PAGESIZE */
20277# else /* no HAVE_SYS_PARAM_H */
20278# define getpagesize() 8192 /* punt totally */
20279# endif /* no HAVE_SYS_PARAM_H */
20280# endif /* no _SC_PAGESIZE */
20281
20282#endif /* no HAVE_GETPAGESIZE */
20283
20284int
20285main ()
20286{
20287 char *data, *data2, *data3;
20288 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020289 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020290
20291 pagesize = getpagesize ();
20292
20293 /* First, make a file with some known garbage in it. */
20294 data = (char *) malloc (pagesize);
20295 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020296 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020297 for (i = 0; i < pagesize; ++i)
20298 *(data + i) = rand ();
20299 umask (0);
20300 fd = creat ("conftest.mmap", 0600);
20301 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020302 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020303 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020304 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020305 close (fd);
20306
20307 /* Next, try to mmap the file at a fixed address which already has
20308 something else allocated at it. If we can, also make sure that
20309 we see the same garbage. */
20310 fd = open ("conftest.mmap", O_RDWR);
20311 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020312 return 1;
20313 data2 = (char *) malloc (2 * pagesize);
20314 if (!data2)
20315 return 1;
20316 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020317 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020318 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020319 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020320 for (i = 0; i < pagesize; ++i)
20321 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020322 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020323
20324 /* Finally, make sure that changes to the mapped area do not
20325 percolate back to the file as seen by read(). (This is a bug on
20326 some variants of i386 svr4.0.) */
20327 for (i = 0; i < pagesize; ++i)
20328 *(data2 + i) = *(data2 + i) + 1;
20329 data3 = (char *) malloc (pagesize);
20330 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020331 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020332 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020333 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020334 for (i = 0; i < pagesize; ++i)
20335 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020336 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020337 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020338 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020339}
20340_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020341rm -f conftest$ac_exeext
20342if { (ac_try="$ac_link"
20343case "(($ac_try" in
20344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345 *) ac_try_echo=$ac_try;;
20346esac
20347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348 (eval "$ac_link") 2>&5
20349 ac_status=$?
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20352 { (case "(($ac_try" in
20353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354 *) ac_try_echo=$ac_try;;
20355esac
20356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357 (eval "$ac_try") 2>&5
20358 ac_status=$?
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020361 ac_cv_func_mmap_fixed_mapped=yes
20362else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020363 echo "$as_me: program exited with status $ac_status" >&5
20364echo "$as_me: failed program was:" >&5
20365sed 's/^/| /' conftest.$ac_ext >&5
20366
20367( exit $ac_status )
20368ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020369fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020370rm -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 +000020371fi
Reid Spencera773bd52006-08-04 18:18:08 +000020372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020373
John Criswell7a73b802003-06-30 21:59:07 +000020374fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020375{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20376echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020377if test $ac_cv_func_mmap_fixed_mapped = yes; then
20378
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020379cat >>confdefs.h <<\_ACEOF
20380#define HAVE_MMAP 1
20381_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020382
20383fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020384rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020385
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020386 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20387echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20388if test "${ac_cv_func_mmap_file+set}" = set; then
20389 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020390else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020391 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020392ac_cpp='$CPP $CPPFLAGS'
20393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20395ac_compiler_gnu=$ac_cv_c_compiler_gnu
20396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020397 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020398 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020399else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020400 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020401
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020402 /* confdefs.h. */
20403_ACEOF
20404cat confdefs.h >>conftest.$ac_ext
20405cat >>conftest.$ac_ext <<_ACEOF
20406/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020407
John Criswell7a73b802003-06-30 21:59:07 +000020408#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020409#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020410#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020411
20412int
20413main ()
20414{
John Criswell7a73b802003-06-30 21:59:07 +000020415
20416 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020417 fd = creat ("foo",0777);
20418 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20419 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020420 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020421 ;
20422 return 0;
20423}
John Criswell7a73b802003-06-30 21:59:07 +000020424_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020425rm -f conftest$ac_exeext
20426if { (ac_try="$ac_link"
20427case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20430esac
20431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432 (eval "$ac_link") 2>&5
20433 ac_status=$?
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20436 { (case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20439esac
20440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441 (eval "$ac_try") 2>&5
20442 ac_status=$?
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020445 ac_cv_func_mmap_file=yes
20446else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020447 echo "$as_me: program exited with status $ac_status" >&5
20448echo "$as_me: failed program was:" >&5
20449sed 's/^/| /' conftest.$ac_ext >&5
20450
20451( exit $ac_status )
20452ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020453fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020454rm -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 +000020455fi
Reid Spencera773bd52006-08-04 18:18:08 +000020456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020457
John Criswell7a73b802003-06-30 21:59:07 +000020458 ac_ext=c
20459ac_cpp='$CPP $CPPFLAGS'
20460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20462ac_compiler_gnu=$ac_cv_c_compiler_gnu
20463
20464
20465fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020466{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20467echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020468if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020470cat >>confdefs.h <<\_ACEOF
20471#define HAVE_MMAP_FILE
20472_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020473
20474 MMAP_FILE=yes
20475
20476fi
20477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020478 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20479echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20480if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020482else
Reid Spencer582a23c2004-12-29 07:07:57 +000020483 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020484 ac_cv_need_dev_zero_for_mmap=yes
20485 else
20486 ac_cv_need_dev_zero_for_mmap=no
20487 fi
20488
20489fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020490{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20491echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020492if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020494cat >>confdefs.h <<\_ACEOF
20495#define NEED_DEV_ZERO_FOR_MMAP 1
20496_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020497
20498fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020499
Reid Spencer30fe5262007-01-20 07:48:49 +000020500 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20501 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020502 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20503echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020504 fi
20505 if test "$ac_cv_func_mmap_file" = "no"
20506 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020507 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20508echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020509 fi
John Criswellb13092b2003-07-22 21:00:24 +000020510fi
John Criswell7a73b802003-06-30 21:59:07 +000020511
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020512{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20513echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020514ac_ext=cpp
20515ac_cpp='$CXXCPP $CPPFLAGS'
20516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20519
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020520cat >conftest.$ac_ext <<_ACEOF
20521/* confdefs.h. */
20522_ACEOF
20523cat confdefs.h >>conftest.$ac_ext
20524cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020525/* end confdefs.h. */
20526int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020527 volatile unsigned long val = 1;
20528 __sync_synchronize();
20529 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020530 __sync_add_and_fetch(&val, 1);
20531 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020532 return 0;
20533 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020534
20535_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020536rm -f conftest.$ac_objext conftest$ac_exeext
20537if { (ac_try="$ac_link"
20538case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20541esac
20542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543 (eval "$ac_link") 2>conftest.er1
20544 ac_status=$?
20545 grep -v '^ *+' conftest.er1 >conftest.err
20546 rm -f conftest.er1
20547 cat conftest.err >&5
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); } &&
20550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20551 { (case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20554esac
20555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_try") 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; } &&
20560 { ac_try='test -s conftest$ac_exeext'
20561 { (case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20564esac
20565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_try") 2>&5
20567 ac_status=$?
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020570 ac_ext=c
20571ac_cpp='$CPP $CPPFLAGS'
20572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20574ac_compiler_gnu=$ac_cv_c_compiler_gnu
20575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020576 { echo "$as_me:$LINENO: result: yes" >&5
20577echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020579cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020580#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020581_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020582
Owen Andersond4b272b2009-05-18 23:58:51 +000020583else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020584 echo "$as_me: failed program was:" >&5
20585sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020587 { echo "$as_me:$LINENO: result: no" >&5
20588echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020590cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020591#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020592_ACEOF
20593
20594 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20595echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020596fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020597
Owen Andersond4b272b2009-05-18 23:58:51 +000020598rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020599 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020600
John Criswell7a73b802003-06-30 21:59:07 +000020601
Nick Lewycky4372e692009-09-29 06:18:23 +000020602if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020603 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20604echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20605if test "${llvm_cv_linux_mixed+set}" = set; then
20606 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020607else
20608 ac_ext=c
20609ac_cpp='$CPP $CPPFLAGS'
20610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20612ac_compiler_gnu=$ac_cv_c_compiler_gnu
20613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020614 cat >conftest.$ac_ext <<_ACEOF
20615/* confdefs.h. */
20616_ACEOF
20617cat confdefs.h >>conftest.$ac_ext
20618cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020619/* end confdefs.h. */
20620#ifndef __x86_64__
20621 error: Not x86-64 even if uname says so!
20622 #endif
20623
20624int
20625main ()
20626{
20627
20628 ;
20629 return 0;
20630}
20631_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020632rm -f conftest.$ac_objext
20633if { (ac_try="$ac_compile"
20634case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20637esac
20638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_compile") 2>conftest.er1
20640 ac_status=$?
20641 grep -v '^ *+' conftest.er1 >conftest.err
20642 rm -f conftest.er1
20643 cat conftest.err >&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } &&
20646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20647 { (case "(($ac_try" in
20648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20650esac
20651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652 (eval "$ac_try") 2>&5
20653 ac_status=$?
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; } &&
20656 { ac_try='test -s conftest.$ac_objext'
20657 { (case "(($ac_try" in
20658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20659 *) ac_try_echo=$ac_try;;
20660esac
20661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20662 (eval "$ac_try") 2>&5
20663 ac_status=$?
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020666 llvm_cv_linux_mixed=no
20667else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020668 echo "$as_me: failed program was:" >&5
20669sed 's/^/| /' conftest.$ac_ext >&5
20670
20671 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020672fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020673
Nick Lewycky4372e692009-09-29 06:18:23 +000020674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20675 ac_ext=c
20676ac_cpp='$CPP $CPPFLAGS'
20677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20679ac_compiler_gnu=$ac_cv_c_compiler_gnu
20680
20681
20682fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020683{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20684echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020685
20686 if test "$llvm_cv_linux_mixed" = "yes"; then
20687 llvm_cv_target_arch="x86"
20688 ARCH="x86"
20689 fi
20690fi
20691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020692
Reid Spencer9372f152007-07-30 20:13:24 +000020693for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020694do
20695as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20696{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20697echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20698if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20699 echo $ECHO_N "(cached) $ECHO_C" >&6
20700else
20701 cat >conftest.$ac_ext <<_ACEOF
20702/* confdefs.h. */
20703_ACEOF
20704cat confdefs.h >>conftest.$ac_ext
20705cat >>conftest.$ac_ext <<_ACEOF
20706/* end confdefs.h. */
20707/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20709#define $ac_func innocuous_$ac_func
20710
20711/* System header to define __stub macros and hopefully few prototypes,
20712 which can conflict with char $ac_func (); below.
20713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20714 <limits.h> exists even on freestanding compilers. */
20715
20716#ifdef __STDC__
20717# include <limits.h>
20718#else
20719# include <assert.h>
20720#endif
20721
20722#undef $ac_func
20723
20724/* Override any GCC internal prototype to avoid an error.
20725 Use char because int might match the return type of a GCC
20726 builtin and then its argument prototype would still apply. */
20727#ifdef __cplusplus
20728extern "C"
20729#endif
20730char $ac_func ();
20731/* The GNU C library defines this for functions which it implements
20732 to always fail with ENOSYS. Some functions are actually named
20733 something starting with __ and the normal name is an alias. */
20734#if defined __stub_$ac_func || defined __stub___$ac_func
20735choke me
20736#endif
20737
20738int
20739main ()
20740{
20741return $ac_func ();
20742 ;
20743 return 0;
20744}
20745_ACEOF
20746rm -f conftest.$ac_objext conftest$ac_exeext
20747if { (ac_try="$ac_link"
20748case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20751esac
20752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_link") 2>conftest.er1
20754 ac_status=$?
20755 grep -v '^ *+' conftest.er1 >conftest.err
20756 rm -f conftest.er1
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } &&
20760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20761 { (case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20764esac
20765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766 (eval "$ac_try") 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; } &&
20770 { ac_try='test -s conftest$ac_exeext'
20771 { (case "(($ac_try" in
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773 *) ac_try_echo=$ac_try;;
20774esac
20775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20776 (eval "$ac_try") 2>&5
20777 ac_status=$?
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); }; }; then
20780 eval "$as_ac_var=yes"
20781else
20782 echo "$as_me: failed program was:" >&5
20783sed 's/^/| /' conftest.$ac_ext >&5
20784
20785 eval "$as_ac_var=no"
20786fi
20787
20788rm -f core conftest.err conftest.$ac_objext \
20789 conftest$ac_exeext conftest.$ac_ext
20790fi
20791ac_res=`eval echo '${'$as_ac_var'}'`
20792 { echo "$as_me:$LINENO: result: $ac_res" >&5
20793echo "${ECHO_T}$ac_res" >&6; }
20794if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020795 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020796#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020797_ACEOF
20798
20799fi
20800done
20801
20802
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020803SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020804
20805
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020806SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20807
20808
Reid Spencere9de0912004-08-20 09:03:57 +000020809# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020810# information into substitutions that will end up in Makefile.config.in
20811# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020812if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020813 prefix="/usr/local"
20814fi
Reid Spencere9de0912004-08-20 09:03:57 +000020815eval LLVM_PREFIX="${prefix}";
20816eval LLVM_BINDIR="${prefix}/bin";
20817eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020818eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020819eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020820eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020821eval LLVM_INCLUDEDIR="${prefix}/include";
20822eval LLVM_INFODIR="${prefix}/info";
20823eval LLVM_MANDIR="${prefix}/man";
20824LLVM_CONFIGTIME=`date`
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020836# Place the various directores into the config.h file as #defines so that we
20837# can know about the installation paths within LLVM.
20838
Reid Spencere9de0912004-08-20 09:03:57 +000020839cat >>confdefs.h <<_ACEOF
20840#define LLVM_PREFIX "$LLVM_PREFIX"
20841_ACEOF
20842
20843
20844cat >>confdefs.h <<_ACEOF
20845#define LLVM_BINDIR "$LLVM_BINDIR"
20846_ACEOF
20847
20848
20849cat >>confdefs.h <<_ACEOF
20850#define LLVM_LIBDIR "$LLVM_LIBDIR"
20851_ACEOF
20852
20853
20854cat >>confdefs.h <<_ACEOF
20855#define LLVM_DATADIR "$LLVM_DATADIR"
20856_ACEOF
20857
20858
20859cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020860#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020861_ACEOF
20862
20863
20864cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020865#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020866_ACEOF
20867
20868
20869cat >>confdefs.h <<_ACEOF
20870#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20871_ACEOF
20872
20873
20874cat >>confdefs.h <<_ACEOF
20875#define LLVM_INFODIR "$LLVM_INFODIR"
20876_ACEOF
20877
20878
20879cat >>confdefs.h <<_ACEOF
20880#define LLVM_MANDIR "$LLVM_MANDIR"
20881_ACEOF
20882
20883
20884cat >>confdefs.h <<_ACEOF
20885#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20886_ACEOF
20887
20888
Eric Christopher790e11c2007-12-01 00:34:39 +000020889cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020890#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000020891_ACEOF
20892
20893
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020894# Determine which bindings to build.
20895if test "$BINDINGS_TO_BUILD" = auto ; then
20896 BINDINGS_TO_BUILD=""
20897 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20898 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20899 fi
20900fi
20901BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20902
20903
20904# This isn't really configurey, but it avoids having to repeat the list in
20905# other files.
20906ALL_BINDINGS=ocaml
20907
20908
Gordon Henriksenf0915682007-10-02 16:42:22 +000020909# Do any work necessary to ensure that bindings have what they need.
20910binding_prereqs_failed=0
20911for a_binding in $BINDINGS_TO_BUILD ; do
20912 case "$a_binding" in
20913 ocaml)
20914 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020915 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20916echo "$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 +000020917 binding_prereqs_failed=1
20918 fi
20919 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020920 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20921echo "$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 +000020922 binding_prereqs_failed=1
20923 fi
20924 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020925 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20926echo "$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 +000020927 fi
20928 if test "x$with_ocaml_libdir" != xauto ; then
20929 OCAML_LIBDIR=$with_ocaml_libdir
20930
20931 else
20932 ocaml_stdlib="`"$OCAMLC" -where`"
20933 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20934 then
20935 # ocaml stdlib is beneath our prefix; use stdlib
20936 OCAML_LIBDIR=$ocaml_stdlib
20937
20938 else
20939 # ocaml stdlib is outside our prefix; use libdir/ocaml
20940 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20941
20942 fi
20943 fi
20944 ;;
20945 esac
20946done
20947if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020948 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20949echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20950 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020951fi
20952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020953{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20954echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20955if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020957else
20958 ac_ext=cpp
20959ac_cpp='$CXXCPP $CPPFLAGS'
20960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20963
20964 oldcxxflags="$CXXFLAGS"
20965 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020966 cat >conftest.$ac_ext <<_ACEOF
20967/* confdefs.h. */
20968_ACEOF
20969cat confdefs.h >>conftest.$ac_ext
20970cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020971/* end confdefs.h. */
20972
20973int
20974main ()
20975{
20976
20977 ;
20978 return 0;
20979}
20980_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020981rm -f conftest.$ac_objext
20982if { (ac_try="$ac_compile"
20983case "(($ac_try" in
20984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985 *) ac_try_echo=$ac_try;;
20986esac
20987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20988 (eval "$ac_compile") 2>conftest.er1
20989 ac_status=$?
20990 grep -v '^ *+' conftest.er1 >conftest.err
20991 rm -f conftest.er1
20992 cat conftest.err >&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); } &&
20995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20996 { (case "(($ac_try" in
20997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20998 *) ac_try_echo=$ac_try;;
20999esac
21000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21001 (eval "$ac_try") 2>&5
21002 ac_status=$?
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; } &&
21005 { ac_try='test -s conftest.$ac_objext'
21006 { (case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21009esac
21010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_try") 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021015 llvm_cv_cxx_visibility_inlines_hidden=yes
21016else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021017 echo "$as_me: failed program was:" >&5
21018sed 's/^/| /' conftest.$ac_ext >&5
21019
21020 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021021fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021022
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21024 CXXFLAGS="$oldcxxflags"
21025 ac_ext=c
21026ac_cpp='$CPP $CPPFLAGS'
21027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21029ac_compiler_gnu=$ac_cv_c_compiler_gnu
21030
21031
21032fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021033{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21034echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021035if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21036 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21037
21038else
21039 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21040
21041fi
21042
Gordon Henriksenf0915682007-10-02 16:42:22 +000021043
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021044if test "$llvm_cv_link_use_r" = "yes" ; then
21045 RPATH="-Wl,-R"
21046else
21047 RPATH="-Wl,-rpath"
21048fi
21049
21050
21051if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21052 RDYNAMIC="-Wl,-export-dynamic"
21053else
21054 RDYNAMIC=""
21055fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021056
21057
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021058
Eric Christophera1cba682010-08-08 02:44:25 +000021059ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021060
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021061
21062
21063
21064
21065
Douglas Gregor1555a232009-06-16 20:12:29 +000021066ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21067
21068ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21069
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021070ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21071
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021072ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21073
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021074ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021075
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021076
Reid Spencera773bd52006-08-04 18:18:08 +000021077ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021078
Eric Christopher360fa9a2011-10-26 00:42:12 +000021079
Reid Spencerea949cf2006-08-16 00:45:38 +000021080ac_config_files="$ac_config_files llvm.spec"
21081
21082
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021083ac_config_files="$ac_config_files docs/doxygen.cfg"
21084
21085if test -f ${srcdir}/tools/clang/README.txt; then
21086 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21087
21088fi
21089
Daniel Dunbar1ad92132011-11-10 19:59:35 +000021090ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021091
Eric Christopher360fa9a2011-10-26 00:42:12 +000021092
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021093ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021094
Eric Christopher360fa9a2011-10-26 00:42:12 +000021095
Reid Spencera773bd52006-08-04 18:18:08 +000021096ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021097
Reid Spencera773bd52006-08-04 18:18:08 +000021098ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021099
21100
Reid Spencera773bd52006-08-04 18:18:08 +000021101ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021102
21103
Reid Spencera773bd52006-08-04 18:18:08 +000021104ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021105
21106
Reid Spencera773bd52006-08-04 18:18:08 +000021107ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021108
21109
Reid Spencer8b2e1412006-11-17 03:32:33 +000021110ac_config_commands="$ac_config_commands runtime/Makefile"
21111
21112
Reid Spencera773bd52006-08-04 18:18:08 +000021113ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021114
21115
Reid Spencera773bd52006-08-04 18:18:08 +000021116ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021117
21118
Bill Wendlingf24eb392009-01-04 23:12:30 +000021119ac_config_commands="$ac_config_commands unittests/Makefile"
21120
21121
Reid Spencera773bd52006-08-04 18:18:08 +000021122ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021123
21124
Reid Spencera773bd52006-08-04 18:18:08 +000021125ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021126
21127
Reid Spencera773bd52006-08-04 18:18:08 +000021128ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021129
21130
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021131ac_config_commands="$ac_config_commands bindings/Makefile"
21132
21133
21134ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21135
21136
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021137
John Criswell7a73b802003-06-30 21:59:07 +000021138cat >confcache <<\_ACEOF
21139# This file is a shell script that caches the results of configure
21140# tests run on this system so they can be shared between configure
21141# scripts and configure runs, see configure's option --config-cache.
21142# It is not useful on other systems. If it contains results you don't
21143# want to keep, you may remove or edit it.
21144#
21145# config.status only pays attention to the cache file if you give it
21146# the --recheck option to rerun configure.
21147#
John Criswell0c38eaf2003-09-10 15:17:25 +000021148# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021149# loading this file, other *unset* `ac_cv_foo' will be assigned the
21150# following values.
21151
21152_ACEOF
21153
21154# The following way of writing the cache mishandles newlines in values,
21155# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021156# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021157# Ultrix sh set writes to stderr and can't be redirected directly,
21158# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021159(
21160 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21161 eval ac_val=\$$ac_var
21162 case $ac_val in #(
21163 *${as_nl}*)
21164 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021165 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21166echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021167 esac
21168 case $ac_var in #(
21169 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021170 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021171 esac ;;
21172 esac
21173 done
21174
John Criswell7a73b802003-06-30 21:59:07 +000021175 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021176 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21177 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021178 # `set' does not quote correctly, so add quotes (double-quote
21179 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021180 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021181 "s/'/'\\\\''/g;
21182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021183 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021184 *)
21185 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021187 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021188 esac |
21189 sort
21190) |
John Criswell7a73b802003-06-30 21:59:07 +000021191 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021192 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021193 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021194 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021195 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21196 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021197 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21198 :end' >>confcache
21199if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21200 if test -w "$cache_file"; then
21201 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021202 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21203echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021204 cat confcache >$cache_file
21205 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021206 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21207echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021208 fi
21209fi
21210rm -f confcache
21211
21212test "x$prefix" = xNONE && prefix=$ac_default_prefix
21213# Let make expand exec_prefix.
21214test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21215
John Criswell7a73b802003-06-30 21:59:07 +000021216DEFS=-DHAVE_CONFIG_H
21217
John Criswell0c38eaf2003-09-10 15:17:25 +000021218ac_libobjs=
21219ac_ltlibobjs=
21220for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21221 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021222 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021223 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021224 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21225 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021226 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21227 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021228done
21229LIBOBJS=$ac_libobjs
21230
21231LTLIBOBJS=$ac_ltlibobjs
21232
21233
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021234if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021235 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21236Usually this means the macro was only invoked conditionally." >&5
21237echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21238Usually this means the macro was only invoked conditionally." >&2;}
21239 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021240fi
21241if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021242 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21243Usually this means the macro was only invoked conditionally." >&5
21244echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21245Usually this means the macro was only invoked conditionally." >&2;}
21246 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021247fi
John Criswell7a73b802003-06-30 21:59:07 +000021248
21249: ${CONFIG_STATUS=./config.status}
21250ac_clean_files_save=$ac_clean_files
21251ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021252{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21253echo "$as_me: creating $CONFIG_STATUS" >&6;}
21254cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021255#! $SHELL
21256# Generated by $as_me.
21257# Run this file to recreate the current configuration.
21258# Compiler output produced by configure, useful for debugging
21259# configure, is in config.log if it exists.
21260
21261debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021262ac_cs_recheck=false
21263ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021264SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021265_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021266
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021267cat >>$CONFIG_STATUS <<\_ACEOF
21268## --------------------- ##
21269## M4sh Initialization. ##
21270## --------------------- ##
21271
21272# Be Bourne compatible
21273if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021274 emulate sh
21275 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021276 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021277 # is contrary to our usage. Disable this feature.
21278 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021279 setopt NO_GLOB_SUBST
21280else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021281 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021282fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021283BIN_SH=xpg4; export BIN_SH # for Tru64
21284DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021285
John Criswell7a73b802003-06-30 21:59:07 +000021286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021287# PATH needs CR
21288# Avoid depending upon Character Ranges.
21289as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21290as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21291as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21292as_cr_digits='0123456789'
21293as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021294
21295# The user is always right.
21296if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021297 echo "#! /bin/sh" >conf$$.sh
21298 echo "exit 0" >>conf$$.sh
21299 chmod +x conf$$.sh
21300 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21301 PATH_SEPARATOR=';'
21302 else
21303 PATH_SEPARATOR=:
21304 fi
21305 rm -f conf$$.sh
21306fi
21307
21308# Support unset when possible.
21309if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21310 as_unset=unset
21311else
21312 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021313fi
John Criswell7a73b802003-06-30 21:59:07 +000021314
Reid Spencera773bd52006-08-04 18:18:08 +000021315
21316# IFS
21317# We need space, tab and new line, in precisely that order. Quoting is
21318# there to prevent editors from complaining about space-tab.
21319# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21320# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021321as_nl='
21322'
Reid Spencera773bd52006-08-04 18:18:08 +000021323IFS=" "" $as_nl"
21324
21325# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021326case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021327 *[\\/]* ) as_myself=$0 ;;
21328 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021329for as_dir in $PATH
21330do
21331 IFS=$as_save_IFS
21332 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021333 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21334done
Reid Spencera773bd52006-08-04 18:18:08 +000021335IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021336
Reid Spencera773bd52006-08-04 18:18:08 +000021337 ;;
21338esac
21339# We did not find ourselves, most probably we were run as `sh COMMAND'
21340# in which case we are not to be found in the path.
21341if test "x$as_myself" = x; then
21342 as_myself=$0
21343fi
21344if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021345 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21346 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021347fi
21348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021349# Work around bugs in pre-3.0 UWIN ksh.
21350for as_var in ENV MAIL MAILPATH
21351do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021352done
21353PS1='$ '
21354PS2='> '
21355PS4='+ '
21356
21357# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021358for as_var in \
21359 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21360 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21361 LC_TELEPHONE LC_TIME
21362do
21363 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21364 eval $as_var=C; export $as_var
21365 else
21366 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021367 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021368done
Torok Edwin871384f2010-01-26 08:50:50 +000021369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021370# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021371if expr a : '\(a\)' >/dev/null 2>&1 &&
21372 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21373 as_expr=expr
21374else
21375 as_expr=false
21376fi
21377
21378if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21379 as_basename=basename
21380else
21381 as_basename=false
21382fi
21383
21384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021385# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021386as_me=`$as_basename -- "$0" ||
21387$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21388 X"$0" : 'X\(//\)$' \| \
21389 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021390echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021391 sed '/^.*\/\([^/][^/]*\)\/*$/{
21392 s//\1/
21393 q
21394 }
21395 /^X\/\(\/\/\)$/{
21396 s//\1/
21397 q
21398 }
21399 /^X\/\(\/\).*/{
21400 s//\1/
21401 q
21402 }
21403 s/.*/./; q'`
21404
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021405# CDPATH.
21406$as_unset CDPATH
21407
21408
21409
21410 as_lineno_1=$LINENO
21411 as_lineno_2=$LINENO
21412 test "x$as_lineno_1" != "x$as_lineno_2" &&
21413 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21414
21415 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21416 # uniformly replaced by the line number. The first 'sed' inserts a
21417 # line-number line after each line using $LINENO; the second 'sed'
21418 # does the real work. The second script uses 'N' to pair each
21419 # line-number line with the line containing $LINENO, and appends
21420 # trailing '-' during substitution so that $LINENO is not a special
21421 # case at line end.
21422 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21423 # scripts with optimization help from Paolo Bonzini. Blame Lee
21424 # E. McMahon (1931-1989) for sed's syntax. :-)
21425 sed -n '
21426 p
21427 /[$]LINENO/=
21428 ' <$as_myself |
21429 sed '
21430 s/[$]LINENO.*/&-/
21431 t lineno
21432 b
21433 :lineno
21434 N
21435 :loop
21436 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21437 t loop
21438 s/-\n.*//
21439 ' >$as_me.lineno &&
21440 chmod +x "$as_me.lineno" ||
21441 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21442 { (exit 1); exit 1; }; }
21443
21444 # Don't try to exec as it changes $[0], causing all sort of problems
21445 # (the dirname of $[0] is not the place where we might find the
21446 # original and so on. Autoconf is especially sensitive to this).
21447 . "./$as_me.lineno"
21448 # Exit status is that of the last command.
21449 exit
21450}
21451
21452
21453if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21454 as_dirname=dirname
21455else
21456 as_dirname=false
21457fi
Reid Spencera773bd52006-08-04 18:18:08 +000021458
21459ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021460case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021461-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021462 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021463 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021464 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021465 esac;;
21466*)
21467 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021468esac
21469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021470if expr a : '\(a\)' >/dev/null 2>&1 &&
21471 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21472 as_expr=expr
21473else
21474 as_expr=false
21475fi
21476
John Criswell7a73b802003-06-30 21:59:07 +000021477rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021478if test -d conf$$.dir; then
21479 rm -f conf$$.dir/conf$$.file
21480else
21481 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021482 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021483fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021484echo >conf$$.file
21485if ln -s conf$$.file conf$$ 2>/dev/null; then
21486 as_ln_s='ln -s'
21487 # ... but there are two gotchas:
21488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21490 # In both cases, we have to default to `cp -p'.
21491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021492 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021493elif ln conf$$.file conf$$ 2>/dev/null; then
21494 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021495else
21496 as_ln_s='cp -p'
21497fi
Reid Spencera773bd52006-08-04 18:18:08 +000021498rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21499rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021500
John Criswell0c38eaf2003-09-10 15:17:25 +000021501if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021502 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021503else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021504 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021505 as_mkdir_p=false
21506fi
21507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021508# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21509# systems may use methods other than mode bits to determine executability.
21510cat >conf$$.file <<_ASEOF
21511#! /bin/sh
21512exit 0
21513_ASEOF
21514chmod +x conf$$.file
21515if test -x conf$$.file >/dev/null 2>&1; then
21516 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021517else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021518 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021519fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021520rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021521
21522# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021524
21525# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021527
21528
John Criswell7a73b802003-06-30 21:59:07 +000021529exec 6>&1
21530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021531# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021532# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021533# values after options handling.
21534ac_log="
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021535This file was extended by llvm $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021536generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021537
21538 CONFIG_FILES = $CONFIG_FILES
21539 CONFIG_HEADERS = $CONFIG_HEADERS
21540 CONFIG_LINKS = $CONFIG_LINKS
21541 CONFIG_COMMANDS = $CONFIG_COMMANDS
21542 $ $0 $@
21543
Reid Spencera773bd52006-08-04 18:18:08 +000021544on `(hostname || uname -n) 2>/dev/null | sed 1q`
21545"
21546
John Criswell7a73b802003-06-30 21:59:07 +000021547_ACEOF
21548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021549cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021550# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021551config_files="$ac_config_files"
21552config_headers="$ac_config_headers"
21553config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021554
Reid Spencera773bd52006-08-04 18:18:08 +000021555_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021556
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021557cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021558ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021559\`$as_me' instantiates files from templates according to the
21560current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021562Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021563
21564 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021565 -V, --version print version number, then exit
21566 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021567 -d, --debug don't remove temporary files
21568 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021569 --file=FILE[:TEMPLATE]
21570 instantiate the configuration file FILE
21571 --header=FILE[:TEMPLATE]
21572 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021573
21574Configuration files:
21575$config_files
21576
21577Configuration headers:
21578$config_headers
21579
John Criswellc764fbc2003-09-06 15:17:13 +000021580Configuration commands:
21581$config_commands
21582
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021583Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021584
Reid Spencera773bd52006-08-04 18:18:08 +000021585_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021586cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021587ac_cs_version="\\
Bill Wendlingde7ec8b2011-10-15 02:09:17 +000021588llvm config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021589configured by $0, generated by GNU Autoconf 2.60,
21590 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021592Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021593This config.status script is free software; the Free Software Foundation
21594gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021595
21596ac_pwd='$ac_pwd'
21597srcdir='$srcdir'
21598INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021599_ACEOF
21600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021601cat >>$CONFIG_STATUS <<\_ACEOF
21602# If no file are specified by the user, then we need to provide default
21603# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021604ac_need_defaults=:
21605while test $# != 0
21606do
21607 case $1 in
21608 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021609 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21610 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021611 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021612 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021613 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021614 ac_option=$1
21615 ac_optarg=$2
21616 ac_shift=shift
21617 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021618 esac
21619
John Criswell0c38eaf2003-09-10 15:17:25 +000021620 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021621 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021622 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21623 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021624 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021625 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021626 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021627 debug=: ;;
21628 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021629 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021630 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021631 ac_need_defaults=false;;
21632 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021633 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021634 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021635 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021636 --he | --h)
21637 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021638 { echo "$as_me: error: ambiguous option: $1
21639Try \`$0 --help' for more information." >&2
21640 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021641 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021642 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21644 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21645 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021646
21647 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021648 -*) { echo "$as_me: error: unrecognized option: $1
21649Try \`$0 --help' for more information." >&2
21650 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021652 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021653 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021654
21655 esac
21656 shift
21657done
21658
John Criswell0c38eaf2003-09-10 15:17:25 +000021659ac_configure_extra_args=
21660
21661if $ac_cs_silent; then
21662 exec 6>/dev/null
21663 ac_configure_extra_args="$ac_configure_extra_args --silent"
21664fi
21665
21666_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021667cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021668if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021669 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21670 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021671 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021672 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021673fi
21674
John Criswell7a73b802003-06-30 21:59:07 +000021675_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021676cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021677exec 5>>config.log
21678{
21679 echo
21680 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21681## Running $as_me. ##
21682_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021683 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021684} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021685
Reid Spencera773bd52006-08-04 18:18:08 +000021686_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021687cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021688#
Reid Spencera773bd52006-08-04 18:18:08 +000021689# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021690#
Reid Spencerc0682832005-02-24 19:05:19 +000021691llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021692
21693_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021695cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021696
21697# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021698for ac_config_target in $ac_config_targets
21699do
Reid Spencera773bd52006-08-04 18:18:08 +000021700 case $ac_config_target in
21701 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021702 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021703 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21704 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021705 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021706 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021707 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021708 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021709 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021710 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21711 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021712 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021713 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021714 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21715 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21716 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21717 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21718 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021719 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021720 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21721 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021722 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021723 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21724 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21725 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021726 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21727 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021729 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21730echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21731 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021732 esac
21733done
21734
Reid Spencera773bd52006-08-04 18:18:08 +000021735
John Criswell7a73b802003-06-30 21:59:07 +000021736# If the user did not use the arguments to specify the items to instantiate,
21737# then the envvar interface is used. Set only those that are not.
21738# We use the long form for the default assignment because of an extremely
21739# bizarre bug on SunOS 4.1.3.
21740if $ac_need_defaults; then
21741 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21742 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021743 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021744fi
21745
John Criswell0c38eaf2003-09-10 15:17:25 +000021746# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021747# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021748# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021749# Hook for its removal unless debugging.
21750# Note that there is a small window in which the directory will not be cleaned:
21751# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021752$debug ||
21753{
Reid Spencera773bd52006-08-04 18:18:08 +000021754 tmp=
21755 trap 'exit_status=$?
21756 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21757' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021758 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021759}
John Criswell7a73b802003-06-30 21:59:07 +000021760# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021761
John Criswell7a73b802003-06-30 21:59:07 +000021762{
Reid Spencera773bd52006-08-04 18:18:08 +000021763 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021764 test -n "$tmp" && test -d "$tmp"
21765} ||
21766{
Reid Spencera773bd52006-08-04 18:18:08 +000021767 tmp=./conf$$-$RANDOM
21768 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021769} ||
21770{
21771 echo "$me: cannot create a temporary directory in ." >&2
21772 { (exit 1); exit 1; }
21773}
John Criswell7a73b802003-06-30 21:59:07 +000021774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021775#
21776# Set up the sed scripts for CONFIG_FILES section.
21777#
21778
21779# No need to generate the scripts if there are no CONFIG_FILES.
21780# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021781if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021782
21783_ACEOF
21784
Reid Spencera773bd52006-08-04 18:18:08 +000021785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021786
Reid Spencera773bd52006-08-04 18:18:08 +000021787ac_delim='%!_!# '
21788for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021789 cat >conf$$subs.sed <<_ACEOF
21790SHELL!$SHELL$ac_delim
21791PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21792PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21793PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21794PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21795PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21796PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21797exec_prefix!$exec_prefix$ac_delim
21798prefix!$prefix$ac_delim
21799program_transform_name!$program_transform_name$ac_delim
21800bindir!$bindir$ac_delim
21801sbindir!$sbindir$ac_delim
21802libexecdir!$libexecdir$ac_delim
21803datarootdir!$datarootdir$ac_delim
21804datadir!$datadir$ac_delim
21805sysconfdir!$sysconfdir$ac_delim
21806sharedstatedir!$sharedstatedir$ac_delim
21807localstatedir!$localstatedir$ac_delim
21808includedir!$includedir$ac_delim
21809oldincludedir!$oldincludedir$ac_delim
21810docdir!$docdir$ac_delim
21811infodir!$infodir$ac_delim
21812htmldir!$htmldir$ac_delim
21813dvidir!$dvidir$ac_delim
21814pdfdir!$pdfdir$ac_delim
21815psdir!$psdir$ac_delim
21816libdir!$libdir$ac_delim
21817localedir!$localedir$ac_delim
21818mandir!$mandir$ac_delim
21819DEFS!$DEFS$ac_delim
21820ECHO_C!$ECHO_C$ac_delim
21821ECHO_N!$ECHO_N$ac_delim
21822ECHO_T!$ECHO_T$ac_delim
21823LIBS!$LIBS$ac_delim
21824build_alias!$build_alias$ac_delim
21825host_alias!$host_alias$ac_delim
21826target_alias!$target_alias$ac_delim
21827LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021828CC!$CC$ac_delim
21829CFLAGS!$CFLAGS$ac_delim
21830LDFLAGS!$LDFLAGS$ac_delim
21831CPPFLAGS!$CPPFLAGS$ac_delim
21832ac_ct_CC!$ac_ct_CC$ac_delim
21833EXEEXT!$EXEEXT$ac_delim
21834OBJEXT!$OBJEXT$ac_delim
21835CXX!$CXX$ac_delim
21836CXXFLAGS!$CXXFLAGS$ac_delim
21837ac_ct_CXX!$ac_ct_CXX$ac_delim
21838CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021839subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021840ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21841LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021842build!$build$ac_delim
21843build_cpu!$build_cpu$ac_delim
21844build_vendor!$build_vendor$ac_delim
21845build_os!$build_os$ac_delim
21846host!$host$ac_delim
21847host_cpu!$host_cpu$ac_delim
21848host_vendor!$host_vendor$ac_delim
21849host_os!$host_os$ac_delim
21850target!$target$ac_delim
21851target_cpu!$target_cpu$ac_delim
21852target_vendor!$target_vendor$ac_delim
21853target_os!$target_os$ac_delim
21854OS!$OS$ac_delim
21855HOST_OS!$HOST_OS$ac_delim
21856TARGET_OS!$TARGET_OS$ac_delim
21857LINKALL!$LINKALL$ac_delim
21858NOLINKALL!$NOLINKALL$ac_delim
21859LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21860LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21861ARCH!$ARCH$ac_delim
21862ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021863GREP!$GREP$ac_delim
21864EGREP!$EGREP$ac_delim
21865LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21866BUILD_CC!$BUILD_CC$ac_delim
21867BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21868BUILD_CXX!$BUILD_CXX$ac_delim
21869CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000021870ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021871ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21872ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21873DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21874ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21875EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21876DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21877DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21878JIT!$JIT$ac_delim
21879TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021880ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021881ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21882ENABLE_THREADS!$ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021883ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021884ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021885ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021886ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021887_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021889 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021890 break
21891 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021892 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21893echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21894 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021895 else
21896 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021897 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021898done
21899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021900ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21901if test -n "$ac_eof"; then
21902 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21903 ac_eof=`expr $ac_eof + 1`
21904fi
21905
21906cat >>$CONFIG_STATUS <<_ACEOF
21907cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21908/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021909_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021910sed '
21911s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21912s/^/s,@/; s/!/@,|#_!!_#|/
21913:n
21914t n
21915s/'"$ac_delim"'$/,g/; t
21916s/$/\\/; p
21917N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21918' >>$CONFIG_STATUS <conf$$subs.sed
21919rm -f conf$$subs.sed
21920cat >>$CONFIG_STATUS <<_ACEOF
21921CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021922_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021923
21924
21925ac_delim='%!_!# '
21926for ac_last_try in false false false false false :; do
21927 cat >conf$$subs.sed <<_ACEOF
Eric Christopherbee515f2011-11-11 22:51:42 +000021928ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000021929TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21930LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21931LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000021932LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000021933LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000021934ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021935OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021936EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000021937EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000021938CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021939BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021940NM!$NM$ac_delim
21941ifGNUmake!$ifGNUmake$ac_delim
21942LN_S!$LN_S$ac_delim
21943CMP!$CMP$ac_delim
21944CP!$CP$ac_delim
21945DATE!$DATE$ac_delim
21946FIND!$FIND$ac_delim
21947MKDIR!$MKDIR$ac_delim
21948MV!$MV$ac_delim
21949RANLIB!$RANLIB$ac_delim
21950AR!$AR$ac_delim
21951RM!$RM$ac_delim
21952SED!$SED$ac_delim
21953TAR!$TAR$ac_delim
21954BINPWD!$BINPWD$ac_delim
21955GRAPHVIZ!$GRAPHVIZ$ac_delim
21956DOT!$DOT$ac_delim
21957FDP!$FDP$ac_delim
21958NEATO!$NEATO$ac_delim
21959TWOPI!$TWOPI$ac_delim
21960CIRCO!$CIRCO$ac_delim
21961GV!$GV$ac_delim
21962DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021963XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021964PERL!$PERL$ac_delim
21965HAVE_PERL!$HAVE_PERL$ac_delim
21966INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21967INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21968INSTALL_DATA!$INSTALL_DATA$ac_delim
21969BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021970CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021971DOXYGEN!$DOXYGEN$ac_delim
21972GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000021973GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021974POD2HTML!$POD2HTML$ac_delim
21975POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021976PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021977RUNTEST!$RUNTEST$ac_delim
21978TCLSH!$TCLSH$ac_delim
21979ZIP!$ZIP$ac_delim
21980OCAMLC!$OCAMLC$ac_delim
21981OCAMLOPT!$OCAMLOPT$ac_delim
21982OCAMLDEP!$OCAMLDEP$ac_delim
21983OCAMLDOC!$OCAMLDOC$ac_delim
21984GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021985HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021986INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21987INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21988CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21989CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21990LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021991NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21992NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21993USE_UDIS86!$USE_UDIS86$ac_delim
21994USE_OPROFILE!$USE_OPROFILE$ac_delim
21995HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21996HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21997MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021998SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021999SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022000LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22001LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22002LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22003LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22004LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22005LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22006LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22007LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22008LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22009LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22010BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22011ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022012OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22013ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22014RPATH!$RPATH$ac_delim
22015RDYNAMIC!$RDYNAMIC$ac_delim
22016LIBOBJS!$LIBOBJS$ac_delim
22017LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022018_ACEOF
22019
Eric Christopherbee515f2011-11-11 22:51:42 +000022020 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022021 break
22022 elif $ac_last_try; then
22023 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22024echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22025 { (exit 1); exit 1; }; }
22026 else
22027 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22028 fi
22029done
22030
22031ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22032if test -n "$ac_eof"; then
22033 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22034 ac_eof=`expr $ac_eof + 1`
22035fi
22036
22037cat >>$CONFIG_STATUS <<_ACEOF
22038cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022039/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22040_ACEOF
22041sed '
22042s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22043s/^/s,@/; s/!/@,|#_!!_#|/
22044:n
22045t n
22046s/'"$ac_delim"'$/,g/; t
22047s/$/\\/; p
22048N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22049' >>$CONFIG_STATUS <conf$$subs.sed
22050rm -f conf$$subs.sed
22051cat >>$CONFIG_STATUS <<_ACEOF
22052:end
22053s/|#_!!_#|//g
22054CEOF$ac_eof
22055_ACEOF
22056
22057
Reid Spencera773bd52006-08-04 18:18:08 +000022058# VPATH may cause trouble with some makes, so we remove $(srcdir),
22059# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22060# trailing colons and then remove the whole line if VPATH becomes empty
22061# (actually we leave an empty line to preserve line numbers).
22062if test "x$srcdir" = x.; then
22063 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22064s/:*\$(srcdir):*/:/
22065s/:*\${srcdir}:*/:/
22066s/:*@srcdir@:*/:/
22067s/^\([^=]*=[ ]*\):*/\1/
22068s/:*$//
22069s/^[^=]*=[ ]*$//
22070}'
22071fi
22072
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022073cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022074fi # test -n "$CONFIG_FILES"
22075
Reid Spencera773bd52006-08-04 18:18:08 +000022076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022077for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022078do
22079 case $ac_tag in
22080 :[FHLC]) ac_mode=$ac_tag; continue;;
22081 esac
22082 case $ac_mode$ac_tag in
22083 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022084 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22085echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22086 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022087 :[FH]-) ac_tag=-:-;;
22088 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22089 esac
22090 ac_save_IFS=$IFS
22091 IFS=:
22092 set x $ac_tag
22093 IFS=$ac_save_IFS
22094 shift
22095 ac_file=$1
22096 shift
22097
22098 case $ac_mode in
22099 :L) ac_source=$1;;
22100 :[FH])
22101 ac_file_inputs=
22102 for ac_f
22103 do
22104 case $ac_f in
22105 -) ac_f="$tmp/stdin";;
22106 *) # Look for the file first in the build tree, then in the source tree
22107 # (if the path is not absolute). The absolute path cannot be DOS-style,
22108 # because $ac_f cannot contain `:'.
22109 test -f "$ac_f" ||
22110 case $ac_f in
22111 [\\/$]*) false;;
22112 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22113 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022114 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22115echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22116 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022117 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022118 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022119 done
22120
22121 # Let's still pretend it is `configure' which instantiates (i.e., don't
22122 # use $as_me), people would be surprised to read:
22123 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022124 configure_input="Generated from "`IFS=:
22125 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022126 if test x"$ac_file" != x-; then
22127 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022128 { echo "$as_me:$LINENO: creating $ac_file" >&5
22129echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022130 fi
22131
22132 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022133 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022134 esac
22135 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022136 esac
22137
Reid Spencera773bd52006-08-04 18:18:08 +000022138 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022139$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022140 X"$ac_file" : 'X\(//\)[^/]' \| \
22141 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022142 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022143echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22145 s//\1/
22146 q
22147 }
22148 /^X\(\/\/\)[^/].*/{
22149 s//\1/
22150 q
22151 }
22152 /^X\(\/\/\)$/{
22153 s//\1/
22154 q
22155 }
22156 /^X\(\/\).*/{
22157 s//\1/
22158 q
22159 }
22160 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022161 { as_dir="$ac_dir"
22162 case $as_dir in #(
22163 -*) as_dir=./$as_dir;;
22164 esac
22165 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22166 as_dirs=
22167 while :; do
22168 case $as_dir in #(
22169 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22170 *) as_qdir=$as_dir;;
22171 esac
22172 as_dirs="'$as_qdir' $as_dirs"
22173 as_dir=`$as_dirname -- "$as_dir" ||
22174$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22175 X"$as_dir" : 'X\(//\)[^/]' \| \
22176 X"$as_dir" : 'X\(//\)$' \| \
22177 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22178echo X"$as_dir" |
22179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22180 s//\1/
22181 q
22182 }
22183 /^X\(\/\/\)[^/].*/{
22184 s//\1/
22185 q
22186 }
22187 /^X\(\/\/\)$/{
22188 s//\1/
22189 q
22190 }
22191 /^X\(\/\).*/{
22192 s//\1/
22193 q
22194 }
22195 s/.*/./; q'`
22196 test -d "$as_dir" && break
22197 done
22198 test -z "$as_dirs" || eval "mkdir $as_dirs"
22199 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22200echo "$as_me: error: cannot create directory $as_dir" >&2;}
22201 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022202 ac_builddir=.
22203
Reid Spencera773bd52006-08-04 18:18:08 +000022204case "$ac_dir" in
22205.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22206*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022207 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022208 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022209 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022210 case $ac_top_builddir_sub in
22211 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22212 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22213 esac ;;
22214esac
22215ac_abs_top_builddir=$ac_pwd
22216ac_abs_builddir=$ac_pwd$ac_dir_suffix
22217# for backward compatibility:
22218ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022219
22220case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022221 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022222 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022223 ac_top_srcdir=$ac_top_builddir_sub
22224 ac_abs_top_srcdir=$ac_pwd ;;
22225 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022226 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022227 ac_top_srcdir=$srcdir
22228 ac_abs_top_srcdir=$srcdir ;;
22229 *) # Relative name.
22230 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22231 ac_top_srcdir=$ac_top_build_prefix$srcdir
22232 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022233esac
Reid Spencera773bd52006-08-04 18:18:08 +000022234ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022235
John Criswell7a73b802003-06-30 21:59:07 +000022236
Reid Spencera773bd52006-08-04 18:18:08 +000022237 case $ac_mode in
22238 :F)
22239 #
22240 # CONFIG_FILE
22241 #
John Criswell7a73b802003-06-30 21:59:07 +000022242
22243 case $INSTALL in
22244 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022245 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022246 esac
John Criswell7a73b802003-06-30 21:59:07 +000022247_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022249cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022250# If the template does not know about datarootdir, expand it.
22251# FIXME: This hack should be removed a few years after 2.60.
22252ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022253
22254case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022255 p
22256 q
22257}
22258/@datadir@/p
22259/@docdir@/p
22260/@infodir@/p
22261/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022262/@mandir@/p
22263' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022264*datarootdir*) ac_datarootdir_seen=yes;;
22265*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022266 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22267echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022268_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022269cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022270 ac_datarootdir_hack='
22271 s&@datadir@&$datadir&g
22272 s&@docdir@&$docdir&g
22273 s&@infodir@&$infodir&g
22274 s&@localedir@&$localedir&g
22275 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022276 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022277esac
22278_ACEOF
22279
22280# Neutralize VPATH when `$srcdir' = `.'.
22281# Shell code in configure.ac might set extrasub.
22282# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022283cat >>$CONFIG_STATUS <<_ACEOF
22284 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022285$extrasub
22286_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022287cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022288:t
22289/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022290s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022291s&@top_builddir@&$ac_top_builddir_sub&;t t
22292s&@srcdir@&$ac_srcdir&;t t
22293s&@abs_srcdir@&$ac_abs_srcdir&;t t
22294s&@top_srcdir@&$ac_top_srcdir&;t t
22295s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22296s&@builddir@&$ac_builddir&;t t
22297s&@abs_builddir@&$ac_abs_builddir&;t t
22298s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22299s&@INSTALL@&$ac_INSTALL&;t t
22300$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022301" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022302
Reid Spencera773bd52006-08-04 18:18:08 +000022303test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22304 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22305 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022306 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022307which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022308echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022309which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022310
Reid Spencera773bd52006-08-04 18:18:08 +000022311 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022312 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022313 -) cat "$tmp/out"; rm -f "$tmp/out";;
22314 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22315 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022316 ;;
22317 :H)
22318 #
22319 # CONFIG_HEADER
22320 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022321_ACEOF
22322
22323# Transform confdefs.h into a sed script `conftest.defines', that
22324# substitutes the proper values into config.h.in to produce config.h.
22325rm -f conftest.defines conftest.tail
22326# First, append a space to every undef/define line, to ease matching.
22327echo 's/$/ /' >conftest.defines
22328# Then, protect against being on the right side of a sed subst, or in
22329# an unquoted here document, in config.status. If some macros were
22330# called several times there might be several #defines for the same
22331# symbol, which is useless. But do not sort them, since the last
22332# AC_DEFINE must be honored.
22333ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22334# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22335# NAME is the cpp macro being defined, VALUE is the value it is being given.
22336# PARAMS is the parameter list in the macro definition--in most cases, it's
22337# just an empty string.
22338ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22339ac_dB='\\)[ (].*,\\1define\\2'
22340ac_dC=' '
22341ac_dD=' ,'
22342
22343uniq confdefs.h |
22344 sed -n '
22345 t rset
22346 :rset
22347 s/^[ ]*#[ ]*define[ ][ ]*//
22348 t ok
22349 d
22350 :ok
22351 s/[\\&,]/\\&/g
22352 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22353 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22354 ' >>conftest.defines
22355
22356# Remove the space that was appended to ease matching.
22357# Then replace #undef with comments. This is necessary, for
22358# example, in the case of _POSIX_SOURCE, which is predefined and required
22359# on some systems where configure will not decide to define it.
22360# (The regexp can be short, since the line contains either #define or #undef.)
22361echo 's/ $//
22362s,^[ #]*u.*,/* & */,' >>conftest.defines
22363
22364# Break up conftest.defines:
22365ac_max_sed_lines=50
22366
22367# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22368# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22369# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22370# et cetera.
22371ac_in='$ac_file_inputs'
22372ac_out='"$tmp/out1"'
22373ac_nxt='"$tmp/out2"'
22374
22375while :
22376do
22377 # Write a here document:
22378 cat >>$CONFIG_STATUS <<_ACEOF
22379 # First, check the format of the line:
22380 cat >"\$tmp/defines.sed" <<\\CEOF
22381/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22382/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22383b
22384:def
22385_ACEOF
22386 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22387 echo 'CEOF
22388 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22389 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22390 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22391 grep . conftest.tail >/dev/null || break
22392 rm -f conftest.defines
22393 mv conftest.tail conftest.defines
22394done
22395rm -f conftest.defines conftest.tail
22396
22397echo "ac_result=$ac_in" >>$CONFIG_STATUS
22398cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022399 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022400 echo "/* $configure_input */" >"$tmp/config.h"
22401 cat "$ac_result" >>"$tmp/config.h"
22402 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22403 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22404echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022405 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022406 rm -f $ac_file
22407 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022408 fi
22409 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022410 echo "/* $configure_input */"
22411 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022412 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022413 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022414 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022415
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022416 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22417echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022418 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022419 esac
John Criswell7a73b802003-06-30 21:59:07 +000022420
Reid Spencera773bd52006-08-04 18:18:08 +000022421
22422 case $ac_file$ac_mode in
22423 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022424 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022425 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022426 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022427 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022428 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022429 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022430 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022431 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022432 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022433 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022434 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022435 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022436 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022437 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022438 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022439 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022440 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022441 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022442 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022443 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022444 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022445 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022446 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022447 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022448 ${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 +000022449
22450 esac
22451done # for ac_tag
22452
John Criswell7a73b802003-06-30 21:59:07 +000022453
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022454{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022455_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022456chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022457ac_clean_files=$ac_clean_files_save
22458
22459
22460# configure is writing to config.log, and then calls config.status.
22461# config.status does its own redirection, appending to config.log.
22462# Unfortunately, on DOS this fails, as config.log is still kept open
22463# by configure, so config.status won't be able to write to it; its
22464# output is simply discarded. So we exec the FD to /dev/null,
22465# effectively closing config.log, so it can be properly (re)opened and
22466# appended to by config.status. When coming back to configure, we
22467# need to make the FD available again.
22468if test "$no_create" != yes; then
22469 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022470 ac_config_status_args=
22471 test "$silent" = yes &&
22472 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022473 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022474 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022475 exec 5>>config.log
22476 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22477 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022478 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022479fi
22480
John Criswell12399a12003-09-30 15:55:44 +000022481#
22482# CONFIG_SUBDIRS section.
22483#
22484if test "$no_recursion" != yes; then
22485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022486 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022487 ac_sub_configure_args=
22488 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022489 eval "set x $ac_configure_args"
22490 shift
22491 for ac_arg
22492 do
John Criswell12399a12003-09-30 15:55:44 +000022493 if test -n "$ac_prev"; then
22494 ac_prev=
22495 continue
22496 fi
22497 case $ac_arg in
22498 -cache-file | --cache-file | --cache-fil | --cache-fi \
22499 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22500 ac_prev=cache_file ;;
22501 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22502 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22503 | --c=*)
22504 ;;
22505 --config-cache | -C)
22506 ;;
22507 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22508 ac_prev=srcdir ;;
22509 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22510 ;;
22511 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22512 ac_prev=prefix ;;
22513 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22514 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022515 *)
22516 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022517 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022518 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022519 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022520 esac
22521 done
22522
22523 # Always prepend --prefix to ensure using the same prefix
22524 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022525 ac_arg="--prefix=$prefix"
22526 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022527 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022528 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022529 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022530
22531 ac_popdir=`pwd`
22532 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22533
22534 # Do not complain, so a configure script can configure whichever
22535 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022536 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022537
Reid Spencera773bd52006-08-04 18:18:08 +000022538 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022539 echo "$as_me:$LINENO: $ac_msg" >&5
22540 echo "$ac_msg" >&6
22541 { as_dir="$ac_dir"
22542 case $as_dir in #(
22543 -*) as_dir=./$as_dir;;
22544 esac
22545 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22546 as_dirs=
22547 while :; do
22548 case $as_dir in #(
22549 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22550 *) as_qdir=$as_dir;;
22551 esac
22552 as_dirs="'$as_qdir' $as_dirs"
22553 as_dir=`$as_dirname -- "$as_dir" ||
22554$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22555 X"$as_dir" : 'X\(//\)[^/]' \| \
22556 X"$as_dir" : 'X\(//\)$' \| \
22557 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22558echo X"$as_dir" |
22559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22560 s//\1/
22561 q
22562 }
22563 /^X\(\/\/\)[^/].*/{
22564 s//\1/
22565 q
22566 }
22567 /^X\(\/\/\)$/{
22568 s//\1/
22569 q
22570 }
22571 /^X\(\/\).*/{
22572 s//\1/
22573 q
22574 }
22575 s/.*/./; q'`
22576 test -d "$as_dir" && break
22577 done
22578 test -z "$as_dirs" || eval "mkdir $as_dirs"
22579 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22580echo "$as_me: error: cannot create directory $as_dir" >&2;}
22581 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022582 ac_builddir=.
22583
Reid Spencera773bd52006-08-04 18:18:08 +000022584case "$ac_dir" in
22585.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22586*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022587 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022588 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022589 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022590 case $ac_top_builddir_sub in
22591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22593 esac ;;
22594esac
22595ac_abs_top_builddir=$ac_pwd
22596ac_abs_builddir=$ac_pwd$ac_dir_suffix
22597# for backward compatibility:
22598ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022599
22600case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022601 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022602 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022603 ac_top_srcdir=$ac_top_builddir_sub
22604 ac_abs_top_srcdir=$ac_pwd ;;
22605 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022606 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022607 ac_top_srcdir=$srcdir
22608 ac_abs_top_srcdir=$srcdir ;;
22609 *) # Relative name.
22610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22611 ac_top_srcdir=$ac_top_build_prefix$srcdir
22612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022613esac
Reid Spencera773bd52006-08-04 18:18:08 +000022614ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022615
22616
Reid Spencera773bd52006-08-04 18:18:08 +000022617 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022618
22619 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022620 if test -f "$ac_srcdir/configure.gnu"; then
22621 ac_sub_configure=$ac_srcdir/configure.gnu
22622 elif test -f "$ac_srcdir/configure"; then
22623 ac_sub_configure=$ac_srcdir/configure
22624 elif test -f "$ac_srcdir/configure.in"; then
22625 # This should be Cygnus configure.
22626 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022627 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022628 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22629echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022630 ac_sub_configure=
22631 fi
22632
22633 # The recursion is here.
22634 if test -n "$ac_sub_configure"; then
22635 # Make the cache file name correct relative to the subdirectory.
22636 case $cache_file in
22637 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022638 *) # Relative name.
22639 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022640 esac
22641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022642 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22643echo "$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 +000022644 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022645 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22646 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022647 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22648echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22649 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022650 fi
22651
Reid Spencera773bd52006-08-04 18:18:08 +000022652 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022653 done
22654fi
22655