blob: b7e42a706de3a74f290d16689a58e47595a937d6 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Eric Christopherf33ab862011-12-21 00:52:44 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
Eric Christopherf33ab862011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00006#
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#
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +000012# Copyright (c) 2003-2012 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.
Eric Christopherf33ab862011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Bill Wendlingde7ec8b2011-10-15 02:09:17 +0000564PACKAGE_VERSION='3.1svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000565PACKAGE_STRING='LLVM 3.1svn'
566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell7a73b802003-06-30 21:59:07 +0000567
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
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000697LLVM_ENABLE_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
Bob Wilsonae7e2a42011-11-28 07:59:52 +0000714INTERNAL_PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000715NM
716ifGNUmake
717LN_S
718CMP
719CP
720DATE
721FIND
722MKDIR
723MV
724RANLIB
725AR
726RM
727SED
728TAR
729BINPWD
730GRAPHVIZ
731DOT
732FDP
733NEATO
734TWOPI
735CIRCO
736GV
737DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000738XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739INSTALL_PROGRAM
740INSTALL_SCRIPT
741INSTALL_DATA
742BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000743CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000744DOXYGEN
745GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000746GZIPBIN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000747POD2HTML
748POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000749PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000750RUNTEST
751TCLSH
752ZIP
753OCAMLC
754OCAMLOPT
755OCAMLDEP
756OCAMLDOC
757GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000758HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000759INSTALL_LTDL_TRUE
760INSTALL_LTDL_FALSE
761CONVENIENCE_LTDL_TRUE
762CONVENIENCE_LTDL_FALSE
763LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000764NO_VARIADIC_MACROS
765NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000766COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000767USE_UDIS86
768USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000769USE_INTEL_JITEVENTS
770INTEL_JITEVENTS_INCDIR
771INTEL_JITEVENTS_LIBDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000772HAVE_PTHREAD
773HUGE_VAL_SANITY
774MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000776SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000777LLVM_PREFIX
778LLVM_BINDIR
779LLVM_LIBDIR
780LLVM_DATADIR
781LLVM_DOCSDIR
782LLVM_ETCDIR
783LLVM_INCLUDEDIR
784LLVM_INFODIR
785LLVM_MANDIR
786LLVM_CONFIGTIME
787BINDINGS_TO_BUILD
788ALL_BINDINGS
789OCAML_LIBDIR
790ENABLE_VISIBILITY_INLINES_HIDDEN
791RPATH
792RDYNAMIC
793LIBOBJS
794LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000795ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000796 ac_precious_vars='build_alias
797host_alias
798target_alias
799CC
800CFLAGS
801LDFLAGS
802CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000803CXX
804CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000805CCC
806CPP'
John Criswell0157f502010-03-19 21:31:39 +0000807ac_subdirs_all='projects/llvm-gcc
808projects/test-suite
809projects/llvm-test
810projects/poolalloc
811projects/llvm-poolalloc
812projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000814projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/llvm-java
817projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000818projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000819projects/llvm-kernel
820tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825# The variables have the same names as the options, with
826# dashes changed to underlines.
827cache_file=/dev/null
828exec_prefix=NONE
829no_create=
830no_recursion=
831prefix=NONE
832program_prefix=NONE
833program_suffix=NONE
834program_transform_name=s,x,x,
835silent=
836site=
837srcdir=
838verbose=
839x_includes=NONE
840x_libraries=NONE
841
842# Installation directory options.
843# These are left unexpanded so users can "make install exec_prefix=/foo"
844# and all the variables that are supposed to be based on exec_prefix
845# by default will actually change.
846# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000847# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000848bindir='${exec_prefix}/bin'
849sbindir='${exec_prefix}/sbin'
850libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000851datarootdir='${prefix}/share'
852datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000853sysconfdir='${prefix}/etc'
854sharedstatedir='${prefix}/com'
855localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000856includedir='${prefix}/include'
857oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859infodir='${datarootdir}/info'
860htmldir='${docdir}'
861dvidir='${docdir}'
862pdfdir='${docdir}'
863psdir='${docdir}'
864libdir='${exec_prefix}/lib'
865localedir='${datarootdir}/locale'
866mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000867
868ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000869ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000870for ac_option
871do
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000874 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000875 ac_prev=
876 continue
877 fi
878
Reid Spencera773bd52006-08-04 18:18:08 +0000879 case $ac_option in
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *) ac_optarg=yes ;;
882 esac
John Criswell7a73b802003-06-30 21:59:07 +0000883
884 # Accept the important Cygnus configure options, so we can diagnose typos.
885
Reid Spencera773bd52006-08-04 18:18:08 +0000886 case $ac_dashdash$ac_option in
887 --)
888 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000889
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 ac_prev=bindir ;;
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 bindir=$ac_optarg ;;
894
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
899
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
906
907 --config-cache | -C)
908 cache_file=config.cache ;;
909
Reid Spencera773bd52006-08-04 18:18:08 +0000910 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000911 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000913 datadir=$ac_optarg ;;
914
Reid Spencera773bd52006-08-04 18:18:08 +0000915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
921
John Criswell7a73b802003-06-30 21:59:07 +0000922 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000923 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000924 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000930
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
935
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000940
941 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000942 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000943 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
Reid Spencera773bd52006-08-04 18:18:08 +0000975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
John Criswell7a73b802003-06-30 21:59:07 +0000981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
Reid Spencera773bd52006-08-04 18:18:08 +00001005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
John Criswell7a73b802003-06-30 21:59:07 +00001010 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001011 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
Reid Spencera773bd52006-08-04 18:18:08 +00001079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
John Criswell7a73b802003-06-30 21:59:07 +00001089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1098
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1126
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137
1138 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001139 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001140 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package| sed 's/-/_/g'`
1145 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001146
1147 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001149 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package | sed 's/-/_/g'`
1154 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1166
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1173
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001185 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001186 export $ac_envvar ;;
1187
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 ;;
1195
1196 esac
1197done
1198
1199if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201 { echo "$as_me: error: missing argument to $ac_option" >&2
1202 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001203fi
1204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001205# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001210do
Reid Spencera773bd52006-08-04 18:18:08 +00001211 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001212 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001215 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001218done
1219
1220# There might be people who depend on the old broken behavior: `$host'
1221# used to hold the argument of --host etc.
1222# FIXME: To remove some day.
1223build=$build_alias
1224host=$host_alias
1225target=$target_alias
1226
1227# FIXME: To remove some day.
1228if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236fi
1237
1238ac_tool_prefix=
1239test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241test "$silent" = yes && exec 6>/dev/null
1242
1243
Reid Spencera773bd52006-08-04 18:18:08 +00001244ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245ac_ls_di=`ls -di .` &&
1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001247 { echo "$as_me: error: Working directory cannot be determined" >&2
1248 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001249test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001250 { echo "$as_me: error: pwd does not report name of working directory" >&2
1251 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001252
1253
John Criswell7a73b802003-06-30 21:59:07 +00001254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001257 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001258 ac_confdir=`$as_dirname -- "$0" ||
1259$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$0" : 'X\(//\)[^/]' \| \
1261 X"$0" : 'X\(//\)$' \| \
1262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001281 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001282 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001283 srcdir=..
1284 fi
1285else
1286 ac_srcdir_defaulted=no
1287fi
Reid Spencera773bd52006-08-04 18:18:08 +00001288if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001292fi
Reid Spencera773bd52006-08-04 18:18:08 +00001293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001297 pwd)`
1298# When building in place, set srcdir=.
1299if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1301fi
1302# Remove unnecessary trailing slashes from srcdir.
1303# Double slashes in file names in object file debugging info
1304# mess up M-x gdb in Emacs.
1305case $srcdir in
1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307esac
1308for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313done
John Criswell7a73b802003-06-30 21:59:07 +00001314
1315#
1316# Report the --help message.
1317#
1318if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
Eric Christopherf33ab862011-12-21 00:52:44 +00001322\`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001323
1324Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327VAR=VALUE. See below for descriptions of some of the useful variables.
1328
1329Defaults for the options are specified in brackets.
1330
1331Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341
John Criswell7a73b802003-06-30 21:59:07 +00001342Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001344 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001346 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001347
1348By default, \`make install' will install all the files in
1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351for instance \`--prefix=\$HOME'.
1352
1353For better control, use the options below.
1354
1355Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001370 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001375_ACEOF
1376
1377 cat <<\_ACEOF
1378
1379System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1383_ACEOF
1384fi
1385
1386if test -n "$ac_init_help"; then
1387 case $ac_init_help in
Eric Christopherf33ab862011-12-21 00:52:44 +00001388 short | recursive ) echo "Configuration of LLVM 3.1svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001389 esac
1390 cat <<\_ACEOF
1391
1392Optional Features:
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001395 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001396 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001397 --enable-optimized Compile with optimizations enabled (default is NO)
1398 --enable-profiling Compile with profiling enabled (default is NO)
1399 --enable-assertions Compile with assertion checks enabled (default is
1400 YES)
David Greenea696d242007-06-28 19:36:08 +00001401 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001402 Compile with expensive debug checks enabled (default
1403 is NO)
1404 --enable-debug-runtime Build runtime libs with debug symbols (default is
1405 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001406 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1407 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001408 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001409 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001410 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001411 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001412 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001413 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001414 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001415 --enable-shared Build a shared library and link tools against it
1416 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001417 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001418 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001419 --enable-timestamps Enable embedding timestamp information in build
1420 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001421 --enable-targets Build specific host targets: all or
1422 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001423 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1424 xcore, msp430, ptx, cbe, and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001425 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1426 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001427 --enable-bindings Build specific language bindings:
1428 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001429 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001430 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001431
1432Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001435 --with-optimize-option Select the compiler options to use for optimized
1436 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001437 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001438 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001439 --with-ocaml-libdir Specify install location for ocaml bindings (default
1440 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001441 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001442 --with-clang-resource-dir
1443 Relative directory from the Clang binary for
1444 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001445 --with-c-include-dirs Colon separated list of directories clang will
1446 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001447 --with-gcc-toolchain Directory where gcc is installed.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001448 --with-binutils-include Specify path to binutils/include/ containing
1449 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001450 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001451 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001452 --with-internal-prefix Installation directory for internal files
Reid Spencer0fcb9412004-11-30 08:11:54 +00001453 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001454 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001455 --with-oprofile=<prefix>
1456 Tell OProfile >= 0.9.4 how to symbolize JIT output
Eli Bendersky61b18512012-03-13 08:33:15 +00001457 --with-intel-jitevents=<vtune-amplifier-dir>
1458 Specify location of run-time support library for
1459 Intel JIT API
1460 (default=/opt/intel/vtune_amplifier_xe_2011)
John Criswell7a73b802003-06-30 21:59:07 +00001461
1462Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001463 CC C compiler command
1464 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001467 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001468 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001471 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001472
1473Use these variables to override the choices made by `configure' or to help
1474it to find libraries and programs with nonstandard names/locations.
1475
Eric Christopherf33ab862011-12-21 00:52:44 +00001476Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001477_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001478ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001479fi
1480
1481if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001484 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001485 ac_builddir=.
1486
Reid Spencera773bd52006-08-04 18:18:08 +00001487case "$ac_dir" in
1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001490 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001491 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001492 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497esac
1498ac_abs_top_builddir=$ac_pwd
1499ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500# for backward compatibility:
1501ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001502
1503case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001504 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001505 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001509 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001516esac
Reid Spencera773bd52006-08-04 18:18:08 +00001517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001518
Reid Spencera773bd52006-08-04 18:18:08 +00001519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001527 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001528 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001531 done
1532fi
1533
Reid Spencera773bd52006-08-04 18:18:08 +00001534test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001535if $ac_init_version; then
1536 cat <<\_ACEOF
Eric Christopherf33ab862011-12-21 00:52:44 +00001537LLVM configure 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001538generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001540Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15412002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001542This configure script is free software; the Free Software Foundation
1543gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001544
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001545Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001546_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001547 exit
John Criswell7a73b802003-06-30 21:59:07 +00001548fi
Reid Spencera773bd52006-08-04 18:18:08 +00001549cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001550This file contains any messages produced by compilers while
1551running configure, to aid debugging if configure makes a mistake.
1552
Eric Christopherf33ab862011-12-21 00:52:44 +00001553It was created by LLVM $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001554generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001555
1556 $ $0 $@
1557
1558_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001559exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001560{
1561cat <<_ASUNAME
1562## --------- ##
1563## Platform. ##
1564## --------- ##
1565
1566hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571
1572/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574
1575/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1576/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1577/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001578/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001579/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1580/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1581/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1582
1583_ASUNAME
1584
1585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586for as_dir in $PATH
1587do
1588 IFS=$as_save_IFS
1589 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001590 echo "PATH: $as_dir"
1591done
Reid Spencera773bd52006-08-04 18:18:08 +00001592IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001593
1594} >&5
1595
1596cat >&5 <<_ACEOF
1597
1598
1599## ----------- ##
1600## Core tests. ##
1601## ----------- ##
1602
1603_ACEOF
1604
1605
1606# Keep a trace of the command line.
1607# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001608# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001609# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001610# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001611ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001612ac_configure_args0=
1613ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001614ac_must_keep_next=false
1615for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001616do
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 for ac_arg
1618 do
1619 case $ac_arg in
1620 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1622 | -silent | --silent | --silen | --sile | --sil)
1623 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001624 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001625 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 esac
1627 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001628 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001630 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001632 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001633 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001634 case $ac_arg in
1635 *=* | --config-cache | -C | -disable-* | --disable-* \
1636 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1637 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1638 | -with-* | --with-* | -without-* | --without-* | --x)
1639 case "$ac_configure_args0 " in
1640 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641 esac
1642 ;;
1643 -* ) ac_must_keep_next=true ;;
1644 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001646 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 ;;
1648 esac
1649 done
John Criswell7a73b802003-06-30 21:59:07 +00001650done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001651$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1652$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001653
1654# When interrupted or exit'd, cleanup temporary files, and complete
1655# config.log. We remove comments because anyway the quotes in there
1656# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001657# WARNING: Use '\'' to represent an apostrophe within the trap.
1658# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001659trap 'exit_status=$?
1660 # Save into config.log some information that might help in debugging.
1661 {
1662 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001663
John Criswell7a73b802003-06-30 21:59:07 +00001664 cat <<\_ASBOX
1665## ---------------- ##
1666## Cache variables. ##
1667## ---------------- ##
1668_ASBOX
1669 echo
1670 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001671(
1672 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673 eval ac_val=\$$ac_var
1674 case $ac_val in #(
1675 *${as_nl}*)
1676 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001677 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001679 esac
1680 case $ac_var in #(
1681 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001682 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001683 esac ;;
1684 esac
1685 done
John Criswell7a73b802003-06-30 21:59:07 +00001686 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001689 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001690 "s/'\''/'\''\\\\'\'''\''/g;
1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001693 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001695 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001696 esac |
1697 sort
1698)
John Criswell7a73b802003-06-30 21:59:07 +00001699 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001700
1701 cat <<\_ASBOX
1702## ----------------- ##
1703## Output variables. ##
1704## ----------------- ##
1705_ASBOX
1706 echo
1707 for ac_var in $ac_subst_vars
1708 do
Reid Spencera773bd52006-08-04 18:18:08 +00001709 eval ac_val=\$$ac_var
1710 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001711 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001712 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001713 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001714 done | sort
1715 echo
1716
1717 if test -n "$ac_subst_files"; then
1718 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001719## ------------------- ##
1720## File substitutions. ##
1721## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001722_ASBOX
1723 echo
1724 for ac_var in $ac_subst_files
1725 do
Reid Spencera773bd52006-08-04 18:18:08 +00001726 eval ac_val=\$$ac_var
1727 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001729 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001730 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 done | sort
1732 echo
1733 fi
1734
John Criswell7a73b802003-06-30 21:59:07 +00001735 if test -s confdefs.h; then
1736 cat <<\_ASBOX
1737## ----------- ##
1738## confdefs.h. ##
1739## ----------- ##
1740_ASBOX
1741 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001742 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001743 echo
1744 fi
1745 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001746 echo "$as_me: caught signal $ac_signal"
1747 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001748 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001749 rm -f core *.core core.conftest.* &&
1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001751 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001752' 0
John Criswell7a73b802003-06-30 21:59:07 +00001753for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001754 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001755done
1756ac_signal=0
1757
1758# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001759rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001760
1761# Predefined preprocessor variables.
1762
1763cat >>confdefs.h <<_ACEOF
1764#define PACKAGE_NAME "$PACKAGE_NAME"
1765_ACEOF
1766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001767
John Criswell7a73b802003-06-30 21:59:07 +00001768cat >>confdefs.h <<_ACEOF
1769#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770_ACEOF
1771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001772
John Criswell7a73b802003-06-30 21:59:07 +00001773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_VERSION "$PACKAGE_VERSION"
1775_ACEOF
1776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001777
John Criswell7a73b802003-06-30 21:59:07 +00001778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_STRING "$PACKAGE_STRING"
1780_ACEOF
1781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001782
John Criswell7a73b802003-06-30 21:59:07 +00001783cat >>confdefs.h <<_ACEOF
1784#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785_ACEOF
1786
1787
1788# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001790if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001792elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001794else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795 set x "$ac_default_prefix/share/config.site" \
1796 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001797fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798shift
1799for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001800do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801 if test -r "$ac_site_file"; then
1802 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001804 sed 's/^/| /' "$ac_site_file" >&5
1805 . "$ac_site_file"
1806 fi
1807done
1808
1809if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001810 # Some versions of bash will fail to source /dev/null (special
1811 # files actually), so we avoid doing that.
1812 if test -f "$cache_file"; then
1813 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001815 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001816 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001818 esac
1819 fi
1820else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001821 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001823 >$cache_file
1824fi
1825
1826# Check that the precious variables saved in the cache have kept the same
1827# value.
1828ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001829for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001830 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001832 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001834 case $ac_old_set,$ac_new_set in
1835 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001836 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001838 ac_cache_corrupted=: ;;
1839 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001840 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001842 ac_cache_corrupted=: ;;
1843 ,);;
1844 *)
1845 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001846 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1849echo "$as_me: former value: $ac_old_val" >&2;}
1850 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1851echo "$as_me: current value: $ac_new_val" >&2;}
1852 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001853 fi;;
1854 esac
1855 # Pass precious variables to config.status.
1856 if test "$ac_new_set" = set; then
1857 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001858 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001859 *) ac_arg=$ac_var=$ac_new_val ;;
1860 esac
1861 case " $ac_configure_args " in
1862 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001863 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001864 esac
1865 fi
1866done
1867if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001868 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001873fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
Reid Spencera773bd52006-08-04 18:18:08 +00001898
John Criswell7a73b802003-06-30 21:59:07 +00001899ac_ext=c
1900ac_cpp='$CPP $CPPFLAGS'
1901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904
1905
1906
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001907cat >>confdefs.h <<\_ACEOF
1908#define LLVM_VERSION_MAJOR 3
1909_ACEOF
1910
1911
1912cat >>confdefs.h <<\_ACEOF
1913#define LLVM_VERSION_MINOR 1
1914_ACEOF
1915
1916
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001917LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001918
1919
1920
1921
1922
1923
1924
John Criswell7a73b802003-06-30 21:59:07 +00001925ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001926for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001927 if test -f "$ac_dir/install-sh"; then
1928 ac_aux_dir=$ac_dir
1929 ac_install_sh="$ac_aux_dir/install-sh -c"
1930 break
1931 elif test -f "$ac_dir/install.sh"; then
1932 ac_aux_dir=$ac_dir
1933 ac_install_sh="$ac_aux_dir/install.sh -c"
1934 break
1935 elif test -f "$ac_dir/shtool"; then
1936 ac_aux_dir=$ac_dir
1937 ac_install_sh="$ac_aux_dir/shtool install -c"
1938 break
1939 fi
John Criswell7a73b802003-06-30 21:59:07 +00001940done
1941if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001942 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1943echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1944 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001945fi
Reid Spencera773bd52006-08-04 18:18:08 +00001946
1947# These three variables are undocumented and unsupported,
1948# and are intended to be withdrawn in a future Autoconf release.
1949# They can cause serious problems if a builder's source tree is in a directory
1950# whose full name contains unusual characters.
1951ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1952ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1953ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1954
John Criswell7a73b802003-06-30 21:59:07 +00001955
John Criswell392aaa32003-07-22 19:18:09 +00001956
Reid Spencer2706f8c2004-09-19 23:53:36 +00001957if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001958 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001959 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1960echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1961 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001962 fi
John Criswell93e1c722003-09-15 17:04:06 +00001963fi
1964
Nick Lewycky83fc4472009-09-29 05:48:51 +00001965ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001966ac_cpp='$CPP $CPPFLAGS'
1967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001970if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001971 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001972 do
1973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1974set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001975{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1977if test "${ac_cv_prog_CC+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001979else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001980 if test -n "$CC"; then
1981 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001982else
1983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984for as_dir in $PATH
1985do
1986 IFS=$as_save_IFS
1987 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 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 +00001990 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001992 break 2
1993 fi
1994done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001995done
Reid Spencera773bd52006-08-04 18:18:08 +00001996IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001997
1998fi
1999fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002000CC=$ac_cv_prog_CC
2001if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002002 { echo "$as_me:$LINENO: result: $CC" >&5
2003echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002004else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002005 { echo "$as_me:$LINENO: result: no" >&5
2006echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002007fi
2008
Reid Spencera773bd52006-08-04 18:18:08 +00002009
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002010 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002011 done
2012fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002013if test -z "$CC"; then
2014 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002015 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002016do
2017 # Extract the first word of "$ac_prog", so it can be a program name with args.
2018set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2021if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002023else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002024 if test -n "$ac_ct_CC"; then
2025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002026else
2027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028for as_dir in $PATH
2029do
2030 IFS=$as_save_IFS
2031 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 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 +00002034 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002036 break 2
2037 fi
2038done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002039done
Reid Spencera773bd52006-08-04 18:18:08 +00002040IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002041
2042fi
2043fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002044ac_ct_CC=$ac_cv_prog_ac_ct_CC
2045if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002046 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2047echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002048else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002049 { echo "$as_me:$LINENO: result: no" >&5
2050echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002051fi
2052
Reid Spencera773bd52006-08-04 18:18:08 +00002053
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002054 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002055done
John Criswell7a73b802003-06-30 21:59:07 +00002056
Reid Spencera773bd52006-08-04 18:18:08 +00002057 if test "x$ac_ct_CC" = x; then
2058 CC=""
2059 else
2060 case $cross_compiling:$ac_tool_warned in
2061yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002062{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2063whose name does not start with the host triplet. If you think this
2064configuration is useful to you, please write to autoconf@gnu.org." >&5
2065echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2066whose name does not start with the host triplet. If you think this
2067configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002068ac_tool_warned=yes ;;
2069esac
2070 CC=$ac_ct_CC
2071 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002072fi
2073
John Criswell7a73b802003-06-30 21:59:07 +00002074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002075test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2076See \`config.log' for more details." >&5
2077echo "$as_me: error: no acceptable C compiler found in \$PATH
2078See \`config.log' for more details." >&2;}
2079 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002080
John Criswell7a73b802003-06-30 21:59:07 +00002081# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002082echo "$as_me:$LINENO: checking for C compiler version" >&5
2083ac_compiler=`set X $ac_compile; echo $2`
2084{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002085case "(($ac_try" in
2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087 *) ac_try_echo=$ac_try;;
2088esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2090 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002091 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }
2094{ (ac_try="$ac_compiler -v >&5"
2095case "(($ac_try" in
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2098esac
2099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2100 (eval "$ac_compiler -v >&5") 2>&5
2101 ac_status=$?
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }
2104{ (ac_try="$ac_compiler -V >&5"
2105case "(($ac_try" in
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2108esac
2109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2110 (eval "$ac_compiler -V >&5") 2>&5
2111 ac_status=$?
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002115cat >conftest.$ac_ext <<_ACEOF
2116/* confdefs.h. */
2117_ACEOF
2118cat confdefs.h >>conftest.$ac_ext
2119cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002120/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002121
John Criswell7a73b802003-06-30 21:59:07 +00002122int
2123main ()
2124{
2125
2126 ;
2127 return 0;
2128}
2129_ACEOF
2130ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002131ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002132# Try to create an executable without -o first, disregard a.out.
2133# It will help us diagnose broken compilers, and finding out an intuition
2134# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002135{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2136echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2137ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2138#
2139# List of possible output files, starting from the most likely.
2140# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2141# only as a last resort. b.out is created by i960 compilers.
2142ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2143#
2144# The IRIX 6 linker writes into existing files which may not be
2145# executable, retaining their permissions. Remove them first so a
2146# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002147ac_rmfiles=
2148for ac_file in $ac_files
2149do
2150 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002152 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2153 esac
2154done
2155rm -f $ac_rmfiles
2156
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002157if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002158case "(($ac_try" in
2159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160 *) ac_try_echo=$ac_try;;
2161esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002163 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002164 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002167 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2168# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2169# in a Makefile. We should not override ac_cv_exeext if it was cached,
2170# so that the user can short-circuit this test for compilers unknown to
2171# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002172for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002173do
2174 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002175 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002177 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002178 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002179 # We found the default executable, but exeext='' is most
2180 # certainly right.
2181 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002182 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002183 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002184 then :; else
2185 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186 fi
2187 # We set ac_cv_exeext here because the later test for it is not
2188 # safe: cross compilers may not add the suffix if given an `-o'
2189 # argument, so we may need to know it at that point already.
2190 # Even if this section looks crufty: it has the advantage of
2191 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002192 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002193 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002194 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002195 esac
2196done
Reid Spencera773bd52006-08-04 18:18:08 +00002197test "$ac_cv_exeext" = no && ac_cv_exeext=
2198
John Criswell7a73b802003-06-30 21:59:07 +00002199else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002200 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002201sed 's/^/| /' conftest.$ac_ext >&5
2202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002203{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2204See \`config.log' for more details." >&5
2205echo "$as_me: error: C compiler cannot create executables
2206See \`config.log' for more details." >&2;}
2207 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002208fi
John Criswell7a73b802003-06-30 21:59:07 +00002209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002210ac_exeext=$ac_cv_exeext
2211{ echo "$as_me:$LINENO: result: $ac_file" >&5
2212echo "${ECHO_T}$ac_file" >&6; }
2213
2214# Check that the compiler produces executables we can run. If not, either
2215# the compiler is broken, or we cross compile.
2216{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2217echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2218# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2219# If not cross compiling, check that we can run a simple program.
2220if test "$cross_compiling" != yes; then
2221 if { ac_try='./$ac_file'
2222 { (case "(($ac_try" in
2223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2224 *) ac_try_echo=$ac_try;;
2225esac
2226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2227 (eval "$ac_try") 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; }; then
2231 cross_compiling=no
2232 else
2233 if test "$cross_compiling" = maybe; then
2234 cross_compiling=yes
2235 else
2236 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2237If you meant to cross compile, use \`--host'.
2238See \`config.log' for more details." >&5
2239echo "$as_me: error: cannot run C compiled programs.
2240If you meant to cross compile, use \`--host'.
2241See \`config.log' for more details." >&2;}
2242 { (exit 1); exit 1; }; }
2243 fi
2244 fi
2245fi
2246{ echo "$as_me:$LINENO: result: yes" >&5
2247echo "${ECHO_T}yes" >&6; }
2248
2249rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002250ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002251# Check that the compiler produces executables we can run. If not, either
2252# the compiler is broken, or we cross compile.
2253{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2254echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2255{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2256echo "${ECHO_T}$cross_compiling" >&6; }
2257
2258{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2259echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2260if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002261case "(($ac_try" in
2262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2263 *) ac_try_echo=$ac_try;;
2264esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002266 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002267 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002270 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2271# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2272# work properly (i.e., refer to `conftest.exe'), while it won't with
2273# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002274for ac_file in conftest.exe conftest conftest.*; do
2275 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002276 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002278 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002279 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002280 * ) break;;
2281 esac
2282done
2283else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002284 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2285See \`config.log' for more details." >&5
2286echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2287See \`config.log' for more details." >&2;}
2288 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002289fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002290
2291rm -f conftest$ac_cv_exeext
2292{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2293echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002294
2295rm -f conftest.$ac_ext
2296EXEEXT=$ac_cv_exeext
2297ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002298{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2299echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2300if test "${ac_cv_objext+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002302else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002303 cat >conftest.$ac_ext <<_ACEOF
2304/* confdefs.h. */
2305_ACEOF
2306cat confdefs.h >>conftest.$ac_ext
2307cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002308/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002309
John Criswell7a73b802003-06-30 21:59:07 +00002310int
2311main ()
2312{
2313
2314 ;
2315 return 0;
2316}
2317_ACEOF
2318rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002319if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002320case "(($ac_try" in
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2323esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002325 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002326 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002329 for ac_file in conftest.o conftest.obj conftest.*; do
2330 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002331 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002333 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2334 break;;
2335 esac
2336done
2337else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002338 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002339sed 's/^/| /' conftest.$ac_ext >&5
2340
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002341{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2342See \`config.log' for more details." >&5
2343echo "$as_me: error: cannot compute suffix of object files: cannot compile
2344See \`config.log' for more details." >&2;}
2345 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002346fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002347
John Criswell7a73b802003-06-30 21:59:07 +00002348rm -f conftest.$ac_cv_objext conftest.$ac_ext
2349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002350{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2351echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002352OBJEXT=$ac_cv_objext
2353ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002354{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2355echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2356if test "${ac_cv_c_compiler_gnu+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002358else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002359 cat >conftest.$ac_ext <<_ACEOF
2360/* confdefs.h. */
2361_ACEOF
2362cat confdefs.h >>conftest.$ac_ext
2363cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002364/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002365
John Criswell7a73b802003-06-30 21:59:07 +00002366int
2367main ()
2368{
2369#ifndef __GNUC__
2370 choke me
2371#endif
2372
2373 ;
2374 return 0;
2375}
2376_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002377rm -f conftest.$ac_objext
2378if { (ac_try="$ac_compile"
2379case "(($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_compile") 2>conftest.er1
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2392 { (case "(($ac_try" in
2393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394 *) ac_try_echo=$ac_try;;
2395esac
2396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2397 (eval "$ac_try") 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
2402 { (case "(($ac_try" in
2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404 *) ac_try_echo=$ac_try;;
2405esac
2406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2407 (eval "$ac_try") 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002411 ac_compiler_gnu=yes
2412else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002413 echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002417fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002418
Reid Spencera773bd52006-08-04 18:18:08 +00002419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002421
2422fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002423{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2424echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2425GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426ac_test_CFLAGS=${CFLAGS+set}
2427ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002428{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2430if test "${ac_cv_prog_cc_g+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002432else
Reid Spencera773bd52006-08-04 18:18:08 +00002433 ac_save_c_werror_flag=$ac_c_werror_flag
2434 ac_c_werror_flag=yes
2435 ac_cv_prog_cc_g=no
2436 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002437 cat >conftest.$ac_ext <<_ACEOF
2438/* confdefs.h. */
2439_ACEOF
2440cat confdefs.h >>conftest.$ac_ext
2441cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002442/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002443
John Criswell7a73b802003-06-30 21:59:07 +00002444int
2445main ()
2446{
2447
2448 ;
2449 return 0;
2450}
2451_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002452rm -f conftest.$ac_objext
2453if { (ac_try="$ac_compile"
2454case "(($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_compile") 2>conftest.er1
2460 ac_status=$?
2461 grep -v '^ *+' conftest.er1 >conftest.err
2462 rm -f conftest.er1
2463 cat conftest.err >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } &&
2466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2467 { (case "(($ac_try" in
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2470esac
2471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2472 (eval "$ac_try") 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; } &&
2476 { ac_try='test -s conftest.$ac_objext'
2477 { (case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480esac
2481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482 (eval "$ac_try") 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002486 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002487else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002488 echo "$as_me: failed program was:" >&5
2489sed 's/^/| /' conftest.$ac_ext >&5
2490
2491 CFLAGS=""
2492 cat >conftest.$ac_ext <<_ACEOF
2493/* confdefs.h. */
2494_ACEOF
2495cat confdefs.h >>conftest.$ac_ext
2496cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002497/* end confdefs.h. */
2498
2499int
2500main ()
2501{
2502
2503 ;
2504 return 0;
2505}
2506_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002507rm -f conftest.$ac_objext
2508if { (ac_try="$ac_compile"
2509case "(($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_compile") 2>conftest.er1
2515 ac_status=$?
2516 grep -v '^ *+' conftest.er1 >conftest.err
2517 rm -f conftest.er1
2518 cat conftest.err >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } &&
2521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2522 { (case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525esac
2526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_try") 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535esac
2536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_try") 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2541 :
Torok Edwin871384f2010-01-26 08:50:50 +00002542else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002543 echo "$as_me: failed program was:" >&5
2544sed 's/^/| /' conftest.$ac_ext >&5
2545
2546 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002547 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002548 cat >conftest.$ac_ext <<_ACEOF
2549/* confdefs.h. */
2550_ACEOF
2551cat confdefs.h >>conftest.$ac_ext
2552cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002553/* end confdefs.h. */
2554
2555int
2556main ()
2557{
2558
2559 ;
2560 return 0;
2561}
2562_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002563rm -f conftest.$ac_objext
2564if { (ac_try="$ac_compile"
2565case "(($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_compile") 2>conftest.er1
2571 ac_status=$?
2572 grep -v '^ *+' conftest.er1 >conftest.err
2573 rm -f conftest.er1
2574 cat conftest.err >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
2577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2578 { (case "(($ac_try" in
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2581esac
2582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583 (eval "$ac_try") 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; } &&
2587 { ac_try='test -s conftest.$ac_objext'
2588 { (case "(($ac_try" in
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2591esac
2592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_try") 2>&5
2594 ac_status=$?
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002597 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002598else
2599 echo "$as_me: failed program was:" >&5
2600sed 's/^/| /' conftest.$ac_ext >&5
2601
2602
John Criswell7a73b802003-06-30 21:59:07 +00002603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002604
Reid Spencera773bd52006-08-04 18:18:08 +00002605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002606fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002607
Reid Spencera773bd52006-08-04 18:18:08 +00002608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002610
Reid Spencera773bd52006-08-04 18:18:08 +00002611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 ac_c_werror_flag=$ac_save_c_werror_flag
2613fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002614{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2615echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616if test "$ac_test_CFLAGS" = set; then
2617 CFLAGS=$ac_save_CFLAGS
2618elif test $ac_cv_prog_cc_g = yes; then
2619 if test "$GCC" = yes; then
2620 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002621 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002623 fi
2624else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625 if test "$GCC" = yes; then
2626 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002627 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002629 fi
2630fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002631{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2632echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2633if test "${ac_cv_prog_cc_c89+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002635else
Reid Spencera773bd52006-08-04 18:18:08 +00002636 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002638cat >conftest.$ac_ext <<_ACEOF
2639/* confdefs.h. */
2640_ACEOF
2641cat confdefs.h >>conftest.$ac_ext
2642cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002643/* end confdefs.h. */
2644#include <stdarg.h>
2645#include <stdio.h>
2646#include <sys/types.h>
2647#include <sys/stat.h>
2648/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2649struct buf { int x; };
2650FILE * (*rcsopen) (struct buf *, struct stat *, int);
2651static char *e (p, i)
2652 char **p;
2653 int i;
2654{
2655 return p[i];
2656}
2657static char *f (char * (*g) (char **, int), char **p, ...)
2658{
2659 char *s;
2660 va_list v;
2661 va_start (v,p);
2662 s = g (p, va_arg (v,int));
2663 va_end (v);
2664 return s;
2665}
2666
2667/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2668 function prototypes and stuff, but not '\xHH' hex character constants.
2669 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002670 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002671 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2672 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002673 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002674int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2675
Reid Spencera773bd52006-08-04 18:18:08 +00002676/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2677 inside strings and character constants. */
2678#define FOO(x) 'x'
2679int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2680
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002681int test (int i, double x);
2682struct s1 {int (*f) (int a);};
2683struct s2 {int (*f) (double a);};
2684int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2685int argc;
2686char **argv;
2687int
2688main ()
2689{
2690return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2691 ;
2692 return 0;
2693}
2694_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002695for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2696 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002697do
2698 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002699 rm -f conftest.$ac_objext
2700if { (ac_try="$ac_compile"
2701case "(($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_compile") 2>conftest.er1
2707 ac_status=$?
2708 grep -v '^ *+' conftest.er1 >conftest.err
2709 rm -f conftest.er1
2710 cat conftest.err >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } &&
2713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2714 { (case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2717esac
2718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_try") 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; } &&
2723 { ac_try='test -s conftest.$ac_objext'
2724 { (case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727esac
2728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_try") 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002733 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002734else
2735 echo "$as_me: failed program was:" >&5
2736sed 's/^/| /' conftest.$ac_ext >&5
2737
2738
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002739fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740
Reid Spencera773bd52006-08-04 18:18:08 +00002741rm -f core conftest.err conftest.$ac_objext
2742 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002743done
Reid Spencera773bd52006-08-04 18:18:08 +00002744rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002745CC=$ac_save_CC
2746
2747fi
Reid Spencera773bd52006-08-04 18:18:08 +00002748# AC_CACHE_VAL
2749case "x$ac_cv_prog_cc_c89" in
2750 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002751 { echo "$as_me:$LINENO: result: none needed" >&5
2752echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002753 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002754 { echo "$as_me:$LINENO: result: unsupported" >&5
2755echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002756 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002757 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002758 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2759echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002760esac
2761
John Criswell0c38eaf2003-09-10 15:17:25 +00002762
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002763ac_ext=c
2764ac_cpp='$CPP $CPPFLAGS'
2765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768
Eric Christopherffee5722011-09-16 20:36:25 +00002769ac_ext=cpp
2770ac_cpp='$CXXCPP $CPPFLAGS'
2771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2774if test -z "$CXX"; then
2775 if test -n "$CCC"; then
2776 CXX=$CCC
2777 else
2778 if test -n "$ac_tool_prefix"; then
2779 for ac_prog in clang++ llvm-g++ g++
2780 do
2781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2782set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2785if test "${ac_cv_prog_CXX+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787else
2788 if test -n "$CXX"; then
2789 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2790else
2791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792for as_dir in $PATH
2793do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2801 fi
2802done
2803done
2804IFS=$as_save_IFS
2805
2806fi
2807fi
2808CXX=$ac_cv_prog_CXX
2809if test -n "$CXX"; then
2810 { echo "$as_me:$LINENO: result: $CXX" >&5
2811echo "${ECHO_T}$CXX" >&6; }
2812else
2813 { echo "$as_me:$LINENO: result: no" >&5
2814echo "${ECHO_T}no" >&6; }
2815fi
2816
2817
2818 test -n "$CXX" && break
2819 done
2820fi
2821if test -z "$CXX"; then
2822 ac_ct_CXX=$CXX
2823 for ac_prog in clang++ llvm-g++ g++
2824do
2825 # Extract the first word of "$ac_prog", so it can be a program name with args.
2826set dummy $ac_prog; ac_word=$2
2827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2829if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831else
2832 if test -n "$ac_ct_CXX"; then
2833 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2834else
2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836for as_dir in $PATH
2837do
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2842 ac_cv_prog_ac_ct_CXX="$ac_prog"
2843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2845 fi
2846done
2847done
2848IFS=$as_save_IFS
2849
2850fi
2851fi
2852ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2853if test -n "$ac_ct_CXX"; then
2854 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2855echo "${ECHO_T}$ac_ct_CXX" >&6; }
2856else
2857 { echo "$as_me:$LINENO: result: no" >&5
2858echo "${ECHO_T}no" >&6; }
2859fi
2860
2861
2862 test -n "$ac_ct_CXX" && break
2863done
2864
2865 if test "x$ac_ct_CXX" = x; then
2866 CXX="g++"
2867 else
2868 case $cross_compiling:$ac_tool_warned in
2869yes:)
2870{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2871whose name does not start with the host triplet. If you think this
2872configuration is useful to you, please write to autoconf@gnu.org." >&5
2873echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2874whose name does not start with the host triplet. If you think this
2875configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2876ac_tool_warned=yes ;;
2877esac
2878 CXX=$ac_ct_CXX
2879 fi
2880fi
2881
2882 fi
2883fi
2884# Provide some information about the compiler.
2885echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2886ac_compiler=`set X $ac_compile; echo $2`
2887{ (ac_try="$ac_compiler --version >&5"
2888case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compiler --version >&5") 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }
2897{ (ac_try="$ac_compiler -v >&5"
2898case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901esac
2902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_compiler -v >&5") 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }
2907{ (ac_try="$ac_compiler -V >&5"
2908case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911esac
2912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_compiler -V >&5") 2>&5
2914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }
2917
2918{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2919echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2920if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922else
2923 cat >conftest.$ac_ext <<_ACEOF
2924/* confdefs.h. */
2925_ACEOF
2926cat confdefs.h >>conftest.$ac_ext
2927cat >>conftest.$ac_ext <<_ACEOF
2928/* end confdefs.h. */
2929
2930int
2931main ()
2932{
2933#ifndef __GNUC__
2934 choke me
2935#endif
2936
2937 ;
2938 return 0;
2939}
2940_ACEOF
2941rm -f conftest.$ac_objext
2942if { (ac_try="$ac_compile"
2943case "(($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_compile") 2>conftest.er1
2949 ac_status=$?
2950 grep -v '^ *+' conftest.er1 >conftest.err
2951 rm -f conftest.er1
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } &&
2955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2956 { (case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959esac
2960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961 (eval "$ac_try") 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969esac
2970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_try") 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2975 ac_compiler_gnu=yes
2976else
2977 echo "$as_me: failed program was:" >&5
2978sed 's/^/| /' conftest.$ac_ext >&5
2979
2980 ac_compiler_gnu=no
2981fi
2982
2983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2985
2986fi
2987{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2988echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2989GXX=`test $ac_compiler_gnu = yes && echo yes`
2990ac_test_CXXFLAGS=${CXXFLAGS+set}
2991ac_save_CXXFLAGS=$CXXFLAGS
2992{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2993echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2994if test "${ac_cv_prog_cxx_g+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996else
2997 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2998 ac_cxx_werror_flag=yes
2999 ac_cv_prog_cxx_g=no
3000 CXXFLAGS="-g"
3001 cat >conftest.$ac_ext <<_ACEOF
3002/* confdefs.h. */
3003_ACEOF
3004cat confdefs.h >>conftest.$ac_ext
3005cat >>conftest.$ac_ext <<_ACEOF
3006/* end confdefs.h. */
3007
3008int
3009main ()
3010{
3011
3012 ;
3013 return 0;
3014}
3015_ACEOF
3016rm -f conftest.$ac_objext
3017if { (ac_try="$ac_compile"
3018case "(($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_compile") 2>conftest.er1
3024 ac_status=$?
3025 grep -v '^ *+' conftest.er1 >conftest.err
3026 rm -f conftest.er1
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } &&
3030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3031 { (case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_try") 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; } &&
3040 { ac_try='test -s conftest.$ac_objext'
3041 { (case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044esac
3045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_try") 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3050 ac_cv_prog_cxx_g=yes
3051else
3052 echo "$as_me: failed program was:" >&5
3053sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 CXXFLAGS=""
3056 cat >conftest.$ac_ext <<_ACEOF
3057/* confdefs.h. */
3058_ACEOF
3059cat confdefs.h >>conftest.$ac_ext
3060cat >>conftest.$ac_ext <<_ACEOF
3061/* end confdefs.h. */
3062
3063int
3064main ()
3065{
3066
3067 ;
3068 return 0;
3069}
3070_ACEOF
3071rm -f conftest.$ac_objext
3072if { (ac_try="$ac_compile"
3073case "(($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_compile") 2>conftest.er1
3079 ac_status=$?
3080 grep -v '^ *+' conftest.er1 >conftest.err
3081 rm -f conftest.er1
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } &&
3085 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3086 { (case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089esac
3090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_try") 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; } &&
3095 { ac_try='test -s conftest.$ac_objext'
3096 { (case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099esac
3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_try") 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3105 :
3106else
3107 echo "$as_me: failed program was:" >&5
3108sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3111 CXXFLAGS="-g"
3112 cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118
3119int
3120main ()
3121{
3122
3123 ;
3124 return 0;
3125}
3126_ACEOF
3127rm -f conftest.$ac_objext
3128if { (ac_try="$ac_compile"
3129case "(($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_compile") 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145esac
3146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; } &&
3151 { ac_try='test -s conftest.$ac_objext'
3152 { (case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_try") 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 ac_cv_prog_cxx_g=yes
3162else
3163 echo "$as_me: failed program was:" >&5
3164sed 's/^/| /' conftest.$ac_ext >&5
3165
3166
3167fi
3168
3169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170fi
3171
3172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173fi
3174
3175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3177fi
3178{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3179echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3180if test "$ac_test_CXXFLAGS" = set; then
3181 CXXFLAGS=$ac_save_CXXFLAGS
3182elif test $ac_cv_prog_cxx_g = yes; then
3183 if test "$GXX" = yes; then
3184 CXXFLAGS="-g -O2"
3185 else
3186 CXXFLAGS="-g"
3187 fi
3188else
3189 if test "$GXX" = yes; then
3190 CXXFLAGS="-O2"
3191 else
3192 CXXFLAGS=
3193 fi
3194fi
3195ac_ext=c
3196ac_cpp='$CPP $CPPFLAGS'
3197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003200
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003201ac_ext=c
3202ac_cpp='$CPP $CPPFLAGS'
3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003206{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3207echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003208# On Suns, sometimes $CPP names a directory.
3209if test -n "$CPP" && test -d "$CPP"; then
3210 CPP=
3211fi
3212if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003213 if test "${ac_cv_prog_CPP+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003215else
3216 # Double quotes because CPP needs to be expanded
3217 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3218 do
3219 ac_preproc_ok=false
3220for ac_c_preproc_warn_flag in '' yes
3221do
3222 # Use a header file that comes with gcc, so configuring glibc
3223 # with a fresh cross-compiler works.
3224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3225 # <limits.h> exists even on freestanding compilers.
3226 # On the NeXT, cc -E runs the code through the compiler's parser,
3227 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003228 cat >conftest.$ac_ext <<_ACEOF
3229/* confdefs.h. */
3230_ACEOF
3231cat confdefs.h >>conftest.$ac_ext
3232cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003233/* end confdefs.h. */
3234#ifdef __STDC__
3235# include <limits.h>
3236#else
3237# include <assert.h>
3238#endif
3239 Syntax error
3240_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003241if { (ac_try="$ac_cpp conftest.$ac_ext"
3242case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245esac
3246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3248 ac_status=$?
3249 grep -v '^ *+' conftest.er1 >conftest.err
3250 rm -f conftest.er1
3251 cat conftest.err >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } >/dev/null; then
3254 if test -s conftest.err; then
3255 ac_cpp_err=$ac_c_preproc_warn_flag
3256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3257 else
3258 ac_cpp_err=
3259 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003260else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003261 ac_cpp_err=yes
3262fi
3263if test -z "$ac_cpp_err"; then
3264 :
3265else
3266 echo "$as_me: failed program was:" >&5
3267sed 's/^/| /' conftest.$ac_ext >&5
3268
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003269 # Broken: fails on valid input.
3270continue
3271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003272
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003273rm -f conftest.err conftest.$ac_ext
3274
Reid Spencera773bd52006-08-04 18:18:08 +00003275 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003276 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003277 cat >conftest.$ac_ext <<_ACEOF
3278/* confdefs.h. */
3279_ACEOF
3280cat confdefs.h >>conftest.$ac_ext
3281cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003282/* end confdefs.h. */
3283#include <ac_nonexistent.h>
3284_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003285if { (ac_try="$ac_cpp conftest.$ac_ext"
3286case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289esac
3290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3292 ac_status=$?
3293 grep -v '^ *+' conftest.er1 >conftest.err
3294 rm -f conftest.er1
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } >/dev/null; then
3298 if test -s conftest.err; then
3299 ac_cpp_err=$ac_c_preproc_warn_flag
3300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3301 else
3302 ac_cpp_err=
3303 fi
3304else
3305 ac_cpp_err=yes
3306fi
3307if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308 # Broken: success on invalid input.
3309continue
3310else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003311 echo "$as_me: failed program was:" >&5
3312sed 's/^/| /' conftest.$ac_ext >&5
3313
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314 # Passes both tests.
3315ac_preproc_ok=:
3316break
3317fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003318
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319rm -f conftest.err conftest.$ac_ext
3320
3321done
3322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3323rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003324if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003325 break
3326fi
3327
3328 done
3329 ac_cv_prog_CPP=$CPP
3330
3331fi
3332 CPP=$ac_cv_prog_CPP
3333else
3334 ac_cv_prog_CPP=$CPP
3335fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003336{ echo "$as_me:$LINENO: result: $CPP" >&5
3337echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003338ac_preproc_ok=false
3339for ac_c_preproc_warn_flag in '' yes
3340do
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003347 cat >conftest.$ac_ext <<_ACEOF
3348/* confdefs.h. */
3349_ACEOF
3350cat confdefs.h >>conftest.$ac_ext
3351cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003352/* end confdefs.h. */
3353#ifdef __STDC__
3354# include <limits.h>
3355#else
3356# include <assert.h>
3357#endif
3358 Syntax error
3359_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003360if { (ac_try="$ac_cpp conftest.$ac_ext"
3361case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364esac
3365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3367 ac_status=$?
3368 grep -v '^ *+' conftest.er1 >conftest.err
3369 rm -f conftest.er1
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } >/dev/null; then
3373 if test -s conftest.err; then
3374 ac_cpp_err=$ac_c_preproc_warn_flag
3375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3376 else
3377 ac_cpp_err=
3378 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003379else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003380 ac_cpp_err=yes
3381fi
3382if test -z "$ac_cpp_err"; then
3383 :
3384else
3385 echo "$as_me: failed program was:" >&5
3386sed 's/^/| /' conftest.$ac_ext >&5
3387
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003388 # Broken: fails on valid input.
3389continue
3390fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003391
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392rm -f conftest.err conftest.$ac_ext
3393
Reid Spencera773bd52006-08-04 18:18:08 +00003394 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003395 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003396 cat >conftest.$ac_ext <<_ACEOF
3397/* confdefs.h. */
3398_ACEOF
3399cat confdefs.h >>conftest.$ac_ext
3400cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401/* end confdefs.h. */
3402#include <ac_nonexistent.h>
3403_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003404if { (ac_try="$ac_cpp conftest.$ac_ext"
3405case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408esac
3409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3411 ac_status=$?
3412 grep -v '^ *+' conftest.er1 >conftest.err
3413 rm -f conftest.er1
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } >/dev/null; then
3417 if test -s conftest.err; then
3418 ac_cpp_err=$ac_c_preproc_warn_flag
3419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3420 else
3421 ac_cpp_err=
3422 fi
3423else
3424 ac_cpp_err=yes
3425fi
3426if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003427 # Broken: success on invalid input.
3428continue
3429else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003430 echo "$as_me: failed program was:" >&5
3431sed 's/^/| /' conftest.$ac_ext >&5
3432
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003433 # Passes both tests.
3434ac_preproc_ok=:
3435break
3436fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003437
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003438rm -f conftest.err conftest.$ac_ext
3439
3440done
3441# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3442rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003443if $ac_preproc_ok; then
3444 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003446 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3447See \`config.log' for more details." >&5
3448echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3449See \`config.log' for more details." >&2;}
3450 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003451fi
3452
John Criswell7a73b802003-06-30 21:59:07 +00003453ac_ext=c
3454ac_cpp='$CPP $CPPFLAGS'
3455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458
John Criswell7a73b802003-06-30 21:59:07 +00003459
Eric Christopherffee5722011-09-16 20:36:25 +00003460
3461
3462if test -d ${srcdir}/projects/llvm-gcc ; then
3463 subdirs="$subdirs projects/llvm-gcc"
3464
3465fi
3466
3467if test -d ${srcdir}/projects/test-suite ; then
3468 subdirs="$subdirs projects/test-suite"
3469
3470fi
3471
3472if test -d ${srcdir}/projects/llvm-test ; then
3473 subdirs="$subdirs projects/llvm-test"
3474
3475fi
3476
3477if test -d ${srcdir}/projects/poolalloc ; then
3478 subdirs="$subdirs projects/poolalloc"
3479
3480fi
3481
3482if test -d ${srcdir}/projects/llvm-poolalloc ; then
3483 subdirs="$subdirs projects/llvm-poolalloc"
3484
3485fi
3486
3487for i in `ls ${srcdir}/projects`
3488do
3489 if test -d ${srcdir}/projects/${i} ; then
3490 case ${i} in
3491 sample) subdirs="$subdirs projects/sample"
3492 ;;
3493 privbracket) subdirs="$subdirs projects/privbracket"
3494 ;;
3495 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3496 ;;
3497 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3498;;
3499 llvm-java) subdirs="$subdirs projects/llvm-java"
3500 ;;
3501 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3502 ;;
3503 safecode) subdirs="$subdirs projects/safecode"
3504 ;;
3505 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3506 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003507 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003508 llvm-gcc) ;;
3509 test-suite) ;;
3510 llvm-test) ;;
3511 poolalloc) ;;
3512 llvm-poolalloc) ;;
3513 *)
3514 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3515echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3516 ;;
3517 esac
3518 fi
3519done
3520
3521# Check whether --enable-polly was given.
3522if test "${enable_polly+set}" = set; then
3523 enableval=$enable_polly;
3524else
3525 enableval=default
3526fi
3527
3528case "$enableval" in
3529 yes) ENABLE_POLLY=1
3530 ;;
3531 no) ENABLE_POLLY=0
3532 ;;
3533 default) ENABLE_POLLY=1
3534 ;;
3535 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3536echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3537 { (exit 1); exit 1; }; } ;;
3538esac
3539
3540
3541if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3542 LLVM_HAS_POLLY=1
3543
3544 subdirs="$subdirs tools/polly"
3545
3546fi
3547
3548
3549# Make sure we can run config.sub.
3550$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3551 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3552echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3553 { (exit 1); exit 1; }; }
3554
3555{ echo "$as_me:$LINENO: checking build system type" >&5
3556echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3557if test "${ac_cv_build+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559else
3560 ac_build_alias=$build_alias
3561test "x$ac_build_alias" = x &&
3562 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3563test "x$ac_build_alias" = x &&
3564 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3565echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3566 { (exit 1); exit 1; }; }
3567ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3568 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3569echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3570 { (exit 1); exit 1; }; }
3571
3572fi
3573{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3574echo "${ECHO_T}$ac_cv_build" >&6; }
3575case $ac_cv_build in
3576*-*-*) ;;
3577*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3578echo "$as_me: error: invalid value of canonical build" >&2;}
3579 { (exit 1); exit 1; }; };;
3580esac
3581build=$ac_cv_build
3582ac_save_IFS=$IFS; IFS='-'
3583set x $ac_cv_build
3584shift
3585build_cpu=$1
3586build_vendor=$2
3587shift; shift
3588# Remember, the first character of IFS is used to create $*,
3589# except with old shells:
3590build_os=$*
3591IFS=$ac_save_IFS
3592case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3593
3594
3595{ echo "$as_me:$LINENO: checking host system type" >&5
3596echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3597if test "${ac_cv_host+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3599else
3600 if test "x$host_alias" = x; then
3601 ac_cv_host=$ac_cv_build
3602else
3603 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3604 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3605echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3606 { (exit 1); exit 1; }; }
3607fi
3608
3609fi
3610{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3611echo "${ECHO_T}$ac_cv_host" >&6; }
3612case $ac_cv_host in
3613*-*-*) ;;
3614*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3615echo "$as_me: error: invalid value of canonical host" >&2;}
3616 { (exit 1); exit 1; }; };;
3617esac
3618host=$ac_cv_host
3619ac_save_IFS=$IFS; IFS='-'
3620set x $ac_cv_host
3621shift
3622host_cpu=$1
3623host_vendor=$2
3624shift; shift
3625# Remember, the first character of IFS is used to create $*,
3626# except with old shells:
3627host_os=$*
3628IFS=$ac_save_IFS
3629case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3630
3631
3632{ echo "$as_me:$LINENO: checking target system type" >&5
3633echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3634if test "${ac_cv_target+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3636else
3637 if test "x$target_alias" = x; then
3638 ac_cv_target=$ac_cv_host
3639else
3640 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3641 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3642echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3643 { (exit 1); exit 1; }; }
3644fi
3645
3646fi
3647{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3648echo "${ECHO_T}$ac_cv_target" >&6; }
3649case $ac_cv_target in
3650*-*-*) ;;
3651*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3652echo "$as_me: error: invalid value of canonical target" >&2;}
3653 { (exit 1); exit 1; }; };;
3654esac
3655target=$ac_cv_target
3656ac_save_IFS=$IFS; IFS='-'
3657set x $ac_cv_target
3658shift
3659target_cpu=$1
3660target_vendor=$2
3661shift; shift
3662# Remember, the first character of IFS is used to create $*,
3663# except with old shells:
3664target_os=$*
3665IFS=$ac_save_IFS
3666case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3667
3668
3669# The aliases save the names the user supplied, while $host etc.
3670# will get canonicalized.
3671test -n "$target_alias" &&
3672 test "$program_prefix$program_suffix$program_transform_name" = \
3673 NONENONEs,x,x, &&
3674 program_prefix=${target_alias}-
3675
3676{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3677echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3678if test "${llvm_cv_os_type+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680else
3681 case $host in
3682 *-*-aix*)
3683 llvm_cv_link_all_option="-Wl,--whole-archive"
3684 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685 llvm_cv_os_type="AIX"
3686 llvm_cv_platform_type="Unix" ;;
3687 *-*-irix*)
3688 llvm_cv_link_all_option="-Wl,--whole-archive"
3689 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690 llvm_cv_os_type="IRIX"
3691 llvm_cv_platform_type="Unix" ;;
3692 *-*-cygwin*)
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="Cygwin"
3696 llvm_cv_platform_type="Unix" ;;
3697 *-*-darwin*)
3698 llvm_cv_link_all_option="-Wl,-all_load"
3699 llvm_cv_no_link_all_option="-Wl,-noall_load"
3700 llvm_cv_os_type="Darwin"
3701 llvm_cv_platform_type="Unix" ;;
3702 *-*-minix*)
3703 llvm_cv_link_all_option="-Wl,-all_load"
3704 llvm_cv_no_link_all_option="-Wl,-noall_load"
3705 llvm_cv_os_type="Minix"
3706 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003707 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="FreeBSD"
3711 llvm_cv_platform_type="Unix" ;;
3712 *-*-openbsd*)
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="OpenBSD"
3716 llvm_cv_platform_type="Unix" ;;
3717 *-*-netbsd*)
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="NetBSD"
3721 llvm_cv_platform_type="Unix" ;;
3722 *-*-dragonfly*)
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="DragonFly"
3726 llvm_cv_platform_type="Unix" ;;
3727 *-*-hpux*)
3728 llvm_cv_link_all_option="-Wl,--whole-archive"
3729 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730 llvm_cv_os_type="HP-UX"
3731 llvm_cv_platform_type="Unix" ;;
3732 *-*-interix*)
3733 llvm_cv_link_all_option="-Wl,--whole-archive"
3734 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735 llvm_cv_os_type="Interix"
3736 llvm_cv_platform_type="Unix" ;;
3737 *-*-linux*)
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="Linux"
3741 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003742 *-*-gnu*)
3743 llvm_cv_link_all_option="-Wl,--whole-archive"
3744 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745 llvm_cv_os_type="GNU"
3746 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003747 *-*-solaris*)
3748 llvm_cv_link_all_option="-Wl,-z,allextract"
3749 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3750 llvm_cv_os_type="SunOS"
3751 llvm_cv_platform_type="Unix" ;;
3752 *-*-auroraux*)
3753 llvm_cv_link_all_option="-Wl,-z,allextract"
3754 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3755 llvm_cv_os_type="AuroraUX"
3756 llvm_cv_platform_type="Unix" ;;
3757 *-*-win32*)
3758 llvm_cv_link_all_option="-Wl,--whole-archive"
3759 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760 llvm_cv_os_type="Win32"
3761 llvm_cv_platform_type="Win32" ;;
3762 *-*-mingw*)
3763 llvm_cv_link_all_option="-Wl,--whole-archive"
3764 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765 llvm_cv_os_type="MingW"
3766 llvm_cv_platform_type="Win32" ;;
3767 *-*-haiku*)
3768 llvm_cv_link_all_option="-Wl,--whole-archive"
3769 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770 llvm_cv_os_type="Haiku"
3771 llvm_cv_platform_type="Unix" ;;
3772 *-unknown-eabi*)
3773 llvm_cv_link_all_option="-Wl,--whole-archive"
3774 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775 llvm_cv_os_type="Freestanding"
3776 llvm_cv_platform_type="Unix" ;;
3777 *-unknown-elf*)
3778 llvm_cv_link_all_option="-Wl,--whole-archive"
3779 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3780 llvm_cv_os_type="Freestanding"
3781 llvm_cv_platform_type="Unix" ;;
3782 *)
3783 llvm_cv_link_all_option=""
3784 llvm_cv_no_link_all_option=""
3785 llvm_cv_os_type="Unknown"
3786 llvm_cv_platform_type="Unknown" ;;
3787esac
3788fi
3789{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3790echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3791
3792{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3793echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3794if test "${llvm_cv_target_os_type+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797 case $target in
3798 *-*-aix*)
3799 llvm_cv_target_os_type="AIX" ;;
3800 *-*-irix*)
3801 llvm_cv_target_os_type="IRIX" ;;
3802 *-*-cygwin*)
3803 llvm_cv_target_os_type="Cygwin" ;;
3804 *-*-darwin*)
3805 llvm_cv_target_os_type="Darwin" ;;
3806 *-*-minix*)
3807 llvm_cv_target_os_type="Minix" ;;
3808 *-*-freebsd*)
3809 llvm_cv_target_os_type="FreeBSD" ;;
3810 *-*-openbsd*)
3811 llvm_cv_target_os_type="OpenBSD" ;;
3812 *-*-netbsd*)
3813 llvm_cv_target_os_type="NetBSD" ;;
3814 *-*-dragonfly*)
3815 llvm_cv_target_os_type="DragonFly" ;;
3816 *-*-hpux*)
3817 llvm_cv_target_os_type="HP-UX" ;;
3818 *-*-interix*)
3819 llvm_cv_target_os_type="Interix" ;;
3820 *-*-linux*)
3821 llvm_cv_target_os_type="Linux" ;;
3822 *-*-solaris*)
3823 llvm_cv_target_os_type="SunOS" ;;
3824 *-*-auroraux*)
3825 llvm_cv_target_os_type="AuroraUX" ;;
3826 *-*-win32*)
3827 llvm_cv_target_os_type="Win32" ;;
3828 *-*-mingw*)
3829 llvm_cv_target_os_type="MingW" ;;
3830 *-*-haiku*)
3831 llvm_cv_target_os_type="Haiku" ;;
3832 *-*-rtems*)
3833 llvm_cv_target_os_type="RTEMS" ;;
3834 *-*-nacl*)
3835 llvm_cv_target_os_type="NativeClient" ;;
3836 *-unknown-eabi*)
3837 llvm_cv_target_os_type="Freestanding" ;;
3838 *)
3839 llvm_cv_target_os_type="Unknown" ;;
3840esac
3841fi
3842{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3843echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3844
3845if test "$llvm_cv_os_type" = "Unknown" ; then
3846 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3847echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3848 { (exit 1); exit 1; }; }
3849fi
3850
3851OS=$llvm_cv_os_type
3852
3853HOST_OS=$llvm_cv_os_type
3854
3855TARGET_OS=$llvm_cv_target_os_type
3856
3857
3858LINKALL=$llvm_cv_link_all_option
3859
3860NOLINKALL=$llvm_cv_no_link_all_option
3861
3862
3863case $llvm_cv_platform_type in
3864 Unix)
3865
3866cat >>confdefs.h <<\_ACEOF
3867#define LLVM_ON_UNIX 1
3868_ACEOF
3869
3870 LLVM_ON_UNIX=1
3871
3872 LLVM_ON_WIN32=0
3873
3874 ;;
3875 Win32)
3876
3877cat >>confdefs.h <<\_ACEOF
3878#define LLVM_ON_WIN32 1
3879_ACEOF
3880
3881 LLVM_ON_UNIX=0
3882
3883 LLVM_ON_WIN32=1
3884
3885 ;;
3886esac
3887
3888{ echo "$as_me:$LINENO: checking target architecture" >&5
3889echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3890if test "${llvm_cv_target_arch+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892else
3893 case $target in
3894 i?86-*) llvm_cv_target_arch="x86" ;;
3895 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3896 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3897 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003898 arm*-*) llvm_cv_target_arch="ARM" ;;
3899 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003900 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003901 xcore-*) llvm_cv_target_arch="XCore" ;;
3902 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003903 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003904 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3905 ptx-*) llvm_cv_target_arch="PTX" ;;
3906 *) llvm_cv_target_arch="Unknown" ;;
3907esac
3908fi
3909{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3910echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3911
3912if test "$llvm_cv_target_arch" = "Unknown" ; then
3913 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3914echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3915fi
3916
Eric Christopherffee5722011-09-16 20:36:25 +00003917case "$llvm_cv_target_arch" in
3918 x86) LLVM_NATIVE_ARCH="X86" ;;
3919 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3920 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3921esac
3922
3923ARCH=$llvm_cv_target_arch
3924
3925
3926
3927
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003928{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3929echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3930if test "${ac_cv_path_GREP+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003932else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003933 # Extract the first word of "grep ggrep" to use in msg output
3934if test -z "$GREP"; then
3935set dummy grep ggrep; ac_prog_name=$2
3936if test "${ac_cv_path_GREP+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938else
Reid Spencera773bd52006-08-04 18:18:08 +00003939 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003940# Loop through the user's path and test for each of PROGNAME-LIST
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003942for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003946 for ac_prog in grep ggrep; do
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3949 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3950 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003951 # Check for GNU $ac_path_GREP
3952case `"$ac_path_GREP" --version 2>&1` in
3953*GNU*)
3954 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3955*)
3956 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003957 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003958 while :
3959 do
3960 cat "conftest.in" "conftest.in" >"conftest.tmp"
3961 mv "conftest.tmp" "conftest.in"
3962 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003963 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003964 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003966 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003967 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3968 # Best one so far, save it but keep looking for a better one
3969 ac_cv_path_GREP="$ac_path_GREP"
3970 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003971 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003972 # 10*(2^10) chars as input seems more than enough
3973 test $ac_count -gt 10 && break
3974 done
3975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3976esac
3977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003978
3979 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003980 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003981done
3982
3983done
Reid Spencera773bd52006-08-04 18:18:08 +00003984IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003985
3986
3987fi
3988
3989GREP="$ac_cv_path_GREP"
3990if test -z "$GREP"; then
3991 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3992echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3993 { (exit 1); exit 1; }; }
3994fi
3995
Reid Spencera773bd52006-08-04 18:18:08 +00003996else
3997 ac_cv_path_GREP=$GREP
3998fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003999
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004000
Reid Spencera773bd52006-08-04 18:18:08 +00004001fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004002{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4003echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004004 GREP="$ac_cv_path_GREP"
4005
4006
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004007{ echo "$as_me:$LINENO: checking for egrep" >&5
4008echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4009if test "${ac_cv_path_EGREP+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004011else
4012 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4013 then ac_cv_path_EGREP="$GREP -E"
4014 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004015 # Extract the first word of "egrep" to use in msg output
4016if test -z "$EGREP"; then
4017set dummy egrep; ac_prog_name=$2
4018if test "${ac_cv_path_EGREP+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
Reid Spencera773bd52006-08-04 18:18:08 +00004021 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004022# Loop through the user's path and test for each of PROGNAME-LIST
4023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004024for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4025do
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004028 for ac_prog in egrep; do
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4031 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4032 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004033 # Check for GNU $ac_path_EGREP
4034case `"$ac_path_EGREP" --version 2>&1` in
4035*GNU*)
4036 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4037*)
4038 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004039 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004040 while :
4041 do
4042 cat "conftest.in" "conftest.in" >"conftest.tmp"
4043 mv "conftest.tmp" "conftest.in"
4044 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004045 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004046 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004048 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004049 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4050 # Best one so far, save it but keep looking for a better one
4051 ac_cv_path_EGREP="$ac_path_EGREP"
4052 ac_path_EGREP_max=$ac_count
4053 fi
4054 # 10*(2^10) chars as input seems more than enough
4055 test $ac_count -gt 10 && break
4056 done
4057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4058esac
4059
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004060
4061 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004062 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004063done
4064
4065done
Reid Spencera773bd52006-08-04 18:18:08 +00004066IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004067
4068
4069fi
4070
4071EGREP="$ac_cv_path_EGREP"
4072if test -z "$EGREP"; then
4073 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4074echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4075 { (exit 1); exit 1; }; }
4076fi
4077
Reid Spencera773bd52006-08-04 18:18:08 +00004078else
4079 ac_cv_path_EGREP=$EGREP
4080fi
4081
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004082
Reid Spencera773bd52006-08-04 18:18:08 +00004083 fi
4084fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004085{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4086echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004087 EGREP="$ac_cv_path_EGREP"
4088
4089
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004090{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4091echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4092if test "${ac_cv_header_stdc+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004094else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004095 cat >conftest.$ac_ext <<_ACEOF
4096/* confdefs.h. */
4097_ACEOF
4098cat confdefs.h >>conftest.$ac_ext
4099cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004100/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004101#include <stdlib.h>
4102#include <stdarg.h>
4103#include <string.h>
4104#include <float.h>
4105
John Criswell0c38eaf2003-09-10 15:17:25 +00004106int
4107main ()
4108{
4109
4110 ;
4111 return 0;
4112}
John Criswell7a73b802003-06-30 21:59:07 +00004113_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004114rm -f conftest.$ac_objext
4115if { (ac_try="$ac_compile"
4116case "(($ac_try" in
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4119esac
4120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121 (eval "$ac_compile") 2>conftest.er1
4122 ac_status=$?
4123 grep -v '^ *+' conftest.er1 >conftest.err
4124 rm -f conftest.er1
4125 cat conftest.err >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4129 { (case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132esac
4133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_try") 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; } &&
4138 { ac_try='test -s conftest.$ac_objext'
4139 { (case "(($ac_try" in
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4142esac
4143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_try") 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004148 ac_cv_header_stdc=yes
4149else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004150 echo "$as_me: failed program was:" >&5
4151sed 's/^/| /' conftest.$ac_ext >&5
4152
4153 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004154fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004155
Reid Spencera773bd52006-08-04 18:18:08 +00004156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004157
4158if test $ac_cv_header_stdc = yes; then
4159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004160 cat >conftest.$ac_ext <<_ACEOF
4161/* confdefs.h. */
4162_ACEOF
4163cat confdefs.h >>conftest.$ac_ext
4164cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004165/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004166#include <string.h>
4167
4168_ACEOF
4169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004170 $EGREP "memchr" >/dev/null 2>&1; then
4171 :
John Criswell7a73b802003-06-30 21:59:07 +00004172else
4173 ac_cv_header_stdc=no
4174fi
4175rm -f conftest*
4176
4177fi
4178
4179if test $ac_cv_header_stdc = yes; then
4180 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004181 cat >conftest.$ac_ext <<_ACEOF
4182/* confdefs.h. */
4183_ACEOF
4184cat confdefs.h >>conftest.$ac_ext
4185cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004186/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004187#include <stdlib.h>
4188
4189_ACEOF
4190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004191 $EGREP "free" >/dev/null 2>&1; then
4192 :
John Criswell7a73b802003-06-30 21:59:07 +00004193else
4194 ac_cv_header_stdc=no
4195fi
4196rm -f conftest*
4197
4198fi
4199
4200if test $ac_cv_header_stdc = yes; then
4201 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004202 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004203 :
4204else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004205 cat >conftest.$ac_ext <<_ACEOF
4206/* confdefs.h. */
4207_ACEOF
4208cat confdefs.h >>conftest.$ac_ext
4209cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004210/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004211#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004212#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004213#if ((' ' & 0x0FF) == 0x020)
4214# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4215# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4216#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004217# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004218 (('a' <= (c) && (c) <= 'i') \
4219 || ('j' <= (c) && (c) <= 'r') \
4220 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004221# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4222#endif
4223
4224#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4225int
4226main ()
4227{
4228 int i;
4229 for (i = 0; i < 256; i++)
4230 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004231 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004232 return 2;
4233 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004234}
4235_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004236rm -f conftest$ac_exeext
4237if { (ac_try="$ac_link"
4238case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241esac
4242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_link") 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4247 { (case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250esac
4251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_try") 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4256 :
John Criswell7a73b802003-06-30 21:59:07 +00004257else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004258 echo "$as_me: program exited with status $ac_status" >&5
4259echo "$as_me: failed program was:" >&5
4260sed 's/^/| /' conftest.$ac_ext >&5
4261
4262( exit $ac_status )
4263ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004264fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004265rm -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 +00004266fi
4267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004268
John Criswell7a73b802003-06-30 21:59:07 +00004269fi
4270fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004271{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4272echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004273if test $ac_cv_header_stdc = yes; then
4274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004275cat >>confdefs.h <<\_ACEOF
4276#define STDC_HEADERS 1
4277_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004278
4279fi
4280
Reid Spencera773bd52006-08-04 18:18:08 +00004281# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004282
4283
4284
4285
4286
4287
4288
4289
4290
Reid Spencera773bd52006-08-04 18:18:08 +00004291for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4292 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004293do
4294as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4295{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4297if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299else
4300 cat >conftest.$ac_ext <<_ACEOF
4301/* confdefs.h. */
4302_ACEOF
4303cat confdefs.h >>conftest.$ac_ext
4304cat >>conftest.$ac_ext <<_ACEOF
4305/* end confdefs.h. */
4306$ac_includes_default
4307
4308#include <$ac_header>
4309_ACEOF
4310rm -f conftest.$ac_objext
4311if { (ac_try="$ac_compile"
4312case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315esac
4316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_compile") 2>conftest.er1
4318 ac_status=$?
4319 grep -v '^ *+' conftest.er1 >conftest.err
4320 rm -f conftest.er1
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4325 { (case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328esac
4329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; } &&
4334 { ac_try='test -s conftest.$ac_objext'
4335 { (case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338esac
4339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4340 (eval "$ac_try") 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 eval "$as_ac_Header=yes"
4345else
4346 echo "$as_me: failed program was:" >&5
4347sed 's/^/| /' conftest.$ac_ext >&5
4348
4349 eval "$as_ac_Header=no"
4350fi
4351
4352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353fi
4354ac_res=`eval echo '${'$as_ac_Header'}'`
4355 { echo "$as_me:$LINENO: result: $ac_res" >&5
4356echo "${ECHO_T}$ac_res" >&6; }
4357if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004358 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004359#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004360_ACEOF
4361
4362fi
4363
4364done
4365
4366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004367{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4368echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4369if test "${ac_cv_c_bigendian+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004371else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004372 # See if sys/param.h defines the BYTE_ORDER macro.
4373cat >conftest.$ac_ext <<_ACEOF
4374/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004375_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004376cat confdefs.h >>conftest.$ac_ext
4377cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004378/* end confdefs.h. */
4379#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004380#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004381
4382int
4383main ()
4384{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004385#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4386 bogus endian macros
4387#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004388
4389 ;
4390 return 0;
4391}
4392_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004393rm -f conftest.$ac_objext
4394if { (ac_try="$ac_compile"
4395case "(($ac_try" in
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4398esac
4399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400 (eval "$ac_compile") 2>conftest.er1
4401 ac_status=$?
4402 grep -v '^ *+' conftest.er1 >conftest.err
4403 rm -f conftest.er1
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4408 { (case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4411esac
4412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413 (eval "$ac_try") 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; } &&
4417 { ac_try='test -s conftest.$ac_objext'
4418 { (case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4421esac
4422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423 (eval "$ac_try") 2>&5
4424 ac_status=$?
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004427 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004428cat >conftest.$ac_ext <<_ACEOF
4429/* confdefs.h. */
4430_ACEOF
4431cat confdefs.h >>conftest.$ac_ext
4432cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004433/* end confdefs.h. */
4434#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004435#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004436
4437int
4438main ()
4439{
4440#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004441 not big endian
4442#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004443
4444 ;
4445 return 0;
4446}
4447_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004448rm -f conftest.$ac_objext
4449if { (ac_try="$ac_compile"
4450case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4453esac
4454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455 (eval "$ac_compile") 2>conftest.er1
4456 ac_status=$?
4457 grep -v '^ *+' conftest.er1 >conftest.err
4458 rm -f conftest.er1
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4463 { (case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466esac
4467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_try") 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; } &&
4472 { ac_try='test -s conftest.$ac_objext'
4473 { (case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4476esac
4477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_try") 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004482 ac_cv_c_bigendian=yes
4483else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004484 echo "$as_me: failed program was:" >&5
4485sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004486
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004487 ac_cv_c_bigendian=no
4488fi
4489
4490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491else
4492 echo "$as_me: failed program was:" >&5
4493sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 # It does not; compile a test program.
4496if test "$cross_compiling" = yes; then
4497 # try to guess the endianness by grepping values into an object file
4498 ac_cv_c_bigendian=unknown
4499 cat >conftest.$ac_ext <<_ACEOF
4500/* confdefs.h. */
4501_ACEOF
4502cat confdefs.h >>conftest.$ac_ext
4503cat >>conftest.$ac_ext <<_ACEOF
4504/* end confdefs.h. */
4505short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4506short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4507void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4508short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4509short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4510void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004511int
4512main ()
4513{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004514 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004515 ;
4516 return 0;
4517}
4518_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004519rm -f conftest.$ac_objext
4520if { (ac_try="$ac_compile"
4521case "(($ac_try" in
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4524esac
4525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526 (eval "$ac_compile") 2>conftest.er1
4527 ac_status=$?
4528 grep -v '^ *+' conftest.er1 >conftest.err
4529 rm -f conftest.er1
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4534 { (case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537esac
4538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539 (eval "$ac_try") 2>&5
4540 ac_status=$?
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; } &&
4543 { ac_try='test -s conftest.$ac_objext'
4544 { (case "(($ac_try" in
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4547esac
4548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549 (eval "$ac_try") 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004554 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004555fi
4556if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4557 if test "$ac_cv_c_bigendian" = unknown; then
4558 ac_cv_c_bigendian=no
4559 else
4560 # finding both strings is unlikely to happen, but who knows?
4561 ac_cv_c_bigendian=unknown
4562 fi
4563fi
Reid Spencera773bd52006-08-04 18:18:08 +00004564else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004565 echo "$as_me: failed program was:" >&5
4566sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004567
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004568
Torok Edwin871384f2010-01-26 08:50:50 +00004569fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004570
Reid Spencera773bd52006-08-04 18:18:08 +00004571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004573 cat >conftest.$ac_ext <<_ACEOF
4574/* confdefs.h. */
4575_ACEOF
4576cat confdefs.h >>conftest.$ac_ext
4577cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004578/* end confdefs.h. */
4579$ac_includes_default
4580int
4581main ()
4582{
4583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004584 /* Are we little or big endian? From Harbison&Steele. */
4585 union
4586 {
4587 long int l;
4588 char c[sizeof (long int)];
4589 } u;
4590 u.l = 1;
4591 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004592
4593 ;
4594 return 0;
4595}
4596_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004597rm -f conftest$ac_exeext
4598if { (ac_try="$ac_link"
4599case "(($ac_try" in
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4602esac
4603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_link") 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4608 { (case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611esac
4612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_try") 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004617 ac_cv_c_bigendian=no
4618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004619 echo "$as_me: program exited with status $ac_status" >&5
4620echo "$as_me: failed program was:" >&5
4621sed 's/^/| /' conftest.$ac_ext >&5
4622
4623( exit $ac_status )
4624ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004626rm -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 +00004627fi
4628
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004629
Reid Spencera773bd52006-08-04 18:18:08 +00004630fi
4631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633fi
4634{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4635echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4636case $ac_cv_c_bigendian in
4637 yes)
4638 ENDIAN=big
4639 ;;
4640 no)
4641 ENDIAN=little
4642 ;;
4643 *)
4644 { { echo "$as_me:$LINENO: error: unknown endianness
4645presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4646echo "$as_me: error: unknown endianness
4647presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4648 { (exit 1); exit 1; }; } ;;
4649esac
Reid Spencera773bd52006-08-04 18:18:08 +00004650
4651
4652if test "$cross_compiling" = yes; then
4653 LLVM_CROSS_COMPILING=1
4654
4655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004656{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4657echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4658if test "${ac_cv_build_exeext+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004660else
4661 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4662 ac_cv_build_exeext=.exe
4663else
4664 ac_build_prefix=${build_alias}-
4665
4666 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4667set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004672else
4673 if test -n "$BUILD_CC"; then
4674 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4675else
4676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677for as_dir in $PATH
4678do
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 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 +00004683 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004685 break 2
4686 fi
4687done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004688done
Reid Spencera773bd52006-08-04 18:18:08 +00004689IFS=$as_save_IFS
4690
4691fi
4692fi
4693BUILD_CC=$ac_cv_prog_BUILD_CC
4694if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004695 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4696echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004697else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004698 { echo "$as_me:$LINENO: result: no" >&5
4699echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004700fi
4701
4702
4703 if test -z "$BUILD_CC"; then
4704 # Extract the first word of "gcc", so it can be a program name with args.
4705set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004710else
4711 if test -n "$BUILD_CC"; then
4712 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4713else
4714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715for as_dir in $PATH
4716do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 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 +00004721 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004723 break 2
4724 fi
4725done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004726done
Reid Spencera773bd52006-08-04 18:18:08 +00004727IFS=$as_save_IFS
4728
4729fi
4730fi
4731BUILD_CC=$ac_cv_prog_BUILD_CC
4732if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004733 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4734echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004735else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004736 { echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004738fi
4739
4740
4741 if test -z "$BUILD_CC"; then
4742 # Extract the first word of "cc", so it can be a program name with args.
4743set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004744{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4746if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004748else
4749 if test -n "$BUILD_CC"; then
4750 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4751else
4752 ac_prog_rejected=no
4753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH
4755do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 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 +00004760 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4761 ac_prog_rejected=yes
4762 continue
4763 fi
4764 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004766 break 2
4767 fi
4768done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004769done
Reid Spencera773bd52006-08-04 18:18:08 +00004770IFS=$as_save_IFS
4771
4772if test $ac_prog_rejected = yes; then
4773 # We found a bogon in the path, so make sure we never use it.
4774 set dummy $ac_cv_prog_BUILD_CC
4775 shift
4776 if test $# != 0; then
4777 # We chose a different compiler from the bogus one.
4778 # However, it has the same basename, so the bogon will be chosen
4779 # first if we set BUILD_CC to just the basename; use the full file name.
4780 shift
4781 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4782 fi
4783fi
4784fi
4785fi
4786BUILD_CC=$ac_cv_prog_BUILD_CC
4787if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004788 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4789echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004790else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004791 { echo "$as_me:$LINENO: result: no" >&5
4792echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004793fi
4794
4795
4796 fi
4797 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004798 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4799echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4800 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004801 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4802 rm -f conftest*
4803 echo 'int main () { return 0; }' > conftest.$ac_ext
4804 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004805 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004806 (eval $ac_build_link) 2>&5
4807 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004810 for file in conftest.*; do
4811 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004812 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004813 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4814 esac
4815 done
4816 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004817 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4818echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4819 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004820 fi
4821 rm -f conftest*
4822 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4823fi
4824fi
4825
4826BUILD_EXEEXT=""
4827test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004828{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4829echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004830ac_build_exeext=$BUILD_EXEEXT
4831
Jim Grosbach673612e2008-10-02 22:56:44 +00004832 ac_build_prefix=${build_alias}-
4833 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4834set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4837if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004839else
4840 if test -n "$BUILD_CXX"; then
4841 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4842else
4843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844for as_dir in $PATH
4845do
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 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 +00004850 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004852 break 2
4853 fi
4854done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004855done
Jim Grosbach673612e2008-10-02 22:56:44 +00004856IFS=$as_save_IFS
4857
4858fi
4859fi
4860BUILD_CXX=$ac_cv_prog_BUILD_CXX
4861if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004862 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4863echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004864else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004865 { echo "$as_me:$LINENO: result: no" >&5
4866echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004867fi
4868
4869
4870 if test -z "$BUILD_CXX"; then
4871 # Extract the first word of "g++", so it can be a program name with args.
4872set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004873{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4875if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004877else
4878 if test -n "$BUILD_CXX"; then
4879 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4880else
4881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882for as_dir in $PATH
4883do
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 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 +00004888 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004890 break 2
4891 fi
4892done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004893done
Jim Grosbach673612e2008-10-02 22:56:44 +00004894IFS=$as_save_IFS
4895
4896fi
4897fi
4898BUILD_CXX=$ac_cv_prog_BUILD_CXX
4899if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004900 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4901echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004902else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004903 { echo "$as_me:$LINENO: result: no" >&5
4904echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004905fi
4906
4907
4908 if test -z "$BUILD_CXX"; then
4909 # Extract the first word of "c++", so it can be a program name with args.
4910set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4913if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004915else
4916 if test -n "$BUILD_CXX"; then
4917 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4918else
4919 ac_prog_rejected=no
4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921for as_dir in $PATH
4922do
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 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 +00004927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4928 ac_prog_rejected=yes
4929 continue
4930 fi
4931 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004933 break 2
4934 fi
4935done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004936done
Jim Grosbach673612e2008-10-02 22:56:44 +00004937IFS=$as_save_IFS
4938
4939if test $ac_prog_rejected = yes; then
4940 # We found a bogon in the path, so make sure we never use it.
4941 set dummy $ac_cv_prog_BUILD_CXX
4942 shift
4943 if test $# != 0; then
4944 # We chose a different compiler from the bogus one.
4945 # However, it has the same basename, so the bogon will be chosen
4946 # first if we set BUILD_CXX to just the basename; use the full file name.
4947 shift
4948 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4949 fi
4950fi
4951fi
4952fi
4953BUILD_CXX=$ac_cv_prog_BUILD_CXX
4954if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004955 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4956echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004957else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004958 { echo "$as_me:$LINENO: result: no" >&5
4959echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004960fi
4961
4962
4963 fi
4964 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004965else
4966 LLVM_CROSS_COMPILING=0
4967
4968fi
4969
Dan Gohman56fb5f92010-08-04 16:25:01 +00004970if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004971 cvsbuild="yes"
4972 optimize="no"
4973 CVSBUILD=CVSBUILD=1
4974
4975else
4976 cvsbuild="no"
4977 optimize="yes"
4978fi
4979
4980
Eric Christopherbee515f2011-11-11 22:51:42 +00004981# Check whether --enable-libcpp was given.
4982if test "${enable_libcpp+set}" = set; then
4983 enableval=$enable_libcpp;
4984else
4985 enableval=default
4986fi
4987
4988case "$enableval" in
4989 yes) ENABLE_LIBCPP=1
4990 ;;
4991 no) ENABLE_LIBCPP=0
4992 ;;
4993 default) ENABLE_LIBCPP=0
4994;;
4995 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4996echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4997 { (exit 1); exit 1; }; } ;;
4998esac
4999
Reid Spencera773bd52006-08-04 18:18:08 +00005000# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005001if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005002 enableval=$enable_optimized;
5003else
5004 enableval=$optimize
5005fi
5006
5007if test ${enableval} = "no" ; then
5008 ENABLE_OPTIMIZED=
5009
5010else
5011 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5012
5013fi
5014
David Greene2a5a12c2009-04-17 14:50:39 +00005015# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005016if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005017 enableval=$enable_profiling;
5018else
5019 enableval="no"
5020fi
5021
5022if test ${enableval} = "no" ; then
5023 ENABLE_PROFILING=
5024
5025else
5026 ENABLE_PROFILING=ENABLE_PROFILING=1
5027
5028fi
5029
Reid Spencera773bd52006-08-04 18:18:08 +00005030# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005031if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005032 enableval=$enable_assertions;
5033else
5034 enableval="yes"
5035fi
5036
5037if test ${enableval} = "yes" ; then
5038 DISABLE_ASSERTIONS=
5039
5040else
5041 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5042
5043fi
5044
David Greenea696d242007-06-28 19:36:08 +00005045# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005046if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005047 enableval=$enable_expensive_checks;
5048else
5049 enableval="no"
5050fi
5051
5052if test ${enableval} = "yes" ; then
5053 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5054
5055 EXPENSIVE_CHECKS=yes
5056
5057else
5058 ENABLE_EXPENSIVE_CHECKS=
5059
5060 EXPENSIVE_CHECKS=no
5061
5062fi
5063
Reid Spencer8b2e1412006-11-17 03:32:33 +00005064# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005065if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005066 enableval=$enable_debug_runtime;
5067else
5068 enableval=no
5069fi
5070
5071if test ${enableval} = "no" ; then
5072 DEBUG_RUNTIME=
5073
5074else
5075 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5076
5077fi
5078
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005079# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005080if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005081 enableval=$enable_debug_symbols;
5082else
5083 enableval=no
5084fi
5085
5086if test ${enableval} = "no" ; then
5087 DEBUG_SYMBOLS=
5088
5089else
5090 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5091
5092fi
5093
Reid Spencera773bd52006-08-04 18:18:08 +00005094# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005095if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005096 enableval=$enable_jit;
5097else
5098 enableval=default
5099fi
5100
5101if test ${enableval} = "no"
5102then
5103 JIT=
5104
5105else
5106 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005107 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005108 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005109 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005110 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005111 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005112 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005113 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005114 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005115 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005116 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005117 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005118 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005119 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005120 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005121 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005122 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005123 Hexagon) TARGET_HAS_JIT=0
5124 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005125 MBlaze) TARGET_HAS_JIT=0
5126 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005127 PTX) TARGET_HAS_JIT=0
5128 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005129 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005130 ;;
5131 esac
5132fi
5133
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005134# Check whether --enable-docs was given.
5135if test "${enable_docs+set}" = set; then
5136 enableval=$enable_docs;
5137else
5138 enableval=default
5139fi
5140
5141case "$enableval" in
5142 yes) ENABLE_DOCS=1
5143 ;;
5144 no) ENABLE_DOCS=0
5145 ;;
5146 default) ENABLE_DOCS=1
5147 ;;
5148 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5149echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5150 { (exit 1); exit 1; }; } ;;
5151esac
5152
Reid Spencera773bd52006-08-04 18:18:08 +00005153# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005154if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005155 enableval=$enable_doxygen;
5156else
5157 enableval=default
5158fi
5159
5160case "$enableval" in
5161 yes) ENABLE_DOXYGEN=1
5162 ;;
5163 no) ENABLE_DOXYGEN=0
5164 ;;
5165 default) ENABLE_DOXYGEN=0
5166 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005167 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5168echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5169 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005170esac
5171
5172# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005173if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005174 enableval=$enable_threads;
5175else
Reid Spencer65c5d752006-11-05 17:08:18 +00005176 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005177fi
5178
5179case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005180 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005181 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005182 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005183 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005184 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005185 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005186 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5187echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5188 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005189esac
5190
Owen Andersona8603702009-05-19 22:18:56 +00005191cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005192#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005193_ACEOF
5194
5195
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005196# Check whether --enable-pthreads was given.
5197if test "${enable_pthreads+set}" = set; then
5198 enableval=$enable_pthreads;
5199else
5200 enableval=default
5201fi
5202
5203case "$enableval" in
5204 yes) ENABLE_PTHREADS=1
5205 ;;
5206 no) ENABLE_PTHREADS=0
5207 ;;
5208 default) ENABLE_PTHREADS=1
5209 ;;
5210 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5211echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5212 { (exit 1); exit 1; }; } ;;
5213esac
5214
Reid Spencer89b0d992006-12-16 22:07:52 +00005215# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005216if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005217 enableval=$enable_pic;
5218else
5219 enableval=default
5220fi
5221
5222case "$enableval" in
5223 yes) ENABLE_PIC=1
5224 ;;
5225 no) ENABLE_PIC=0
5226 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005227 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005228 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5230echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005232esac
5233
5234cat >>confdefs.h <<_ACEOF
5235#define ENABLE_PIC $ENABLE_PIC
5236_ACEOF
5237
5238
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005239# Check whether --enable-shared was given.
5240if test "${enable_shared+set}" = set; then
5241 enableval=$enable_shared;
5242else
5243 enableval=default
5244fi
5245
5246case "$enableval" in
5247 yes) ENABLE_SHARED=1
5248 ;;
5249 no) ENABLE_SHARED=0
5250 ;;
5251 default) ENABLE_SHARED=0
5252 ;;
5253 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5254echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; } ;;
5256esac
5257
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005258# Check whether --enable-embed-stdcxx was given.
5259if test "${enable_embed_stdcxx+set}" = set; then
5260 enableval=$enable_embed_stdcxx;
5261else
5262 enableval=default
5263fi
5264
5265case "$enableval" in
5266 yes) ENABLE_EMBED_STDCXX=1
5267 ;;
5268 no) ENABLE_EMBED_STDCXX=0
5269 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005270 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005271 ;;
5272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5273echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5274 { (exit 1); exit 1; }; } ;;
5275esac
5276
Daniel Dunbardd464df2010-05-10 20:11:56 +00005277# Check whether --enable-timestamps was given.
5278if test "${enable_timestamps+set}" = set; then
5279 enableval=$enable_timestamps;
5280else
5281 enableval=default
5282fi
5283
5284case "$enableval" in
5285 yes) ENABLE_TIMESTAMPS=1
5286 ;;
5287 no) ENABLE_TIMESTAMPS=0
5288 ;;
5289 default) ENABLE_TIMESTAMPS=1
5290 ;;
5291 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5292echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5293 { (exit 1); exit 1; }; } ;;
5294esac
5295
5296cat >>confdefs.h <<_ACEOF
5297#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5298_ACEOF
5299
5300
Reid Spencera773bd52006-08-04 18:18:08 +00005301TARGETS_TO_BUILD=""
5302# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005303if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005304 enableval=$enable_targets;
5305else
5306 enableval=all
5307fi
5308
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005309if test "$enableval" = host-only ; then
5310 enableval=host
5311fi
Reid Spencera773bd52006-08-04 18:18:08 +00005312case "$enableval" in
Tony Linthicumb4b54152011-12-12 21:14:40 +00005313 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005314 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5315 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005316 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5317 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5318 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5319 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005320 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5321 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005322 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005323 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005324 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5325 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005326 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005327 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005328 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005329 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005330 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005331 host) case "$llvm_cv_target_arch" in
5332 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5333 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5334 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5335 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005336 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5337 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005338 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005339 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005340 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5341 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005342 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005343 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005344 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5345echo "$as_me: error: Can not set target to build" >&2;}
5346 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005347 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005348 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5349echo "$as_me: error: Unrecognized target $a_target" >&2;}
5350 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005351 esac
5352 done
5353 ;;
5354esac
Reid Spencera773bd52006-08-04 18:18:08 +00005355TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5356
5357
Douglas Gregor0711c302009-06-17 00:43:20 +00005358for a_target in $TARGETS_TO_BUILD; do
5359 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5360
5361cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005362#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5363_ACEOF
5364
5365 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5366 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005367 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005368 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005369 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5370 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5371 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005372
5373cat >>confdefs.h <<_ACEOF
5374#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005375_ACEOF
5376
5377
5378cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005379#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5380_ACEOF
5381
5382
5383cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005384#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005385_ACEOF
5386
5387
5388cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005389#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005390_ACEOF
5391
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005392 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005393
5394cat >>confdefs.h <<_ACEOF
5395#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5396_ACEOF
5397
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005398 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005399 fi
5400done
5401
Douglas Gregor1555a232009-06-16 20:12:29 +00005402LLVM_ENUM_TARGETS=""
5403LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005404LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005405LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005406for target_to_build in $TARGETS_TO_BUILD; do
5407 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005408 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005409 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5410 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005411 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5412 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5413 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005414 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5415 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5416 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005417done
5418
5419
5420
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005421
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005422
Reid Spencer65c5d752006-11-05 17:08:18 +00005423# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005424if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005425 enableval=$enable_cbe_printf_a;
5426else
5427 enableval=default
5428fi
5429
5430case "$enableval" in
5431 yes) ENABLE_CBE_PRINTF_A=1
5432 ;;
5433 no) ENABLE_CBE_PRINTF_A=0
5434 ;;
5435 default) ENABLE_CBE_PRINTF_A=1
5436 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005437 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5438echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5439 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005440esac
5441
5442cat >>confdefs.h <<_ACEOF
5443#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5444_ACEOF
5445
5446
Reid Spencera773bd52006-08-04 18:18:08 +00005447
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005448# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005449if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005450 withval=$with_optimize_option;
5451else
5452 withval=default
5453fi
5454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005455{ echo "$as_me:$LINENO: checking optimization flags" >&5
5456echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005457case "$withval" in
5458 default)
5459 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005460 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005461 MingW) optimize_option=-O2 ;;
5462 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005463 esac ;;
5464 *) optimize_option="$withval" ;;
5465esac
5466OPTIMIZE_OPTION=$optimize_option
5467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005468{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5469echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005470
5471
Reid Spencera773bd52006-08-04 18:18:08 +00005472# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005473if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005474 withval=$with_extra_options;
5475else
5476 withval=default
5477fi
5478
5479case "$withval" in
5480 default) EXTRA_OPTIONS= ;;
5481 *) EXTRA_OPTIONS=$withval ;;
5482esac
5483EXTRA_OPTIONS=$EXTRA_OPTIONS
5484
5485
Daniel Dunbared344d22011-06-16 22:30:41 +00005486
5487# Check whether --with-extra-ld-options was given.
5488if test "${with_extra_ld_options+set}" = set; then
5489 withval=$with_extra_ld_options;
5490else
5491 withval=default
5492fi
5493
5494case "$withval" in
5495 default) EXTRA_LD_OPTIONS= ;;
5496 *) EXTRA_LD_OPTIONS=$withval ;;
5497esac
5498EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5499
5500
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005501# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005502if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005503 enableval=$enable_bindings;
5504else
5505 enableval=default
5506fi
5507
5508BINDINGS_TO_BUILD=""
5509case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005510 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005511 all ) BINDINGS_TO_BUILD="ocaml" ;;
5512 none | no) BINDINGS_TO_BUILD="" ;;
5513 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5514 case "$a_binding" in
5515 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005516 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5517echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5518 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005519 esac
5520 done
5521 ;;
5522esac
5523
Reid Spencera773bd52006-08-04 18:18:08 +00005524
Gordon Henriksenf0915682007-10-02 16:42:22 +00005525# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005526if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005527 withval=$with_ocaml_libdir;
5528else
5529 withval=auto
5530fi
5531
5532case "$withval" in
5533 auto) with_ocaml_libdir="$withval" ;;
5534 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005535 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5536echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5537 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005538esac
5539
5540
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005541# Check whether --with-clang-srcdir was given.
5542if test "${with_clang_srcdir+set}" = set; then
5543 withval=$with_clang_srcdir;
5544else
5545 withval="-"
5546fi
5547
5548case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005549 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005550 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5551 *) clang_src_root="$ac_pwd/$withval" ;;
5552esac
5553CLANG_SRC_ROOT=$clang_src_root
5554
5555
5556
Chandler Carruth6b241162010-10-19 08:21:25 +00005557# Check whether --with-clang-resource-dir was given.
5558if test "${with_clang_resource_dir+set}" = set; then
5559 withval=$with_clang_resource_dir;
5560else
5561 withval=""
5562fi
5563
5564
5565cat >>confdefs.h <<_ACEOF
5566#define CLANG_RESOURCE_DIR "$withval"
5567_ACEOF
5568
5569
5570
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005571# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005572if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005573 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005574else
5575 withval=""
5576fi
5577
5578
5579cat >>confdefs.h <<_ACEOF
5580#define C_INCLUDE_DIRS "$withval"
5581_ACEOF
5582
5583
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005584# Clang normally uses the system c++ headers and libraries. With this option,
5585# clang will use the ones provided by a gcc installation instead. This option should
5586# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005587
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005588# Check whether --with-gcc-toolchain was given.
5589if test "${with_gcc_toolchain+set}" = set; then
5590 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005591else
5592 withval=""
5593fi
5594
5595
5596cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005597#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005598_ACEOF
5599
5600
5601
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005602# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005603if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005604 withval=$with_binutils_include;
5605else
5606 withval=default
5607fi
5608
5609case "$withval" in
5610 default) WITH_BINUTILS_INCDIR=default ;;
5611 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005612 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5613echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5614 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005615esac
5616if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5617 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5618
5619 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5620 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005621 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5622echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5623 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005624 fi
5625fi
5626
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005627
5628# Check whether --with-bug-report-url was given.
5629if test "${with_bug_report_url+set}" = set; then
5630 withval=$with_bug_report_url;
5631else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005632 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005633fi
5634
5635
5636cat >>confdefs.h <<_ACEOF
5637#define BUG_REPORT_URL "$withval"
5638_ACEOF
5639
5640
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005641# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005642if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005643 enableval=$enable_libffi; case "$enableval" in
5644 yes) llvm_cv_enable_libffi="yes" ;;
5645 no) llvm_cv_enable_libffi="no" ;;
5646 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005647echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5648 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005649 esac
5650else
5651 llvm_cv_enable_libffi=no
5652fi
5653
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005654
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005655
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005656# Check whether --with-internal-prefix was given.
5657if test "${with_internal_prefix+set}" = set; then
5658 withval=$with_internal_prefix;
5659else
5660 withval=""
5661fi
5662
5663INTERNAL_PREFIX=$withval
5664
5665
5666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005667{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5668echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5669if test "${lt_cv_path_NM+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005671else
5672 if test -n "$NM"; then
5673 # Let the user override the test.
5674 lt_cv_path_NM="$NM"
5675else
5676 lt_nm_to_check="${ac_tool_prefix}nm"
5677 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5678 lt_nm_to_check="$lt_nm_to_check nm"
5679 fi
5680 for lt_tmp_nm in $lt_nm_to_check; do
5681 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5682 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5683 IFS="$lt_save_ifs"
5684 test -z "$ac_dir" && ac_dir=.
5685 tmp_nm="$ac_dir/$lt_tmp_nm"
5686 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5687 # Check to see if the nm accepts a BSD-compat flag.
5688 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5689 # nm: unknown option "B" ignored
5690 # Tru64's nm complains that /dev/null is an invalid object file
5691 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5692 */dev/null* | *'Invalid file or object type'*)
5693 lt_cv_path_NM="$tmp_nm -B"
5694 break
5695 ;;
5696 *)
5697 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5698 */dev/null*)
5699 lt_cv_path_NM="$tmp_nm -p"
5700 break
5701 ;;
5702 *)
5703 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5704 continue # so that we can try to find one that supports BSD flags
5705 ;;
5706 esac
5707 ;;
5708 esac
5709 fi
5710 done
5711 IFS="$lt_save_ifs"
5712 done
5713 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5714fi
5715fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005716{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5717echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005718NM="$lt_cv_path_NM"
5719
5720
5721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005722{ echo "$as_me:$LINENO: checking for GNU make" >&5
5723echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5724if test "${llvm_cv_gnu_make_command+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005726else
5727 llvm_cv_gnu_make_command=''
5728 for a in "$MAKE" make gmake gnumake ; do
5729 if test -z "$a" ; then continue ; fi ;
5730 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5731 then
5732 llvm_cv_gnu_make_command=$a ;
5733 break;
5734 fi
5735 done
5736fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005737{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5738echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005739 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5740 ifGNUmake='' ;
5741 else
5742 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005743 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5744echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005745 fi
5746
5747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005748{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5749echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005750LN_S=$as_ln_s
5751if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005752 { echo "$as_me:$LINENO: result: yes" >&5
5753echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005754else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005755 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5756echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005757fi
5758
5759# Extract the first word of "cmp", so it can be a program name with args.
5760set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005761{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5763if test "${ac_cv_path_CMP+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005765else
5766 case $CMP in
5767 [\\/]* | ?:[\\/]*)
5768 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5769 ;;
5770 *)
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772for as_dir in $PATH
5773do
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 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 +00005778 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005780 break 2
5781 fi
5782done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005783done
Reid Spencera773bd52006-08-04 18:18:08 +00005784IFS=$as_save_IFS
5785
5786 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5787 ;;
5788esac
5789fi
5790CMP=$ac_cv_path_CMP
5791if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005792 { echo "$as_me:$LINENO: result: $CMP" >&5
5793echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005794else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005795 { echo "$as_me:$LINENO: result: no" >&5
5796echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005797fi
5798
5799
5800# Extract the first word of "cp", so it can be a program name with args.
5801set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005802{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5804if test "${ac_cv_path_CP+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005806else
5807 case $CP in
5808 [\\/]* | ?:[\\/]*)
5809 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5810 ;;
5811 *)
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 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 +00005819 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005821 break 2
5822 fi
5823done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005824done
Reid Spencera773bd52006-08-04 18:18:08 +00005825IFS=$as_save_IFS
5826
5827 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5828 ;;
5829esac
5830fi
5831CP=$ac_cv_path_CP
5832if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005833 { echo "$as_me:$LINENO: result: $CP" >&5
5834echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005835else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005836 { echo "$as_me:$LINENO: result: no" >&5
5837echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005838fi
5839
5840
5841# Extract the first word of "date", so it can be a program name with args.
5842set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5845if test "${ac_cv_path_DATE+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005847else
5848 case $DATE in
5849 [\\/]* | ?:[\\/]*)
5850 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5851 ;;
5852 *)
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854for as_dir in $PATH
5855do
5856 IFS=$as_save_IFS
5857 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 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 +00005860 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005862 break 2
5863 fi
5864done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005865done
Reid Spencera773bd52006-08-04 18:18:08 +00005866IFS=$as_save_IFS
5867
5868 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5869 ;;
5870esac
5871fi
5872DATE=$ac_cv_path_DATE
5873if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005874 { echo "$as_me:$LINENO: result: $DATE" >&5
5875echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005876else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005877 { echo "$as_me:$LINENO: result: no" >&5
5878echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005879fi
5880
5881
5882# Extract the first word of "find", so it can be a program name with args.
5883set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005884{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5886if test "${ac_cv_path_FIND+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005888else
5889 case $FIND in
5890 [\\/]* | ?:[\\/]*)
5891 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5892 ;;
5893 *)
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895for as_dir in $PATH
5896do
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 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 +00005901 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005903 break 2
5904 fi
5905done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005906done
Reid Spencera773bd52006-08-04 18:18:08 +00005907IFS=$as_save_IFS
5908
5909 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5910 ;;
5911esac
5912fi
5913FIND=$ac_cv_path_FIND
5914if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005915 { echo "$as_me:$LINENO: result: $FIND" >&5
5916echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005917else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005918 { echo "$as_me:$LINENO: result: no" >&5
5919echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005920fi
5921
5922
5923# Extract the first word of "grep", so it can be a program name with args.
5924set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5927if test "${ac_cv_path_GREP+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005929else
5930 case $GREP in
5931 [\\/]* | ?:[\\/]*)
5932 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5933 ;;
5934 *)
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 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 +00005942 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005944 break 2
5945 fi
5946done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005947done
Reid Spencera773bd52006-08-04 18:18:08 +00005948IFS=$as_save_IFS
5949
5950 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5951 ;;
5952esac
5953fi
5954GREP=$ac_cv_path_GREP
5955if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005956 { echo "$as_me:$LINENO: result: $GREP" >&5
5957echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005958else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005959 { echo "$as_me:$LINENO: result: no" >&5
5960echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005961fi
5962
5963
5964# Extract the first word of "mkdir", so it can be a program name with args.
5965set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5968if test "${ac_cv_path_MKDIR+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005970else
5971 case $MKDIR in
5972 [\\/]* | ?:[\\/]*)
5973 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5974 ;;
5975 *)
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977for as_dir in $PATH
5978do
5979 IFS=$as_save_IFS
5980 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 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 +00005983 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005985 break 2
5986 fi
5987done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005988done
Reid Spencera773bd52006-08-04 18:18:08 +00005989IFS=$as_save_IFS
5990
5991 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5992 ;;
5993esac
5994fi
5995MKDIR=$ac_cv_path_MKDIR
5996if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005997 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5998echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005999else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006000 { echo "$as_me:$LINENO: result: no" >&5
6001echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006002fi
6003
6004
6005# Extract the first word of "mv", so it can be a program name with args.
6006set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006007{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6009if test "${ac_cv_path_MV+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006011else
6012 case $MV in
6013 [\\/]* | ?:[\\/]*)
6014 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6015 ;;
6016 *)
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 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 +00006024 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006026 break 2
6027 fi
6028done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006029done
Reid Spencera773bd52006-08-04 18:18:08 +00006030IFS=$as_save_IFS
6031
6032 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6033 ;;
6034esac
6035fi
6036MV=$ac_cv_path_MV
6037if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006038 { echo "$as_me:$LINENO: result: $MV" >&5
6039echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006040else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006041 { echo "$as_me:$LINENO: result: no" >&5
6042echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006043fi
6044
6045
6046if test -n "$ac_tool_prefix"; then
6047 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6048set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051if test "${ac_cv_prog_RANLIB+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006053else
6054 if test -n "$RANLIB"; then
6055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6056else
6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058for as_dir in $PATH
6059do
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 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 +00006064 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006066 break 2
6067 fi
6068done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006069done
Reid Spencera773bd52006-08-04 18:18:08 +00006070IFS=$as_save_IFS
6071
6072fi
6073fi
6074RANLIB=$ac_cv_prog_RANLIB
6075if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006076 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6077echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006078else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006079 { echo "$as_me:$LINENO: result: no" >&5
6080echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006081fi
6082
6083
6084fi
6085if test -z "$ac_cv_prog_RANLIB"; then
6086 ac_ct_RANLIB=$RANLIB
6087 # Extract the first word of "ranlib", so it can be a program name with args.
6088set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006089{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006093else
6094 if test -n "$ac_ct_RANLIB"; then
6095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6096else
6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100 IFS=$as_save_IFS
6101 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 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 +00006104 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006106 break 2
6107 fi
6108done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006109done
Reid Spencera773bd52006-08-04 18:18:08 +00006110IFS=$as_save_IFS
6111
6112fi
6113fi
6114ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6115if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006116 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6117echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006118else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006119 { echo "$as_me:$LINENO: result: no" >&5
6120echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006121fi
6122
6123 if test "x$ac_ct_RANLIB" = x; then
6124 RANLIB=":"
6125 else
6126 case $cross_compiling:$ac_tool_warned in
6127yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006128{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6129whose name does not start with the host triplet. If you think this
6130configuration is useful to you, please write to autoconf@gnu.org." >&5
6131echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6132whose name does not start with the host triplet. If you think this
6133configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006134ac_tool_warned=yes ;;
6135esac
6136 RANLIB=$ac_ct_RANLIB
6137 fi
6138else
6139 RANLIB="$ac_cv_prog_RANLIB"
6140fi
6141
Torok Edwin871384f2010-01-26 08:50:50 +00006142if test -n "$ac_tool_prefix"; then
6143 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6144set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006145{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6147if test "${ac_cv_prog_AR+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006149else
6150 if test -n "$AR"; then
6151 ac_cv_prog_AR="$AR" # Let the user override the test.
6152else
6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154for as_dir in $PATH
6155do
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 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 +00006160 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006162 break 2
6163 fi
6164done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006165done
Torok Edwin871384f2010-01-26 08:50:50 +00006166IFS=$as_save_IFS
6167
6168fi
6169fi
6170AR=$ac_cv_prog_AR
6171if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006172 { echo "$as_me:$LINENO: result: $AR" >&5
6173echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006174else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006175 { echo "$as_me:$LINENO: result: no" >&5
6176echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006177fi
6178
6179
6180fi
6181if test -z "$ac_cv_prog_AR"; then
6182 ac_ct_AR=$AR
6183 # Extract the first word of "ar", so it can be a program name with args.
6184set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006185{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6187if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006189else
6190 if test -n "$ac_ct_AR"; then
6191 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6192else
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 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 +00006200 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006202 break 2
6203 fi
6204done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006205done
Torok Edwin871384f2010-01-26 08:50:50 +00006206IFS=$as_save_IFS
6207
6208fi
6209fi
6210ac_ct_AR=$ac_cv_prog_ac_ct_AR
6211if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006212 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6213echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006214else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006215 { echo "$as_me:$LINENO: result: no" >&5
6216echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006217fi
6218
6219 if test "x$ac_ct_AR" = x; then
6220 AR="false"
6221 else
6222 case $cross_compiling:$ac_tool_warned in
6223yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006224{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6225whose name does not start with the host triplet. If you think this
6226configuration is useful to you, please write to autoconf@gnu.org." >&5
6227echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6228whose name does not start with the host triplet. If you think this
6229configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006230ac_tool_warned=yes ;;
6231esac
6232 AR=$ac_ct_AR
6233 fi
6234else
6235 AR="$ac_cv_prog_AR"
6236fi
6237
Reid Spencera773bd52006-08-04 18:18:08 +00006238# Extract the first word of "rm", so it can be a program name with args.
6239set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006240{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6242if test "${ac_cv_path_RM+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006244else
6245 case $RM in
6246 [\\/]* | ?:[\\/]*)
6247 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6248 ;;
6249 *)
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251for as_dir in $PATH
6252do
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 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 +00006257 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006259 break 2
6260 fi
6261done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006262done
Reid Spencera773bd52006-08-04 18:18:08 +00006263IFS=$as_save_IFS
6264
6265 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6266 ;;
6267esac
6268fi
6269RM=$ac_cv_path_RM
6270if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006271 { echo "$as_me:$LINENO: result: $RM" >&5
6272echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006273else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006274 { echo "$as_me:$LINENO: result: no" >&5
6275echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006276fi
6277
6278
6279# Extract the first word of "sed", so it can be a program name with args.
6280set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006281{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6283if test "${ac_cv_path_SED+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006285else
6286 case $SED in
6287 [\\/]* | ?:[\\/]*)
6288 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6289 ;;
6290 *)
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292for as_dir in $PATH
6293do
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 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 +00006298 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006300 break 2
6301 fi
6302done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006303done
Reid Spencera773bd52006-08-04 18:18:08 +00006304IFS=$as_save_IFS
6305
6306 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6307 ;;
6308esac
6309fi
6310SED=$ac_cv_path_SED
6311if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006312 { echo "$as_me:$LINENO: result: $SED" >&5
6313echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006314else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006315 { echo "$as_me:$LINENO: result: no" >&5
6316echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006317fi
6318
6319
6320# Extract the first word of "tar", so it can be a program name with args.
6321set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006322{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6324if test "${ac_cv_path_TAR+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006326else
6327 case $TAR in
6328 [\\/]* | ?:[\\/]*)
6329 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6330 ;;
6331 *)
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 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 +00006339 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006341 break 2
6342 fi
6343done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006344done
Reid Spencera773bd52006-08-04 18:18:08 +00006345IFS=$as_save_IFS
6346
6347 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6348 ;;
6349esac
6350fi
6351TAR=$ac_cv_path_TAR
6352if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006353 { echo "$as_me:$LINENO: result: $TAR" >&5
6354echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006355else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006356 { echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006358fi
6359
6360
6361# Extract the first word of "pwd", so it can be a program name with args.
6362set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006363{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6365if test "${ac_cv_path_BINPWD+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006367else
6368 case $BINPWD in
6369 [\\/]* | ?:[\\/]*)
6370 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6371 ;;
6372 *)
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374for as_dir in $PATH
6375do
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 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 +00006380 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006382 break 2
6383 fi
6384done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006385done
Reid Spencera773bd52006-08-04 18:18:08 +00006386IFS=$as_save_IFS
6387
6388 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6389 ;;
6390esac
6391fi
6392BINPWD=$ac_cv_path_BINPWD
6393if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006394 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6395echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006396else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006397 { echo "$as_me:$LINENO: result: no" >&5
6398echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006399fi
6400
6401
6402
6403# Extract the first word of "Graphviz", so it can be a program name with args.
6404set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6407if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006409else
6410 case $GRAPHVIZ in
6411 [\\/]* | ?:[\\/]*)
6412 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6413 ;;
6414 *)
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416for as_dir in $PATH
6417do
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 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 +00006422 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006424 break 2
6425 fi
6426done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006427done
Reid Spencera773bd52006-08-04 18:18:08 +00006428IFS=$as_save_IFS
6429
6430 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6431 ;;
6432esac
6433fi
6434GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6435if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006436 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6437echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006438else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006439 { echo "$as_me:$LINENO: result: no" >&5
6440echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006441fi
6442
6443
6444if test "$GRAPHVIZ" != "echo Graphviz" ; then
6445
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006446cat >>confdefs.h <<\_ACEOF
6447#define HAVE_GRAPHVIZ 1
6448_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006449
Jeff Cohen28783c32007-01-12 18:22:38 +00006450 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006451 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6452 fi
6453
6454cat >>confdefs.h <<_ACEOF
6455#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6456_ACEOF
6457
6458fi
6459# Extract the first word of "dot", so it can be a program name with args.
6460set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6463if test "${ac_cv_path_DOT+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006465else
6466 case $DOT in
6467 [\\/]* | ?:[\\/]*)
6468 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6469 ;;
6470 *)
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472for as_dir in $PATH
6473do
6474 IFS=$as_save_IFS
6475 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 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 +00006478 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006480 break 2
6481 fi
6482done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006483done
Reid Spencera773bd52006-08-04 18:18:08 +00006484IFS=$as_save_IFS
6485
6486 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6487 ;;
6488esac
6489fi
6490DOT=$ac_cv_path_DOT
6491if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006492 { echo "$as_me:$LINENO: result: $DOT" >&5
6493echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006494else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006495 { echo "$as_me:$LINENO: result: no" >&5
6496echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006497fi
6498
6499
6500if test "$DOT" != "echo dot" ; then
6501
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006502cat >>confdefs.h <<\_ACEOF
6503#define HAVE_DOT 1
6504_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006505
Jeff Cohen28783c32007-01-12 18:22:38 +00006506 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006507 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6508 fi
6509
6510cat >>confdefs.h <<_ACEOF
6511#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6512_ACEOF
6513
6514fi
David Greenef0b9eff2009-07-09 17:16:26 +00006515# Extract the first word of "fdp", so it can be a program name with args.
6516set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006517{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6519if test "${ac_cv_path_FDP+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006521else
6522 case $FDP in
6523 [\\/]* | ?:[\\/]*)
6524 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6525 ;;
6526 *)
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528for as_dir in $PATH
6529do
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 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 +00006534 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006536 break 2
6537 fi
6538done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006539done
David Greenef0b9eff2009-07-09 17:16:26 +00006540IFS=$as_save_IFS
6541
6542 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6543 ;;
6544esac
6545fi
6546FDP=$ac_cv_path_FDP
6547if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006548 { echo "$as_me:$LINENO: result: $FDP" >&5
6549echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006550else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006551 { echo "$as_me:$LINENO: result: no" >&5
6552echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006553fi
6554
6555
6556if test "$FDP" != "echo fdp" ; then
6557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006558cat >>confdefs.h <<\_ACEOF
6559#define HAVE_FDP 1
6560_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006561
6562 if test "$llvm_cv_os_type" = "MingW" ; then
6563 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6564 fi
6565
6566cat >>confdefs.h <<_ACEOF
6567#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6568_ACEOF
6569
6570fi
6571# Extract the first word of "neato", so it can be a program name with args.
6572set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575if test "${ac_cv_path_NEATO+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006577else
6578 case $NEATO in
6579 [\\/]* | ?:[\\/]*)
6580 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6581 ;;
6582 *)
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 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 +00006590 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006592 break 2
6593 fi
6594done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006595done
David Greenef0b9eff2009-07-09 17:16:26 +00006596IFS=$as_save_IFS
6597
6598 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6599 ;;
6600esac
6601fi
6602NEATO=$ac_cv_path_NEATO
6603if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006604 { echo "$as_me:$LINENO: result: $NEATO" >&5
6605echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006606else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006607 { echo "$as_me:$LINENO: result: no" >&5
6608echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006609fi
6610
6611
6612if test "$NEATO" != "echo neato" ; then
6613
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006614cat >>confdefs.h <<\_ACEOF
6615#define HAVE_NEATO 1
6616_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006617
6618 if test "$llvm_cv_os_type" = "MingW" ; then
6619 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6620 fi
6621
6622cat >>confdefs.h <<_ACEOF
6623#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6624_ACEOF
6625
6626fi
6627# Extract the first word of "twopi", so it can be a program name with args.
6628set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6631if test "${ac_cv_path_TWOPI+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006633else
6634 case $TWOPI in
6635 [\\/]* | ?:[\\/]*)
6636 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6637 ;;
6638 *)
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640for as_dir in $PATH
6641do
6642 IFS=$as_save_IFS
6643 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 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 +00006646 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006648 break 2
6649 fi
6650done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006651done
David Greenef0b9eff2009-07-09 17:16:26 +00006652IFS=$as_save_IFS
6653
6654 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6655 ;;
6656esac
6657fi
6658TWOPI=$ac_cv_path_TWOPI
6659if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006660 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6661echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006662else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006663 { echo "$as_me:$LINENO: result: no" >&5
6664echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006665fi
6666
6667
6668if test "$TWOPI" != "echo twopi" ; then
6669
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006670cat >>confdefs.h <<\_ACEOF
6671#define HAVE_TWOPI 1
6672_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006673
6674 if test "$llvm_cv_os_type" = "MingW" ; then
6675 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6676 fi
6677
6678cat >>confdefs.h <<_ACEOF
6679#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6680_ACEOF
6681
6682fi
6683# Extract the first word of "circo", so it can be a program name with args.
6684set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006685{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6687if test "${ac_cv_path_CIRCO+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006689else
6690 case $CIRCO in
6691 [\\/]* | ?:[\\/]*)
6692 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6693 ;;
6694 *)
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696for as_dir in $PATH
6697do
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 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 +00006702 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006704 break 2
6705 fi
6706done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006707done
David Greenef0b9eff2009-07-09 17:16:26 +00006708IFS=$as_save_IFS
6709
6710 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6711 ;;
6712esac
6713fi
6714CIRCO=$ac_cv_path_CIRCO
6715if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006716 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6717echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006718else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006719 { echo "$as_me:$LINENO: result: no" >&5
6720echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006721fi
6722
6723
6724if test "$CIRCO" != "echo circo" ; then
6725
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006726cat >>confdefs.h <<\_ACEOF
6727#define HAVE_CIRCO 1
6728_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006729
6730 if test "$llvm_cv_os_type" = "MingW" ; then
6731 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6732 fi
6733
6734cat >>confdefs.h <<_ACEOF
6735#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6736_ACEOF
6737
6738fi
Reid Spencera773bd52006-08-04 18:18:08 +00006739for ac_prog in gv gsview32
6740do
6741 # Extract the first word of "$ac_prog", so it can be a program name with args.
6742set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745if test "${ac_cv_path_GV+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006747else
6748 case $GV in
6749 [\\/]* | ?:[\\/]*)
6750 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6751 ;;
6752 *)
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754for as_dir in $PATH
6755do
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006760 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006762 break 2
6763 fi
6764done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006765done
Reid Spencera773bd52006-08-04 18:18:08 +00006766IFS=$as_save_IFS
6767
6768 ;;
6769esac
6770fi
6771GV=$ac_cv_path_GV
6772if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006773 { echo "$as_me:$LINENO: result: $GV" >&5
6774echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006775else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006776 { echo "$as_me:$LINENO: result: no" >&5
6777echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006778fi
6779
6780
6781 test -n "$GV" && break
6782done
6783test -n "$GV" || GV="echo gv"
6784
6785if test "$GV" != "echo gv" ; then
6786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006787cat >>confdefs.h <<\_ACEOF
6788#define HAVE_GV 1
6789_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006790
Jeff Cohen28783c32007-01-12 18:22:38 +00006791 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006792 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6793 fi
6794
6795cat >>confdefs.h <<_ACEOF
6796#define LLVM_PATH_GV "$GV${EXEEXT}"
6797_ACEOF
6798
6799fi
6800# Extract the first word of "dotty", so it can be a program name with args.
6801set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006802{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6804if test "${ac_cv_path_DOTTY+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006806else
6807 case $DOTTY in
6808 [\\/]* | ?:[\\/]*)
6809 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6810 ;;
6811 *)
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 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 +00006819 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006821 break 2
6822 fi
6823done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006824done
Reid Spencera773bd52006-08-04 18:18:08 +00006825IFS=$as_save_IFS
6826
6827 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6828 ;;
6829esac
6830fi
6831DOTTY=$ac_cv_path_DOTTY
6832if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006833 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6834echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006835else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006836 { echo "$as_me:$LINENO: result: no" >&5
6837echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006838fi
6839
6840
6841if test "$DOTTY" != "echo dotty" ; then
6842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006843cat >>confdefs.h <<\_ACEOF
6844#define HAVE_DOTTY 1
6845_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006846
Jeff Cohen28783c32007-01-12 18:22:38 +00006847 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006848 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6849 fi
6850
6851cat >>confdefs.h <<_ACEOF
6852#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6853_ACEOF
6854
6855fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006856# Extract the first word of "xdot.py", so it can be a program name with args.
6857set dummy xdot.py; ac_word=$2
6858{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860if test "${ac_cv_path_XDOT_PY+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6862else
6863 case $XDOT_PY in
6864 [\\/]* | ?:[\\/]*)
6865 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6866 ;;
6867 *)
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869for as_dir in $PATH
6870do
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6875 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6878 fi
6879done
6880done
6881IFS=$as_save_IFS
6882
6883 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6884 ;;
6885esac
6886fi
6887XDOT_PY=$ac_cv_path_XDOT_PY
6888if test -n "$XDOT_PY"; then
6889 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6890echo "${ECHO_T}$XDOT_PY" >&6; }
6891else
6892 { echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6; }
6894fi
6895
6896
6897if test "$XDOT_PY" != "echo xdot.py" ; then
6898
6899cat >>confdefs.h <<\_ACEOF
6900#define HAVE_XDOT_PY 1
6901_ACEOF
6902
6903 if test "$llvm_cv_os_type" = "MingW" ; then
6904 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6905 fi
6906
6907cat >>confdefs.h <<_ACEOF
6908#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6909_ACEOF
6910
6911fi
Reid Spencera773bd52006-08-04 18:18:08 +00006912
Reid Spencera773bd52006-08-04 18:18:08 +00006913# Find a good install program. We prefer a C program (faster),
6914# so one script is as good as another. But avoid the broken or
6915# incompatible versions:
6916# SysV /etc/install, /usr/sbin/install
6917# SunOS /usr/etc/install
6918# IRIX /sbin/install
6919# AIX /bin/install
6920# AmigaOS /C/install, which installs bootblocks on floppy discs
6921# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6922# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6923# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6924# OS/2's system install, which has a completely different semantic
6925# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006926{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6927echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006928if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006929if test "${ac_cv_path_install+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006931else
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933for as_dir in $PATH
6934do
6935 IFS=$as_save_IFS
6936 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006937 # Account for people who put trailing slashes in PATH elements.
6938case $as_dir/ in
6939 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006940 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006941 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006942 /usr/ucb/* ) ;;
6943 *)
6944 # OSF1 and SCO ODT 3.0 have their own names for install.
6945 # Don't use installbsd from OSF since it installs stuff as root
6946 # by default.
6947 for ac_prog in ginstall scoinst install; do
6948 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006949 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 +00006950 if test $ac_prog = install &&
6951 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6952 # AIX install. It has an incompatible calling convention.
6953 :
6954 elif test $ac_prog = install &&
6955 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6956 # program-specific install script used by HP pwplus--don't use.
6957 :
6958 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006959 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6960 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00006961 fi
6962 fi
6963 done
6964 done
6965 ;;
6966esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006967done
Reid Spencera773bd52006-08-04 18:18:08 +00006968IFS=$as_save_IFS
6969
6970
6971fi
6972 if test "${ac_cv_path_install+set}" = set; then
6973 INSTALL=$ac_cv_path_install
6974 else
6975 # As a last resort, use the slow shell script. Don't cache a
6976 # value for INSTALL within a source directory, because that will
6977 # break other packages using the cache if that directory is
6978 # removed, or if the value is a relative name.
6979 INSTALL=$ac_install_sh
6980 fi
6981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006982{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6983echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006984
6985# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6986# It thinks the first close brace ends the variable substitution.
6987test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6988
6989test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6990
6991test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6992
Eric Christopher2a1a44f2010-07-22 21:13:48 +00006993case "$INSTALL" in
6994 [\\/$]* | ?:[\\/]* ) ;;
6995 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6996esac
Reid Spencera773bd52006-08-04 18:18:08 +00006997
6998# Extract the first word of "bzip2", so it can be a program name with args.
6999set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007000{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002if test "${ac_cv_path_BZIP2+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007004else
7005 case $BZIP2 in
7006 [\\/]* | ?:[\\/]*)
7007 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7008 ;;
7009 *)
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 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 +00007017 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007019 break 2
7020 fi
7021done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007022done
Reid Spencera773bd52006-08-04 18:18:08 +00007023IFS=$as_save_IFS
7024
Reid Spencera773bd52006-08-04 18:18:08 +00007025 ;;
7026esac
7027fi
7028BZIP2=$ac_cv_path_BZIP2
7029if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007030 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7031echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007032else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007033 { echo "$as_me:$LINENO: result: no" >&5
7034echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007035fi
7036
7037
mike-m68cb3192010-05-06 23:45:43 +00007038# Extract the first word of "cat", so it can be a program name with args.
7039set dummy cat; ac_word=$2
7040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042if test "${ac_cv_path_CAT+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7044else
7045 case $CAT in
7046 [\\/]* | ?:[\\/]*)
7047 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7048 ;;
7049 *)
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051for as_dir in $PATH
7052do
7053 IFS=$as_save_IFS
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 break 2
7060 fi
7061done
7062done
7063IFS=$as_save_IFS
7064
7065 ;;
7066esac
7067fi
7068CAT=$ac_cv_path_CAT
7069if test -n "$CAT"; then
7070 { echo "$as_me:$LINENO: result: $CAT" >&5
7071echo "${ECHO_T}$CAT" >&6; }
7072else
7073 { echo "$as_me:$LINENO: result: no" >&5
7074echo "${ECHO_T}no" >&6; }
7075fi
7076
7077
Reid Spencera773bd52006-08-04 18:18:08 +00007078# Extract the first word of "doxygen", so it can be a program name with args.
7079set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007080{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082if test "${ac_cv_path_DOXYGEN+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007084else
7085 case $DOXYGEN in
7086 [\\/]* | ?:[\\/]*)
7087 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7088 ;;
7089 *)
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 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 +00007097 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007099 break 2
7100 fi
7101done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007102done
Reid Spencera773bd52006-08-04 18:18:08 +00007103IFS=$as_save_IFS
7104
Reid Spencera773bd52006-08-04 18:18:08 +00007105 ;;
7106esac
7107fi
7108DOXYGEN=$ac_cv_path_DOXYGEN
7109if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007110 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7111echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007112else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007113 { echo "$as_me:$LINENO: result: no" >&5
7114echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007115fi
7116
7117
Reid Spencera773bd52006-08-04 18:18:08 +00007118# Extract the first word of "groff", so it can be a program name with args.
7119set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007120{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122if test "${ac_cv_path_GROFF+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007124else
7125 case $GROFF in
7126 [\\/]* | ?:[\\/]*)
7127 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7128 ;;
7129 *)
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131for as_dir in $PATH
7132do
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 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 +00007137 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007139 break 2
7140 fi
7141done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007142done
Reid Spencera773bd52006-08-04 18:18:08 +00007143IFS=$as_save_IFS
7144
Reid Spencera773bd52006-08-04 18:18:08 +00007145 ;;
7146esac
7147fi
7148GROFF=$ac_cv_path_GROFF
7149if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007150 { echo "$as_me:$LINENO: result: $GROFF" >&5
7151echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007152else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007153 { echo "$as_me:$LINENO: result: no" >&5
7154echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007155fi
7156
7157
7158# Extract the first word of "gzip", so it can be a program name with args.
7159set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007160{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007162if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007163 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007164else
Eric Christopher031d3072010-12-10 01:31:51 +00007165 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007166 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007167 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007168 ;;
7169 *)
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH
7172do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 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 +00007177 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007179 break 2
7180 fi
7181done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007182done
Reid Spencera773bd52006-08-04 18:18:08 +00007183IFS=$as_save_IFS
7184
Reid Spencera773bd52006-08-04 18:18:08 +00007185 ;;
7186esac
7187fi
Eric Christopher031d3072010-12-10 01:31:51 +00007188GZIPBIN=$ac_cv_path_GZIPBIN
7189if test -n "$GZIPBIN"; then
7190 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7191echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007192else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007193 { echo "$as_me:$LINENO: result: no" >&5
7194echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007195fi
7196
7197
7198# Extract the first word of "pod2html", so it can be a program name with args.
7199set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202if test "${ac_cv_path_POD2HTML+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007204else
7205 case $POD2HTML in
7206 [\\/]* | ?:[\\/]*)
7207 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7208 ;;
7209 *)
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211for as_dir in $PATH
7212do
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 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 +00007217 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007219 break 2
7220 fi
7221done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222done
Reid Spencera773bd52006-08-04 18:18:08 +00007223IFS=$as_save_IFS
7224
Reid Spencera773bd52006-08-04 18:18:08 +00007225 ;;
7226esac
7227fi
7228POD2HTML=$ac_cv_path_POD2HTML
7229if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007230 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7231echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007232else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007233 { echo "$as_me:$LINENO: result: no" >&5
7234echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007235fi
7236
7237
7238# Extract the first word of "pod2man", so it can be a program name with args.
7239set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007240{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242if test "${ac_cv_path_POD2MAN+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007244else
7245 case $POD2MAN in
7246 [\\/]* | ?:[\\/]*)
7247 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7248 ;;
7249 *)
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251for as_dir in $PATH
7252do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 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 +00007257 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007259 break 2
7260 fi
7261done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007262done
Reid Spencera773bd52006-08-04 18:18:08 +00007263IFS=$as_save_IFS
7264
Reid Spencera773bd52006-08-04 18:18:08 +00007265 ;;
7266esac
7267fi
7268POD2MAN=$ac_cv_path_POD2MAN
7269if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007270 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7271echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007272else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007273 { echo "$as_me:$LINENO: result: no" >&5
7274echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007275fi
7276
7277
mike-m68cb3192010-05-06 23:45:43 +00007278# Extract the first word of "pdfroff", so it can be a program name with args.
7279set dummy pdfroff; ac_word=$2
7280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282if test "${ac_cv_path_PDFROFF+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7284else
7285 case $PDFROFF in
7286 [\\/]* | ?:[\\/]*)
7287 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7288 ;;
7289 *)
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301done
7302done
7303IFS=$as_save_IFS
7304
7305 ;;
7306esac
7307fi
7308PDFROFF=$ac_cv_path_PDFROFF
7309if test -n "$PDFROFF"; then
7310 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7311echo "${ECHO_T}$PDFROFF" >&6; }
7312else
7313 { echo "$as_me:$LINENO: result: no" >&5
7314echo "${ECHO_T}no" >&6; }
7315fi
7316
7317
Reid Spencera773bd52006-08-04 18:18:08 +00007318# Extract the first word of "runtest", so it can be a program name with args.
7319set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322if test "${ac_cv_path_RUNTEST+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007324else
7325 case $RUNTEST in
7326 [\\/]* | ?:[\\/]*)
7327 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7328 ;;
7329 *)
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 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 +00007337 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007339 break 2
7340 fi
7341done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007342done
Reid Spencera773bd52006-08-04 18:18:08 +00007343IFS=$as_save_IFS
7344
Reid Spencera773bd52006-08-04 18:18:08 +00007345 ;;
7346esac
7347fi
7348RUNTEST=$ac_cv_path_RUNTEST
7349if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007350 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7351echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007353 { echo "$as_me:$LINENO: result: no" >&5
7354echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007355fi
7356
7357
7358
7359no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007360{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7361echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007362
7363# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007364if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007365 withval=$with_tclinclude; with_tclinclude=${withval}
7366else
7367 with_tclinclude=''
7368fi
7369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007370if test "${ac_cv_path_tclsh+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007372else
7373
7374if test x"${with_tclinclude}" != x ; then
7375 if test -f ${with_tclinclude}/tclsh ; then
7376 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7377 elif test -f ${with_tclinclude}/src/tclsh ; then
7378 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7379 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007380 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7381echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7382 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007383 fi
7384fi
Torok Edwin871384f2010-01-26 08:50:50 +00007385fi
7386
Reid Spencera773bd52006-08-04 18:18:08 +00007387
7388if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007389 { echo "$as_me:$LINENO: result: none" >&5
7390echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007391 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
7392do
7393 # Extract the first word of "$ac_prog", so it can be a program name with args.
7394set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7397if test "${ac_cv_path_TCLSH+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007399else
7400 case $TCLSH in
7401 [\\/]* | ?:[\\/]*)
7402 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7403 ;;
7404 *)
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406for as_dir in $PATH
7407do
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 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 +00007412 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007414 break 2
7415 fi
7416done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007417done
Reid Spencera773bd52006-08-04 18:18:08 +00007418IFS=$as_save_IFS
7419
7420 ;;
7421esac
7422fi
7423TCLSH=$ac_cv_path_TCLSH
7424if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007425 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7426echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007427else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007428 { echo "$as_me:$LINENO: result: no" >&5
7429echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007430fi
7431
7432
7433 test -n "$TCLSH" && break
7434done
7435
7436 if test x"${TCLSH}" = x ; then
7437 ac_cv_path_tclsh='';
7438 else
7439 ac_cv_path_tclsh="${TCLSH}";
7440 fi
7441else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007442 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7443echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007444 TCLSH="${ac_cv_path_tclsh}"
7445
7446fi
7447
Reid Spencera773bd52006-08-04 18:18:08 +00007448# Extract the first word of "zip", so it can be a program name with args.
7449set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007450{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452if test "${ac_cv_path_ZIP+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007454else
7455 case $ZIP in
7456 [\\/]* | ?:[\\/]*)
7457 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7458 ;;
7459 *)
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461for as_dir in $PATH
7462do
7463 IFS=$as_save_IFS
7464 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 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 +00007467 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007469 break 2
7470 fi
7471done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007472done
Reid Spencera773bd52006-08-04 18:18:08 +00007473IFS=$as_save_IFS
7474
Reid Spencera773bd52006-08-04 18:18:08 +00007475 ;;
7476esac
7477fi
7478ZIP=$ac_cv_path_ZIP
7479if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007480 { echo "$as_me:$LINENO: result: $ZIP" >&5
7481echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007482else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007483 { echo "$as_me:$LINENO: result: no" >&5
7484echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007485fi
7486
7487
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007488for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007489do
7490 # Extract the first word of "$ac_prog", so it can be a program name with args.
7491set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494if test "${ac_cv_path_OCAMLC+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007496else
7497 case $OCAMLC in
7498 [\\/]* | ?:[\\/]*)
7499 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7500 ;;
7501 *)
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503for as_dir in $PATH
7504do
7505 IFS=$as_save_IFS
7506 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 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 +00007509 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007511 break 2
7512 fi
7513done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007514done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007515IFS=$as_save_IFS
7516
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007517 ;;
7518esac
7519fi
7520OCAMLC=$ac_cv_path_OCAMLC
7521if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007522 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7523echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007524else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007525 { echo "$as_me:$LINENO: result: no" >&5
7526echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007527fi
7528
7529
Gordon Henriksene7072162008-03-07 18:20:01 +00007530 test -n "$OCAMLC" && break
7531done
7532
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007533for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007534do
7535 # Extract the first word of "$ac_prog", so it can be a program name with args.
7536set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007541else
7542 case $OCAMLOPT in
7543 [\\/]* | ?:[\\/]*)
7544 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7545 ;;
7546 *)
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 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 +00007554 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007556 break 2
7557 fi
7558done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007559done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007560IFS=$as_save_IFS
7561
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007562 ;;
7563esac
7564fi
7565OCAMLOPT=$ac_cv_path_OCAMLOPT
7566if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007567 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7568echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007569else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007570 { echo "$as_me:$LINENO: result: no" >&5
7571echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007572fi
7573
7574
Gordon Henriksene7072162008-03-07 18:20:01 +00007575 test -n "$OCAMLOPT" && break
7576done
7577
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007578for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007579do
7580 # Extract the first word of "$ac_prog", so it can be a program name with args.
7581set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007586else
7587 case $OCAMLDEP in
7588 [\\/]* | ?:[\\/]*)
7589 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7590 ;;
7591 *)
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593for as_dir in $PATH
7594do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 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 +00007599 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007601 break 2
7602 fi
7603done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007604done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007605IFS=$as_save_IFS
7606
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007607 ;;
7608esac
7609fi
7610OCAMLDEP=$ac_cv_path_OCAMLDEP
7611if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007612 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7613echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007615 { echo "$as_me:$LINENO: result: no" >&5
7616echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007617fi
7618
7619
Gordon Henriksene7072162008-03-07 18:20:01 +00007620 test -n "$OCAMLDEP" && break
7621done
7622
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007623for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007624do
7625 # Extract the first word of "$ac_prog", so it can be a program name with args.
7626set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007631else
7632 case $OCAMLDOC in
7633 [\\/]* | ?:[\\/]*)
7634 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7635 ;;
7636 *)
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638for as_dir in $PATH
7639do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 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 +00007644 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007646 break 2
7647 fi
7648done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007649done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007650IFS=$as_save_IFS
7651
7652 ;;
7653esac
7654fi
7655OCAMLDOC=$ac_cv_path_OCAMLDOC
7656if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007657 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7658echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007659else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007660 { echo "$as_me:$LINENO: result: no" >&5
7661echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007662fi
7663
7664
7665 test -n "$OCAMLDOC" && break
7666done
7667
Torok Edwincc499a42008-10-22 09:56:27 +00007668for ac_prog in gas as
7669do
7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
7671set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674if test "${ac_cv_path_GAS+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00007676else
7677 case $GAS in
7678 [\\/]* | ?:[\\/]*)
7679 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7680 ;;
7681 *)
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 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 +00007689 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00007691 break 2
7692 fi
7693done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007694done
Torok Edwincc499a42008-10-22 09:56:27 +00007695IFS=$as_save_IFS
7696
7697 ;;
7698esac
7699fi
7700GAS=$ac_cv_path_GAS
7701if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007702 { echo "$as_me:$LINENO: result: $GAS" >&5
7703echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007704else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007705 { echo "$as_me:$LINENO: result: no" >&5
7706echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00007707fi
7708
7709
7710 test -n "$GAS" && break
7711done
7712
Reid Spencera773bd52006-08-04 18:18:08 +00007713
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007714{ echo "$as_me:$LINENO: checking for linker version" >&5
7715echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7716if test "${llvm_cv_link_version+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718else
7719
7720 version_string="$(ld -v 2>&1 | head -1)"
7721
7722 # Check for ld64.
7723 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007724 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007725 else
7726 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7727 fi
7728
7729fi
7730{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7731echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7732
7733cat >>confdefs.h <<_ACEOF
7734#define HOST_LINK_VERSION "$llvm_cv_link_version"
7735_ACEOF
7736
7737
7738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007739{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7740echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7741if test "${llvm_cv_link_use_r+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007743else
7744 ac_ext=c
7745ac_cpp='$CPP $CPPFLAGS'
7746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7748ac_compiler_gnu=$ac_cv_c_compiler_gnu
7749
7750 oldcflags="$CFLAGS"
7751 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752 cat >conftest.$ac_ext <<_ACEOF
7753/* confdefs.h. */
7754_ACEOF
7755cat confdefs.h >>conftest.$ac_ext
7756cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007757/* end confdefs.h. */
7758
7759int
7760main ()
7761{
Dan Gohman39ed6782010-04-25 00:12:20 +00007762
Reid Spencera773bd52006-08-04 18:18:08 +00007763 ;
7764 return 0;
7765}
7766_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007767rm -f conftest.$ac_objext conftest$ac_exeext
7768if { (ac_try="$ac_link"
7769case "(($ac_try" in
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7772esac
7773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774 (eval "$ac_link") 2>conftest.er1
7775 ac_status=$?
7776 grep -v '^ *+' conftest.er1 >conftest.err
7777 rm -f conftest.er1
7778 cat conftest.err >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7782 { (case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7785esac
7786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_try") 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; } &&
7791 { ac_try='test -s conftest$ac_exeext'
7792 { (case "(($ac_try" in
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7795esac
7796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797 (eval "$ac_try") 2>&5
7798 ac_status=$?
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007801 llvm_cv_link_use_r=yes
7802else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007803 echo "$as_me: failed program was:" >&5
7804sed 's/^/| /' conftest.$ac_ext >&5
7805
7806 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007807fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007808
Bill Wendlingebcceee2009-04-18 11:20:33 +00007809rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007810 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007811 CFLAGS="$oldcflags"
7812 ac_ext=c
7813ac_cpp='$CPP $CPPFLAGS'
7814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7816ac_compiler_gnu=$ac_cv_c_compiler_gnu
7817
7818
7819fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007820{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7821echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007822if test "$llvm_cv_link_use_r" = yes ; then
7823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007824cat >>confdefs.h <<\_ACEOF
7825#define HAVE_LINK_R 1
7826_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007827
7828 fi
7829
7830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007831{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7832echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7833if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007835else
7836 ac_ext=c
7837ac_cpp='$CPP $CPPFLAGS'
7838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840ac_compiler_gnu=$ac_cv_c_compiler_gnu
7841
7842 oldcflags="$CFLAGS"
7843 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007844 cat >conftest.$ac_ext <<_ACEOF
7845/* confdefs.h. */
7846_ACEOF
7847cat confdefs.h >>conftest.$ac_ext
7848cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007849/* end confdefs.h. */
7850
7851int
7852main ()
7853{
Dan Gohman39ed6782010-04-25 00:12:20 +00007854
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007855 ;
7856 return 0;
7857}
7858_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007859rm -f conftest.$ac_objext conftest$ac_exeext
7860if { (ac_try="$ac_link"
7861case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864esac
7865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_link") 2>conftest.er1
7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7874 { (case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7877esac
7878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_try") 2>&5
7880 ac_status=$?
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try='test -s conftest$ac_exeext'
7884 { (case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7887esac
7888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_try") 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007893 llvm_cv_link_use_export_dynamic=yes
7894else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007895 echo "$as_me: failed program was:" >&5
7896sed 's/^/| /' conftest.$ac_ext >&5
7897
7898 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007899fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007900
Bill Wendlingebcceee2009-04-18 11:20:33 +00007901rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007902 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007903 CFLAGS="$oldcflags"
7904 ac_ext=c
7905ac_cpp='$CPP $CPPFLAGS'
7906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7908ac_compiler_gnu=$ac_cv_c_compiler_gnu
7909
7910
7911fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007912{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7913echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007914if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007916cat >>confdefs.h <<\_ACEOF
7917#define HAVE_LINK_EXPORT_DYNAMIC 1
7918_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007919
7920 fi
7921
7922
Dan Gohmanda612d62010-06-01 14:56:56 +00007923{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7924echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7925if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007926 echo $ECHO_N "(cached) $ECHO_C" >&6
7927else
7928 ac_ext=c
7929ac_cpp='$CPP $CPPFLAGS'
7930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932ac_compiler_gnu=$ac_cv_c_compiler_gnu
7933
7934 oldcflags="$CFLAGS"
7935
7936 # The following code is from the autoconf manual,
7937 # "11.13: Limitations of Usual Tools".
7938 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7939 # Use mktemp if possible; otherwise fall back on mkdir,
7940 # with $RANDOM to make collisions less likely.
7941 : ${TMPDIR=/tmp}
7942 {
7943 tmp=`
7944 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7945 ` &&
7946 test -n "$tmp" && test -d "$tmp"
7947 } || {
7948 tmp=$TMPDIR/foo$$-$RANDOM
7949 (umask 077 && mkdir "$tmp")
7950 } || exit $?
7951
Dan Gohmanda612d62010-06-01 14:56:56 +00007952 echo "{" > "$tmp/export.map"
7953 echo " global: main;" >> "$tmp/export.map"
7954 echo " local: *;" >> "$tmp/export.map"
7955 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007956
Dan Gohmanda612d62010-06-01 14:56:56 +00007957 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007958 cat >conftest.$ac_ext <<_ACEOF
7959/* confdefs.h. */
7960_ACEOF
7961cat confdefs.h >>conftest.$ac_ext
7962cat >>conftest.$ac_ext <<_ACEOF
7963/* end confdefs.h. */
7964
7965int
7966main ()
7967{
Dan Gohman39ed6782010-04-25 00:12:20 +00007968
Dan Gohman391569c2010-04-16 22:59:06 +00007969 ;
7970 return 0;
7971}
7972_ACEOF
7973rm -f conftest.$ac_objext conftest$ac_exeext
7974if { (ac_try="$ac_link"
7975case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978esac
7979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_link") 2>conftest.er1
7981 ac_status=$?
7982 grep -v '^ *+' conftest.er1 >conftest.err
7983 rm -f conftest.er1
7984 cat conftest.err >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } &&
7987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7988 { (case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7991esac
7992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_try") 2>&5
7994 ac_status=$?
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; } &&
7997 { ac_try='test -s conftest$ac_exeext'
7998 { (case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8001esac
8002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_try") 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008007 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008008else
8009 echo "$as_me: failed program was:" >&5
8010sed 's/^/| /' conftest.$ac_ext >&5
8011
Dan Gohman943005e2010-06-01 16:22:27 +00008012 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008013fi
8014
8015rm -f core conftest.err conftest.$ac_objext \
8016 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008017 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008018 rmdir "$tmp"
8019 CFLAGS="$oldcflags"
8020 ac_ext=c
8021ac_cpp='$CPP $CPPFLAGS'
8022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8024ac_compiler_gnu=$ac_cv_c_compiler_gnu
8025
8026
8027fi
Dan Gohmanda612d62010-06-01 14:56:56 +00008028{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8029echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8030if test "$llvm_cv_link_use_version_script" = yes ; then
8031 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00008032
8033 fi
8034
8035
Reid Spencera773bd52006-08-04 18:18:08 +00008036
8037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008038{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8039echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8040if test "${ac_cv_c_const+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008042else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008043 cat >conftest.$ac_ext <<_ACEOF
8044/* confdefs.h. */
8045_ACEOF
8046cat confdefs.h >>conftest.$ac_ext
8047cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008048/* end confdefs.h. */
8049
8050int
8051main ()
8052{
8053/* FIXME: Include the comments suggested by Paul. */
8054#ifndef __cplusplus
8055 /* Ultrix mips cc rejects this. */
8056 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008057 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008058 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008059 char const *const *ccp;
8060 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008061 /* NEC SVR4.0.2 mips cc rejects this. */
8062 struct point {int x, y;};
8063 static struct point const zero = {0,0};
8064 /* AIX XL C 1.02.0.0 rejects this.
8065 It does not let you subtract one const X* pointer from another in
8066 an arm of an if-expression whose if-part is not a constant
8067 expression */
8068 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008069 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008070 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008071 ++ccp;
8072 p = (char**) ccp;
8073 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008074 { /* SCO 3.2v4 cc rejects this. */
8075 char *t;
8076 char const *s = 0 ? (char *) 0 : (char const *) 0;
8077
8078 *t++ = 0;
8079 if (s) return 0;
8080 }
8081 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8082 int x[] = {25, 17};
8083 const int *foo = &x[0];
8084 ++foo;
8085 }
8086 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8087 typedef const int *iptr;
8088 iptr p = 0;
8089 ++p;
8090 }
8091 { /* AIX XL C 1.02.0.0 rejects this saying
8092 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8093 struct s { int j; const int *ap[3]; };
8094 struct s *b; b->j = 5;
8095 }
8096 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8097 const int foo = 10;
8098 if (!foo) return 0;
8099 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008100 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008101#endif
8102
8103 ;
8104 return 0;
8105}
8106_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008107rm -f conftest.$ac_objext
8108if { (ac_try="$ac_compile"
8109case "(($ac_try" in
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8112esac
8113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_compile") 2>conftest.er1
8115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8125esac
8126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_try") 2>&5
8128 ac_status=$?
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; } &&
8131 { ac_try='test -s conftest.$ac_objext'
8132 { (case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135esac
8136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_try") 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008141 ac_cv_c_const=yes
8142else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008143 echo "$as_me: failed program was:" >&5
8144sed 's/^/| /' conftest.$ac_ext >&5
8145
8146 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008147fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008148
Reid Spencera773bd52006-08-04 18:18:08 +00008149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008151{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8152echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008153if test $ac_cv_c_const = no; then
8154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008155cat >>confdefs.h <<\_ACEOF
8156#define const
8157_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008158
8159fi
8160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008161
8162
8163
8164
8165
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008166ac_header_dirent=no
8167for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008168 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8169{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8170echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008173else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008174 cat >conftest.$ac_ext <<_ACEOF
8175/* confdefs.h. */
8176_ACEOF
8177cat confdefs.h >>conftest.$ac_ext
8178cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008179/* end confdefs.h. */
8180#include <sys/types.h>
8181#include <$ac_hdr>
8182
8183int
8184main ()
8185{
8186if ((DIR *) 0)
8187return 0;
8188 ;
8189 return 0;
8190}
8191_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008192rm -f conftest.$ac_objext
8193if { (ac_try="$ac_compile"
8194case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197esac
8198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_compile") 2>conftest.er1
8200 ac_status=$?
8201 grep -v '^ *+' conftest.er1 >conftest.err
8202 rm -f conftest.er1
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } &&
8206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8207 { (case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8210esac
8211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_try") 2>&5
8213 ac_status=$?
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; } &&
8216 { ac_try='test -s conftest.$ac_objext'
8217 { (case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8220esac
8221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_try") 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008226 eval "$as_ac_Header=yes"
8227else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008228 echo "$as_me: failed program was:" >&5
8229sed 's/^/| /' conftest.$ac_ext >&5
8230
8231 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008232fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008233
Reid Spencera773bd52006-08-04 18:18:08 +00008234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008235fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236ac_res=`eval echo '${'$as_ac_Header'}'`
8237 { echo "$as_me:$LINENO: result: $ac_res" >&5
8238echo "${ECHO_T}$ac_res" >&6; }
8239if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008240 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008241#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008242_ACEOF
8243
8244ac_header_dirent=$ac_hdr; break
8245fi
8246
8247done
8248# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8249if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008250 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8251echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8252if test "${ac_cv_search_opendir+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008254else
8255 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008256cat >conftest.$ac_ext <<_ACEOF
8257/* confdefs.h. */
8258_ACEOF
8259cat confdefs.h >>conftest.$ac_ext
8260cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008261/* end confdefs.h. */
8262
Reid Spencera773bd52006-08-04 18:18:08 +00008263/* Override any GCC internal prototype to avoid an error.
8264 Use char because int might match the return type of a GCC
8265 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008266#ifdef __cplusplus
8267extern "C"
8268#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008269char opendir ();
8270int
8271main ()
8272{
Reid Spencera773bd52006-08-04 18:18:08 +00008273return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008274 ;
8275 return 0;
8276}
8277_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008278for ac_lib in '' dir; do
8279 if test -z "$ac_lib"; then
8280 ac_res="none required"
8281 else
8282 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008284 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008285 rm -f conftest.$ac_objext conftest$ac_exeext
8286if { (ac_try="$ac_link"
8287case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8290esac
8291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_link") 2>conftest.er1
8293 ac_status=$?
8294 grep -v '^ *+' conftest.er1 >conftest.err
8295 rm -f conftest.er1
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
8299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8303esac
8304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest$ac_exeext'
8310 { (case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8313esac
8314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_try") 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008319 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008320else
8321 echo "$as_me: failed program was:" >&5
8322sed 's/^/| /' conftest.$ac_ext >&5
8323
8324
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008325fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008326
Bill Wendlingebcceee2009-04-18 11:20:33 +00008327rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008328 conftest$ac_exeext
8329 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008330 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008331fi
John Criswell7a73b802003-06-30 21:59:07 +00008332done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008333if test "${ac_cv_search_opendir+set}" = set; then
8334 :
Reid Spencera773bd52006-08-04 18:18:08 +00008335else
8336 ac_cv_search_opendir=no
8337fi
8338rm conftest.$ac_ext
8339LIBS=$ac_func_search_save_LIBS
8340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008341{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8342echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008343ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008344if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008346
Reid Spencera773bd52006-08-04 18:18:08 +00008347fi
8348
8349else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008350 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8351echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8352if test "${ac_cv_search_opendir+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008354else
8355 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008356cat >conftest.$ac_ext <<_ACEOF
8357/* confdefs.h. */
8358_ACEOF
8359cat confdefs.h >>conftest.$ac_ext
8360cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008361/* end confdefs.h. */
8362
8363/* Override any GCC internal prototype to avoid an error.
8364 Use char because int might match the return type of a GCC
8365 builtin and then its argument prototype would still apply. */
8366#ifdef __cplusplus
8367extern "C"
8368#endif
8369char opendir ();
8370int
8371main ()
8372{
8373return opendir ();
8374 ;
8375 return 0;
8376}
8377_ACEOF
8378for ac_lib in '' x; do
8379 if test -z "$ac_lib"; then
8380 ac_res="none required"
8381 else
8382 ac_res=-l$ac_lib
8383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8384 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008385 rm -f conftest.$ac_objext conftest$ac_exeext
8386if { (ac_try="$ac_link"
8387case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8390esac
8391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_link") 2>conftest.er1
8393 ac_status=$?
8394 grep -v '^ *+' conftest.er1 >conftest.err
8395 rm -f conftest.er1
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400 { (case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8403esac
8404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_try") 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest$ac_exeext'
8410 { (case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8413esac
8414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_try") 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008419 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008420else
8421 echo "$as_me: failed program was:" >&5
8422sed 's/^/| /' conftest.$ac_ext >&5
8423
8424
Reid Spencera773bd52006-08-04 18:18:08 +00008425fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008426
Bill Wendlingebcceee2009-04-18 11:20:33 +00008427rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008428 conftest$ac_exeext
8429 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008430 break
8431fi
8432done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008433if test "${ac_cv_search_opendir+set}" = set; then
8434 :
Reid Spencera773bd52006-08-04 18:18:08 +00008435else
8436 ac_cv_search_opendir=no
8437fi
8438rm conftest.$ac_ext
8439LIBS=$ac_func_search_save_LIBS
8440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008441{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8442echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008443ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008444if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8446
8447fi
8448
8449fi
John Criswell7a73b802003-06-30 21:59:07 +00008450
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008451
John Criswell7a73b802003-06-30 21:59:07 +00008452for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008453do
8454as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8460fi
8461ac_res=`eval echo '${'$as_ac_Header'}'`
8462 { echo "$as_me:$LINENO: result: $ac_res" >&5
8463echo "${ECHO_T}$ac_res" >&6; }
8464else
8465 # Is the header compilable?
8466{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8467echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8468cat >conftest.$ac_ext <<_ACEOF
8469/* confdefs.h. */
8470_ACEOF
8471cat confdefs.h >>conftest.$ac_ext
8472cat >>conftest.$ac_ext <<_ACEOF
8473/* end confdefs.h. */
8474$ac_includes_default
8475#include <$ac_header>
8476_ACEOF
8477rm -f conftest.$ac_objext
8478if { (ac_try="$ac_compile"
8479case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482esac
8483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_compile") 2>conftest.er1
8485 ac_status=$?
8486 grep -v '^ *+' conftest.er1 >conftest.err
8487 rm -f conftest.er1
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8492 { (case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495esac
8496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_try") 2>&5
8498 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; } &&
8501 { ac_try='test -s conftest.$ac_objext'
8502 { (case "(($ac_try" in
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8505esac
8506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_try") 2>&5
8508 ac_status=$?
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_header_compiler=yes
8512else
8513 echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ac_header_compiler=no
8517fi
8518
8519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8521echo "${ECHO_T}$ac_header_compiler" >&6; }
8522
8523# Is the header present?
8524{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8525echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8526cat >conftest.$ac_ext <<_ACEOF
8527/* confdefs.h. */
8528_ACEOF
8529cat confdefs.h >>conftest.$ac_ext
8530cat >>conftest.$ac_ext <<_ACEOF
8531/* end confdefs.h. */
8532#include <$ac_header>
8533_ACEOF
8534if { (ac_try="$ac_cpp conftest.$ac_ext"
8535case "(($ac_try" in
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8538esac
8539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8541 ac_status=$?
8542 grep -v '^ *+' conftest.er1 >conftest.err
8543 rm -f conftest.er1
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } >/dev/null; then
8547 if test -s conftest.err; then
8548 ac_cpp_err=$ac_c_preproc_warn_flag
8549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8550 else
8551 ac_cpp_err=
8552 fi
8553else
8554 ac_cpp_err=yes
8555fi
8556if test -z "$ac_cpp_err"; then
8557 ac_header_preproc=yes
8558else
8559 echo "$as_me: failed program was:" >&5
8560sed 's/^/| /' conftest.$ac_ext >&5
8561
8562 ac_header_preproc=no
8563fi
8564
8565rm -f conftest.err conftest.$ac_ext
8566{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8567echo "${ECHO_T}$ac_header_preproc" >&6; }
8568
8569# So? What about this header?
8570case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8571 yes:no: )
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8573echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8575echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8576 ac_header_preproc=yes
8577 ;;
8578 no:yes:* )
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8580echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8582echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8584echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8586echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8588echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8590echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8591 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008592## ------------------------------------ ##
8593## Report this to http://llvm.org/bugs/ ##
8594## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008595_ASBOX
8596 ) | sed "s/^/$as_me: WARNING: /" >&2
8597 ;;
8598esac
8599{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8603else
8604 eval "$as_ac_Header=\$ac_header_preproc"
8605fi
8606ac_res=`eval echo '${'$as_ac_Header'}'`
8607 { echo "$as_me:$LINENO: result: $ac_res" >&5
8608echo "${ECHO_T}$ac_res" >&6; }
8609
8610fi
8611if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008612 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008614_ACEOF
8615
8616fi
8617
8618done
8619
Reid Spencera773bd52006-08-04 18:18:08 +00008620# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008621if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008622 enableval=$enable_ltdl_install;
8623fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008624
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008625
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008626
8627
8628if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008629 INSTALL_LTDL_TRUE=
8630 INSTALL_LTDL_FALSE='#'
8631else
8632 INSTALL_LTDL_TRUE='#'
8633 INSTALL_LTDL_FALSE=
8634fi
8635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008636
8637
8638if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008639 CONVENIENCE_LTDL_TRUE=
8640 CONVENIENCE_LTDL_FALSE='#'
8641else
8642 CONVENIENCE_LTDL_TRUE='#'
8643 CONVENIENCE_LTDL_FALSE=
8644fi
8645
8646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008647{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8648echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008649library_names_spec=
8650libname_spec='lib$name'
8651soname_spec=
8652shrext_cmds=".so"
8653postinstall_cmds=
8654postuninstall_cmds=
8655finish_cmds=
8656finish_eval=
8657shlibpath_var=
8658shlibpath_overrides_runpath=unknown
8659version_type=none
8660dynamic_linker="$host_os ld.so"
8661sys_lib_dlsearch_path_spec="/lib /usr/lib"
8662if test "$GCC" = yes; then
8663 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8664 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8665 # if the path contains ";" then we assume it to be the separator
8666 # otherwise default to the standard path separator (i.e. ":") - it is
8667 # assumed that no part of a normal pathname contains ";" but that should
8668 # okay in the real world where ";" in dirpaths is itself problematic.
8669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8670 else
8671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8672 fi
8673else
8674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8675fi
8676need_lib_prefix=unknown
8677hardcode_into_libs=no
8678
8679# when you set need_version to no, make sure it does not cause -set_version
8680# flags to be left without arguments
8681need_version=unknown
8682
8683case $host_os in
8684aix3*)
8685 version_type=linux
8686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8687 shlibpath_var=LIBPATH
8688
8689 # AIX 3 has no versioning support, so we append a major version to the name.
8690 soname_spec='${libname}${release}${shared_ext}$major'
8691 ;;
8692
8693aix4* | aix5*)
8694 version_type=linux
8695 need_lib_prefix=no
8696 need_version=no
8697 hardcode_into_libs=yes
8698 if test "$host_cpu" = ia64; then
8699 # AIX 5 supports IA64
8700 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8701 shlibpath_var=LD_LIBRARY_PATH
8702 else
8703 # With GCC up to 2.95.x, collect2 would create an import file
8704 # for dependence libraries. The import file would start with
8705 # the line `#! .'. This would cause the generated library to
8706 # depend on `.', always an invalid library. This was fixed in
8707 # development snapshots of GCC prior to 3.0.
8708 case $host_os in
8709 aix4 | aix4.[01] | aix4.[01].*)
8710 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8711 echo ' yes '
8712 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8713 :
8714 else
8715 can_build_shared=no
8716 fi
8717 ;;
8718 esac
8719 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8720 # soname into executable. Probably we can add versioning support to
8721 # collect2, so additional links can be useful in future.
8722 if test "$aix_use_runtimelinking" = yes; then
8723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8724 # instead of lib<name>.a to let people know that these are not
8725 # typical AIX shared libraries.
8726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8727 else
8728 # We preserve .a as extension for shared libraries through AIX4.2
8729 # and later when we are not doing run time linking.
8730 library_names_spec='${libname}${release}.a $libname.a'
8731 soname_spec='${libname}${release}${shared_ext}$major'
8732 fi
8733 shlibpath_var=LIBPATH
8734 fi
8735 ;;
8736
8737amigaos*)
8738 library_names_spec='$libname.ixlibrary $libname.a'
8739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8740 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'
8741 ;;
8742
8743beos*)
8744 library_names_spec='${libname}${shared_ext}'
8745 dynamic_linker="$host_os ld.so"
8746 shlibpath_var=LIBRARY_PATH
8747 ;;
8748
8749bsdi[45]*)
8750 version_type=linux
8751 need_version=no
8752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8753 soname_spec='${libname}${release}${shared_ext}$major'
8754 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8755 shlibpath_var=LD_LIBRARY_PATH
8756 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8757 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8758 # the default ld.so.conf also contains /usr/contrib/lib and
8759 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8760 # libtool to hard-code these into programs
8761 ;;
8762
8763cygwin* | mingw* | pw32*)
8764 version_type=windows
8765 shrext_cmds=".dll"
8766 need_version=no
8767 need_lib_prefix=no
8768
8769 case $GCC,$host_os in
8770 yes,cygwin* | yes,mingw* | yes,pw32*)
8771 library_names_spec='$libname.dll.a'
8772 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8773 postinstall_cmds='base_file=`basename \${file}`~
8774 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8775 dldir=$destdir/`dirname \$dlpath`~
8776 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008777 $install_prog $dir/$dlname \$dldir/$dlname~
8778 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008779 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8780 dlpath=$dir/\$dldll~
8781 $rm \$dlpath'
8782 shlibpath_overrides_runpath=yes
8783
8784 case $host_os in
8785 cygwin*)
8786 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8787 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8788 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8789 ;;
8790 mingw*)
8791 # MinGW DLLs use traditional 'lib' prefix
8792 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8793 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8794 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8795 # It is most probably a Windows format PATH printed by
8796 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8797 # path with ; separators, and with drive letters. We can handle the
8798 # drive letters (cygwin fileutils understands them), so leave them,
8799 # especially as we might pass files found there to a mingw objdump,
8800 # which wouldn't understand a cygwinified path. Ahh.
8801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8802 else
8803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8804 fi
8805 ;;
8806 pw32*)
8807 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008808 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 +00008809 ;;
8810 esac
8811 ;;
8812
8813 *)
8814 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8815 ;;
8816 esac
8817 dynamic_linker='Win32 ld.exe'
8818 # FIXME: first we should search . and the directory the executable is in
8819 shlibpath_var=PATH
8820 ;;
8821
8822darwin* | rhapsody*)
8823 dynamic_linker="$host_os dyld"
8824 version_type=darwin
8825 need_lib_prefix=no
8826 need_version=no
8827 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8828 soname_spec='${libname}${release}${major}$shared_ext'
8829 shlibpath_overrides_runpath=yes
8830 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008831 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008832 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8833 if test "$GCC" = yes; then
8834 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"`
8835 else
8836 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8837 fi
8838 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8839 ;;
8840
8841dgux*)
8842 version_type=linux
8843 need_lib_prefix=no
8844 need_version=no
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8847 shlibpath_var=LD_LIBRARY_PATH
8848 ;;
8849
Eric Christopher360fa9a2011-10-26 00:42:12 +00008850freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008851 dynamic_linker=no
8852 ;;
8853
8854kfreebsd*-gnu)
8855 version_type=linux
8856 need_lib_prefix=no
8857 need_version=no
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8859 soname_spec='${libname}${release}${shared_ext}$major'
8860 shlibpath_var=LD_LIBRARY_PATH
8861 shlibpath_overrides_runpath=no
8862 hardcode_into_libs=yes
8863 dynamic_linker='GNU ld.so'
8864 ;;
8865
Reid Spencera773bd52006-08-04 18:18:08 +00008866freebsd* | dragonfly*)
8867 # DragonFly does not have aout. When/if they implement a new
8868 # versioning mechanism, adjust this.
8869 if test -x /usr/bin/objformat; then
8870 objformat=`/usr/bin/objformat`
8871 else
8872 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008873 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008874 *) objformat=elf ;;
8875 esac
8876 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008877 version_type=freebsd-$objformat
8878 case $version_type in
8879 freebsd-elf*)
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8881 need_version=no
8882 need_lib_prefix=no
8883 ;;
8884 freebsd-*)
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8886 need_version=yes
8887 ;;
8888 esac
8889 shlibpath_var=LD_LIBRARY_PATH
8890 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008891 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008892 shlibpath_overrides_runpath=yes
8893 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008894 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008895 shlibpath_overrides_runpath=yes
8896 hardcode_into_libs=yes
8897 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008898 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8899 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008900 shlibpath_overrides_runpath=no
8901 hardcode_into_libs=yes
8902 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008903 freebsd*) # from 4.6 on
8904 shlibpath_overrides_runpath=yes
8905 hardcode_into_libs=yes
8906 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008907 esac
8908 ;;
8909
8910gnu*)
8911 version_type=linux
8912 need_lib_prefix=no
8913 need_version=no
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8915 soname_spec='${libname}${release}${shared_ext}$major'
8916 shlibpath_var=LD_LIBRARY_PATH
8917 hardcode_into_libs=yes
8918 ;;
8919
8920hpux9* | hpux10* | hpux11*)
8921 # Give a soname corresponding to the major version so that dld.sl refuses to
8922 # link against other versions.
8923 version_type=sunos
8924 need_lib_prefix=no
8925 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008926 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008927 ia64*)
8928 shrext_cmds='.so'
8929 hardcode_into_libs=yes
8930 dynamic_linker="$host_os dld.so"
8931 shlibpath_var=LD_LIBRARY_PATH
8932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8934 soname_spec='${libname}${release}${shared_ext}$major'
8935 if test "X$HPUX_IA64_MODE" = X32; then
8936 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8937 else
8938 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8939 fi
8940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8941 ;;
8942 hppa*64*)
8943 shrext_cmds='.sl'
8944 hardcode_into_libs=yes
8945 dynamic_linker="$host_os dld.sl"
8946 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8947 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949 soname_spec='${libname}${release}${shared_ext}$major'
8950 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8952 ;;
8953 *)
8954 shrext_cmds='.sl'
8955 dynamic_linker="$host_os dld.sl"
8956 shlibpath_var=SHLIB_PATH
8957 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 ;;
8961 esac
8962 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8963 postinstall_cmds='chmod 555 $lib'
8964 ;;
8965
Reid Spencera773bd52006-08-04 18:18:08 +00008966interix3*)
8967 version_type=linux
8968 need_lib_prefix=no
8969 need_version=no
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8971 soname_spec='${libname}${release}${shared_ext}$major'
8972 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8973 shlibpath_var=LD_LIBRARY_PATH
8974 shlibpath_overrides_runpath=no
8975 hardcode_into_libs=yes
8976 ;;
8977
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008978irix5* | irix6* | nonstopux*)
8979 case $host_os in
8980 nonstopux*) version_type=nonstopux ;;
8981 *)
8982 if test "$lt_cv_prog_gnu_ld" = yes; then
8983 version_type=linux
8984 else
8985 version_type=irix
8986 fi ;;
8987 esac
8988 need_lib_prefix=no
8989 need_version=no
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8992 case $host_os in
8993 irix5* | nonstopux*)
8994 libsuff= shlibsuff=
8995 ;;
8996 *)
8997 case $LD in # libtool.m4 will add one of these switches to LD
8998 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8999 libsuff= shlibsuff= libmagic=32-bit;;
9000 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9001 libsuff=32 shlibsuff=N32 libmagic=N32;;
9002 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9003 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9004 *) libsuff= shlibsuff= libmagic=never-match;;
9005 esac
9006 ;;
9007 esac
9008 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9009 shlibpath_overrides_runpath=no
9010 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9011 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9012 hardcode_into_libs=yes
9013 ;;
9014
9015# No shared lib support for Linux oldld, aout, or coff.
9016linux*oldld* | linux*aout* | linux*coff*)
9017 dynamic_linker=no
9018 ;;
9019
9020# This must be Linux ELF.
9021linux*)
9022 version_type=linux
9023 need_lib_prefix=no
9024 need_version=no
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026 soname_spec='${libname}${release}${shared_ext}$major'
9027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=no
9030 # This implies no fast_install, which is unacceptable.
9031 # Some rework will be needed to allow for fast_install
9032 # before this can be enabled.
9033 hardcode_into_libs=yes
9034
9035 # Append ld.so.conf contents to the search path
9036 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009037 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 +00009038 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9039 fi
9040
9041 # We used to test for /lib/ld.so.1 and disable shared libraries on
9042 # powerpc, because MkLinux only supported shared libraries with the
9043 # GNU dynamic linker. Since this was broken with cross compilers,
9044 # most powerpc-linux boxes support dynamic linking these days and
9045 # people can always --disable-shared, the test was removed, and we
9046 # assume the GNU/Linux dynamic linker is in use.
9047 dynamic_linker='GNU/Linux ld.so'
9048 ;;
9049
9050knetbsd*-gnu)
9051 version_type=linux
9052 need_lib_prefix=no
9053 need_version=no
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9055 soname_spec='${libname}${release}${shared_ext}$major'
9056 shlibpath_var=LD_LIBRARY_PATH
9057 shlibpath_overrides_runpath=no
9058 hardcode_into_libs=yes
9059 dynamic_linker='GNU ld.so'
9060 ;;
9061
9062netbsd*)
9063 version_type=sunos
9064 need_lib_prefix=no
9065 need_version=no
9066 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9069 dynamic_linker='NetBSD (a.out) ld.so'
9070 else
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 dynamic_linker='NetBSD ld.elf_so'
9074 fi
9075 shlibpath_var=LD_LIBRARY_PATH
9076 shlibpath_overrides_runpath=yes
9077 hardcode_into_libs=yes
9078 ;;
9079
9080newsos6)
9081 version_type=linux
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 shlibpath_overrides_runpath=yes
9085 ;;
9086
9087nto-qnx*)
9088 version_type=linux
9089 need_lib_prefix=no
9090 need_version=no
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 shlibpath_var=LD_LIBRARY_PATH
9094 shlibpath_overrides_runpath=yes
9095 ;;
9096
9097openbsd*)
9098 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009099 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009100 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009101 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9102 case $host_os in
9103 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9104 *) need_version=no ;;
9105 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9108 shlibpath_var=LD_LIBRARY_PATH
9109 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9110 case $host_os in
9111 openbsd2.[89] | openbsd2.[89].*)
9112 shlibpath_overrides_runpath=no
9113 ;;
9114 *)
9115 shlibpath_overrides_runpath=yes
9116 ;;
9117 esac
9118 else
9119 shlibpath_overrides_runpath=yes
9120 fi
9121 ;;
9122
9123os2*)
9124 libname_spec='$name'
9125 shrext_cmds=".dll"
9126 need_lib_prefix=no
9127 library_names_spec='$libname${shared_ext} $libname.a'
9128 dynamic_linker='OS/2 ld.exe'
9129 shlibpath_var=LIBPATH
9130 ;;
9131
9132osf3* | osf4* | osf5*)
9133 version_type=osf
9134 need_lib_prefix=no
9135 need_version=no
9136 soname_spec='${libname}${release}${shared_ext}$major'
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138 shlibpath_var=LD_LIBRARY_PATH
9139 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9140 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9141 ;;
9142
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009143solaris*)
9144 version_type=linux
9145 need_lib_prefix=no
9146 need_version=no
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 shlibpath_var=LD_LIBRARY_PATH
9150 shlibpath_overrides_runpath=yes
9151 hardcode_into_libs=yes
9152 # ldd complains unless libraries are executable
9153 postinstall_cmds='chmod +x $lib'
9154 ;;
9155
9156sunos4*)
9157 version_type=sunos
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9159 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 shlibpath_overrides_runpath=yes
9162 if test "$with_gnu_ld" = yes; then
9163 need_lib_prefix=no
9164 fi
9165 need_version=yes
9166 ;;
9167
Reid Spencera773bd52006-08-04 18:18:08 +00009168sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009169 version_type=linux
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 shlibpath_var=LD_LIBRARY_PATH
9173 case $host_vendor in
9174 sni)
9175 shlibpath_overrides_runpath=no
9176 need_lib_prefix=no
9177 export_dynamic_flag_spec='${wl}-Blargedynsym'
9178 runpath_var=LD_RUN_PATH
9179 ;;
9180 siemens)
9181 need_lib_prefix=no
9182 ;;
9183 motorola)
9184 need_lib_prefix=no
9185 need_version=no
9186 shlibpath_overrides_runpath=no
9187 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9188 ;;
9189 esac
9190 ;;
9191
9192sysv4*MP*)
9193 if test -d /usr/nec ;then
9194 version_type=linux
9195 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9196 soname_spec='$libname${shared_ext}.$major'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 fi
9199 ;;
9200
Reid Spencera773bd52006-08-04 18:18:08 +00009201sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9202 version_type=freebsd-elf
9203 need_lib_prefix=no
9204 need_version=no
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9206 soname_spec='${libname}${release}${shared_ext}$major'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 hardcode_into_libs=yes
9209 if test "$with_gnu_ld" = yes; then
9210 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9211 shlibpath_overrides_runpath=no
9212 else
9213 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9214 shlibpath_overrides_runpath=yes
9215 case $host_os in
9216 sco3.2v5*)
9217 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9218 ;;
9219 esac
9220 fi
9221 sys_lib_dlsearch_path_spec='/usr/lib'
9222 ;;
9223
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009224uts4*)
9225 version_type=linux
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 shlibpath_var=LD_LIBRARY_PATH
9229 ;;
9230
9231*)
9232 dynamic_linker=no
9233 ;;
9234esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009235{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9236echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009237test "$dynamic_linker" = no && can_build_shared=no
9238
Reid Spencera773bd52006-08-04 18:18:08 +00009239variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9240if test "$GCC" = yes; then
9241 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9242fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009243
Reid Spencera773bd52006-08-04 18:18:08 +00009244
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009245{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9246echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9247if test "${libltdl_cv_shlibext+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009249else
9250
9251module=yes
9252eval libltdl_cv_shlibext=$shrext_cmds
9253
9254fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009255{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9256echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009257if test -n "$libltdl_cv_shlibext"; then
9258
9259cat >>confdefs.h <<_ACEOF
9260#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9261_ACEOF
9262
9263fi
9264
9265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009266{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9267echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9268if test "${libltdl_cv_shlibpath_var+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009270else
9271 libltdl_cv_shlibpath_var="$shlibpath_var"
9272fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009273{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9274echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009275if test -n "$libltdl_cv_shlibpath_var"; then
9276
9277cat >>confdefs.h <<_ACEOF
9278#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9279_ACEOF
9280
9281fi
9282
9283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009284{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9285echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9286if test "${libltdl_cv_sys_search_path+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009288else
9289 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009291{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9292echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009293if test -n "$libltdl_cv_sys_search_path"; then
9294 sys_search_path=
9295 for dir in $libltdl_cv_sys_search_path; do
9296 if test -z "$sys_search_path"; then
9297 sys_search_path="$dir"
9298 else
9299 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9300 fi
9301 done
9302
9303cat >>confdefs.h <<_ACEOF
9304#define LTDL_SYSSEARCHPATH "$sys_search_path"
9305_ACEOF
9306
9307fi
9308
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009309{ echo "$as_me:$LINENO: checking for objdir" >&5
9310echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9311if test "${libltdl_cv_objdir+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009313else
9314 libltdl_cv_objdir="$objdir"
9315 if test -n "$objdir"; then
9316 :
9317 else
9318 rm -f .libs 2>/dev/null
9319 mkdir .libs 2>/dev/null
9320 if test -d .libs; then
9321 libltdl_cv_objdir=.libs
9322 else
9323 # MS-DOS does not allow filenames that begin with a dot.
9324 libltdl_cv_objdir=_libs
9325 fi
9326 rmdir .libs 2>/dev/null
9327 fi
9328
9329fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009330{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9331echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009332
9333cat >>confdefs.h <<_ACEOF
9334#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9335_ACEOF
9336
9337
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009338
9339
9340
9341
9342# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009343{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9344echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9345if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009347else
9348
9349# These are sane defaults that work on at least a few old systems.
9350# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9351
9352# Character class describing NM global symbol codes.
9353symcode='[BCDEGRST]'
9354
9355# Regexp to match symbols that can be accessed directly from C.
9356sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9357
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009358# Transform an extracted symbol line into a proper C declaration
9359lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9360
9361# Transform an extracted symbol line into symbol name and symbol address
9362lt_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'"
9363
9364# Define system-specific variables.
9365case $host_os in
9366aix*)
9367 symcode='[BCDT]'
9368 ;;
9369cygwin* | mingw* | pw32*)
9370 symcode='[ABCDGISTW]'
9371 ;;
9372hpux*) # Its linker distinguishes data from code symbols
9373 if test "$host_cpu" = ia64; then
9374 symcode='[ABCDEGRST]'
9375 fi
9376 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9377 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'"
9378 ;;
9379linux*)
9380 if test "$host_cpu" = ia64; then
9381 symcode='[ABCDGIRSTW]'
9382 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9383 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'"
9384 fi
9385 ;;
9386irix* | nonstopux*)
9387 symcode='[BCDEGRST]'
9388 ;;
9389osf*)
9390 symcode='[BCDEGQRST]'
9391 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009392solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009393 symcode='[BDRT]'
9394 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009395sco3.2v5*)
9396 symcode='[DT]'
9397 ;;
9398sysv4.2uw2*)
9399 symcode='[DT]'
9400 ;;
9401sysv5* | sco5v6* | unixware* | OpenUNIX*)
9402 symcode='[ABDT]'
9403 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009404sysv4)
9405 symcode='[DFNSTU]'
9406 ;;
9407esac
9408
9409# Handle CRLF in mingw tool chain
9410opt_cr=
9411case $build_os in
9412mingw*)
9413 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9414 ;;
9415esac
9416
9417# If we're using GNU nm, then use its standard symbol codes.
9418case `$NM -V 2>&1` in
9419*GNU* | *'with BFD'*)
9420 symcode='[ABCDGIRSTW]' ;;
9421esac
9422
9423# Try without a prefix undercore, then with it.
9424for ac_symprfx in "" "_"; do
9425
Reid Spencera773bd52006-08-04 18:18:08 +00009426 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9427 symxfrm="\\1 $ac_symprfx\\2 \\2"
9428
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009429 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009430 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 +00009431
9432 # Check to see that the pipe works correctly.
9433 pipe_works=no
9434
9435 rm -f conftest*
9436 cat > conftest.$ac_ext <<EOF
9437#ifdef __cplusplus
9438extern "C" {
9439#endif
9440char nm_test_var;
9441void nm_test_func(){}
9442#ifdef __cplusplus
9443}
9444#endif
9445int main(){nm_test_var='a';nm_test_func();return(0);}
9446EOF
9447
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009449 (eval $ac_compile) 2>&5
9450 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009453 # Now try to grab the symbols.
9454 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009455 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 +00009456 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9457 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009460 # Try sorting and uniquifying the output.
9461 if sort "$nlist" | uniq > "$nlist"T; then
9462 mv -f "$nlist"T "$nlist"
9463 else
9464 rm -f "$nlist"T
9465 fi
9466
9467 # Make sure that we snagged all the symbols we need.
9468 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9469 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9470 cat <<EOF > conftest.$ac_ext
9471#ifdef __cplusplus
9472extern "C" {
9473#endif
9474
9475EOF
9476 # Now generate the symbol file.
9477 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9478
9479 cat <<EOF >> conftest.$ac_ext
9480#if defined (__STDC__) && __STDC__
9481# define lt_ptr_t void *
9482#else
9483# define lt_ptr_t char *
9484# define const
9485#endif
9486
9487/* The mapping between symbol names and symbols. */
9488const struct {
9489 const char *name;
9490 lt_ptr_t address;
9491}
9492lt_preloaded_symbols[] =
9493{
9494EOF
9495 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9496 cat <<\EOF >> conftest.$ac_ext
9497 {0, (lt_ptr_t) 0}
9498};
9499
9500#ifdef __cplusplus
9501}
9502#endif
9503EOF
9504 # Now try linking the two files.
9505 mv conftest.$ac_objext conftstm.$ac_objext
9506 lt_save_LIBS="$LIBS"
9507 lt_save_CFLAGS="$CFLAGS"
9508 LIBS="conftstm.$ac_objext"
9509 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009511 (eval $ac_link) 2>&5
9512 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009515 pipe_works=yes
9516 fi
9517 LIBS="$lt_save_LIBS"
9518 CFLAGS="$lt_save_CFLAGS"
9519 else
9520 echo "cannot find nm_test_func in $nlist" >&5
9521 fi
9522 else
9523 echo "cannot find nm_test_var in $nlist" >&5
9524 fi
9525 else
9526 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9527 fi
9528 else
9529 echo "$progname: failed program was:" >&5
9530 cat conftest.$ac_ext >&5
9531 fi
9532 rm -f conftest* conftst*
9533
9534 # Do not use the global_symbol_pipe unless it works.
9535 if test "$pipe_works" = yes; then
9536 break
9537 else
9538 lt_cv_sys_global_symbol_pipe=
9539 fi
9540done
9541
9542fi
9543
9544if test -z "$lt_cv_sys_global_symbol_pipe"; then
9545 lt_cv_sys_global_symbol_to_cdecl=
9546fi
9547if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009548 { echo "$as_me:$LINENO: result: failed" >&5
9549echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009550else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009551 { echo "$as_me:$LINENO: result: ok" >&5
9552echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009553fi
9554
9555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009556{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9557echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9558if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009560else
9561 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9562 libltdl_cv_preloaded_symbols=yes
9563 else
9564 libltdl_cv_preloaded_symbols=no
9565 fi
9566
9567fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009568{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9569echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009570if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009572cat >>confdefs.h <<\_ACEOF
9573#define HAVE_PRELOADED_SYMBOLS 1
9574_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009575
9576fi
9577
9578LIBADD_DL=
9579
9580ac_ext=c
9581ac_cpp='$CPP $CPPFLAGS'
9582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9584ac_compiler_gnu=$ac_cv_c_compiler_gnu
9585
9586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009587{ echo "$as_me:$LINENO: checking for shl_load" >&5
9588echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9589if test "${ac_cv_func_shl_load+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591else
9592 cat >conftest.$ac_ext <<_ACEOF
9593/* confdefs.h. */
9594_ACEOF
9595cat confdefs.h >>conftest.$ac_ext
9596cat >>conftest.$ac_ext <<_ACEOF
9597/* end confdefs.h. */
9598/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9600#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009602/* System header to define __stub macros and hopefully few prototypes,
9603 which can conflict with char shl_load (); below.
9604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9605 <limits.h> exists even on freestanding compilers. */
9606
9607#ifdef __STDC__
9608# include <limits.h>
9609#else
9610# include <assert.h>
9611#endif
9612
9613#undef shl_load
9614
9615/* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
9618#ifdef __cplusplus
9619extern "C"
9620#endif
9621char shl_load ();
9622/* The GNU C library defines this for functions which it implements
9623 to always fail with ENOSYS. Some functions are actually named
9624 something starting with __ and the normal name is an alias. */
9625#if defined __stub_shl_load || defined __stub___shl_load
9626choke me
9627#endif
9628
9629int
9630main ()
9631{
9632return shl_load ();
9633 ;
9634 return 0;
9635}
9636_ACEOF
9637rm -f conftest.$ac_objext conftest$ac_exeext
9638if { (ac_try="$ac_link"
9639case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9642esac
9643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_link") 2>conftest.er1
9645 ac_status=$?
9646 grep -v '^ *+' conftest.er1 >conftest.err
9647 rm -f conftest.er1
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9652 { (case "(($ac_try" in
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9655esac
9656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_try") 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try='test -s conftest$ac_exeext'
9662 { (case "(($ac_try" in
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9665esac
9666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_try") 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; }; then
9671 ac_cv_func_shl_load=yes
9672else
9673 echo "$as_me: failed program was:" >&5
9674sed 's/^/| /' conftest.$ac_ext >&5
9675
9676 ac_cv_func_shl_load=no
9677fi
9678
9679rm -f core conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9681fi
9682{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9683echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9684if test $ac_cv_func_shl_load = yes; then
9685
9686cat >>confdefs.h <<\_ACEOF
9687#define HAVE_SHL_LOAD 1
9688_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009689
9690else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009691 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9692echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9693if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009695else
9696 ac_check_lib_save_LIBS=$LIBS
9697LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009698cat >conftest.$ac_ext <<_ACEOF
9699/* confdefs.h. */
9700_ACEOF
9701cat confdefs.h >>conftest.$ac_ext
9702cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009703/* end confdefs.h. */
9704
Reid Spencera773bd52006-08-04 18:18:08 +00009705/* Override any GCC internal prototype to avoid an error.
9706 Use char because int might match the return type of a GCC
9707 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009708#ifdef __cplusplus
9709extern "C"
9710#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009711char shl_load ();
9712int
9713main ()
9714{
Reid Spencera773bd52006-08-04 18:18:08 +00009715return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009716 ;
9717 return 0;
9718}
9719_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009720rm -f conftest.$ac_objext conftest$ac_exeext
9721if { (ac_try="$ac_link"
9722case "(($ac_try" in
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9725esac
9726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_link") 2>conftest.er1
9728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9735 { (case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738esac
9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_try") 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; } &&
9744 { ac_try='test -s conftest$ac_exeext'
9745 { (case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9748esac
9749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_try") 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009754 ac_cv_lib_dld_shl_load=yes
9755else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009756 echo "$as_me: failed program was:" >&5
9757sed 's/^/| /' conftest.$ac_ext >&5
9758
9759 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009760fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009761
Bill Wendlingebcceee2009-04-18 11:20:33 +00009762rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009763 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764LIBS=$ac_check_lib_save_LIBS
9765fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009766{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9767echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9768if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009770cat >>confdefs.h <<\_ACEOF
9771#define HAVE_SHL_LOAD 1
9772_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009773
9774 LIBADD_DL="$LIBADD_DL -ldld"
9775else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009776 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9777echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9778if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009780else
9781 ac_check_lib_save_LIBS=$LIBS
9782LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009783cat >conftest.$ac_ext <<_ACEOF
9784/* confdefs.h. */
9785_ACEOF
9786cat confdefs.h >>conftest.$ac_ext
9787cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009788/* end confdefs.h. */
9789
Reid Spencera773bd52006-08-04 18:18:08 +00009790/* Override any GCC internal prototype to avoid an error.
9791 Use char because int might match the return type of a GCC
9792 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009793#ifdef __cplusplus
9794extern "C"
9795#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009796char dlopen ();
9797int
9798main ()
9799{
Reid Spencera773bd52006-08-04 18:18:08 +00009800return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009801 ;
9802 return 0;
9803}
9804_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009805rm -f conftest.$ac_objext conftest$ac_exeext
9806if { (ac_try="$ac_link"
9807case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810esac
9811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_link") 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9820 { (case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823esac
9824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_try") 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; } &&
9829 { ac_try='test -s conftest$ac_exeext'
9830 { (case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833esac
9834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_try") 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009839 ac_cv_lib_dl_dlopen=yes
9840else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009841 echo "$as_me: failed program was:" >&5
9842sed 's/^/| /' conftest.$ac_ext >&5
9843
9844 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009845fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009846
Bill Wendlingebcceee2009-04-18 11:20:33 +00009847rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009848 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849LIBS=$ac_check_lib_save_LIBS
9850fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009851{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9852echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9853if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009855cat >>confdefs.h <<\_ACEOF
9856#define HAVE_LIBDL 1
9857_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858
9859 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9860else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009861 cat >conftest.$ac_ext <<_ACEOF
9862/* confdefs.h. */
9863_ACEOF
9864cat confdefs.h >>conftest.$ac_ext
9865cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009866/* end confdefs.h. */
9867#if HAVE_DLFCN_H
9868# include <dlfcn.h>
9869#endif
9870
9871int
9872main ()
9873{
9874dlopen(0, 0);
9875 ;
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
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009914cat >>confdefs.h <<\_ACEOF
9915#define HAVE_LIBDL 1
9916_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009917 libltdl_cv_func_dlopen="yes"
9918else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009919 echo "$as_me: failed program was:" >&5
9920sed 's/^/| /' conftest.$ac_ext >&5
9921
9922 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9923echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9924if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009926else
9927 ac_check_lib_save_LIBS=$LIBS
9928LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009929cat >conftest.$ac_ext <<_ACEOF
9930/* confdefs.h. */
9931_ACEOF
9932cat confdefs.h >>conftest.$ac_ext
9933cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009934/* end confdefs.h. */
9935
Reid Spencera773bd52006-08-04 18:18:08 +00009936/* Override any GCC internal prototype to avoid an error.
9937 Use char because int might match the return type of a GCC
9938 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009939#ifdef __cplusplus
9940extern "C"
9941#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009942char dlopen ();
9943int
9944main ()
9945{
Reid Spencera773bd52006-08-04 18:18:08 +00009946return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009947 ;
9948 return 0;
9949}
9950_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009951rm -f conftest.$ac_objext conftest$ac_exeext
9952if { (ac_try="$ac_link"
9953case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9956esac
9957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_link") 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979esac
9980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_try") 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009985 ac_cv_lib_svld_dlopen=yes
9986else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009987 echo "$as_me: failed program was:" >&5
9988sed 's/^/| /' conftest.$ac_ext >&5
9989
9990 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009992
Bill Wendlingebcceee2009-04-18 11:20:33 +00009993rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009994 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995LIBS=$ac_check_lib_save_LIBS
9996fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009997{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9998echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9999if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010000
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010001cat >>confdefs.h <<\_ACEOF
10002#define HAVE_LIBDL 1
10003_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004
10005 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10006else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010007 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10008echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10009if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011else
10012 ac_check_lib_save_LIBS=$LIBS
10013LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010014cat >conftest.$ac_ext <<_ACEOF
10015/* confdefs.h. */
10016_ACEOF
10017cat confdefs.h >>conftest.$ac_ext
10018cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010019/* end confdefs.h. */
10020
Reid Spencera773bd52006-08-04 18:18:08 +000010021/* Override any GCC internal prototype to avoid an error.
10022 Use char because int might match the return type of a GCC
10023 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010024#ifdef __cplusplus
10025extern "C"
10026#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010027char dld_link ();
10028int
10029main ()
10030{
Reid Spencera773bd52006-08-04 18:18:08 +000010031return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010032 ;
10033 return 0;
10034}
10035_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010036rm -f conftest.$ac_objext conftest$ac_exeext
10037if { (ac_try="$ac_link"
10038case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10041esac
10042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_link") 2>conftest.er1
10044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10051 { (case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054esac
10055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_try") 2>&5
10057 ac_status=$?
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; } &&
10060 { ac_try='test -s conftest$ac_exeext'
10061 { (case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10064esac
10065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_try") 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010070 ac_cv_lib_dld_dld_link=yes
10071else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010072 echo "$as_me: failed program was:" >&5
10073sed 's/^/| /' conftest.$ac_ext >&5
10074
10075 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010077
Bill Wendlingebcceee2009-04-18 11:20:33 +000010078rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010079 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010080LIBS=$ac_check_lib_save_LIBS
10081fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010082{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10083echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10084if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010086cat >>confdefs.h <<\_ACEOF
10087#define HAVE_DLD 1
10088_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010089
10090 LIBADD_DL="$LIBADD_DL -ldld"
10091else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010092 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10093echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10094if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096else
10097 cat >conftest.$ac_ext <<_ACEOF
10098/* confdefs.h. */
10099_ACEOF
10100cat confdefs.h >>conftest.$ac_ext
10101cat >>conftest.$ac_ext <<_ACEOF
10102/* end confdefs.h. */
10103/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10105#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010106
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010107/* System header to define __stub macros and hopefully few prototypes,
10108 which can conflict with char _dyld_func_lookup (); below.
10109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10110 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010112#ifdef __STDC__
10113# include <limits.h>
10114#else
10115# include <assert.h>
10116#endif
10117
10118#undef _dyld_func_lookup
10119
10120/* Override any GCC internal prototype to avoid an error.
10121 Use char because int might match the return type of a GCC
10122 builtin and then its argument prototype would still apply. */
10123#ifdef __cplusplus
10124extern "C"
10125#endif
10126char _dyld_func_lookup ();
10127/* The GNU C library defines this for functions which it implements
10128 to always fail with ENOSYS. Some functions are actually named
10129 something starting with __ and the normal name is an alias. */
10130#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10131choke me
10132#endif
10133
10134int
10135main ()
10136{
10137return _dyld_func_lookup ();
10138 ;
10139 return 0;
10140}
10141_ACEOF
10142rm -f conftest.$ac_objext conftest$ac_exeext
10143if { (ac_try="$ac_link"
10144case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10147esac
10148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_link") 2>conftest.er1
10150 ac_status=$?
10151 grep -v '^ *+' conftest.er1 >conftest.err
10152 rm -f conftest.er1
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } &&
10156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10157 { (case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10160esac
10161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_try") 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; } &&
10166 { ac_try='test -s conftest$ac_exeext'
10167 { (case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170esac
10171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_try") 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; }; then
10176 ac_cv_func__dyld_func_lookup=yes
10177else
10178 echo "$as_me: failed program was:" >&5
10179sed 's/^/| /' conftest.$ac_ext >&5
10180
10181 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010182fi
Reid Spencera773bd52006-08-04 18:18:08 +000010183
Bill Wendlingebcceee2009-04-18 11:20:33 +000010184rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010185 conftest$ac_exeext conftest.$ac_ext
10186fi
10187{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10188echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10189if test $ac_cv_func__dyld_func_lookup = yes; then
10190
10191cat >>confdefs.h <<\_ACEOF
10192#define HAVE_DYLD 1
10193_ACEOF
10194
10195fi
10196
10197
10198fi
10199
10200
10201fi
10202
10203
10204fi
10205
10206rm -f core conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010208
10209fi
10210
10211
10212fi
10213
10214
10215fi
10216
10217
10218if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10219then
10220 lt_save_LIBS="$LIBS"
10221 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010222
10223for ac_func in dlerror
10224do
10225as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10226{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10227echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10228if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230else
10231 cat >conftest.$ac_ext <<_ACEOF
10232/* confdefs.h. */
10233_ACEOF
10234cat confdefs.h >>conftest.$ac_ext
10235cat >>conftest.$ac_ext <<_ACEOF
10236/* end confdefs.h. */
10237/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10239#define $ac_func innocuous_$ac_func
10240
10241/* System header to define __stub macros and hopefully few prototypes,
10242 which can conflict with char $ac_func (); below.
10243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10244 <limits.h> exists even on freestanding compilers. */
10245
10246#ifdef __STDC__
10247# include <limits.h>
10248#else
10249# include <assert.h>
10250#endif
10251
10252#undef $ac_func
10253
10254/* Override any GCC internal prototype to avoid an error.
10255 Use char because int might match the return type of a GCC
10256 builtin and then its argument prototype would still apply. */
10257#ifdef __cplusplus
10258extern "C"
10259#endif
10260char $ac_func ();
10261/* The GNU C library defines this for functions which it implements
10262 to always fail with ENOSYS. Some functions are actually named
10263 something starting with __ and the normal name is an alias. */
10264#if defined __stub_$ac_func || defined __stub___$ac_func
10265choke me
10266#endif
10267
10268int
10269main ()
10270{
10271return $ac_func ();
10272 ;
10273 return 0;
10274}
10275_ACEOF
10276rm -f conftest.$ac_objext conftest$ac_exeext
10277if { (ac_try="$ac_link"
10278case "(($ac_try" in
10279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280 *) ac_try_echo=$ac_try;;
10281esac
10282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283 (eval "$ac_link") 2>conftest.er1
10284 ac_status=$?
10285 grep -v '^ *+' conftest.er1 >conftest.err
10286 rm -f conftest.er1
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10291 { (case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10294esac
10295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_try") 2>&5
10297 ac_status=$?
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; } &&
10300 { ac_try='test -s conftest$ac_exeext'
10301 { (case "(($ac_try" in
10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10304esac
10305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10306 (eval "$ac_try") 2>&5
10307 ac_status=$?
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
10310 eval "$as_ac_var=yes"
10311else
10312 echo "$as_me: failed program was:" >&5
10313sed 's/^/| /' conftest.$ac_ext >&5
10314
10315 eval "$as_ac_var=no"
10316fi
10317
10318rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
10320fi
10321ac_res=`eval echo '${'$as_ac_var'}'`
10322 { echo "$as_me:$LINENO: result: $ac_res" >&5
10323echo "${ECHO_T}$ac_res" >&6; }
10324if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010325 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010327_ACEOF
10328
10329fi
10330done
10331
10332 LIBS="$lt_save_LIBS"
10333fi
10334ac_ext=c
10335ac_cpp='$CPP $CPPFLAGS'
10336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10338ac_compiler_gnu=$ac_cv_c_compiler_gnu
10339
10340
10341
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010342{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10343echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10344if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10345 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010346else
10347 ac_cv_sys_symbol_underscore=no
10348 cat > conftest.$ac_ext <<EOF
10349void nm_test_func(){}
10350int main(){nm_test_func;return 0;}
10351EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353 (eval $ac_compile) 2>&5
10354 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010357 # Now try to grab the symbols.
10358 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010359 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 +000010360 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10361 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010364 # See whether the symbols have a leading underscore.
10365 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10366 ac_cv_sys_symbol_underscore=yes
10367 else
10368 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10369 :
10370 else
10371 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10372 fi
10373 fi
10374 else
10375 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10376 fi
10377 else
10378 echo "configure: failed program was:" >&5
10379 cat conftest.c >&5
10380 fi
10381 rm -rf conftest*
10382
10383fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010384{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10385echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010386
10387
10388if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10389 if test x"$libltdl_cv_func_dlopen" = xyes ||
10390 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010391 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10392echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10393if test "${libltdl_cv_need_uscore+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010395else
10396 libltdl_cv_need_uscore=unknown
10397 save_LIBS="$LIBS"
10398 LIBS="$LIBS $LIBADD_DL"
10399 if test "$cross_compiling" = yes; then :
10400 libltdl_cv_need_uscore=cross
10401else
10402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10403 lt_status=$lt_dlunknown
10404 cat > conftest.$ac_ext <<EOF
Eli Bendersky61b18512012-03-13 08:33:15 +000010405#line 10405 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010406#include "confdefs.h"
10407
10408#if HAVE_DLFCN_H
10409#include <dlfcn.h>
10410#endif
10411
10412#include <stdio.h>
10413
10414#ifdef RTLD_GLOBAL
10415# define LT_DLGLOBAL RTLD_GLOBAL
10416#else
10417# ifdef DL_GLOBAL
10418# define LT_DLGLOBAL DL_GLOBAL
10419# else
10420# define LT_DLGLOBAL 0
10421# endif
10422#endif
10423
10424/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10425 find out it does not work in some platform. */
10426#ifndef LT_DLLAZY_OR_NOW
10427# ifdef RTLD_LAZY
10428# define LT_DLLAZY_OR_NOW RTLD_LAZY
10429# else
10430# ifdef DL_LAZY
10431# define LT_DLLAZY_OR_NOW DL_LAZY
10432# else
10433# ifdef RTLD_NOW
10434# define LT_DLLAZY_OR_NOW RTLD_NOW
10435# else
10436# ifdef DL_NOW
10437# define LT_DLLAZY_OR_NOW DL_NOW
10438# else
10439# define LT_DLLAZY_OR_NOW 0
10440# endif
10441# endif
10442# endif
10443# endif
10444#endif
10445
10446#ifdef __cplusplus
10447extern "C" void exit (int);
10448#endif
10449
10450void fnord() { int i=42;}
10451int main ()
10452{
10453 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10454 int status = $lt_dlunknown;
10455
10456 if (self)
10457 {
10458 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10459 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10460 /* dlclose (self); */
10461 }
Reid Spencera773bd52006-08-04 18:18:08 +000010462 else
10463 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010464
10465 exit (status);
10466}
10467EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010469 (eval $ac_link) 2>&5
10470 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010473 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010474 lt_status=$?
10475 case x$lt_status in
10476 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10477 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010478 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010479 esac
10480 else :
10481 # compilation failed
10482
10483 fi
10484fi
10485rm -fr conftest*
10486
10487 LIBS="$save_LIBS"
10488
10489fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010490{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10491echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010492 fi
10493fi
10494
10495if test x"$libltdl_cv_need_uscore" = xyes; then
10496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010497cat >>confdefs.h <<\_ACEOF
10498#define NEED_USCORE 1
10499_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010500
10501fi
10502
10503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010504{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10505echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10506if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010508else
10509 # PORTME does your system automatically load deplibs for dlopen?
10510 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10511 # For now, we just catch OSes we know something about -- in the
10512 # future, we'll try test this programmatically.
10513 libltdl_cv_sys_dlopen_deplibs=unknown
10514 case "$host_os" in
10515 aix3*|aix4.1.*|aix4.2.*)
10516 # Unknown whether this is true for these versions of AIX, but
10517 # we want this `case' here to explicitly catch those versions.
10518 libltdl_cv_sys_dlopen_deplibs=unknown
10519 ;;
10520 aix[45]*)
10521 libltdl_cv_sys_dlopen_deplibs=yes
10522 ;;
10523 darwin*)
10524 # Assuming the user has installed a libdl from somewhere, this is true
10525 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10526 libltdl_cv_sys_dlopen_deplibs=yes
10527 ;;
10528 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10529 # GNU and its variants, using gnu ld.so (Glibc)
10530 libltdl_cv_sys_dlopen_deplibs=yes
10531 ;;
10532 hpux10*|hpux11*)
10533 libltdl_cv_sys_dlopen_deplibs=yes
10534 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010535 interix*)
10536 libltdl_cv_sys_dlopen_deplibs=yes
10537 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010538 irix[12345]*|irix6.[01]*)
10539 # Catch all versions of IRIX before 6.2, and indicate that we don't
10540 # know how it worked for any of those versions.
10541 libltdl_cv_sys_dlopen_deplibs=unknown
10542 ;;
10543 irix*)
10544 # The case above catches anything before 6.2, and it's known that
10545 # at 6.2 and later dlopen does load deplibs.
10546 libltdl_cv_sys_dlopen_deplibs=yes
10547 ;;
10548 netbsd*)
10549 libltdl_cv_sys_dlopen_deplibs=yes
10550 ;;
10551 openbsd*)
10552 libltdl_cv_sys_dlopen_deplibs=yes
10553 ;;
10554 osf[1234]*)
10555 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10556 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010557 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010558 libltdl_cv_sys_dlopen_deplibs=no
10559 ;;
10560 osf5.0|osf5.0a|osf5.1)
10561 # dlopen *does* load deplibs and with the right loader patch applied
10562 # it even uses RPATH in a shared library to search for shared objects
10563 # that the library depends on, but there's no easy way to know if that
10564 # patch is installed. Since this is the case, all we can really
10565 # say is unknown -- it depends on the patch being installed. If
10566 # it is, this changes to `yes'. Without it, it would be `no'.
10567 libltdl_cv_sys_dlopen_deplibs=unknown
10568 ;;
10569 osf*)
10570 # the two cases above should catch all versions of osf <= 5.1. Read
10571 # the comments above for what we know about them.
10572 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10573 # is used to find them so we can finally say `yes'.
10574 libltdl_cv_sys_dlopen_deplibs=yes
10575 ;;
10576 solaris*)
10577 libltdl_cv_sys_dlopen_deplibs=yes
10578 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010579 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10580 libltdl_cv_sys_dlopen_deplibs=yes
10581 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010582 esac
10583
10584fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010585{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10586echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010587if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010589cat >>confdefs.h <<\_ACEOF
10590#define LTDL_DLOPEN_DEPLIBS 1
10591_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010592
10593fi
10594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010595
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010596for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010597do
10598as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10599if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10602if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10604fi
10605ac_res=`eval echo '${'$as_ac_Header'}'`
10606 { echo "$as_me:$LINENO: result: $ac_res" >&5
10607echo "${ECHO_T}$ac_res" >&6; }
10608else
10609 # Is the header compilable?
10610{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10611echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10612cat >conftest.$ac_ext <<_ACEOF
10613/* confdefs.h. */
10614_ACEOF
10615cat confdefs.h >>conftest.$ac_ext
10616cat >>conftest.$ac_ext <<_ACEOF
10617/* end confdefs.h. */
10618$ac_includes_default
10619#include <$ac_header>
10620_ACEOF
10621rm -f conftest.$ac_objext
10622if { (ac_try="$ac_compile"
10623case "(($ac_try" in
10624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625 *) ac_try_echo=$ac_try;;
10626esac
10627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628 (eval "$ac_compile") 2>conftest.er1
10629 ac_status=$?
10630 grep -v '^ *+' conftest.er1 >conftest.err
10631 rm -f conftest.er1
10632 cat conftest.err >&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } &&
10635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10636 { (case "(($ac_try" in
10637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638 *) ac_try_echo=$ac_try;;
10639esac
10640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641 (eval "$ac_try") 2>&5
10642 ac_status=$?
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; } &&
10645 { ac_try='test -s conftest.$ac_objext'
10646 { (case "(($ac_try" in
10647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648 *) ac_try_echo=$ac_try;;
10649esac
10650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10651 (eval "$ac_try") 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 ac_header_compiler=yes
10656else
10657 echo "$as_me: failed program was:" >&5
10658sed 's/^/| /' conftest.$ac_ext >&5
10659
10660 ac_header_compiler=no
10661fi
10662
10663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10664{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10665echo "${ECHO_T}$ac_header_compiler" >&6; }
10666
10667# Is the header present?
10668{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10669echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10670cat >conftest.$ac_ext <<_ACEOF
10671/* confdefs.h. */
10672_ACEOF
10673cat confdefs.h >>conftest.$ac_ext
10674cat >>conftest.$ac_ext <<_ACEOF
10675/* end confdefs.h. */
10676#include <$ac_header>
10677_ACEOF
10678if { (ac_try="$ac_cpp conftest.$ac_ext"
10679case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10682esac
10683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } >/dev/null; then
10691 if test -s conftest.err; then
10692 ac_cpp_err=$ac_c_preproc_warn_flag
10693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10694 else
10695 ac_cpp_err=
10696 fi
10697else
10698 ac_cpp_err=yes
10699fi
10700if test -z "$ac_cpp_err"; then
10701 ac_header_preproc=yes
10702else
10703 echo "$as_me: failed program was:" >&5
10704sed 's/^/| /' conftest.$ac_ext >&5
10705
10706 ac_header_preproc=no
10707fi
10708
10709rm -f conftest.err conftest.$ac_ext
10710{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10711echo "${ECHO_T}$ac_header_preproc" >&6; }
10712
10713# So? What about this header?
10714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10715 yes:no: )
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10717echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10719echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10720 ac_header_preproc=yes
10721 ;;
10722 no:yes:* )
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10724echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10726echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10728echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10729 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10730echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10732echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10734echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10735 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010736## ------------------------------------ ##
10737## Report this to http://llvm.org/bugs/ ##
10738## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010739_ASBOX
10740 ) | sed "s/^/$as_me: WARNING: /" >&2
10741 ;;
10742esac
10743{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10747else
10748 eval "$as_ac_Header=\$ac_header_preproc"
10749fi
10750ac_res=`eval echo '${'$as_ac_Header'}'`
10751 { echo "$as_me:$LINENO: result: $ac_res" >&5
10752echo "${ECHO_T}$ac_res" >&6; }
10753
10754fi
10755if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010756 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010757#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010758_ACEOF
10759
10760fi
10761
10762done
10763
10764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010765{ echo "$as_me:$LINENO: checking for error_t" >&5
10766echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10767if test "${ac_cv_type_error_t+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10769else
10770 cat >conftest.$ac_ext <<_ACEOF
10771/* confdefs.h. */
10772_ACEOF
10773cat confdefs.h >>conftest.$ac_ext
10774cat >>conftest.$ac_ext <<_ACEOF
10775/* end confdefs.h. */
10776#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010777# include <argz.h>
10778#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010779
10780typedef error_t ac__type_new_;
10781int
10782main ()
10783{
10784if ((ac__type_new_ *) 0)
10785 return 0;
10786if (sizeof (ac__type_new_))
10787 return 0;
10788 ;
10789 return 0;
10790}
10791_ACEOF
10792rm -f conftest.$ac_objext
10793if { (ac_try="$ac_compile"
10794case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797esac
10798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_compile") 2>conftest.er1
10800 ac_status=$?
10801 grep -v '^ *+' conftest.er1 >conftest.err
10802 rm -f conftest.er1
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } &&
10806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10807 { (case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810esac
10811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_try") 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; } &&
10816 { ac_try='test -s conftest.$ac_objext'
10817 { (case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10820esac
10821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_try") 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
10826 ac_cv_type_error_t=yes
10827else
10828 echo "$as_me: failed program was:" >&5
10829sed 's/^/| /' conftest.$ac_ext >&5
10830
10831 ac_cv_type_error_t=no
10832fi
10833
10834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835fi
10836{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10837echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10838if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839
10840cat >>confdefs.h <<_ACEOF
10841#define HAVE_ERROR_T 1
10842_ACEOF
10843
10844
10845else
10846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010847cat >>confdefs.h <<\_ACEOF
10848#define error_t int
10849_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010850
10851fi
10852
10853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010854
10855
10856
10857
10858
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010859for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010860do
10861as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10862{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10863echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10864if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10866else
10867 cat >conftest.$ac_ext <<_ACEOF
10868/* confdefs.h. */
10869_ACEOF
10870cat confdefs.h >>conftest.$ac_ext
10871cat >>conftest.$ac_ext <<_ACEOF
10872/* end confdefs.h. */
10873/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10875#define $ac_func innocuous_$ac_func
10876
10877/* System header to define __stub macros and hopefully few prototypes,
10878 which can conflict with char $ac_func (); below.
10879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10880 <limits.h> exists even on freestanding compilers. */
10881
10882#ifdef __STDC__
10883# include <limits.h>
10884#else
10885# include <assert.h>
10886#endif
10887
10888#undef $ac_func
10889
10890/* Override any GCC internal prototype to avoid an error.
10891 Use char because int might match the return type of a GCC
10892 builtin and then its argument prototype would still apply. */
10893#ifdef __cplusplus
10894extern "C"
10895#endif
10896char $ac_func ();
10897/* The GNU C library defines this for functions which it implements
10898 to always fail with ENOSYS. Some functions are actually named
10899 something starting with __ and the normal name is an alias. */
10900#if defined __stub_$ac_func || defined __stub___$ac_func
10901choke me
10902#endif
10903
10904int
10905main ()
10906{
10907return $ac_func ();
10908 ;
10909 return 0;
10910}
10911_ACEOF
10912rm -f conftest.$ac_objext conftest$ac_exeext
10913if { (ac_try="$ac_link"
10914case "(($ac_try" in
10915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10917esac
10918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919 (eval "$ac_link") 2>conftest.er1
10920 ac_status=$?
10921 grep -v '^ *+' conftest.er1 >conftest.err
10922 rm -f conftest.er1
10923 cat conftest.err >&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } &&
10926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10927 { (case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10930esac
10931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_try") 2>&5
10933 ac_status=$?
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; } &&
10936 { ac_try='test -s conftest$ac_exeext'
10937 { (case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10940esac
10941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942 (eval "$ac_try") 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 eval "$as_ac_var=yes"
10947else
10948 echo "$as_me: failed program was:" >&5
10949sed 's/^/| /' conftest.$ac_ext >&5
10950
10951 eval "$as_ac_var=no"
10952fi
10953
10954rm -f core conftest.err conftest.$ac_objext \
10955 conftest$ac_exeext conftest.$ac_ext
10956fi
10957ac_res=`eval echo '${'$as_ac_var'}'`
10958 { echo "$as_me:$LINENO: result: $ac_res" >&5
10959echo "${ECHO_T}$ac_res" >&6; }
10960if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010961 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010962#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010963_ACEOF
10964
10965fi
10966done
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010987
10988
10989
10990
10991
10992
10993
10994
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010995for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10996 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010997do
10998as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10999if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004fi
11005ac_res=`eval echo '${'$as_ac_Header'}'`
11006 { echo "$as_me:$LINENO: result: $ac_res" >&5
11007echo "${ECHO_T}$ac_res" >&6; }
11008else
11009 # Is the header compilable?
11010{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11011echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11012cat >conftest.$ac_ext <<_ACEOF
11013/* confdefs.h. */
11014_ACEOF
11015cat confdefs.h >>conftest.$ac_ext
11016cat >>conftest.$ac_ext <<_ACEOF
11017/* end confdefs.h. */
11018$ac_includes_default
11019#include <$ac_header>
11020_ACEOF
11021rm -f conftest.$ac_objext
11022if { (ac_try="$ac_compile"
11023case "(($ac_try" in
11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025 *) ac_try_echo=$ac_try;;
11026esac
11027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028 (eval "$ac_compile") 2>conftest.er1
11029 ac_status=$?
11030 grep -v '^ *+' conftest.er1 >conftest.err
11031 rm -f conftest.er1
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11036 { (case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11039esac
11040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_try") 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; } &&
11045 { ac_try='test -s conftest.$ac_objext'
11046 { (case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11049esac
11050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_try") 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 ac_header_compiler=yes
11056else
11057 echo "$as_me: failed program was:" >&5
11058sed 's/^/| /' conftest.$ac_ext >&5
11059
11060 ac_header_compiler=no
11061fi
11062
11063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11064{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11065echo "${ECHO_T}$ac_header_compiler" >&6; }
11066
11067# Is the header present?
11068{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11069echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11070cat >conftest.$ac_ext <<_ACEOF
11071/* confdefs.h. */
11072_ACEOF
11073cat confdefs.h >>conftest.$ac_ext
11074cat >>conftest.$ac_ext <<_ACEOF
11075/* end confdefs.h. */
11076#include <$ac_header>
11077_ACEOF
11078if { (ac_try="$ac_cpp conftest.$ac_ext"
11079case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11082esac
11083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11085 ac_status=$?
11086 grep -v '^ *+' conftest.er1 >conftest.err
11087 rm -f conftest.er1
11088 cat conftest.err >&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } >/dev/null; then
11091 if test -s conftest.err; then
11092 ac_cpp_err=$ac_c_preproc_warn_flag
11093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11094 else
11095 ac_cpp_err=
11096 fi
11097else
11098 ac_cpp_err=yes
11099fi
11100if test -z "$ac_cpp_err"; then
11101 ac_header_preproc=yes
11102else
11103 echo "$as_me: failed program was:" >&5
11104sed 's/^/| /' conftest.$ac_ext >&5
11105
11106 ac_header_preproc=no
11107fi
11108
11109rm -f conftest.err conftest.$ac_ext
11110{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11111echo "${ECHO_T}$ac_header_preproc" >&6; }
11112
11113# So? What about this header?
11114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11115 yes:no: )
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11117echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11119echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11120 ac_header_preproc=yes
11121 ;;
11122 no:yes:* )
11123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11124echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11126echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11128echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11130echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11132echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11134echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11135 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011136## ------------------------------------ ##
11137## Report this to http://llvm.org/bugs/ ##
11138## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011139_ASBOX
11140 ) | sed "s/^/$as_me: WARNING: /" >&2
11141 ;;
11142esac
11143{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147else
11148 eval "$as_ac_Header=\$ac_header_preproc"
11149fi
11150ac_res=`eval echo '${'$as_ac_Header'}'`
11151 { echo "$as_me:$LINENO: result: $ac_res" >&5
11152echo "${ECHO_T}$ac_res" >&6; }
11153
11154fi
11155if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011156 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011157#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011158_ACEOF
11159
11160fi
11161
11162done
11163
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011164
11165
11166
11167
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011168for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011169do
11170as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176fi
11177ac_res=`eval echo '${'$as_ac_Header'}'`
11178 { echo "$as_me:$LINENO: result: $ac_res" >&5
11179echo "${ECHO_T}$ac_res" >&6; }
11180else
11181 # Is the header compilable?
11182{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11183echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11184cat >conftest.$ac_ext <<_ACEOF
11185/* confdefs.h. */
11186_ACEOF
11187cat confdefs.h >>conftest.$ac_ext
11188cat >>conftest.$ac_ext <<_ACEOF
11189/* end confdefs.h. */
11190$ac_includes_default
11191#include <$ac_header>
11192_ACEOF
11193rm -f conftest.$ac_objext
11194if { (ac_try="$ac_compile"
11195case "(($ac_try" in
11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197 *) ac_try_echo=$ac_try;;
11198esac
11199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11200 (eval "$ac_compile") 2>conftest.er1
11201 ac_status=$?
11202 grep -v '^ *+' conftest.er1 >conftest.err
11203 rm -f conftest.er1
11204 cat conftest.err >&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } &&
11207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11208 { (case "(($ac_try" in
11209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11210 *) ac_try_echo=$ac_try;;
11211esac
11212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11213 (eval "$ac_try") 2>&5
11214 ac_status=$?
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); }; } &&
11217 { ac_try='test -s conftest.$ac_objext'
11218 { (case "(($ac_try" in
11219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220 *) ac_try_echo=$ac_try;;
11221esac
11222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223 (eval "$ac_try") 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); }; }; then
11227 ac_header_compiler=yes
11228else
11229 echo "$as_me: failed program was:" >&5
11230sed 's/^/| /' conftest.$ac_ext >&5
11231
11232 ac_header_compiler=no
11233fi
11234
11235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11236{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11237echo "${ECHO_T}$ac_header_compiler" >&6; }
11238
11239# Is the header present?
11240{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11241echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11242cat >conftest.$ac_ext <<_ACEOF
11243/* confdefs.h. */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h. */
11248#include <$ac_header>
11249_ACEOF
11250if { (ac_try="$ac_cpp conftest.$ac_ext"
11251case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11254esac
11255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11257 ac_status=$?
11258 grep -v '^ *+' conftest.er1 >conftest.err
11259 rm -f conftest.er1
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } >/dev/null; then
11263 if test -s conftest.err; then
11264 ac_cpp_err=$ac_c_preproc_warn_flag
11265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11266 else
11267 ac_cpp_err=
11268 fi
11269else
11270 ac_cpp_err=yes
11271fi
11272if test -z "$ac_cpp_err"; then
11273 ac_header_preproc=yes
11274else
11275 echo "$as_me: failed program was:" >&5
11276sed 's/^/| /' conftest.$ac_ext >&5
11277
11278 ac_header_preproc=no
11279fi
11280
11281rm -f conftest.err conftest.$ac_ext
11282{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11283echo "${ECHO_T}$ac_header_preproc" >&6; }
11284
11285# So? What about this header?
11286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11287 yes:no: )
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11289echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11291echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11292 ac_header_preproc=yes
11293 ;;
11294 no:yes:* )
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11298echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11300echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11302echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11306echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11307 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011308## ------------------------------------ ##
11309## Report this to http://llvm.org/bugs/ ##
11310## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011311_ASBOX
11312 ) | sed "s/^/$as_me: WARNING: /" >&2
11313 ;;
11314esac
11315{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319else
11320 eval "$as_ac_Header=\$ac_header_preproc"
11321fi
11322ac_res=`eval echo '${'$as_ac_Header'}'`
11323 { echo "$as_me:$LINENO: result: $ac_res" >&5
11324echo "${ECHO_T}$ac_res" >&6; }
11325
11326fi
11327if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011328 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011329#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011330_ACEOF
11331
11332fi
11333
11334done
11335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011336
11337
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011338for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011339do
11340as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11341if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11344if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11346fi
11347ac_res=`eval echo '${'$as_ac_Header'}'`
11348 { echo "$as_me:$LINENO: result: $ac_res" >&5
11349echo "${ECHO_T}$ac_res" >&6; }
11350else
11351 # Is the header compilable?
11352{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11353echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11354cat >conftest.$ac_ext <<_ACEOF
11355/* confdefs.h. */
11356_ACEOF
11357cat confdefs.h >>conftest.$ac_ext
11358cat >>conftest.$ac_ext <<_ACEOF
11359/* end confdefs.h. */
11360$ac_includes_default
11361#include <$ac_header>
11362_ACEOF
11363rm -f conftest.$ac_objext
11364if { (ac_try="$ac_compile"
11365case "(($ac_try" in
11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367 *) ac_try_echo=$ac_try;;
11368esac
11369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370 (eval "$ac_compile") 2>conftest.er1
11371 ac_status=$?
11372 grep -v '^ *+' conftest.er1 >conftest.err
11373 rm -f conftest.er1
11374 cat conftest.err >&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } &&
11377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11378 { (case "(($ac_try" in
11379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380 *) ac_try_echo=$ac_try;;
11381esac
11382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11383 (eval "$ac_try") 2>&5
11384 ac_status=$?
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; } &&
11387 { ac_try='test -s conftest.$ac_objext'
11388 { (case "(($ac_try" in
11389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390 *) ac_try_echo=$ac_try;;
11391esac
11392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393 (eval "$ac_try") 2>&5
11394 ac_status=$?
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; }; then
11397 ac_header_compiler=yes
11398else
11399 echo "$as_me: failed program was:" >&5
11400sed 's/^/| /' conftest.$ac_ext >&5
11401
11402 ac_header_compiler=no
11403fi
11404
11405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11406{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11407echo "${ECHO_T}$ac_header_compiler" >&6; }
11408
11409# Is the header present?
11410{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11411echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11412cat >conftest.$ac_ext <<_ACEOF
11413/* confdefs.h. */
11414_ACEOF
11415cat confdefs.h >>conftest.$ac_ext
11416cat >>conftest.$ac_ext <<_ACEOF
11417/* end confdefs.h. */
11418#include <$ac_header>
11419_ACEOF
11420if { (ac_try="$ac_cpp conftest.$ac_ext"
11421case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11424esac
11425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11427 ac_status=$?
11428 grep -v '^ *+' conftest.er1 >conftest.err
11429 rm -f conftest.er1
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } >/dev/null; then
11433 if test -s conftest.err; then
11434 ac_cpp_err=$ac_c_preproc_warn_flag
11435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11436 else
11437 ac_cpp_err=
11438 fi
11439else
11440 ac_cpp_err=yes
11441fi
11442if test -z "$ac_cpp_err"; then
11443 ac_header_preproc=yes
11444else
11445 echo "$as_me: failed program was:" >&5
11446sed 's/^/| /' conftest.$ac_ext >&5
11447
11448 ac_header_preproc=no
11449fi
11450
11451rm -f conftest.err conftest.$ac_ext
11452{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11453echo "${ECHO_T}$ac_header_preproc" >&6; }
11454
11455# So? What about this header?
11456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11457 yes:no: )
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11459echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11461echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11462 ac_header_preproc=yes
11463 ;;
11464 no:yes:* )
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11466echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11468echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11470echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11472echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11474echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11476echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11477 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011478## ------------------------------------ ##
11479## Report this to http://llvm.org/bugs/ ##
11480## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011481_ASBOX
11482 ) | sed "s/^/$as_me: WARNING: /" >&2
11483 ;;
11484esac
11485{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11489else
11490 eval "$as_ac_Header=\$ac_header_preproc"
11491fi
11492ac_res=`eval echo '${'$as_ac_Header'}'`
11493 { echo "$as_me:$LINENO: result: $ac_res" >&5
11494echo "${ECHO_T}$ac_res" >&6; }
11495
11496fi
11497if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011498 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011499#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011500_ACEOF
11501 break
11502fi
11503
11504done
11505
11506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011507
11508
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011509for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011510do
11511as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11512{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11513echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11514if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11516else
11517 cat >conftest.$ac_ext <<_ACEOF
11518/* confdefs.h. */
11519_ACEOF
11520cat confdefs.h >>conftest.$ac_ext
11521cat >>conftest.$ac_ext <<_ACEOF
11522/* end confdefs.h. */
11523/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11525#define $ac_func innocuous_$ac_func
11526
11527/* System header to define __stub macros and hopefully few prototypes,
11528 which can conflict with char $ac_func (); below.
11529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11530 <limits.h> exists even on freestanding compilers. */
11531
11532#ifdef __STDC__
11533# include <limits.h>
11534#else
11535# include <assert.h>
11536#endif
11537
11538#undef $ac_func
11539
11540/* Override any GCC internal prototype to avoid an error.
11541 Use char because int might match the return type of a GCC
11542 builtin and then its argument prototype would still apply. */
11543#ifdef __cplusplus
11544extern "C"
11545#endif
11546char $ac_func ();
11547/* The GNU C library defines this for functions which it implements
11548 to always fail with ENOSYS. Some functions are actually named
11549 something starting with __ and the normal name is an alias. */
11550#if defined __stub_$ac_func || defined __stub___$ac_func
11551choke me
11552#endif
11553
11554int
11555main ()
11556{
11557return $ac_func ();
11558 ;
11559 return 0;
11560}
11561_ACEOF
11562rm -f conftest.$ac_objext conftest$ac_exeext
11563if { (ac_try="$ac_link"
11564case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11567esac
11568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_link") 2>conftest.er1
11570 ac_status=$?
11571 grep -v '^ *+' conftest.er1 >conftest.err
11572 rm -f conftest.er1
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } &&
11576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11577 { (case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11580esac
11581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_try") 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; } &&
11586 { ac_try='test -s conftest$ac_exeext'
11587 { (case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11590esac
11591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592 (eval "$ac_try") 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 eval "$as_ac_var=yes"
11597else
11598 echo "$as_me: failed program was:" >&5
11599sed 's/^/| /' conftest.$ac_ext >&5
11600
11601 eval "$as_ac_var=no"
11602fi
11603
11604rm -f core conftest.err conftest.$ac_objext \
11605 conftest$ac_exeext conftest.$ac_ext
11606fi
11607ac_res=`eval echo '${'$as_ac_var'}'`
11608 { echo "$as_me:$LINENO: result: $ac_res" >&5
11609echo "${ECHO_T}$ac_res" >&6; }
11610if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011611 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011612#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011613_ACEOF
11614 break
11615fi
11616done
11617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011618
11619
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011620for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011621do
11622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11623{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11625if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11627else
11628 cat >conftest.$ac_ext <<_ACEOF
11629/* confdefs.h. */
11630_ACEOF
11631cat confdefs.h >>conftest.$ac_ext
11632cat >>conftest.$ac_ext <<_ACEOF
11633/* end confdefs.h. */
11634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11636#define $ac_func innocuous_$ac_func
11637
11638/* System header to define __stub macros and hopefully few prototypes,
11639 which can conflict with char $ac_func (); below.
11640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11641 <limits.h> exists even on freestanding compilers. */
11642
11643#ifdef __STDC__
11644# include <limits.h>
11645#else
11646# include <assert.h>
11647#endif
11648
11649#undef $ac_func
11650
11651/* Override any GCC internal prototype to avoid an error.
11652 Use char because int might match the return type of a GCC
11653 builtin and then its argument prototype would still apply. */
11654#ifdef __cplusplus
11655extern "C"
11656#endif
11657char $ac_func ();
11658/* The GNU C library defines this for functions which it implements
11659 to always fail with ENOSYS. Some functions are actually named
11660 something starting with __ and the normal name is an alias. */
11661#if defined __stub_$ac_func || defined __stub___$ac_func
11662choke me
11663#endif
11664
11665int
11666main ()
11667{
11668return $ac_func ();
11669 ;
11670 return 0;
11671}
11672_ACEOF
11673rm -f conftest.$ac_objext conftest$ac_exeext
11674if { (ac_try="$ac_link"
11675case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11678esac
11679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_link") 2>conftest.er1
11681 ac_status=$?
11682 grep -v '^ *+' conftest.er1 >conftest.err
11683 rm -f conftest.er1
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } &&
11687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11688 { (case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691esac
11692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_try") 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11701esac
11702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_try") 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 eval "$as_ac_var=yes"
11708else
11709 echo "$as_me: failed program was:" >&5
11710sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 eval "$as_ac_var=no"
11713fi
11714
11715rm -f core conftest.err conftest.$ac_objext \
11716 conftest$ac_exeext conftest.$ac_ext
11717fi
11718ac_res=`eval echo '${'$as_ac_var'}'`
11719 { echo "$as_me:$LINENO: result: $ac_res" >&5
11720echo "${ECHO_T}$ac_res" >&6; }
11721if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011722 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011723#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011724_ACEOF
11725 break
11726fi
11727done
11728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011729
11730
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011731for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011732do
11733as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11734{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11735echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11736if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11738else
11739 cat >conftest.$ac_ext <<_ACEOF
11740/* confdefs.h. */
11741_ACEOF
11742cat confdefs.h >>conftest.$ac_ext
11743cat >>conftest.$ac_ext <<_ACEOF
11744/* end confdefs.h. */
11745/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11747#define $ac_func innocuous_$ac_func
11748
11749/* System header to define __stub macros and hopefully few prototypes,
11750 which can conflict with char $ac_func (); below.
11751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11752 <limits.h> exists even on freestanding compilers. */
11753
11754#ifdef __STDC__
11755# include <limits.h>
11756#else
11757# include <assert.h>
11758#endif
11759
11760#undef $ac_func
11761
11762/* Override any GCC internal prototype to avoid an error.
11763 Use char because int might match the return type of a GCC
11764 builtin and then its argument prototype would still apply. */
11765#ifdef __cplusplus
11766extern "C"
11767#endif
11768char $ac_func ();
11769/* The GNU C library defines this for functions which it implements
11770 to always fail with ENOSYS. Some functions are actually named
11771 something starting with __ and the normal name is an alias. */
11772#if defined __stub_$ac_func || defined __stub___$ac_func
11773choke me
11774#endif
11775
11776int
11777main ()
11778{
11779return $ac_func ();
11780 ;
11781 return 0;
11782}
11783_ACEOF
11784rm -f conftest.$ac_objext conftest$ac_exeext
11785if { (ac_try="$ac_link"
11786case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11789esac
11790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_link") 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11799 { (case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802esac
11803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_try") 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; } &&
11808 { ac_try='test -s conftest$ac_exeext'
11809 { (case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812esac
11813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_try") 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 eval "$as_ac_var=yes"
11819else
11820 echo "$as_me: failed program was:" >&5
11821sed 's/^/| /' conftest.$ac_ext >&5
11822
11823 eval "$as_ac_var=no"
11824fi
11825
11826rm -f core conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11828fi
11829ac_res=`eval echo '${'$as_ac_var'}'`
11830 { echo "$as_me:$LINENO: result: $ac_res" >&5
11831echo "${ECHO_T}$ac_res" >&6; }
11832if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011833 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011835_ACEOF
11836 break
11837fi
11838done
11839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011840
11841
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011842for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011843do
11844as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11845{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11846echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11847if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11849else
11850 cat >conftest.$ac_ext <<_ACEOF
11851/* confdefs.h. */
11852_ACEOF
11853cat confdefs.h >>conftest.$ac_ext
11854cat >>conftest.$ac_ext <<_ACEOF
11855/* end confdefs.h. */
11856/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11858#define $ac_func innocuous_$ac_func
11859
11860/* System header to define __stub macros and hopefully few prototypes,
11861 which can conflict with char $ac_func (); below.
11862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11863 <limits.h> exists even on freestanding compilers. */
11864
11865#ifdef __STDC__
11866# include <limits.h>
11867#else
11868# include <assert.h>
11869#endif
11870
11871#undef $ac_func
11872
11873/* Override any GCC internal prototype to avoid an error.
11874 Use char because int might match the return type of a GCC
11875 builtin and then its argument prototype would still apply. */
11876#ifdef __cplusplus
11877extern "C"
11878#endif
11879char $ac_func ();
11880/* The GNU C library defines this for functions which it implements
11881 to always fail with ENOSYS. Some functions are actually named
11882 something starting with __ and the normal name is an alias. */
11883#if defined __stub_$ac_func || defined __stub___$ac_func
11884choke me
11885#endif
11886
11887int
11888main ()
11889{
11890return $ac_func ();
11891 ;
11892 return 0;
11893}
11894_ACEOF
11895rm -f conftest.$ac_objext conftest$ac_exeext
11896if { (ac_try="$ac_link"
11897case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11900esac
11901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902 (eval "$ac_link") 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11910 { (case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11913esac
11914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_try") 2>&5
11916 ac_status=$?
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; } &&
11919 { ac_try='test -s conftest$ac_exeext'
11920 { (case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11923esac
11924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_try") 2>&5
11926 ac_status=$?
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; }; then
11929 eval "$as_ac_var=yes"
11930else
11931 echo "$as_me: failed program was:" >&5
11932sed 's/^/| /' conftest.$ac_ext >&5
11933
11934 eval "$as_ac_var=no"
11935fi
11936
11937rm -f core conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
11939fi
11940ac_res=`eval echo '${'$as_ac_var'}'`
11941 { echo "$as_me:$LINENO: result: $ac_res" >&5
11942echo "${ECHO_T}$ac_res" >&6; }
11943if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011944 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011946_ACEOF
11947
11948fi
11949done
11950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011951
11952
11953
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011954for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011955do
11956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11957{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11959if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961else
11962 cat >conftest.$ac_ext <<_ACEOF
11963/* confdefs.h. */
11964_ACEOF
11965cat confdefs.h >>conftest.$ac_ext
11966cat >>conftest.$ac_ext <<_ACEOF
11967/* end confdefs.h. */
11968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11970#define $ac_func innocuous_$ac_func
11971
11972/* System header to define __stub macros and hopefully few prototypes,
11973 which can conflict with char $ac_func (); below.
11974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11975 <limits.h> exists even on freestanding compilers. */
11976
11977#ifdef __STDC__
11978# include <limits.h>
11979#else
11980# include <assert.h>
11981#endif
11982
11983#undef $ac_func
11984
11985/* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11988#ifdef __cplusplus
11989extern "C"
11990#endif
11991char $ac_func ();
11992/* The GNU C library defines this for functions which it implements
11993 to always fail with ENOSYS. Some functions are actually named
11994 something starting with __ and the normal name is an alias. */
11995#if defined __stub_$ac_func || defined __stub___$ac_func
11996choke me
11997#endif
11998
11999int
12000main ()
12001{
12002return $ac_func ();
12003 ;
12004 return 0;
12005}
12006_ACEOF
12007rm -f conftest.$ac_objext conftest$ac_exeext
12008if { (ac_try="$ac_link"
12009case "(($ac_try" in
12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011 *) ac_try_echo=$ac_try;;
12012esac
12013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014 (eval "$ac_link") 2>conftest.er1
12015 ac_status=$?
12016 grep -v '^ *+' conftest.er1 >conftest.err
12017 rm -f conftest.er1
12018 cat conftest.err >&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } &&
12021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12022 { (case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12025esac
12026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_try") 2>&5
12028 ac_status=$?
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; } &&
12031 { ac_try='test -s conftest$ac_exeext'
12032 { (case "(($ac_try" in
12033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034 *) ac_try_echo=$ac_try;;
12035esac
12036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037 (eval "$ac_try") 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12041 eval "$as_ac_var=yes"
12042else
12043 echo "$as_me: failed program was:" >&5
12044sed 's/^/| /' conftest.$ac_ext >&5
12045
12046 eval "$as_ac_var=no"
12047fi
12048
12049rm -f core conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12051fi
12052ac_res=`eval echo '${'$as_ac_var'}'`
12053 { echo "$as_me:$LINENO: result: $ac_res" >&5
12054echo "${ECHO_T}$ac_res" >&6; }
12055if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012056 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012057#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058_ACEOF
12059
12060fi
12061done
12062
12063
Douglas Gregor01746742009-05-11 18:05:52 +000012064
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012065{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12066echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012067
Reid Spencer86901802004-12-08 23:07:27 +000012068ICC=no
12069IXX=no
12070case $CC in
12071 icc*|icpc*)
12072 ICC=yes
12073 IXX=yes
12074 ;;
12075 *)
12076 ;;
12077esac
12078
Duraid Madina937c60a2006-02-15 07:57:42 +000012079if test "$GCC" != "yes" && test "$ICC" != "yes"
12080then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012081 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12082echo "$as_me: error: gcc|icc required but not found" >&2;}
12083 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012084fi
12085
12086if test "$GXX" != "yes" && test "$IXX" != "yes"
12087then
Eric Christopher73e36da2010-12-08 02:02:14 +000012088 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12089echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012090 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012091fi
12092
Reid Spencer86901802004-12-08 23:07:27 +000012093if test "$GCC" = "yes"
12094then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012095 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012096#if !defined(__GNUC__) || __GNUC__ < 3
12097#error Unsupported GCC version
12098#endif
12099
12100_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012101rm -f conftest.$ac_objext
12102if { (ac_try="$ac_compile"
12103case "(($ac_try" in
12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105 *) ac_try_echo=$ac_try;;
12106esac
12107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12108 (eval "$ac_compile") 2>conftest.er1
12109 ac_status=$?
12110 grep -v '^ *+' conftest.er1 >conftest.err
12111 rm -f conftest.er1
12112 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12116 { (case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119esac
12120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_try") 2>&5
12122 ac_status=$?
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; } &&
12125 { ac_try='test -s conftest.$ac_objext'
12126 { (case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12129esac
12130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_try") 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012136else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012137 echo "$as_me: failed program was:" >&5
12138sed 's/^/| /' conftest.$ac_ext >&5
12139
12140 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12141echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12142 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012144
Chris Lattner399c7c72008-02-05 19:43:53 +000012145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012146fi
12147
12148if test -z "$llvm_cv_gnu_make_command"
12149then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012150 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12151echo "$as_me: error: GNU Make required but not found" >&2;}
12152 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012153fi
12154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012155{ echo "$as_me:$LINENO: result: ok" >&5
12156echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012157
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012158{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12159echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012160NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012161
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012162NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012163
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012164COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12165
12166{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12167echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012168
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012170
12171{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12172echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12173if test "${ac_cv_lib_m_sin+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012175else
12176 ac_check_lib_save_LIBS=$LIBS
12177LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012178cat >conftest.$ac_ext <<_ACEOF
12179/* confdefs.h. */
12180_ACEOF
12181cat confdefs.h >>conftest.$ac_ext
12182cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012183/* end confdefs.h. */
12184
Reid Spencera773bd52006-08-04 18:18:08 +000012185/* Override any GCC internal prototype to avoid an error.
12186 Use char because int might match the return type of a GCC
12187 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012188#ifdef __cplusplus
12189extern "C"
12190#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012191char sin ();
12192int
12193main ()
12194{
Reid Spencera773bd52006-08-04 18:18:08 +000012195return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012196 ;
12197 return 0;
12198}
12199_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012200rm -f conftest.$ac_objext conftest$ac_exeext
12201if { (ac_try="$ac_link"
12202case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12205esac
12206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_link") 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
12214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12215 { (case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218esac
12219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_try") 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try='test -s conftest$ac_exeext'
12225 { (case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12228esac
12229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_try") 2>&5
12231 ac_status=$?
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012234 ac_cv_lib_m_sin=yes
12235else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012236 echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012240fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012241
Bill Wendlingebcceee2009-04-18 11:20:33 +000012242rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012243 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012244LIBS=$ac_check_lib_save_LIBS
12245fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012246{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12247echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12248if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012249 cat >>confdefs.h <<_ACEOF
12250#define HAVE_LIBM 1
12251_ACEOF
12252
12253 LIBS="-lm $LIBS"
12254
12255fi
12256
Jeff Cohen28783c32007-01-12 18:22:38 +000012257if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012258
12259{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12260echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12261if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012263else
12264 ac_check_lib_save_LIBS=$LIBS
12265LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012266cat >conftest.$ac_ext <<_ACEOF
12267/* confdefs.h. */
12268_ACEOF
12269cat confdefs.h >>conftest.$ac_ext
12270cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012271/* end confdefs.h. */
12272
Reid Spencer48fdf912006-06-01 19:03:21 +000012273
Reid Spencer484fc8e2006-06-01 16:55:59 +000012274int
12275main ()
12276{
Reid Spencera773bd52006-08-04 18:18:08 +000012277return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012278 ;
12279 return 0;
12280}
12281_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012282rm -f conftest.$ac_objext conftest$ac_exeext
12283if { (ac_try="$ac_link"
12284case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12287esac
12288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_link") 2>conftest.er1
12290 ac_status=$?
12291 grep -v '^ *+' conftest.er1 >conftest.err
12292 rm -f conftest.er1
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } &&
12296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12306 { ac_try='test -s conftest$ac_exeext'
12307 { (case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12310esac
12311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_try") 2>&5
12313 ac_status=$?
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012316 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012317else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012318 echo "$as_me: failed program was:" >&5
12319sed 's/^/| /' conftest.$ac_ext >&5
12320
12321 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012322fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012323
Bill Wendlingebcceee2009-04-18 11:20:33 +000012324rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012325 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012326LIBS=$ac_check_lib_save_LIBS
12327fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012328{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12329echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12330if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012331 cat >>confdefs.h <<_ACEOF
12332#define HAVE_LIBIMAGEHLP 1
12333_ACEOF
12334
12335 LIBS="-limagehlp $LIBS"
12336
12337fi
12338
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012339
12340{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12341echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12342if test "${ac_cv_lib_psapi_main+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012344else
12345 ac_check_lib_save_LIBS=$LIBS
12346LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012347cat >conftest.$ac_ext <<_ACEOF
12348/* confdefs.h. */
12349_ACEOF
12350cat confdefs.h >>conftest.$ac_ext
12351cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012352/* end confdefs.h. */
12353
Reid Spencer48fdf912006-06-01 19:03:21 +000012354
Reid Spencer484fc8e2006-06-01 16:55:59 +000012355int
12356main ()
12357{
Reid Spencera773bd52006-08-04 18:18:08 +000012358return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012359 ;
12360 return 0;
12361}
12362_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012363rm -f conftest.$ac_objext conftest$ac_exeext
12364if { (ac_try="$ac_link"
12365case "(($ac_try" in
12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367 *) ac_try_echo=$ac_try;;
12368esac
12369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_link") 2>conftest.er1
12371 ac_status=$?
12372 grep -v '^ *+' conftest.er1 >conftest.err
12373 rm -f conftest.er1
12374 cat conftest.err >&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } &&
12377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12378 { (case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12381esac
12382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_try") 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; } &&
12387 { ac_try='test -s conftest$ac_exeext'
12388 { (case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12391esac
12392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_try") 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012397 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012398else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012399 echo "$as_me: failed program was:" >&5
12400sed 's/^/| /' conftest.$ac_ext >&5
12401
12402 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012403fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012404
Bill Wendlingebcceee2009-04-18 11:20:33 +000012405rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012406 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012407LIBS=$ac_check_lib_save_LIBS
12408fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012409{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12410echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12411if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012412 cat >>confdefs.h <<_ACEOF
12413#define HAVE_LIBPSAPI 1
12414_ACEOF
12415
12416 LIBS="-lpsapi $LIBS"
12417
12418fi
12419
12420fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012421
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012422{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12423echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12424if test "${ac_cv_search_dlopen+set}" = set; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012426else
12427 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012428cat >conftest.$ac_ext <<_ACEOF
12429/* confdefs.h. */
12430_ACEOF
12431cat confdefs.h >>conftest.$ac_ext
12432cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012433/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012434
Reid Spencera773bd52006-08-04 18:18:08 +000012435/* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012438#ifdef __cplusplus
12439extern "C"
12440#endif
John Criswell7a73b802003-06-30 21:59:07 +000012441char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012442int
12443main ()
12444{
Reid Spencera773bd52006-08-04 18:18:08 +000012445return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012446 ;
12447 return 0;
12448}
12449_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012450for ac_lib in '' dl; do
12451 if test -z "$ac_lib"; then
12452 ac_res="none required"
12453 else
12454 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012456 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012457 rm -f conftest.$ac_objext conftest$ac_exeext
12458if { (ac_try="$ac_link"
12459case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12462esac
12463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_link") 2>conftest.er1
12465 ac_status=$?
12466 grep -v '^ *+' conftest.er1 >conftest.err
12467 rm -f conftest.er1
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12472 { (case "(($ac_try" in
12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12475esac
12476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_try") 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; } &&
12481 { ac_try='test -s conftest$ac_exeext'
12482 { (case "(($ac_try" in
12483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12484 *) ac_try_echo=$ac_try;;
12485esac
12486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487 (eval "$ac_try") 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012491 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012492else
12493 echo "$as_me: failed program was:" >&5
12494sed 's/^/| /' conftest.$ac_ext >&5
12495
12496
John Criswell7a73b802003-06-30 21:59:07 +000012497fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012498
Bill Wendlingebcceee2009-04-18 11:20:33 +000012499rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012500 conftest$ac_exeext
12501 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012502 break
John Criswell7a73b802003-06-30 21:59:07 +000012503fi
Reid Spencera773bd52006-08-04 18:18:08 +000012504done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012505if test "${ac_cv_search_dlopen+set}" = set; then
12506 :
Reid Spencera773bd52006-08-04 18:18:08 +000012507else
12508 ac_cv_search_dlopen=no
12509fi
12510rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012511LIBS=$ac_func_search_save_LIBS
12512fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012513{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12514echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012515ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012516if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012519cat >>confdefs.h <<\_ACEOF
12520#define HAVE_DLOPEN 1
12521_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012522
12523else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012524 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12525echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012526fi
12527
12528
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012529if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012530 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12531echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12532if test "${ac_cv_search_ffi_call+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012534else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012535 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012536cat >conftest.$ac_ext <<_ACEOF
12537/* confdefs.h. */
12538_ACEOF
12539cat confdefs.h >>conftest.$ac_ext
12540cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012541/* end confdefs.h. */
12542
12543/* Override any GCC internal prototype to avoid an error.
12544 Use char because int might match the return type of a GCC
12545 builtin and then its argument prototype would still apply. */
12546#ifdef __cplusplus
12547extern "C"
12548#endif
12549char ffi_call ();
12550int
12551main ()
12552{
12553return ffi_call ();
12554 ;
12555 return 0;
12556}
12557_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012558for ac_lib in '' ffi; do
12559 if test -z "$ac_lib"; then
12560 ac_res="none required"
12561 else
12562 ac_res=-l$ac_lib
12563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12564 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012565 rm -f conftest.$ac_objext conftest$ac_exeext
12566if { (ac_try="$ac_link"
12567case "(($ac_try" in
12568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569 *) ac_try_echo=$ac_try;;
12570esac
12571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572 (eval "$ac_link") 2>conftest.er1
12573 ac_status=$?
12574 grep -v '^ *+' conftest.er1 >conftest.err
12575 rm -f conftest.er1
12576 cat conftest.err >&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); } &&
12579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12580 { (case "(($ac_try" in
12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12583esac
12584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 (eval "$ac_try") 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; } &&
12589 { ac_try='test -s conftest$ac_exeext'
12590 { (case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12593esac
12594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_try") 2>&5
12596 ac_status=$?
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012599 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012600else
12601 echo "$as_me: failed program was:" >&5
12602sed 's/^/| /' conftest.$ac_ext >&5
12603
12604
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012606
Bill Wendlingebcceee2009-04-18 11:20:33 +000012607rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012608 conftest$ac_exeext
12609 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012610 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012611fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012612done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012613if test "${ac_cv_search_ffi_call+set}" = set; then
12614 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012615else
12616 ac_cv_search_ffi_call=no
12617fi
12618rm conftest.$ac_ext
12619LIBS=$ac_func_search_save_LIBS
12620fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012621{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12622echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012623ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012624if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012627cat >>confdefs.h <<\_ACEOF
12628#define HAVE_FFI_CALL 1
12629_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012630
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012631else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012632 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12633echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12634 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012635fi
12636
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012637fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012639{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12640echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12641if test "${ac_cv_search_mallinfo+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012643else
12644 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012645cat >conftest.$ac_ext <<_ACEOF
12646/* confdefs.h. */
12647_ACEOF
12648cat confdefs.h >>conftest.$ac_ext
12649cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012650/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012651
Reid Spencera773bd52006-08-04 18:18:08 +000012652/* Override any GCC internal prototype to avoid an error.
12653 Use char because int might match the return type of a GCC
12654 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012655#ifdef __cplusplus
12656extern "C"
12657#endif
John Criswell7a73b802003-06-30 21:59:07 +000012658char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012659int
12660main ()
12661{
Reid Spencera773bd52006-08-04 18:18:08 +000012662return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012663 ;
12664 return 0;
12665}
12666_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012667for ac_lib in '' malloc; do
12668 if test -z "$ac_lib"; then
12669 ac_res="none required"
12670 else
12671 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012673 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012674 rm -f conftest.$ac_objext conftest$ac_exeext
12675if { (ac_try="$ac_link"
12676case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12679esac
12680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_link") 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12689 { (case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12692esac
12693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_try") 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; } &&
12698 { ac_try='test -s conftest$ac_exeext'
12699 { (case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12702esac
12703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_try") 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012708 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012709else
12710 echo "$as_me: failed program was:" >&5
12711sed 's/^/| /' conftest.$ac_ext >&5
12712
12713
John Criswell7a73b802003-06-30 21:59:07 +000012714fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012715
Bill Wendlingebcceee2009-04-18 11:20:33 +000012716rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012717 conftest$ac_exeext
12718 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012719 break
John Criswell7a73b802003-06-30 21:59:07 +000012720fi
Reid Spencera773bd52006-08-04 18:18:08 +000012721done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012722if test "${ac_cv_search_mallinfo+set}" = set; then
12723 :
Reid Spencera773bd52006-08-04 18:18:08 +000012724else
12725 ac_cv_search_mallinfo=no
12726fi
12727rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012728LIBS=$ac_func_search_save_LIBS
12729fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012730{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12731echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012732ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012733if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012736cat >>confdefs.h <<\_ACEOF
12737#define HAVE_MALLINFO 1
12738_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012739
12740fi
12741
12742
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012743if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012744
12745{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12746echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12747if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012749else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012750 ac_check_lib_save_LIBS=$LIBS
12751LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012752cat >conftest.$ac_ext <<_ACEOF
12753/* confdefs.h. */
12754_ACEOF
12755cat confdefs.h >>conftest.$ac_ext
12756cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012757/* end confdefs.h. */
12758
Reid Spencera773bd52006-08-04 18:18:08 +000012759/* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012762#ifdef __cplusplus
12763extern "C"
12764#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012765char pthread_mutex_init ();
12766int
12767main ()
12768{
Reid Spencera773bd52006-08-04 18:18:08 +000012769return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012770 ;
12771 return 0;
12772}
12773_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012774rm -f conftest.$ac_objext conftest$ac_exeext
12775if { (ac_try="$ac_link"
12776case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12779esac
12780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_link") 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12789 { (case "(($ac_try" in
12790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791 *) ac_try_echo=$ac_try;;
12792esac
12793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 (eval "$ac_try") 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; } &&
12798 { ac_try='test -s conftest$ac_exeext'
12799 { (case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12802esac
12803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_try") 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012808 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012809else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012810 echo "$as_me: failed program was:" >&5
12811sed 's/^/| /' conftest.$ac_ext >&5
12812
12813 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012814fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012815
Bill Wendlingebcceee2009-04-18 11:20:33 +000012816rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012817 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012818LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012819fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012820{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12821echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12822if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012823 cat >>confdefs.h <<_ACEOF
12824#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012825_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012826
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012827 LIBS="-lpthread $LIBS"
12828
Reid Spencer22177fe2005-07-12 15:24:20 +000012829fi
12830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012831 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12832echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12833if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012835else
12836 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012837cat >conftest.$ac_ext <<_ACEOF
12838/* confdefs.h. */
12839_ACEOF
12840cat confdefs.h >>conftest.$ac_ext
12841cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012842/* end confdefs.h. */
12843
Reid Spencera773bd52006-08-04 18:18:08 +000012844/* Override any GCC internal prototype to avoid an error.
12845 Use char because int might match the return type of a GCC
12846 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012847#ifdef __cplusplus
12848extern "C"
12849#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012850char pthread_mutex_lock ();
12851int
12852main ()
12853{
Reid Spencera773bd52006-08-04 18:18:08 +000012854return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012855 ;
12856 return 0;
12857}
12858_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012859for ac_lib in '' pthread; do
12860 if test -z "$ac_lib"; then
12861 ac_res="none required"
12862 else
12863 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012865 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012866 rm -f conftest.$ac_objext conftest$ac_exeext
12867if { (ac_try="$ac_link"
12868case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12871esac
12872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_link") 2>conftest.er1
12874 ac_status=$?
12875 grep -v '^ *+' conftest.er1 >conftest.err
12876 rm -f conftest.er1
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } &&
12880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12881 { (case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12884esac
12885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_try") 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
12891 { (case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12894esac
12895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_try") 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012900 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012901else
12902 echo "$as_me: failed program was:" >&5
12903sed 's/^/| /' conftest.$ac_ext >&5
12904
12905
Brian Gaeke5f268f72003-12-05 19:29:01 +000012906fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012907
Bill Wendlingebcceee2009-04-18 11:20:33 +000012908rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012909 conftest$ac_exeext
12910 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012911 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012912fi
Reid Spencera773bd52006-08-04 18:18:08 +000012913done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012914if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12915 :
Reid Spencera773bd52006-08-04 18:18:08 +000012916else
12917 ac_cv_search_pthread_mutex_lock=no
12918fi
12919rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012920LIBS=$ac_func_search_save_LIBS
12921fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012922{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12923echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012924ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012925if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012927
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012928cat >>confdefs.h <<\_ACEOF
12929#define HAVE_PTHREAD_MUTEX_LOCK 1
12930_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012931
12932fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012933
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012934 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12935echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12936if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012938else
12939 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012940cat >conftest.$ac_ext <<_ACEOF
12941/* confdefs.h. */
12942_ACEOF
12943cat confdefs.h >>conftest.$ac_ext
12944cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012945/* end confdefs.h. */
12946
12947/* Override any GCC internal prototype to avoid an error.
12948 Use char because int might match the return type of a GCC
12949 builtin and then its argument prototype would still apply. */
12950#ifdef __cplusplus
12951extern "C"
12952#endif
12953char pthread_rwlock_init ();
12954int
12955main ()
12956{
12957return pthread_rwlock_init ();
12958 ;
12959 return 0;
12960}
12961_ACEOF
12962for ac_lib in '' pthread; do
12963 if test -z "$ac_lib"; then
12964 ac_res="none required"
12965 else
12966 ac_res=-l$ac_lib
12967 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12968 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012969 rm -f conftest.$ac_objext conftest$ac_exeext
12970if { (ac_try="$ac_link"
12971case "(($ac_try" in
12972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973 *) ac_try_echo=$ac_try;;
12974esac
12975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976 (eval "$ac_link") 2>conftest.er1
12977 ac_status=$?
12978 grep -v '^ *+' conftest.er1 >conftest.err
12979 rm -f conftest.er1
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } &&
12983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12984 { (case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12987esac
12988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_try") 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; } &&
12993 { ac_try='test -s conftest$ac_exeext'
12994 { (case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12997esac
12998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_try") 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013003 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013004else
13005 echo "$as_me: failed program was:" >&5
13006sed 's/^/| /' conftest.$ac_ext >&5
13007
13008
Owen Andersonde8aed22009-06-16 18:20:20 +000013009fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013010
Owen Andersonde8aed22009-06-16 18:20:20 +000013011rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013012 conftest$ac_exeext
13013 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013014 break
13015fi
13016done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013017if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13018 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013019else
13020 ac_cv_search_pthread_rwlock_init=no
13021fi
13022rm conftest.$ac_ext
13023LIBS=$ac_func_search_save_LIBS
13024fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013025{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13026echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013027ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013028if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013029 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13030
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013031cat >>confdefs.h <<\_ACEOF
13032#define HAVE_PTHREAD_RWLOCK_INIT 1
13033_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013034
13035fi
13036
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013037 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13038echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13039if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013041else
13042 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013043cat >conftest.$ac_ext <<_ACEOF
13044/* confdefs.h. */
13045_ACEOF
13046cat confdefs.h >>conftest.$ac_ext
13047cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013048/* end confdefs.h. */
13049
13050/* Override any GCC internal prototype to avoid an error.
13051 Use char because int might match the return type of a GCC
13052 builtin and then its argument prototype would still apply. */
13053#ifdef __cplusplus
13054extern "C"
13055#endif
13056char pthread_getspecific ();
13057int
13058main ()
13059{
13060return pthread_getspecific ();
13061 ;
13062 return 0;
13063}
13064_ACEOF
13065for ac_lib in '' pthread; do
13066 if test -z "$ac_lib"; then
13067 ac_res="none required"
13068 else
13069 ac_res=-l$ac_lib
13070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13071 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013072 rm -f conftest.$ac_objext conftest$ac_exeext
13073if { (ac_try="$ac_link"
13074case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13077esac
13078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_link") 2>conftest.er1
13080 ac_status=$?
13081 grep -v '^ *+' conftest.er1 >conftest.err
13082 rm -f conftest.er1
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13087 { (case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13090esac
13091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_try") 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; } &&
13096 { ac_try='test -s conftest$ac_exeext'
13097 { (case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13100esac
13101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_try") 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013106 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013107else
13108 echo "$as_me: failed program was:" >&5
13109sed 's/^/| /' conftest.$ac_ext >&5
13110
13111
Owen Anderson27fcfe12009-06-25 23:10:26 +000013112fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013113
Owen Anderson27fcfe12009-06-25 23:10:26 +000013114rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013115 conftest$ac_exeext
13116 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013117 break
13118fi
13119done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013120if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13121 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013122else
13123 ac_cv_search_pthread_getspecific=no
13124fi
13125rm conftest.$ac_ext
13126LIBS=$ac_func_search_save_LIBS
13127fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013128{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13129echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013130ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013131if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013134cat >>confdefs.h <<\_ACEOF
13135#define HAVE_PTHREAD_GETSPECIFIC 1
13136_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013137
13138fi
13139
Reid Spencer0a262ba2005-08-24 10:07:20 +000013140fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013141
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013142
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013143# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013144if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013145 withval=$with_udis86;
13146 USE_UDIS86=1
13147
13148 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013149 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013150 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13151 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013152
13153{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13154echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13155if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013157else
13158 ac_check_lib_save_LIBS=$LIBS
13159LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013160cat >conftest.$ac_ext <<_ACEOF
13161/* confdefs.h. */
13162_ACEOF
13163cat confdefs.h >>conftest.$ac_ext
13164cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013165/* end confdefs.h. */
13166
13167/* Override any GCC internal prototype to avoid an error.
13168 Use char because int might match the return type of a GCC
13169 builtin and then its argument prototype would still apply. */
13170#ifdef __cplusplus
13171extern "C"
13172#endif
13173char ud_init ();
13174int
13175main ()
13176{
13177return ud_init ();
13178 ;
13179 return 0;
13180}
13181_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013182rm -f conftest.$ac_objext conftest$ac_exeext
13183if { (ac_try="$ac_link"
13184case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13187esac
13188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_link") 2>conftest.er1
13190 ac_status=$?
13191 grep -v '^ *+' conftest.er1 >conftest.err
13192 rm -f conftest.er1
13193 cat conftest.err >&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13197 { (case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13200esac
13201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_try") 2>&5
13203 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; } &&
13206 { ac_try='test -s conftest$ac_exeext'
13207 { (case "(($ac_try" in
13208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209 *) ac_try_echo=$ac_try;;
13210esac
13211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13212 (eval "$ac_try") 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013216 ac_cv_lib_udis86_ud_init=yes
13217else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013218 echo "$as_me: failed program was:" >&5
13219sed 's/^/| /' conftest.$ac_ext >&5
13220
13221 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013223
Bill Wendlingebcceee2009-04-18 11:20:33 +000013224rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013225 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013226LIBS=$ac_check_lib_save_LIBS
13227fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013228{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13229echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13230if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013231 cat >>confdefs.h <<_ACEOF
13232#define HAVE_LIBUDIS86 1
13233_ACEOF
13234
13235 LIBS="-ludis86 $LIBS"
13236
13237else
13238
13239 echo "Error! You need to have libudis86 around."
13240 exit -1
13241
13242fi
13243
13244
13245else
13246 USE_UDIS86=0
13247
13248fi
13249
13250
13251cat >>confdefs.h <<_ACEOF
13252#define USE_UDIS86 $USE_UDIS86
13253_ACEOF
13254
13255
13256
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013257# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013258if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013259 withval=$with_oprofile;
13260 USE_OPROFILE=1
13261
13262 case "$withval" in
13263 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013264 no) llvm_cv_oppath=
13265 USE_OPROFILE=0
13266 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013267 *) llvm_cv_oppath="${withval}/lib/oprofile"
13268 CPPFLAGS="-I${withval}/include";;
13269 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013270 case $llvm_cv_os_type in
13271 Linux)
13272 if test -n "$llvm_cv_oppath" ; then
13273 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13274 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013275echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13276if test "${ac_cv_search_bfd_init+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013278else
13279 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013280cat >conftest.$ac_ext <<_ACEOF
13281/* confdefs.h. */
13282_ACEOF
13283cat confdefs.h >>conftest.$ac_ext
13284cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013285/* end confdefs.h. */
13286
13287/* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13290#ifdef __cplusplus
13291extern "C"
13292#endif
13293char bfd_init ();
13294int
13295main ()
13296{
13297return bfd_init ();
13298 ;
13299 return 0;
13300}
13301_ACEOF
13302for ac_lib in '' bfd; do
13303 if test -z "$ac_lib"; then
13304 ac_res="none required"
13305 else
13306 ac_res=-l$ac_lib
13307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13308 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013309 rm -f conftest.$ac_objext conftest$ac_exeext
13310if { (ac_try="$ac_link"
13311case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13314esac
13315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316 (eval "$ac_link") 2>conftest.er1
13317 ac_status=$?
13318 grep -v '^ *+' conftest.er1 >conftest.err
13319 rm -f conftest.er1
13320 cat conftest.err >&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } &&
13323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13324 { (case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13327esac
13328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_try") 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; } &&
13333 { ac_try='test -s conftest$ac_exeext'
13334 { (case "(($ac_try" in
13335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336 *) ac_try_echo=$ac_try;;
13337esac
13338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339 (eval "$ac_try") 2>&5
13340 ac_status=$?
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013343 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013344else
13345 echo "$as_me: failed program was:" >&5
13346sed 's/^/| /' conftest.$ac_ext >&5
13347
13348
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013350
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013351rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013352 conftest$ac_exeext
13353 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013354 break
13355fi
13356done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013357if test "${ac_cv_search_bfd_init+set}" = set; then
13358 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013359else
13360 ac_cv_search_bfd_init=no
13361fi
13362rm conftest.$ac_ext
13363LIBS=$ac_func_search_save_LIBS
13364fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013365{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13366echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013367ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013368if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13370
13371fi
13372
Eli Bendersky61b18512012-03-13 08:33:15 +000013373 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013374echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13375if test "${ac_cv_search_op_open_agent+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013377else
13378 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013379cat >conftest.$ac_ext <<_ACEOF
13380/* confdefs.h. */
13381_ACEOF
13382cat confdefs.h >>conftest.$ac_ext
13383cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013384/* end confdefs.h. */
13385
13386/* Override any GCC internal prototype to avoid an error.
13387 Use char because int might match the return type of a GCC
13388 builtin and then its argument prototype would still apply. */
13389#ifdef __cplusplus
13390extern "C"
13391#endif
13392char op_open_agent ();
13393int
13394main ()
13395{
13396return op_open_agent ();
13397 ;
13398 return 0;
13399}
13400_ACEOF
13401for ac_lib in '' opagent; do
13402 if test -z "$ac_lib"; then
13403 ac_res="none required"
13404 else
13405 ac_res=-l$ac_lib
13406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13407 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013408 rm -f conftest.$ac_objext conftest$ac_exeext
13409if { (ac_try="$ac_link"
13410case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413esac
13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_link") 2>conftest.er1
13416 ac_status=$?
13417 grep -v '^ *+' conftest.er1 >conftest.err
13418 rm -f conftest.er1
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
13422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13426esac
13427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; } &&
13432 { ac_try='test -s conftest$ac_exeext'
13433 { (case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13436esac
13437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 (eval "$ac_try") 2>&5
13439 ac_status=$?
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013442 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013443else
13444 echo "$as_me: failed program was:" >&5
13445sed 's/^/| /' conftest.$ac_ext >&5
13446
13447
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013448fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013449
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013450rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013451 conftest$ac_exeext
13452 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013453 break
13454fi
13455done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013456if test "${ac_cv_search_op_open_agent+set}" = set; then
13457 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013458else
13459 ac_cv_search_op_open_agent=no
13460fi
13461rm conftest.$ac_ext
13462LIBS=$ac_func_search_save_LIBS
13463fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013464{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13465echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013466ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013467if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013468 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13469
13470else
13471
Eli Bendersky61b18512012-03-13 08:33:15 +000013472 echo "Error! You need to have libopagent around."
13473 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013474
13475fi
13476
Eli Bendersky61b18512012-03-13 08:33:15 +000013477 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013478 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13479echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13480if test "${ac_cv_header_opagent_h+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482fi
13483{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13484echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13485else
13486 # Is the header compilable?
13487{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13488echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13489cat >conftest.$ac_ext <<_ACEOF
13490/* confdefs.h. */
13491_ACEOF
13492cat confdefs.h >>conftest.$ac_ext
13493cat >>conftest.$ac_ext <<_ACEOF
13494/* end confdefs.h. */
13495$ac_includes_default
13496#include <opagent.h>
13497_ACEOF
13498rm -f conftest.$ac_objext
13499if { (ac_try="$ac_compile"
13500case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13503esac
13504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_compile") 2>conftest.er1
13506 ac_status=$?
13507 grep -v '^ *+' conftest.er1 >conftest.err
13508 rm -f conftest.er1
13509 cat conftest.err >&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
13512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13513 { (case "(($ac_try" in
13514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515 *) ac_try_echo=$ac_try;;
13516esac
13517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13518 (eval "$ac_try") 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; } &&
13522 { ac_try='test -s conftest.$ac_objext'
13523 { (case "(($ac_try" in
13524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525 *) ac_try_echo=$ac_try;;
13526esac
13527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13528 (eval "$ac_try") 2>&5
13529 ac_status=$?
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; }; then
13532 ac_header_compiler=yes
13533else
13534 echo "$as_me: failed program was:" >&5
13535sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013536
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013537 ac_header_compiler=no
13538fi
13539
13540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13541{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13542echo "${ECHO_T}$ac_header_compiler" >&6; }
13543
13544# Is the header present?
13545{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13546echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13547cat >conftest.$ac_ext <<_ACEOF
13548/* confdefs.h. */
13549_ACEOF
13550cat confdefs.h >>conftest.$ac_ext
13551cat >>conftest.$ac_ext <<_ACEOF
13552/* end confdefs.h. */
13553#include <opagent.h>
13554_ACEOF
13555if { (ac_try="$ac_cpp conftest.$ac_ext"
13556case "(($ac_try" in
13557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558 *) ac_try_echo=$ac_try;;
13559esac
13560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13562 ac_status=$?
13563 grep -v '^ *+' conftest.er1 >conftest.err
13564 rm -f conftest.er1
13565 cat conftest.err >&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } >/dev/null; then
13568 if test -s conftest.err; then
13569 ac_cpp_err=$ac_c_preproc_warn_flag
13570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13571 else
13572 ac_cpp_err=
13573 fi
13574else
13575 ac_cpp_err=yes
13576fi
13577if test -z "$ac_cpp_err"; then
13578 ac_header_preproc=yes
13579else
13580 echo "$as_me: failed program was:" >&5
13581sed 's/^/| /' conftest.$ac_ext >&5
13582
13583 ac_header_preproc=no
13584fi
13585
13586rm -f conftest.err conftest.$ac_ext
13587{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13588echo "${ECHO_T}$ac_header_preproc" >&6; }
13589
13590# So? What about this header?
13591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13592 yes:no: )
13593 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13594echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13595 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13596echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13597 ac_header_preproc=yes
13598 ;;
13599 no:yes:* )
13600 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13601echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13603echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13604 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13605echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13606 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13607echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13608 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13609echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13610 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13611echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13612 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013613## ------------------------------------ ##
13614## Report this to http://llvm.org/bugs/ ##
13615## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013616_ASBOX
13617 ) | sed "s/^/$as_me: WARNING: /" >&2
13618 ;;
13619esac
13620{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13621echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13622if test "${ac_cv_header_opagent_h+set}" = set; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13624else
13625 ac_cv_header_opagent_h=$ac_header_preproc
13626fi
13627{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13628echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13629
13630fi
13631if test $ac_cv_header_opagent_h = yes; then
13632 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013633else
13634
Eli Bendersky61b18512012-03-13 08:33:15 +000013635 echo "Error! You need to have opagent.h around."
13636 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013637
13638fi
13639
13640
Eli Bendersky61b18512012-03-13 08:33:15 +000013641 fi ;;
13642 *)
13643 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13644echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13645 { (exit 1); exit 1; }; } ;;
13646 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013647
13648else
13649
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013650 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013651
13652
13653fi
13654
13655
13656cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013657#define LLVM_USE_OPROFILE $USE_OPROFILE
13658_ACEOF
13659
13660
13661
13662# Check whether --with-intel-jitevents was given.
13663if test "${with_intel_jitevents+set}" = set; then
13664 withval=$with_intel_jitevents;
13665 case $llvm_cv_os_type in
13666 Linux|Win32|Cygwin|MingW) ;;
13667 *)
13668 { { echo "$as_me:$LINENO: error:
13669 Intel JIT API support is available on Linux and Windows only.\"" >&5
13670echo "$as_me: error:
13671 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13672 { (exit 1); exit 1; }; } ;;
13673 esac
13674
13675 USE_INTEL_JITEVENTS=1
13676
13677 case "$llvm_cv_target_arch" in
13678 x86) llvm_intel_jitevents_archdir="lib32";;
13679 x86_64) llvm_intel_jitevents_archdir="lib64";;
13680 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13681 exit -1;;
13682 esac
13683 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13684 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13685 case "$withval" in
13686 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13687 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13688 *) ;;
13689
13690 esac
13691
13692
13693
13694
13695 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13696 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13697
13698 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13699echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13700if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13701 echo $ECHO_N "(cached) $ECHO_C" >&6
13702else
13703 ac_func_search_save_LIBS=$LIBS
13704cat >conftest.$ac_ext <<_ACEOF
13705/* confdefs.h. */
13706_ACEOF
13707cat confdefs.h >>conftest.$ac_ext
13708cat >>conftest.$ac_ext <<_ACEOF
13709/* end confdefs.h. */
13710
13711/* Override any GCC internal prototype to avoid an error.
13712 Use char because int might match the return type of a GCC
13713 builtin and then its argument prototype would still apply. */
13714#ifdef __cplusplus
13715extern "C"
13716#endif
13717char iJIT_IsProfilingActive ();
13718int
13719main ()
13720{
13721return iJIT_IsProfilingActive ();
13722 ;
13723 return 0;
13724}
13725_ACEOF
13726for ac_lib in '' jitprofiling; do
13727 if test -z "$ac_lib"; then
13728 ac_res="none required"
13729 else
13730 ac_res=-l$ac_lib
13731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13732 fi
13733 rm -f conftest.$ac_objext conftest$ac_exeext
13734if { (ac_try="$ac_link"
13735case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13738esac
13739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_link") 2>conftest.er1
13741 ac_status=$?
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13748 { (case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13751esac
13752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_try") 2>&5
13754 ac_status=$?
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; } &&
13757 { ac_try='test -s conftest$ac_exeext'
13758 { (case "(($ac_try" in
13759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13761esac
13762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763 (eval "$ac_try") 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13768else
13769 echo "$as_me: failed program was:" >&5
13770sed 's/^/| /' conftest.$ac_ext >&5
13771
13772
13773fi
13774
13775rm -f core conftest.err conftest.$ac_objext \
13776 conftest$ac_exeext
13777 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13778 break
13779fi
13780done
13781if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13782 :
13783else
13784 ac_cv_search_iJIT_IsProfilingActive=no
13785fi
13786rm conftest.$ac_ext
13787LIBS=$ac_func_search_save_LIBS
13788fi
13789{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13790echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13791ac_res=$ac_cv_search_iJIT_IsProfilingActive
13792if test "$ac_res" != no; then
13793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13794
13795else
13796
13797 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13798 exit -1
13799
13800fi
13801
13802 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13803 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13804echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13805if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13807fi
13808{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13809echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13810else
13811 # Is the header compilable?
13812{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13813echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13814cat >conftest.$ac_ext <<_ACEOF
13815/* confdefs.h. */
13816_ACEOF
13817cat confdefs.h >>conftest.$ac_ext
13818cat >>conftest.$ac_ext <<_ACEOF
13819/* end confdefs.h. */
13820$ac_includes_default
13821#include <jitprofiling.h>
13822_ACEOF
13823rm -f conftest.$ac_objext
13824if { (ac_try="$ac_compile"
13825case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13828esac
13829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_compile") 2>conftest.er1
13831 ac_status=$?
13832 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
13837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13838 { (case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13841esac
13842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_try") 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; } &&
13847 { ac_try='test -s conftest.$ac_objext'
13848 { (case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13851esac
13852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853 (eval "$ac_try") 2>&5
13854 ac_status=$?
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; }; then
13857 ac_header_compiler=yes
13858else
13859 echo "$as_me: failed program was:" >&5
13860sed 's/^/| /' conftest.$ac_ext >&5
13861
13862 ac_header_compiler=no
13863fi
13864
13865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13866{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13867echo "${ECHO_T}$ac_header_compiler" >&6; }
13868
13869# Is the header present?
13870{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13871echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13872cat >conftest.$ac_ext <<_ACEOF
13873/* confdefs.h. */
13874_ACEOF
13875cat confdefs.h >>conftest.$ac_ext
13876cat >>conftest.$ac_ext <<_ACEOF
13877/* end confdefs.h. */
13878#include <jitprofiling.h>
13879_ACEOF
13880if { (ac_try="$ac_cpp conftest.$ac_ext"
13881case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13884esac
13885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13887 ac_status=$?
13888 grep -v '^ *+' conftest.er1 >conftest.err
13889 rm -f conftest.er1
13890 cat conftest.err >&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } >/dev/null; then
13893 if test -s conftest.err; then
13894 ac_cpp_err=$ac_c_preproc_warn_flag
13895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13896 else
13897 ac_cpp_err=
13898 fi
13899else
13900 ac_cpp_err=yes
13901fi
13902if test -z "$ac_cpp_err"; then
13903 ac_header_preproc=yes
13904else
13905 echo "$as_me: failed program was:" >&5
13906sed 's/^/| /' conftest.$ac_ext >&5
13907
13908 ac_header_preproc=no
13909fi
13910
13911rm -f conftest.err conftest.$ac_ext
13912{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13913echo "${ECHO_T}$ac_header_preproc" >&6; }
13914
13915# So? What about this header?
13916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13917 yes:no: )
13918 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13919echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13920 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13921echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13922 ac_header_preproc=yes
13923 ;;
13924 no:yes:* )
13925 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13926echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13928echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13929 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13930echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13931 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13932echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13933 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13934echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13935 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13936echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13937 ( cat <<\_ASBOX
13938## ------------------------------------ ##
13939## Report this to http://llvm.org/bugs/ ##
13940## ------------------------------------ ##
13941_ASBOX
13942 ) | sed "s/^/$as_me: WARNING: /" >&2
13943 ;;
13944esac
13945{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13946echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13947if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13949else
13950 ac_cv_header_jitprofiling_h=$ac_header_preproc
13951fi
13952{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13953echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13954
13955fi
13956if test $ac_cv_header_jitprofiling_h = yes; then
13957 :
13958else
13959
13960 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13961 exit -1
13962
13963fi
13964
13965
13966
13967
13968else
13969
13970 USE_INTEL_JITEVENTS=0
13971
13972
13973fi
13974
13975
13976cat >>confdefs.h <<_ACEOF
13977#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013978_ACEOF
13979
13980
13981
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013982
13983
13984
13985
13986
Reid Spencer59473af2004-12-25 07:31:29 +000013987ac_header_dirent=no
13988for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013989 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13990{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13991echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013994else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013995 cat >conftest.$ac_ext <<_ACEOF
13996/* confdefs.h. */
13997_ACEOF
13998cat confdefs.h >>conftest.$ac_ext
13999cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014000/* end confdefs.h. */
14001#include <sys/types.h>
14002#include <$ac_hdr>
14003
14004int
14005main ()
14006{
14007if ((DIR *) 0)
14008return 0;
14009 ;
14010 return 0;
14011}
14012_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014013rm -f conftest.$ac_objext
14014if { (ac_try="$ac_compile"
14015case "(($ac_try" in
14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017 *) ac_try_echo=$ac_try;;
14018esac
14019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020 (eval "$ac_compile") 2>conftest.er1
14021 ac_status=$?
14022 grep -v '^ *+' conftest.er1 >conftest.err
14023 rm -f conftest.er1
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14028 { (case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14031esac
14032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_try") 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest.$ac_objext'
14038 { (case "(($ac_try" in
14039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040 *) ac_try_echo=$ac_try;;
14041esac
14042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043 (eval "$ac_try") 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014047 eval "$as_ac_Header=yes"
14048else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014049 echo "$as_me: failed program was:" >&5
14050sed 's/^/| /' conftest.$ac_ext >&5
14051
14052 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014054
Reid Spencera773bd52006-08-04 18:18:08 +000014055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014056fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014057ac_res=`eval echo '${'$as_ac_Header'}'`
14058 { echo "$as_me:$LINENO: result: $ac_res" >&5
14059echo "${ECHO_T}$ac_res" >&6; }
14060if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014061 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014062#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014063_ACEOF
14064
14065ac_header_dirent=$ac_hdr; break
14066fi
14067
14068done
14069# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14070if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014071 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14072echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14073if test "${ac_cv_search_opendir+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014075else
14076 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014077cat >conftest.$ac_ext <<_ACEOF
14078/* confdefs.h. */
14079_ACEOF
14080cat confdefs.h >>conftest.$ac_ext
14081cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014082/* end confdefs.h. */
14083
Reid Spencera773bd52006-08-04 18:18:08 +000014084/* Override any GCC internal prototype to avoid an error.
14085 Use char because int might match the return type of a GCC
14086 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014087#ifdef __cplusplus
14088extern "C"
14089#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014090char opendir ();
14091int
14092main ()
14093{
Reid Spencera773bd52006-08-04 18:18:08 +000014094return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014095 ;
14096 return 0;
14097}
14098_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014099for ac_lib in '' dir; do
14100 if test -z "$ac_lib"; then
14101 ac_res="none required"
14102 else
14103 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014105 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014106 rm -f conftest.$ac_objext conftest$ac_exeext
14107if { (ac_try="$ac_link"
14108case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14111esac
14112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_link") 2>conftest.er1
14114 ac_status=$?
14115 grep -v '^ *+' conftest.er1 >conftest.err
14116 rm -f conftest.er1
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14121 { (case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14124esac
14125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_try") 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; } &&
14130 { ac_try='test -s conftest$ac_exeext'
14131 { (case "(($ac_try" in
14132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133 *) ac_try_echo=$ac_try;;
14134esac
14135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136 (eval "$ac_try") 2>&5
14137 ac_status=$?
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014140 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014141else
14142 echo "$as_me: failed program was:" >&5
14143sed 's/^/| /' conftest.$ac_ext >&5
14144
14145
Reid Spencer59473af2004-12-25 07:31:29 +000014146fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014147
Bill Wendlingebcceee2009-04-18 11:20:33 +000014148rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014149 conftest$ac_exeext
14150 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014151 break
Reid Spencer59473af2004-12-25 07:31:29 +000014152fi
Reid Spencera773bd52006-08-04 18:18:08 +000014153done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014154if test "${ac_cv_search_opendir+set}" = set; then
14155 :
Reid Spencera773bd52006-08-04 18:18:08 +000014156else
14157 ac_cv_search_opendir=no
14158fi
14159rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014160LIBS=$ac_func_search_save_LIBS
14161fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014162{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14163echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014164ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014165if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014167
14168fi
14169
14170else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014171 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14172echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14173if test "${ac_cv_search_opendir+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014175else
14176 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014177cat >conftest.$ac_ext <<_ACEOF
14178/* confdefs.h. */
14179_ACEOF
14180cat confdefs.h >>conftest.$ac_ext
14181cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014182/* end confdefs.h. */
14183
Reid Spencera773bd52006-08-04 18:18:08 +000014184/* Override any GCC internal prototype to avoid an error.
14185 Use char because int might match the return type of a GCC
14186 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014187#ifdef __cplusplus
14188extern "C"
14189#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014190char opendir ();
14191int
14192main ()
14193{
Reid Spencera773bd52006-08-04 18:18:08 +000014194return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014195 ;
14196 return 0;
14197}
14198_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014199for ac_lib in '' x; do
14200 if test -z "$ac_lib"; then
14201 ac_res="none required"
14202 else
14203 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014205 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014206 rm -f conftest.$ac_objext conftest$ac_exeext
14207if { (ac_try="$ac_link"
14208case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14211esac
14212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_link") 2>conftest.er1
14214 ac_status=$?
14215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221 { (case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14224esac
14225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_try") 2>&5
14227 ac_status=$?
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } &&
14230 { ac_try='test -s conftest$ac_exeext'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14234esac
14235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014240 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014241else
14242 echo "$as_me: failed program was:" >&5
14243sed 's/^/| /' conftest.$ac_ext >&5
14244
14245
Reid Spencer59473af2004-12-25 07:31:29 +000014246fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014247
Bill Wendlingebcceee2009-04-18 11:20:33 +000014248rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014249 conftest$ac_exeext
14250 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014251 break
Reid Spencer59473af2004-12-25 07:31:29 +000014252fi
Reid Spencera773bd52006-08-04 18:18:08 +000014253done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014254if test "${ac_cv_search_opendir+set}" = set; then
14255 :
Reid Spencera773bd52006-08-04 18:18:08 +000014256else
14257 ac_cv_search_opendir=no
14258fi
14259rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014260LIBS=$ac_func_search_save_LIBS
14261fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014262{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14263echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014264ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014265if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014267
14268fi
14269
14270fi
14271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014272{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14273echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14274if test "${ac_cv_header_mmap_anon+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014276else
14277 ac_ext=c
14278ac_cpp='$CPP $CPPFLAGS'
14279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14281ac_compiler_gnu=$ac_cv_c_compiler_gnu
14282
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014283 cat >conftest.$ac_ext <<_ACEOF
14284/* confdefs.h. */
14285_ACEOF
14286cat confdefs.h >>conftest.$ac_ext
14287cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014288/* end confdefs.h. */
14289#include <sys/mman.h>
14290#include <unistd.h>
14291#include <fcntl.h>
14292int
14293main ()
14294{
14295mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14296 ;
14297 return 0;
14298}
14299_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014300rm -f conftest.$ac_objext
14301if { (ac_try="$ac_compile"
14302case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14305esac
14306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_compile") 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14315 { (case "(($ac_try" in
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14318esac
14319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_try") 2>&5
14321 ac_status=$?
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; } &&
14324 { ac_try='test -s conftest.$ac_objext'
14325 { (case "(($ac_try" in
14326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327 *) ac_try_echo=$ac_try;;
14328esac
14329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330 (eval "$ac_try") 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014334 ac_cv_header_mmap_anon=yes
14335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014336 echo "$as_me: failed program was:" >&5
14337sed 's/^/| /' conftest.$ac_ext >&5
14338
14339 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014341
Reid Spencera773bd52006-08-04 18:18:08 +000014342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014343 ac_ext=c
14344ac_cpp='$CPP $CPPFLAGS'
14345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14347ac_compiler_gnu=$ac_cv_c_compiler_gnu
14348
14349
14350fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014351{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14352echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014353if test "$ac_cv_header_mmap_anon" = yes; then
14354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014355cat >>confdefs.h <<\_ACEOF
14356#define HAVE_MMAP_ANONYMOUS 1
14357_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014358
14359fi
14360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014361{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14362echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14363if test "${ac_cv_header_stat_broken+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014365else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014366 cat >conftest.$ac_ext <<_ACEOF
14367/* confdefs.h. */
14368_ACEOF
14369cat confdefs.h >>conftest.$ac_ext
14370cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014371/* end confdefs.h. */
14372#include <sys/types.h>
14373#include <sys/stat.h>
14374
Reid Spencera773bd52006-08-04 18:18:08 +000014375#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014376# if S_ISBLK (S_IFDIR)
14377You lose.
14378# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014379#endif
14380
Reid Spencera773bd52006-08-04 18:18:08 +000014381#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014382# if S_ISBLK (S_IFCHR)
14383You lose.
14384# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014385#endif
14386
Reid Spencera773bd52006-08-04 18:18:08 +000014387#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014388# if S_ISLNK (S_IFREG)
14389You lose.
14390# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014391#endif
14392
Reid Spencera773bd52006-08-04 18:18:08 +000014393#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014394# if S_ISSOCK (S_IFREG)
14395You lose.
14396# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014397#endif
14398
14399_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14401 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014402 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014403else
14404 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014405fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014406rm -f conftest*
14407
Reid Spencer59473af2004-12-25 07:31:29 +000014408fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014409{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14410echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014411if test $ac_cv_header_stat_broken = yes; then
14412
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014413cat >>confdefs.h <<\_ACEOF
14414#define STAT_MACROS_BROKEN 1
14415_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014416
14417fi
14418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014419{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14420echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14421if test "${ac_cv_header_sys_wait_h+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014424 cat >conftest.$ac_ext <<_ACEOF
14425/* confdefs.h. */
14426_ACEOF
14427cat confdefs.h >>conftest.$ac_ext
14428cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014429/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014430#include <sys/types.h>
14431#include <sys/wait.h>
14432#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014433# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014434#endif
14435#ifndef WIFEXITED
14436# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14437#endif
14438
John Criswell7a73b802003-06-30 21:59:07 +000014439int
14440main ()
14441{
14442 int s;
14443 wait (&s);
14444 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14445 ;
14446 return 0;
14447}
14448_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014449rm -f conftest.$ac_objext
14450if { (ac_try="$ac_compile"
14451case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14454esac
14455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456 (eval "$ac_compile") 2>conftest.er1
14457 ac_status=$?
14458 grep -v '^ *+' conftest.er1 >conftest.err
14459 rm -f conftest.er1
14460 cat conftest.err >&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } &&
14463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14464 { (case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14467esac
14468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_try") 2>&5
14470 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; } &&
14473 { ac_try='test -s conftest.$ac_objext'
14474 { (case "(($ac_try" in
14475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476 *) ac_try_echo=$ac_try;;
14477esac
14478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479 (eval "$ac_try") 2>&5
14480 ac_status=$?
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014483 ac_cv_header_sys_wait_h=yes
14484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014485 echo "$as_me: failed program was:" >&5
14486sed 's/^/| /' conftest.$ac_ext >&5
14487
14488 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014489fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014490
Reid Spencera773bd52006-08-04 18:18:08 +000014491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014492fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014493{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14494echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014495if test $ac_cv_header_sys_wait_h = yes; then
14496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014497cat >>confdefs.h <<\_ACEOF
14498#define HAVE_SYS_WAIT_H 1
14499_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014500
14501fi
14502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014503{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14504echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14505if test "${ac_cv_header_time+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014507else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014508 cat >conftest.$ac_ext <<_ACEOF
14509/* confdefs.h. */
14510_ACEOF
14511cat confdefs.h >>conftest.$ac_ext
14512cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014513/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014514#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014515#include <sys/time.h>
14516#include <time.h>
14517
14518int
14519main ()
14520{
14521if ((struct tm *) 0)
14522return 0;
14523 ;
14524 return 0;
14525}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014526_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014527rm -f conftest.$ac_objext
14528if { (ac_try="$ac_compile"
14529case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14532esac
14533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_compile") 2>conftest.er1
14535 ac_status=$?
14536 grep -v '^ *+' conftest.er1 >conftest.err
14537 rm -f conftest.er1
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
14541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14542 { (case "(($ac_try" in
14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14545esac
14546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_try") 2>&5
14548 ac_status=$?
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; } &&
14551 { ac_try='test -s conftest.$ac_objext'
14552 { (case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14555esac
14556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_try") 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014561 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014563 echo "$as_me: failed program was:" >&5
14564sed 's/^/| /' conftest.$ac_ext >&5
14565
14566 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014567fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014568
Reid Spencera773bd52006-08-04 18:18:08 +000014569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014570fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014571{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14572echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014573if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014575cat >>confdefs.h <<\_ACEOF
14576#define TIME_WITH_SYS_TIME 1
14577_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014578
14579fi
14580
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014581
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014582
14583
14584
14585
14586
14587
Reid Spencer59473af2004-12-25 07:31:29 +000014588for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014589do
14590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14596fi
14597ac_res=`eval echo '${'$as_ac_Header'}'`
14598 { echo "$as_me:$LINENO: result: $ac_res" >&5
14599echo "${ECHO_T}$ac_res" >&6; }
14600else
14601 # Is the header compilable?
14602{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14603echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14604cat >conftest.$ac_ext <<_ACEOF
14605/* confdefs.h. */
14606_ACEOF
14607cat confdefs.h >>conftest.$ac_ext
14608cat >>conftest.$ac_ext <<_ACEOF
14609/* end confdefs.h. */
14610$ac_includes_default
14611#include <$ac_header>
14612_ACEOF
14613rm -f conftest.$ac_objext
14614if { (ac_try="$ac_compile"
14615case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14618esac
14619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620 (eval "$ac_compile") 2>conftest.er1
14621 ac_status=$?
14622 grep -v '^ *+' conftest.er1 >conftest.err
14623 rm -f conftest.er1
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } &&
14627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14628 { (case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14631esac
14632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_try") 2>&5
14634 ac_status=$?
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; } &&
14637 { ac_try='test -s conftest.$ac_objext'
14638 { (case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14641esac
14642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_try") 2>&5
14644 ac_status=$?
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; }; then
14647 ac_header_compiler=yes
14648else
14649 echo "$as_me: failed program was:" >&5
14650sed 's/^/| /' conftest.$ac_ext >&5
14651
14652 ac_header_compiler=no
14653fi
14654
14655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14656{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14657echo "${ECHO_T}$ac_header_compiler" >&6; }
14658
14659# Is the header present?
14660{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14661echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14662cat >conftest.$ac_ext <<_ACEOF
14663/* confdefs.h. */
14664_ACEOF
14665cat confdefs.h >>conftest.$ac_ext
14666cat >>conftest.$ac_ext <<_ACEOF
14667/* end confdefs.h. */
14668#include <$ac_header>
14669_ACEOF
14670if { (ac_try="$ac_cpp conftest.$ac_ext"
14671case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14674esac
14675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14677 ac_status=$?
14678 grep -v '^ *+' conftest.er1 >conftest.err
14679 rm -f conftest.er1
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } >/dev/null; then
14683 if test -s conftest.err; then
14684 ac_cpp_err=$ac_c_preproc_warn_flag
14685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14686 else
14687 ac_cpp_err=
14688 fi
14689else
14690 ac_cpp_err=yes
14691fi
14692if test -z "$ac_cpp_err"; then
14693 ac_header_preproc=yes
14694else
14695 echo "$as_me: failed program was:" >&5
14696sed 's/^/| /' conftest.$ac_ext >&5
14697
14698 ac_header_preproc=no
14699fi
14700
14701rm -f conftest.err conftest.$ac_ext
14702{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14703echo "${ECHO_T}$ac_header_preproc" >&6; }
14704
14705# So? What about this header?
14706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14707 yes:no: )
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14711echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14712 ac_header_preproc=yes
14713 ;;
14714 no:yes:* )
14715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14716echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14718echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14720echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14722echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14726echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14727 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014728## ------------------------------------ ##
14729## Report this to http://llvm.org/bugs/ ##
14730## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014731_ASBOX
14732 ) | sed "s/^/$as_me: WARNING: /" >&2
14733 ;;
14734esac
14735{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14739else
14740 eval "$as_ac_Header=\$ac_header_preproc"
14741fi
14742ac_res=`eval echo '${'$as_ac_Header'}'`
14743 { echo "$as_me:$LINENO: result: $ac_res" >&5
14744echo "${ECHO_T}$ac_res" >&6; }
14745
14746fi
14747if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014748 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014750_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014751
14752fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014753
Reid Spencer59473af2004-12-25 07:31:29 +000014754done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014756
14757
14758
14759
14760
14761
Douglas Gregor071d73d2009-05-18 17:21:34 +000014762for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014763do
14764as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14768if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14770fi
14771ac_res=`eval echo '${'$as_ac_Header'}'`
14772 { echo "$as_me:$LINENO: result: $ac_res" >&5
14773echo "${ECHO_T}$ac_res" >&6; }
14774else
14775 # Is the header compilable?
14776{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14777echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14778cat >conftest.$ac_ext <<_ACEOF
14779/* confdefs.h. */
14780_ACEOF
14781cat confdefs.h >>conftest.$ac_ext
14782cat >>conftest.$ac_ext <<_ACEOF
14783/* end confdefs.h. */
14784$ac_includes_default
14785#include <$ac_header>
14786_ACEOF
14787rm -f conftest.$ac_objext
14788if { (ac_try="$ac_compile"
14789case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14792esac
14793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_compile") 2>conftest.er1
14795 ac_status=$?
14796 grep -v '^ *+' conftest.er1 >conftest.err
14797 rm -f conftest.er1
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14802 { (case "(($ac_try" in
14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804 *) ac_try_echo=$ac_try;;
14805esac
14806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807 (eval "$ac_try") 2>&5
14808 ac_status=$?
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; } &&
14811 { ac_try='test -s conftest.$ac_objext'
14812 { (case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14815esac
14816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_try") 2>&5
14818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821 ac_header_compiler=yes
14822else
14823 echo "$as_me: failed program was:" >&5
14824sed 's/^/| /' conftest.$ac_ext >&5
14825
14826 ac_header_compiler=no
14827fi
14828
14829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14831echo "${ECHO_T}$ac_header_compiler" >&6; }
14832
14833# Is the header present?
14834{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14835echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14836cat >conftest.$ac_ext <<_ACEOF
14837/* confdefs.h. */
14838_ACEOF
14839cat confdefs.h >>conftest.$ac_ext
14840cat >>conftest.$ac_ext <<_ACEOF
14841/* end confdefs.h. */
14842#include <$ac_header>
14843_ACEOF
14844if { (ac_try="$ac_cpp conftest.$ac_ext"
14845case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14848esac
14849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14851 ac_status=$?
14852 grep -v '^ *+' conftest.er1 >conftest.err
14853 rm -f conftest.er1
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } >/dev/null; then
14857 if test -s conftest.err; then
14858 ac_cpp_err=$ac_c_preproc_warn_flag
14859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14860 else
14861 ac_cpp_err=
14862 fi
14863else
14864 ac_cpp_err=yes
14865fi
14866if test -z "$ac_cpp_err"; then
14867 ac_header_preproc=yes
14868else
14869 echo "$as_me: failed program was:" >&5
14870sed 's/^/| /' conftest.$ac_ext >&5
14871
14872 ac_header_preproc=no
14873fi
14874
14875rm -f conftest.err conftest.$ac_ext
14876{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14877echo "${ECHO_T}$ac_header_preproc" >&6; }
14878
14879# So? What about this header?
14880case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14881 yes:no: )
14882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14883echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14885echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14886 ac_header_preproc=yes
14887 ;;
14888 no:yes:* )
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14890echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14892echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14894echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14896echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14898echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14900echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14901 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014902## ------------------------------------ ##
14903## Report this to http://llvm.org/bugs/ ##
14904## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014905_ASBOX
14906 ) | sed "s/^/$as_me: WARNING: /" >&2
14907 ;;
14908esac
14909{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14913else
14914 eval "$as_ac_Header=\$ac_header_preproc"
14915fi
14916ac_res=`eval echo '${'$as_ac_Header'}'`
14917 { echo "$as_me:$LINENO: result: $ac_res" >&5
14918echo "${ECHO_T}$ac_res" >&6; }
14919
14920fi
14921if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014922 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014924_ACEOF
14925
14926fi
14927
14928done
14929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014930
14931
Douglas Gregor071d73d2009-05-18 17:21:34 +000014932for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014933do
14934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14940fi
14941ac_res=`eval echo '${'$as_ac_Header'}'`
14942 { echo "$as_me:$LINENO: result: $ac_res" >&5
14943echo "${ECHO_T}$ac_res" >&6; }
14944else
14945 # Is the header compilable?
14946{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14947echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14948cat >conftest.$ac_ext <<_ACEOF
14949/* confdefs.h. */
14950_ACEOF
14951cat confdefs.h >>conftest.$ac_ext
14952cat >>conftest.$ac_ext <<_ACEOF
14953/* end confdefs.h. */
14954$ac_includes_default
14955#include <$ac_header>
14956_ACEOF
14957rm -f conftest.$ac_objext
14958if { (ac_try="$ac_compile"
14959case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14962esac
14963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964 (eval "$ac_compile") 2>conftest.er1
14965 ac_status=$?
14966 grep -v '^ *+' conftest.er1 >conftest.err
14967 rm -f conftest.er1
14968 cat conftest.err >&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
14971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14972 { (case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14975esac
14976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_try") 2>&5
14978 ac_status=$?
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; } &&
14981 { ac_try='test -s conftest.$ac_objext'
14982 { (case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14985esac
14986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_try") 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }; then
14991 ac_header_compiler=yes
14992else
14993 echo "$as_me: failed program was:" >&5
14994sed 's/^/| /' conftest.$ac_ext >&5
14995
14996 ac_header_compiler=no
14997fi
14998
14999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15000{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15001echo "${ECHO_T}$ac_header_compiler" >&6; }
15002
15003# Is the header present?
15004{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15005echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15006cat >conftest.$ac_ext <<_ACEOF
15007/* confdefs.h. */
15008_ACEOF
15009cat confdefs.h >>conftest.$ac_ext
15010cat >>conftest.$ac_ext <<_ACEOF
15011/* end confdefs.h. */
15012#include <$ac_header>
15013_ACEOF
15014if { (ac_try="$ac_cpp conftest.$ac_ext"
15015case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15018esac
15019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15021 ac_status=$?
15022 grep -v '^ *+' conftest.er1 >conftest.err
15023 rm -f conftest.er1
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } >/dev/null; then
15027 if test -s conftest.err; then
15028 ac_cpp_err=$ac_c_preproc_warn_flag
15029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15030 else
15031 ac_cpp_err=
15032 fi
15033else
15034 ac_cpp_err=yes
15035fi
15036if test -z "$ac_cpp_err"; then
15037 ac_header_preproc=yes
15038else
15039 echo "$as_me: failed program was:" >&5
15040sed 's/^/| /' conftest.$ac_ext >&5
15041
15042 ac_header_preproc=no
15043fi
15044
15045rm -f conftest.err conftest.$ac_ext
15046{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15047echo "${ECHO_T}$ac_header_preproc" >&6; }
15048
15049# So? What about this header?
15050case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15051 yes:no: )
15052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15053echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15055echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15056 ac_header_preproc=yes
15057 ;;
15058 no:yes:* )
15059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15060echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15062echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15064echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15066echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15068echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15070echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15071 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015072## ------------------------------------ ##
15073## Report this to http://llvm.org/bugs/ ##
15074## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015075_ASBOX
15076 ) | sed "s/^/$as_me: WARNING: /" >&2
15077 ;;
15078esac
15079{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15083else
15084 eval "$as_ac_Header=\$ac_header_preproc"
15085fi
15086ac_res=`eval echo '${'$as_ac_Header'}'`
15087 { echo "$as_me:$LINENO: result: $ac_res" >&5
15088echo "${ECHO_T}$ac_res" >&6; }
15089
15090fi
15091if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015092 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015093#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015094_ACEOF
15095
15096fi
15097
15098done
Reid Spencer59473af2004-12-25 07:31:29 +000015099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015100
15101
15102
15103
Daniel Dunbar3e462932011-02-03 02:40:02 +000015104
15105for 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 +000015106do
15107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15113fi
15114ac_res=`eval echo '${'$as_ac_Header'}'`
15115 { echo "$as_me:$LINENO: result: $ac_res" >&5
15116echo "${ECHO_T}$ac_res" >&6; }
15117else
15118 # Is the header compilable?
15119{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15121cat >conftest.$ac_ext <<_ACEOF
15122/* confdefs.h. */
15123_ACEOF
15124cat confdefs.h >>conftest.$ac_ext
15125cat >>conftest.$ac_ext <<_ACEOF
15126/* end confdefs.h. */
15127$ac_includes_default
15128#include <$ac_header>
15129_ACEOF
15130rm -f conftest.$ac_objext
15131if { (ac_try="$ac_compile"
15132case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15135esac
15136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_compile") 2>conftest.er1
15138 ac_status=$?
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } &&
15144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15145 { (case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15148esac
15149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_try") 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; } &&
15154 { ac_try='test -s conftest.$ac_objext'
15155 { (case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15158esac
15159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160 (eval "$ac_try") 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_header_compiler=yes
15165else
15166 echo "$as_me: failed program was:" >&5
15167sed 's/^/| /' conftest.$ac_ext >&5
15168
15169 ac_header_compiler=no
15170fi
15171
15172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15174echo "${ECHO_T}$ac_header_compiler" >&6; }
15175
15176# Is the header present?
15177{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15178echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15179cat >conftest.$ac_ext <<_ACEOF
15180/* confdefs.h. */
15181_ACEOF
15182cat confdefs.h >>conftest.$ac_ext
15183cat >>conftest.$ac_ext <<_ACEOF
15184/* end confdefs.h. */
15185#include <$ac_header>
15186_ACEOF
15187if { (ac_try="$ac_cpp conftest.$ac_ext"
15188case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15191esac
15192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15194 ac_status=$?
15195 grep -v '^ *+' conftest.er1 >conftest.err
15196 rm -f conftest.er1
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } >/dev/null; then
15200 if test -s conftest.err; then
15201 ac_cpp_err=$ac_c_preproc_warn_flag
15202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15203 else
15204 ac_cpp_err=
15205 fi
15206else
15207 ac_cpp_err=yes
15208fi
15209if test -z "$ac_cpp_err"; then
15210 ac_header_preproc=yes
15211else
15212 echo "$as_me: failed program was:" >&5
15213sed 's/^/| /' conftest.$ac_ext >&5
15214
15215 ac_header_preproc=no
15216fi
15217
15218rm -f conftest.err conftest.$ac_ext
15219{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15220echo "${ECHO_T}$ac_header_preproc" >&6; }
15221
15222# So? What about this header?
15223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15224 yes:no: )
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15226echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15228echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15229 ac_header_preproc=yes
15230 ;;
15231 no:yes:* )
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15235echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15237echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15239echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15243echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15244 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015245## ------------------------------------ ##
15246## Report this to http://llvm.org/bugs/ ##
15247## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015248_ASBOX
15249 ) | sed "s/^/$as_me: WARNING: /" >&2
15250 ;;
15251esac
15252{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256else
15257 eval "$as_ac_Header=\$ac_header_preproc"
15258fi
15259ac_res=`eval echo '${'$as_ac_Header'}'`
15260 { echo "$as_me:$LINENO: result: $ac_res" >&5
15261echo "${ECHO_T}$ac_res" >&6; }
15262
15263fi
15264if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015265 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015267_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015268
15269fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015270
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015271done
15272
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015273
15274
15275
15276
Douglas Gregor01746742009-05-11 18:05:52 +000015277for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015278do
15279as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15285fi
15286ac_res=`eval echo '${'$as_ac_Header'}'`
15287 { echo "$as_me:$LINENO: result: $ac_res" >&5
15288echo "${ECHO_T}$ac_res" >&6; }
15289else
15290 # Is the header compilable?
15291{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15292echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15293cat >conftest.$ac_ext <<_ACEOF
15294/* confdefs.h. */
15295_ACEOF
15296cat confdefs.h >>conftest.$ac_ext
15297cat >>conftest.$ac_ext <<_ACEOF
15298/* end confdefs.h. */
15299$ac_includes_default
15300#include <$ac_header>
15301_ACEOF
15302rm -f conftest.$ac_objext
15303if { (ac_try="$ac_compile"
15304case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15307esac
15308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_compile") 2>conftest.er1
15310 ac_status=$?
15311 grep -v '^ *+' conftest.er1 >conftest.err
15312 rm -f conftest.er1
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } &&
15316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15317 { (case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15320esac
15321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322 (eval "$ac_try") 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; } &&
15326 { ac_try='test -s conftest.$ac_objext'
15327 { (case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15330esac
15331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_try") 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 ac_header_compiler=yes
15337else
15338 echo "$as_me: failed program was:" >&5
15339sed 's/^/| /' conftest.$ac_ext >&5
15340
15341 ac_header_compiler=no
15342fi
15343
15344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15345{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15346echo "${ECHO_T}$ac_header_compiler" >&6; }
15347
15348# Is the header present?
15349{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15350echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15351cat >conftest.$ac_ext <<_ACEOF
15352/* confdefs.h. */
15353_ACEOF
15354cat confdefs.h >>conftest.$ac_ext
15355cat >>conftest.$ac_ext <<_ACEOF
15356/* end confdefs.h. */
15357#include <$ac_header>
15358_ACEOF
15359if { (ac_try="$ac_cpp conftest.$ac_ext"
15360case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15363esac
15364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15366 ac_status=$?
15367 grep -v '^ *+' conftest.er1 >conftest.err
15368 rm -f conftest.er1
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } >/dev/null; then
15372 if test -s conftest.err; then
15373 ac_cpp_err=$ac_c_preproc_warn_flag
15374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15375 else
15376 ac_cpp_err=
15377 fi
15378else
15379 ac_cpp_err=yes
15380fi
15381if test -z "$ac_cpp_err"; then
15382 ac_header_preproc=yes
15383else
15384 echo "$as_me: failed program was:" >&5
15385sed 's/^/| /' conftest.$ac_ext >&5
15386
15387 ac_header_preproc=no
15388fi
15389
15390rm -f conftest.err conftest.$ac_ext
15391{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15392echo "${ECHO_T}$ac_header_preproc" >&6; }
15393
15394# So? What about this header?
15395case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15396 yes:no: )
15397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15398echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15400echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15401 ac_header_preproc=yes
15402 ;;
15403 no:yes:* )
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15405echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15407echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15409echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15411echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15413echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15415echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15416 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015417## ------------------------------------ ##
15418## Report this to http://llvm.org/bugs/ ##
15419## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015420_ASBOX
15421 ) | sed "s/^/$as_me: WARNING: /" >&2
15422 ;;
15423esac
15424{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15428else
15429 eval "$as_ac_Header=\$ac_header_preproc"
15430fi
15431ac_res=`eval echo '${'$as_ac_Header'}'`
15432 { echo "$as_me:$LINENO: result: $ac_res" >&5
15433echo "${ECHO_T}$ac_res" >&6; }
15434
15435fi
15436if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015437 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015438#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015439_ACEOF
15440
15441fi
15442
15443done
15444
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015445
15446for ac_header in valgrind/valgrind.h
15447do
15448as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15454fi
15455ac_res=`eval echo '${'$as_ac_Header'}'`
15456 { echo "$as_me:$LINENO: result: $ac_res" >&5
15457echo "${ECHO_T}$ac_res" >&6; }
15458else
15459 # Is the header compilable?
15460{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15461echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15462cat >conftest.$ac_ext <<_ACEOF
15463/* confdefs.h. */
15464_ACEOF
15465cat confdefs.h >>conftest.$ac_ext
15466cat >>conftest.$ac_ext <<_ACEOF
15467/* end confdefs.h. */
15468$ac_includes_default
15469#include <$ac_header>
15470_ACEOF
15471rm -f conftest.$ac_objext
15472if { (ac_try="$ac_compile"
15473case "(($ac_try" in
15474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475 *) ac_try_echo=$ac_try;;
15476esac
15477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15478 (eval "$ac_compile") 2>conftest.er1
15479 ac_status=$?
15480 grep -v '^ *+' conftest.er1 >conftest.err
15481 rm -f conftest.er1
15482 cat conftest.err >&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } &&
15485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15486 { (case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15489esac
15490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_try") 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; } &&
15495 { ac_try='test -s conftest.$ac_objext'
15496 { (case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15499esac
15500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_try") 2>&5
15502 ac_status=$?
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }; then
15505 ac_header_compiler=yes
15506else
15507 echo "$as_me: failed program was:" >&5
15508sed 's/^/| /' conftest.$ac_ext >&5
15509
15510 ac_header_compiler=no
15511fi
15512
15513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15514{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15515echo "${ECHO_T}$ac_header_compiler" >&6; }
15516
15517# Is the header present?
15518{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15519echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15520cat >conftest.$ac_ext <<_ACEOF
15521/* confdefs.h. */
15522_ACEOF
15523cat confdefs.h >>conftest.$ac_ext
15524cat >>conftest.$ac_ext <<_ACEOF
15525/* end confdefs.h. */
15526#include <$ac_header>
15527_ACEOF
15528if { (ac_try="$ac_cpp conftest.$ac_ext"
15529case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15532esac
15533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15535 ac_status=$?
15536 grep -v '^ *+' conftest.er1 >conftest.err
15537 rm -f conftest.er1
15538 cat conftest.err >&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); } >/dev/null; then
15541 if test -s conftest.err; then
15542 ac_cpp_err=$ac_c_preproc_warn_flag
15543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15544 else
15545 ac_cpp_err=
15546 fi
15547else
15548 ac_cpp_err=yes
15549fi
15550if test -z "$ac_cpp_err"; then
15551 ac_header_preproc=yes
15552else
15553 echo "$as_me: failed program was:" >&5
15554sed 's/^/| /' conftest.$ac_ext >&5
15555
15556 ac_header_preproc=no
15557fi
15558
15559rm -f conftest.err conftest.$ac_ext
15560{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15561echo "${ECHO_T}$ac_header_preproc" >&6; }
15562
15563# So? What about this header?
15564case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15565 yes:no: )
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15567echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15569echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15570 ac_header_preproc=yes
15571 ;;
15572 no:yes:* )
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15574echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15576echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15578echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15580echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15582echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15584echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15585 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015586## ------------------------------------ ##
15587## Report this to http://llvm.org/bugs/ ##
15588## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015589_ASBOX
15590 ) | sed "s/^/$as_me: WARNING: /" >&2
15591 ;;
15592esac
15593{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15597else
15598 eval "$as_ac_Header=\$ac_header_preproc"
15599fi
15600ac_res=`eval echo '${'$as_ac_Header'}'`
15601 { echo "$as_me:$LINENO: result: $ac_res" >&5
15602echo "${ECHO_T}$ac_res" >&6; }
15603
15604fi
15605if test `eval echo '${'$as_ac_Header'}'` = yes; then
15606 cat >>confdefs.h <<_ACEOF
15607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15608_ACEOF
15609
15610fi
15611
15612done
15613
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015614
15615for ac_header in fenv.h
15616do
15617as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15618if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15623fi
15624ac_res=`eval echo '${'$as_ac_Header'}'`
15625 { echo "$as_me:$LINENO: result: $ac_res" >&5
15626echo "${ECHO_T}$ac_res" >&6; }
15627else
15628 # Is the header compilable?
15629{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15630echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15631cat >conftest.$ac_ext <<_ACEOF
15632/* confdefs.h. */
15633_ACEOF
15634cat confdefs.h >>conftest.$ac_ext
15635cat >>conftest.$ac_ext <<_ACEOF
15636/* end confdefs.h. */
15637$ac_includes_default
15638#include <$ac_header>
15639_ACEOF
15640rm -f conftest.$ac_objext
15641if { (ac_try="$ac_compile"
15642case "(($ac_try" in
15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644 *) ac_try_echo=$ac_try;;
15645esac
15646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647 (eval "$ac_compile") 2>conftest.er1
15648 ac_status=$?
15649 grep -v '^ *+' conftest.er1 >conftest.err
15650 rm -f conftest.er1
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } &&
15654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15655 { (case "(($ac_try" in
15656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657 *) ac_try_echo=$ac_try;;
15658esac
15659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660 (eval "$ac_try") 2>&5
15661 ac_status=$?
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try='test -s conftest.$ac_objext'
15665 { (case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15668esac
15669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670 (eval "$ac_try") 2>&5
15671 ac_status=$?
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 ac_header_compiler=yes
15675else
15676 echo "$as_me: failed program was:" >&5
15677sed 's/^/| /' conftest.$ac_ext >&5
15678
15679 ac_header_compiler=no
15680fi
15681
15682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15683{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15684echo "${ECHO_T}$ac_header_compiler" >&6; }
15685
15686# Is the header present?
15687{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15689cat >conftest.$ac_ext <<_ACEOF
15690/* confdefs.h. */
15691_ACEOF
15692cat confdefs.h >>conftest.$ac_ext
15693cat >>conftest.$ac_ext <<_ACEOF
15694/* end confdefs.h. */
15695#include <$ac_header>
15696_ACEOF
15697if { (ac_try="$ac_cpp conftest.$ac_ext"
15698case "(($ac_try" in
15699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700 *) ac_try_echo=$ac_try;;
15701esac
15702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15704 ac_status=$?
15705 grep -v '^ *+' conftest.er1 >conftest.err
15706 rm -f conftest.er1
15707 cat conftest.err >&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } >/dev/null; then
15710 if test -s conftest.err; then
15711 ac_cpp_err=$ac_c_preproc_warn_flag
15712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15713 else
15714 ac_cpp_err=
15715 fi
15716else
15717 ac_cpp_err=yes
15718fi
15719if test -z "$ac_cpp_err"; then
15720 ac_header_preproc=yes
15721else
15722 echo "$as_me: failed program was:" >&5
15723sed 's/^/| /' conftest.$ac_ext >&5
15724
15725 ac_header_preproc=no
15726fi
15727
15728rm -f conftest.err conftest.$ac_ext
15729{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15730echo "${ECHO_T}$ac_header_preproc" >&6; }
15731
15732# So? What about this header?
15733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15734 yes:no: )
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15739 ac_header_preproc=yes
15740 ;;
15741 no:yes:* )
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15749echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15754 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015755## ------------------------------------ ##
15756## Report this to http://llvm.org/bugs/ ##
15757## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015758_ASBOX
15759 ) | sed "s/^/$as_me: WARNING: /" >&2
15760 ;;
15761esac
15762{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15766else
15767 eval "$as_ac_Header=\$ac_header_preproc"
15768fi
15769ac_res=`eval echo '${'$as_ac_Header'}'`
15770 { echo "$as_me:$LINENO: result: $ac_res" >&5
15771echo "${ECHO_T}$ac_res" >&6; }
15772
15773fi
15774if test `eval echo '${'$as_ac_Header'}'` = yes; then
15775 cat >>confdefs.h <<_ACEOF
15776#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15777_ACEOF
15778
15779fi
15780
15781done
15782
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015783if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015784
15785for ac_header in pthread.h
15786do
15787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15793fi
15794ac_res=`eval echo '${'$as_ac_Header'}'`
15795 { echo "$as_me:$LINENO: result: $ac_res" >&5
15796echo "${ECHO_T}$ac_res" >&6; }
15797else
15798 # Is the header compilable?
15799{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15800echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15801cat >conftest.$ac_ext <<_ACEOF
15802/* confdefs.h. */
15803_ACEOF
15804cat confdefs.h >>conftest.$ac_ext
15805cat >>conftest.$ac_ext <<_ACEOF
15806/* end confdefs.h. */
15807$ac_includes_default
15808#include <$ac_header>
15809_ACEOF
15810rm -f conftest.$ac_objext
15811if { (ac_try="$ac_compile"
15812case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15815esac
15816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_compile") 2>conftest.er1
15818 ac_status=$?
15819 grep -v '^ *+' conftest.er1 >conftest.err
15820 rm -f conftest.er1
15821 cat conftest.err >&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } &&
15824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15825 { (case "(($ac_try" in
15826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827 *) ac_try_echo=$ac_try;;
15828esac
15829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15830 (eval "$ac_try") 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; } &&
15834 { ac_try='test -s conftest.$ac_objext'
15835 { (case "(($ac_try" in
15836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837 *) ac_try_echo=$ac_try;;
15838esac
15839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15840 (eval "$ac_try") 2>&5
15841 ac_status=$?
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }; }; then
15844 ac_header_compiler=yes
15845else
15846 echo "$as_me: failed program was:" >&5
15847sed 's/^/| /' conftest.$ac_ext >&5
15848
15849 ac_header_compiler=no
15850fi
15851
15852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15853{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15854echo "${ECHO_T}$ac_header_compiler" >&6; }
15855
15856# Is the header present?
15857{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15858echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15859cat >conftest.$ac_ext <<_ACEOF
15860/* confdefs.h. */
15861_ACEOF
15862cat confdefs.h >>conftest.$ac_ext
15863cat >>conftest.$ac_ext <<_ACEOF
15864/* end confdefs.h. */
15865#include <$ac_header>
15866_ACEOF
15867if { (ac_try="$ac_cpp conftest.$ac_ext"
15868case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15871esac
15872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15874 ac_status=$?
15875 grep -v '^ *+' conftest.er1 >conftest.err
15876 rm -f conftest.er1
15877 cat conftest.err >&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } >/dev/null; then
15880 if test -s conftest.err; then
15881 ac_cpp_err=$ac_c_preproc_warn_flag
15882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15883 else
15884 ac_cpp_err=
15885 fi
15886else
15887 ac_cpp_err=yes
15888fi
15889if test -z "$ac_cpp_err"; then
15890 ac_header_preproc=yes
15891else
15892 echo "$as_me: failed program was:" >&5
15893sed 's/^/| /' conftest.$ac_ext >&5
15894
15895 ac_header_preproc=no
15896fi
15897
15898rm -f conftest.err conftest.$ac_ext
15899{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15900echo "${ECHO_T}$ac_header_preproc" >&6; }
15901
15902# So? What about this header?
15903case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15904 yes:no: )
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15906echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15908echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15909 ac_header_preproc=yes
15910 ;;
15911 no:yes:* )
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15913echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15915echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15917echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15919echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15921echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15923echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15924 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015925## ------------------------------------ ##
15926## Report this to http://llvm.org/bugs/ ##
15927## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015928_ASBOX
15929 ) | sed "s/^/$as_me: WARNING: /" >&2
15930 ;;
15931esac
15932{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15934if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15935 echo $ECHO_N "(cached) $ECHO_C" >&6
15936else
15937 eval "$as_ac_Header=\$ac_header_preproc"
15938fi
15939ac_res=`eval echo '${'$as_ac_Header'}'`
15940 { echo "$as_me:$LINENO: result: $ac_res" >&5
15941echo "${ECHO_T}$ac_res" >&6; }
15942
15943fi
15944if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015945 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015947_ACEOF
15948 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015949
15950else
15951 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015952
15953fi
15954
Reid Spencerbe3e4192007-08-17 05:45:26 +000015955done
Reid Spencer1000b732006-12-01 00:37:14 +000015956
15957else
15958 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015959
15960fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015961
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015962if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015963
15964
15965for ac_header in ffi.h ffi/ffi.h
15966do
15967as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15972 echo $ECHO_N "(cached) $ECHO_C" >&6
15973fi
15974ac_res=`eval echo '${'$as_ac_Header'}'`
15975 { echo "$as_me:$LINENO: result: $ac_res" >&5
15976echo "${ECHO_T}$ac_res" >&6; }
15977else
15978 # Is the header compilable?
15979{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15980echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15981cat >conftest.$ac_ext <<_ACEOF
15982/* confdefs.h. */
15983_ACEOF
15984cat confdefs.h >>conftest.$ac_ext
15985cat >>conftest.$ac_ext <<_ACEOF
15986/* end confdefs.h. */
15987$ac_includes_default
15988#include <$ac_header>
15989_ACEOF
15990rm -f conftest.$ac_objext
15991if { (ac_try="$ac_compile"
15992case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15995esac
15996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_compile") 2>conftest.er1
15998 ac_status=$?
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
16004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16005 { (case "(($ac_try" in
16006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007 *) ac_try_echo=$ac_try;;
16008esac
16009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16010 (eval "$ac_try") 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; } &&
16014 { ac_try='test -s conftest.$ac_objext'
16015 { (case "(($ac_try" in
16016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16017 *) ac_try_echo=$ac_try;;
16018esac
16019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16020 (eval "$ac_try") 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16024 ac_header_compiler=yes
16025else
16026 echo "$as_me: failed program was:" >&5
16027sed 's/^/| /' conftest.$ac_ext >&5
16028
16029 ac_header_compiler=no
16030fi
16031
16032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16033{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16034echo "${ECHO_T}$ac_header_compiler" >&6; }
16035
16036# Is the header present?
16037{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16038echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16039cat >conftest.$ac_ext <<_ACEOF
16040/* confdefs.h. */
16041_ACEOF
16042cat confdefs.h >>conftest.$ac_ext
16043cat >>conftest.$ac_ext <<_ACEOF
16044/* end confdefs.h. */
16045#include <$ac_header>
16046_ACEOF
16047if { (ac_try="$ac_cpp conftest.$ac_ext"
16048case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16051esac
16052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16054 ac_status=$?
16055 grep -v '^ *+' conftest.er1 >conftest.err
16056 rm -f conftest.er1
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } >/dev/null; then
16060 if test -s conftest.err; then
16061 ac_cpp_err=$ac_c_preproc_warn_flag
16062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16063 else
16064 ac_cpp_err=
16065 fi
16066else
16067 ac_cpp_err=yes
16068fi
16069if test -z "$ac_cpp_err"; then
16070 ac_header_preproc=yes
16071else
16072 echo "$as_me: failed program was:" >&5
16073sed 's/^/| /' conftest.$ac_ext >&5
16074
16075 ac_header_preproc=no
16076fi
16077
16078rm -f conftest.err conftest.$ac_ext
16079{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16080echo "${ECHO_T}$ac_header_preproc" >&6; }
16081
16082# So? What about this header?
16083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16084 yes:no: )
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16086echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16088echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16089 ac_header_preproc=yes
16090 ;;
16091 no:yes:* )
16092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16093echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16095echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16097echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16099echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16101echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16103echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16104 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016105## ------------------------------------ ##
16106## Report this to http://llvm.org/bugs/ ##
16107## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016108_ASBOX
16109 ) | sed "s/^/$as_me: WARNING: /" >&2
16110 ;;
16111esac
16112{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
16116else
16117 eval "$as_ac_Header=\$ac_header_preproc"
16118fi
16119ac_res=`eval echo '${'$as_ac_Header'}'`
16120 { echo "$as_me:$LINENO: result: $ac_res" >&5
16121echo "${ECHO_T}$ac_res" >&6; }
16122
16123fi
16124if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016125 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016126#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016127_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016128
16129fi
16130
16131done
16132
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016133fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016134
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016135
Eric Christopher654dee42010-06-22 21:01:04 +000016136for ac_header in CrashReporterClient.h
16137do
16138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16144fi
16145ac_res=`eval echo '${'$as_ac_Header'}'`
16146 { echo "$as_me:$LINENO: result: $ac_res" >&5
16147echo "${ECHO_T}$ac_res" >&6; }
16148else
16149 # Is the header compilable?
16150{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16152cat >conftest.$ac_ext <<_ACEOF
16153/* confdefs.h. */
16154_ACEOF
16155cat confdefs.h >>conftest.$ac_ext
16156cat >>conftest.$ac_ext <<_ACEOF
16157/* end confdefs.h. */
16158$ac_includes_default
16159#include <$ac_header>
16160_ACEOF
16161rm -f conftest.$ac_objext
16162if { (ac_try="$ac_compile"
16163case "(($ac_try" in
16164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165 *) ac_try_echo=$ac_try;;
16166esac
16167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168 (eval "$ac_compile") 2>conftest.er1
16169 ac_status=$?
16170 grep -v '^ *+' conftest.er1 >conftest.err
16171 rm -f conftest.er1
16172 cat conftest.err >&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } &&
16175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16176 { (case "(($ac_try" in
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16179esac
16180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181 (eval "$ac_try") 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; } &&
16185 { ac_try='test -s conftest.$ac_objext'
16186 { (case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16189esac
16190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_try") 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; }; then
16195 ac_header_compiler=yes
16196else
16197 echo "$as_me: failed program was:" >&5
16198sed 's/^/| /' conftest.$ac_ext >&5
16199
16200 ac_header_compiler=no
16201fi
16202
16203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16204{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16205echo "${ECHO_T}$ac_header_compiler" >&6; }
16206
16207# Is the header present?
16208{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16209echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16210cat >conftest.$ac_ext <<_ACEOF
16211/* confdefs.h. */
16212_ACEOF
16213cat confdefs.h >>conftest.$ac_ext
16214cat >>conftest.$ac_ext <<_ACEOF
16215/* end confdefs.h. */
16216#include <$ac_header>
16217_ACEOF
16218if { (ac_try="$ac_cpp conftest.$ac_ext"
16219case "(($ac_try" in
16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16222esac
16223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16225 ac_status=$?
16226 grep -v '^ *+' conftest.er1 >conftest.err
16227 rm -f conftest.er1
16228 cat conftest.err >&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } >/dev/null; then
16231 if test -s conftest.err; then
16232 ac_cpp_err=$ac_c_preproc_warn_flag
16233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16234 else
16235 ac_cpp_err=
16236 fi
16237else
16238 ac_cpp_err=yes
16239fi
16240if test -z "$ac_cpp_err"; then
16241 ac_header_preproc=yes
16242else
16243 echo "$as_me: failed program was:" >&5
16244sed 's/^/| /' conftest.$ac_ext >&5
16245
16246 ac_header_preproc=no
16247fi
16248
16249rm -f conftest.err conftest.$ac_ext
16250{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16251echo "${ECHO_T}$ac_header_preproc" >&6; }
16252
16253# So? What about this header?
16254case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16255 yes:no: )
16256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16257echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16259echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16260 ac_header_preproc=yes
16261 ;;
16262 no:yes:* )
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16264echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16266echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16268echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16270echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16272echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16274echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16275 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016276## ------------------------------------ ##
16277## Report this to http://llvm.org/bugs/ ##
16278## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016279_ASBOX
16280 ) | sed "s/^/$as_me: WARNING: /" >&2
16281 ;;
16282esac
16283{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16286 echo $ECHO_N "(cached) $ECHO_C" >&6
16287else
16288 eval "$as_ac_Header=\$ac_header_preproc"
16289fi
16290ac_res=`eval echo '${'$as_ac_Header'}'`
16291 { echo "$as_me:$LINENO: result: $ac_res" >&5
16292echo "${ECHO_T}$ac_res" >&6; }
16293
16294fi
16295if test `eval echo '${'$as_ac_Header'}'` = yes; then
16296 cat >>confdefs.h <<_ACEOF
16297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16298_ACEOF
16299
16300fi
16301
16302done
16303
16304
Eric Christopher51e57132010-12-07 02:05:42 +000016305{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16306echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016307cat >conftest.$ac_ext <<_ACEOF
16308/* confdefs.h. */
16309_ACEOF
16310cat confdefs.h >>conftest.$ac_ext
16311cat >>conftest.$ac_ext <<_ACEOF
16312/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016313extern const char *__crashreporter_info__;
16314 int main() {
16315 __crashreporter_info__ = "test";
16316 return 0;
16317 }
Eric Christopher481d4022010-12-03 07:45:22 +000016318
Eric Christopher481d4022010-12-03 07:45:22 +000016319_ACEOF
16320rm -f conftest.$ac_objext conftest$ac_exeext
16321if { (ac_try="$ac_link"
16322case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16325esac
16326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327 (eval "$ac_link") 2>conftest.er1
16328 ac_status=$?
16329 grep -v '^ *+' conftest.er1 >conftest.err
16330 rm -f conftest.er1
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16335 { (case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16338esac
16339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_try") 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; } &&
16344 { ac_try='test -s conftest$ac_exeext'
16345 { (case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16348esac
16349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350 (eval "$ac_try") 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016354 { echo "$as_me:$LINENO: result: yes" >&5
16355echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016356
16357cat >>confdefs.h <<\_ACEOF
16358#define HAVE_CRASHREPORTER_INFO 1
16359_ACEOF
16360
Eric Christopher51e57132010-12-07 02:05:42 +000016361else
16362 echo "$as_me: failed program was:" >&5
16363sed 's/^/| /' conftest.$ac_ext >&5
16364
16365 { echo "$as_me:$LINENO: result: no" >&5
16366echo "${ECHO_T}no" >&6; }
16367
16368cat >>confdefs.h <<\_ACEOF
16369#define HAVE_CRASHREPORTER_INFO 0
16370_ACEOF
16371
Eric Christopher481d4022010-12-03 07:45:22 +000016372fi
Eric Christopher654dee42010-06-22 21:01:04 +000016373
Eric Christopher51e57132010-12-07 02:05:42 +000016374rm -f core conftest.err conftest.$ac_objext \
16375 conftest$ac_exeext conftest.$ac_ext
16376
16377
Reid Spencer8085cff2005-01-16 02:58:39 +000016378
Torok Edwin871384f2010-01-26 08:50:50 +000016379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016380 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16381echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16382if test "${ac_cv_huge_val_sanity+set}" = set; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016384else
16385
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016386 ac_ext=cpp
16387ac_cpp='$CXXCPP $CPPFLAGS'
16388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016391
Eric Christopherc7718502010-03-02 05:06:54 +000016392 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016393 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016394 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016395 ac_cv_huge_val_sanity=yes
16396else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016397 cat >conftest.$ac_ext <<_ACEOF
16398/* confdefs.h. */
16399_ACEOF
16400cat confdefs.h >>conftest.$ac_ext
16401cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016402/* end confdefs.h. */
16403#include <math.h>
16404int
16405main ()
16406{
16407double x = HUGE_VAL; return x != x;
16408 ;
16409 return 0;
16410}
16411_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016412rm -f conftest$ac_exeext
16413if { (ac_try="$ac_link"
16414case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16417esac
16418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_link") 2>&5
16420 ac_status=$?
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16423 { (case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16426esac
16427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_try") 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016432 ac_cv_huge_val_sanity=yes
16433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016434 echo "$as_me: program exited with status $ac_status" >&5
16435echo "$as_me: failed program was:" >&5
16436sed 's/^/| /' conftest.$ac_ext >&5
16437
16438( exit $ac_status )
16439ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016441rm -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 +000016442fi
16443
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016444
Eric Christopherc7718502010-03-02 05:06:54 +000016445 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016446 ac_ext=c
16447ac_cpp='$CPP $CPPFLAGS'
16448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16450ac_compiler_gnu=$ac_cv_c_compiler_gnu
16451
16452
16453fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016454{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16455echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016456 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16457
16458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016459{ echo "$as_me:$LINENO: checking for pid_t" >&5
16460echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16461if test "${ac_cv_type_pid_t+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16463else
16464 cat >conftest.$ac_ext <<_ACEOF
16465/* confdefs.h. */
16466_ACEOF
16467cat confdefs.h >>conftest.$ac_ext
16468cat >>conftest.$ac_ext <<_ACEOF
16469/* end confdefs.h. */
16470$ac_includes_default
16471typedef pid_t ac__type_new_;
16472int
16473main ()
16474{
16475if ((ac__type_new_ *) 0)
16476 return 0;
16477if (sizeof (ac__type_new_))
16478 return 0;
16479 ;
16480 return 0;
16481}
16482_ACEOF
16483rm -f conftest.$ac_objext
16484if { (ac_try="$ac_compile"
16485case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16488esac
16489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490 (eval "$ac_compile") 2>conftest.er1
16491 ac_status=$?
16492 grep -v '^ *+' conftest.er1 >conftest.err
16493 rm -f conftest.er1
16494 cat conftest.err >&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } &&
16497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16498 { (case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16501esac
16502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_try") 2>&5
16504 ac_status=$?
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; } &&
16507 { ac_try='test -s conftest.$ac_objext'
16508 { (case "(($ac_try" in
16509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510 *) ac_try_echo=$ac_try;;
16511esac
16512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513 (eval "$ac_try") 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; }; then
16517 ac_cv_type_pid_t=yes
16518else
16519 echo "$as_me: failed program was:" >&5
16520sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016522 ac_cv_type_pid_t=no
16523fi
16524
16525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16526fi
16527{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16528echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16529if test $ac_cv_type_pid_t = yes; then
16530 :
John Criswell7a73b802003-06-30 21:59:07 +000016531else
16532
16533cat >>confdefs.h <<_ACEOF
16534#define pid_t int
16535_ACEOF
16536
16537fi
16538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016539{ echo "$as_me:$LINENO: checking for size_t" >&5
16540echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16541if test "${ac_cv_type_size_t+set}" = set; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16543else
16544 cat >conftest.$ac_ext <<_ACEOF
16545/* confdefs.h. */
16546_ACEOF
16547cat confdefs.h >>conftest.$ac_ext
16548cat >>conftest.$ac_ext <<_ACEOF
16549/* end confdefs.h. */
16550$ac_includes_default
16551typedef size_t ac__type_new_;
16552int
16553main ()
16554{
16555if ((ac__type_new_ *) 0)
16556 return 0;
16557if (sizeof (ac__type_new_))
16558 return 0;
16559 ;
16560 return 0;
16561}
16562_ACEOF
16563rm -f conftest.$ac_objext
16564if { (ac_try="$ac_compile"
16565case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16568esac
16569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_compile") 2>conftest.er1
16571 ac_status=$?
16572 grep -v '^ *+' conftest.er1 >conftest.err
16573 rm -f conftest.er1
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } &&
16577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16578 { (case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16581esac
16582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_try") 2>&5
16584 ac_status=$?
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; } &&
16587 { ac_try='test -s conftest.$ac_objext'
16588 { (case "(($ac_try" in
16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590 *) ac_try_echo=$ac_try;;
16591esac
16592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_try") 2>&5
16594 ac_status=$?
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16597 ac_cv_type_size_t=yes
16598else
16599 echo "$as_me: failed program was:" >&5
16600sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016602 ac_cv_type_size_t=no
16603fi
16604
16605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16606fi
16607{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16608echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16609if test $ac_cv_type_size_t = yes; then
16610 :
John Criswell7a73b802003-06-30 21:59:07 +000016611else
16612
16613cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016614#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016615_ACEOF
16616
16617fi
16618
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016619
16620cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016621#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016622_ACEOF
16623
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016624{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16625echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16626if test "${ac_cv_struct_tm+set}" = set; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016628else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016629 cat >conftest.$ac_ext <<_ACEOF
16630/* confdefs.h. */
16631_ACEOF
16632cat confdefs.h >>conftest.$ac_ext
16633cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016634/* end confdefs.h. */
16635#include <sys/types.h>
16636#include <time.h>
16637
16638int
16639main ()
16640{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016641struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016642 ;
16643 return 0;
16644}
16645_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016646rm -f conftest.$ac_objext
16647if { (ac_try="$ac_compile"
16648case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16651esac
16652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_compile") 2>conftest.er1
16654 ac_status=$?
16655 grep -v '^ *+' conftest.er1 >conftest.err
16656 rm -f conftest.er1
16657 cat conftest.err >&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } &&
16660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16661 { (case "(($ac_try" in
16662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16664esac
16665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666 (eval "$ac_try") 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest.$ac_objext'
16671 { (case "(($ac_try" in
16672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673 *) ac_try_echo=$ac_try;;
16674esac
16675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16676 (eval "$ac_try") 2>&5
16677 ac_status=$?
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016680 ac_cv_struct_tm=time.h
16681else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016682 echo "$as_me: failed program was:" >&5
16683sed 's/^/| /' conftest.$ac_ext >&5
16684
16685 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016686fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016687
Reid Spencera773bd52006-08-04 18:18:08 +000016688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016689fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016690{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16691echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016692if test $ac_cv_struct_tm = sys/time.h; then
16693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016694cat >>confdefs.h <<\_ACEOF
16695#define TM_IN_SYS_TIME 1
16696_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016697
16698fi
16699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016700{ echo "$as_me:$LINENO: checking for int64_t" >&5
16701echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16702if test "${ac_cv_type_int64_t+set}" = set; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16704else
16705 cat >conftest.$ac_ext <<_ACEOF
16706/* confdefs.h. */
16707_ACEOF
16708cat confdefs.h >>conftest.$ac_ext
16709cat >>conftest.$ac_ext <<_ACEOF
16710/* end confdefs.h. */
16711$ac_includes_default
16712typedef int64_t ac__type_new_;
16713int
16714main ()
16715{
16716if ((ac__type_new_ *) 0)
16717 return 0;
16718if (sizeof (ac__type_new_))
16719 return 0;
16720 ;
16721 return 0;
16722}
16723_ACEOF
16724rm -f conftest.$ac_objext
16725if { (ac_try="$ac_compile"
16726case "(($ac_try" in
16727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728 *) ac_try_echo=$ac_try;;
16729esac
16730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731 (eval "$ac_compile") 2>conftest.er1
16732 ac_status=$?
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
16738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16739 { (case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16742esac
16743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_try") 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; } &&
16748 { ac_try='test -s conftest.$ac_objext'
16749 { (case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16752esac
16753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_try") 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; }; then
16758 ac_cv_type_int64_t=yes
16759else
16760 echo "$as_me: failed program was:" >&5
16761sed 's/^/| /' conftest.$ac_ext >&5
16762
16763 ac_cv_type_int64_t=no
16764fi
16765
16766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16767fi
16768{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16769echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16770if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016771
16772cat >>confdefs.h <<_ACEOF
16773#define HAVE_INT64_T 1
16774_ACEOF
16775
16776
16777else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016778 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16779echo "$as_me: error: Type int64_t required but not found" >&2;}
16780 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016781fi
16782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016783{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16784echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16785if test "${ac_cv_type_uint64_t+set}" = set; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16787else
16788 cat >conftest.$ac_ext <<_ACEOF
16789/* confdefs.h. */
16790_ACEOF
16791cat confdefs.h >>conftest.$ac_ext
16792cat >>conftest.$ac_ext <<_ACEOF
16793/* end confdefs.h. */
16794$ac_includes_default
16795typedef uint64_t ac__type_new_;
16796int
16797main ()
16798{
16799if ((ac__type_new_ *) 0)
16800 return 0;
16801if (sizeof (ac__type_new_))
16802 return 0;
16803 ;
16804 return 0;
16805}
16806_ACEOF
16807rm -f conftest.$ac_objext
16808if { (ac_try="$ac_compile"
16809case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16812esac
16813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_compile") 2>conftest.er1
16815 ac_status=$?
16816 grep -v '^ *+' conftest.er1 >conftest.err
16817 rm -f conftest.er1
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } &&
16821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16822 { (case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16825esac
16826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827 (eval "$ac_try") 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try='test -s conftest.$ac_objext'
16832 { (case "(($ac_try" in
16833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16835esac
16836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837 (eval "$ac_try") 2>&5
16838 ac_status=$?
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 ac_cv_type_uint64_t=yes
16842else
16843 echo "$as_me: failed program was:" >&5
16844sed 's/^/| /' conftest.$ac_ext >&5
16845
16846 ac_cv_type_uint64_t=no
16847fi
16848
16849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16850fi
16851{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16852echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16853if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016854
16855cat >>confdefs.h <<_ACEOF
16856#define HAVE_UINT64_T 1
16857_ACEOF
16858
16859
16860else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016861 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16862echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16863if test "${ac_cv_type_u_int64_t+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16865else
16866 cat >conftest.$ac_ext <<_ACEOF
16867/* confdefs.h. */
16868_ACEOF
16869cat confdefs.h >>conftest.$ac_ext
16870cat >>conftest.$ac_ext <<_ACEOF
16871/* end confdefs.h. */
16872$ac_includes_default
16873typedef u_int64_t ac__type_new_;
16874int
16875main ()
16876{
16877if ((ac__type_new_ *) 0)
16878 return 0;
16879if (sizeof (ac__type_new_))
16880 return 0;
16881 ;
16882 return 0;
16883}
16884_ACEOF
16885rm -f conftest.$ac_objext
16886if { (ac_try="$ac_compile"
16887case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16890esac
16891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_compile") 2>conftest.er1
16893 ac_status=$?
16894 grep -v '^ *+' conftest.er1 >conftest.err
16895 rm -f conftest.er1
16896 cat conftest.err >&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); } &&
16899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16900 { (case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16903esac
16904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_try") 2>&5
16906 ac_status=$?
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; } &&
16909 { ac_try='test -s conftest.$ac_objext'
16910 { (case "(($ac_try" in
16911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912 *) ac_try_echo=$ac_try;;
16913esac
16914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915 (eval "$ac_try") 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; }; then
16919 ac_cv_type_u_int64_t=yes
16920else
16921 echo "$as_me: failed program was:" >&5
16922sed 's/^/| /' conftest.$ac_ext >&5
16923
16924 ac_cv_type_u_int64_t=no
16925fi
16926
16927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16928fi
16929{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16930echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16931if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016932
16933cat >>confdefs.h <<_ACEOF
16934#define HAVE_U_INT64_T 1
16935_ACEOF
16936
16937
Misha Brukmanceca9042004-09-02 23:02:30 +000016938else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016939 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16940echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16941 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016942fi
16943
John Criswell679ff312004-09-02 18:44:44 +000016944fi
16945
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016946
16947
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016948
16949
16950
16951
16952
16953
16954
Reid Spencerdf3be822006-01-23 08:15:53 +000016955for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016956do
16957as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16958{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16959echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16960if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16962else
16963 cat >conftest.$ac_ext <<_ACEOF
16964/* confdefs.h. */
16965_ACEOF
16966cat confdefs.h >>conftest.$ac_ext
16967cat >>conftest.$ac_ext <<_ACEOF
16968/* end confdefs.h. */
16969/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16971#define $ac_func innocuous_$ac_func
16972
16973/* System header to define __stub macros and hopefully few prototypes,
16974 which can conflict with char $ac_func (); below.
16975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16976 <limits.h> exists even on freestanding compilers. */
16977
16978#ifdef __STDC__
16979# include <limits.h>
16980#else
16981# include <assert.h>
16982#endif
16983
16984#undef $ac_func
16985
16986/* Override any GCC internal prototype to avoid an error.
16987 Use char because int might match the return type of a GCC
16988 builtin and then its argument prototype would still apply. */
16989#ifdef __cplusplus
16990extern "C"
16991#endif
16992char $ac_func ();
16993/* The GNU C library defines this for functions which it implements
16994 to always fail with ENOSYS. Some functions are actually named
16995 something starting with __ and the normal name is an alias. */
16996#if defined __stub_$ac_func || defined __stub___$ac_func
16997choke me
16998#endif
16999
17000int
17001main ()
17002{
17003return $ac_func ();
17004 ;
17005 return 0;
17006}
17007_ACEOF
17008rm -f conftest.$ac_objext conftest$ac_exeext
17009if { (ac_try="$ac_link"
17010case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17013esac
17014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_link") 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17026esac
17027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_try") 2>&5
17029 ac_status=$?
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; } &&
17032 { ac_try='test -s conftest$ac_exeext'
17033 { (case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17036esac
17037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_try") 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 eval "$as_ac_var=yes"
17043else
17044 echo "$as_me: failed program was:" >&5
17045sed 's/^/| /' conftest.$ac_ext >&5
17046
17047 eval "$as_ac_var=no"
17048fi
17049
17050rm -f core conftest.err conftest.$ac_objext \
17051 conftest$ac_exeext conftest.$ac_ext
17052fi
17053ac_res=`eval echo '${'$as_ac_var'}'`
17054 { echo "$as_me:$LINENO: result: $ac_res" >&5
17055echo "${ECHO_T}$ac_res" >&6; }
17056if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017057 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017058#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017059_ACEOF
17060
17061fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017062done
John Criswell7a73b802003-06-30 21:59:07 +000017063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017064
17065
17066
17067
Reid Spencer96cf5872007-07-13 10:05:30 +000017068for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017069do
17070as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17071{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17072echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17073if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17074 echo $ECHO_N "(cached) $ECHO_C" >&6
17075else
17076 cat >conftest.$ac_ext <<_ACEOF
17077/* confdefs.h. */
17078_ACEOF
17079cat confdefs.h >>conftest.$ac_ext
17080cat >>conftest.$ac_ext <<_ACEOF
17081/* end confdefs.h. */
17082/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17084#define $ac_func innocuous_$ac_func
17085
17086/* System header to define __stub macros and hopefully few prototypes,
17087 which can conflict with char $ac_func (); below.
17088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17089 <limits.h> exists even on freestanding compilers. */
17090
17091#ifdef __STDC__
17092# include <limits.h>
17093#else
17094# include <assert.h>
17095#endif
17096
17097#undef $ac_func
17098
17099/* Override any GCC internal prototype to avoid an error.
17100 Use char because int might match the return type of a GCC
17101 builtin and then its argument prototype would still apply. */
17102#ifdef __cplusplus
17103extern "C"
17104#endif
17105char $ac_func ();
17106/* The GNU C library defines this for functions which it implements
17107 to always fail with ENOSYS. Some functions are actually named
17108 something starting with __ and the normal name is an alias. */
17109#if defined __stub_$ac_func || defined __stub___$ac_func
17110choke me
17111#endif
17112
17113int
17114main ()
17115{
17116return $ac_func ();
17117 ;
17118 return 0;
17119}
17120_ACEOF
17121rm -f conftest.$ac_objext conftest$ac_exeext
17122if { (ac_try="$ac_link"
17123case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17126esac
17127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_link") 2>conftest.er1
17129 ac_status=$?
17130 grep -v '^ *+' conftest.er1 >conftest.err
17131 rm -f conftest.er1
17132 cat conftest.err >&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); } &&
17135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17136 { (case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17139esac
17140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141 (eval "$ac_try") 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; } &&
17145 { ac_try='test -s conftest$ac_exeext'
17146 { (case "(($ac_try" in
17147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148 *) ac_try_echo=$ac_try;;
17149esac
17150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151 (eval "$ac_try") 2>&5
17152 ac_status=$?
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); }; }; then
17155 eval "$as_ac_var=yes"
17156else
17157 echo "$as_me: failed program was:" >&5
17158sed 's/^/| /' conftest.$ac_ext >&5
17159
17160 eval "$as_ac_var=no"
17161fi
17162
17163rm -f core conftest.err conftest.$ac_objext \
17164 conftest$ac_exeext conftest.$ac_ext
17165fi
17166ac_res=`eval echo '${'$as_ac_var'}'`
17167 { echo "$as_me:$LINENO: result: $ac_res" >&5
17168echo "${ECHO_T}$ac_res" >&6; }
17169if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017170 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017171#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017172_ACEOF
17173
17174fi
17175done
17176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017177
17178
17179
17180
17181
Reid Spencerb90645c2007-02-16 19:17:20 +000017182for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017183do
17184as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17185{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17186echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17187if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17188 echo $ECHO_N "(cached) $ECHO_C" >&6
17189else
17190 cat >conftest.$ac_ext <<_ACEOF
17191/* confdefs.h. */
17192_ACEOF
17193cat confdefs.h >>conftest.$ac_ext
17194cat >>conftest.$ac_ext <<_ACEOF
17195/* end confdefs.h. */
17196/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17198#define $ac_func innocuous_$ac_func
17199
17200/* System header to define __stub macros and hopefully few prototypes,
17201 which can conflict with char $ac_func (); below.
17202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17203 <limits.h> exists even on freestanding compilers. */
17204
17205#ifdef __STDC__
17206# include <limits.h>
17207#else
17208# include <assert.h>
17209#endif
17210
17211#undef $ac_func
17212
17213/* Override any GCC internal prototype to avoid an error.
17214 Use char because int might match the return type of a GCC
17215 builtin and then its argument prototype would still apply. */
17216#ifdef __cplusplus
17217extern "C"
17218#endif
17219char $ac_func ();
17220/* The GNU C library defines this for functions which it implements
17221 to always fail with ENOSYS. Some functions are actually named
17222 something starting with __ and the normal name is an alias. */
17223#if defined __stub_$ac_func || defined __stub___$ac_func
17224choke me
17225#endif
17226
17227int
17228main ()
17229{
17230return $ac_func ();
17231 ;
17232 return 0;
17233}
17234_ACEOF
17235rm -f conftest.$ac_objext conftest$ac_exeext
17236if { (ac_try="$ac_link"
17237case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17240esac
17241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_link") 2>conftest.er1
17243 ac_status=$?
17244 grep -v '^ *+' conftest.er1 >conftest.err
17245 rm -f conftest.er1
17246 cat conftest.err >&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } &&
17249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17250 { (case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17253esac
17254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_try") 2>&5
17256 ac_status=$?
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); }; } &&
17259 { ac_try='test -s conftest$ac_exeext'
17260 { (case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17263esac
17264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_try") 2>&5
17266 ac_status=$?
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; }; then
17269 eval "$as_ac_var=yes"
17270else
17271 echo "$as_me: failed program was:" >&5
17272sed 's/^/| /' conftest.$ac_ext >&5
17273
17274 eval "$as_ac_var=no"
17275fi
17276
17277rm -f core conftest.err conftest.$ac_objext \
17278 conftest$ac_exeext conftest.$ac_ext
17279fi
17280ac_res=`eval echo '${'$as_ac_var'}'`
17281 { echo "$as_me:$LINENO: result: $ac_res" >&5
17282echo "${ECHO_T}$ac_res" >&6; }
17283if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017284 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017285#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017286_ACEOF
17287
17288fi
17289done
17290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017291
17292
17293
Reid Spencerb90645c2007-02-16 19:17:20 +000017294for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017295do
17296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17297{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17299if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17301else
17302 cat >conftest.$ac_ext <<_ACEOF
17303/* confdefs.h. */
17304_ACEOF
17305cat confdefs.h >>conftest.$ac_ext
17306cat >>conftest.$ac_ext <<_ACEOF
17307/* end confdefs.h. */
17308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17310#define $ac_func innocuous_$ac_func
17311
17312/* System header to define __stub macros and hopefully few prototypes,
17313 which can conflict with char $ac_func (); below.
17314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17315 <limits.h> exists even on freestanding compilers. */
17316
17317#ifdef __STDC__
17318# include <limits.h>
17319#else
17320# include <assert.h>
17321#endif
17322
17323#undef $ac_func
17324
17325/* Override any GCC internal prototype to avoid an error.
17326 Use char because int might match the return type of a GCC
17327 builtin and then its argument prototype would still apply. */
17328#ifdef __cplusplus
17329extern "C"
17330#endif
17331char $ac_func ();
17332/* The GNU C library defines this for functions which it implements
17333 to always fail with ENOSYS. Some functions are actually named
17334 something starting with __ and the normal name is an alias. */
17335#if defined __stub_$ac_func || defined __stub___$ac_func
17336choke me
17337#endif
17338
17339int
17340main ()
17341{
17342return $ac_func ();
17343 ;
17344 return 0;
17345}
17346_ACEOF
17347rm -f conftest.$ac_objext conftest$ac_exeext
17348if { (ac_try="$ac_link"
17349case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17352esac
17353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_link") 2>conftest.er1
17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17362 { (case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17365esac
17366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_try") 2>&5
17368 ac_status=$?
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; } &&
17371 { ac_try='test -s conftest$ac_exeext'
17372 { (case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17375esac
17376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_try") 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 eval "$as_ac_var=yes"
17382else
17383 echo "$as_me: failed program was:" >&5
17384sed 's/^/| /' conftest.$ac_ext >&5
17385
17386 eval "$as_ac_var=no"
17387fi
17388
17389rm -f core conftest.err conftest.$ac_objext \
17390 conftest$ac_exeext conftest.$ac_ext
17391fi
17392ac_res=`eval echo '${'$as_ac_var'}'`
17393 { echo "$as_me:$LINENO: result: $ac_res" >&5
17394echo "${ECHO_T}$ac_res" >&6; }
17395if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017396 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017397#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017398_ACEOF
17399
17400fi
17401done
17402
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017403
17404
17405
17406
17407
Eric Christophere4291822010-04-16 05:14:21 +000017408
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017409
17410for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017411do
17412as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17413{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17414echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17415if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17416 echo $ECHO_N "(cached) $ECHO_C" >&6
17417else
17418 cat >conftest.$ac_ext <<_ACEOF
17419/* confdefs.h. */
17420_ACEOF
17421cat confdefs.h >>conftest.$ac_ext
17422cat >>conftest.$ac_ext <<_ACEOF
17423/* end confdefs.h. */
17424/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17426#define $ac_func innocuous_$ac_func
17427
17428/* System header to define __stub macros and hopefully few prototypes,
17429 which can conflict with char $ac_func (); below.
17430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17431 <limits.h> exists even on freestanding compilers. */
17432
17433#ifdef __STDC__
17434# include <limits.h>
17435#else
17436# include <assert.h>
17437#endif
17438
17439#undef $ac_func
17440
17441/* Override any GCC internal prototype to avoid an error.
17442 Use char because int might match the return type of a GCC
17443 builtin and then its argument prototype would still apply. */
17444#ifdef __cplusplus
17445extern "C"
17446#endif
17447char $ac_func ();
17448/* The GNU C library defines this for functions which it implements
17449 to always fail with ENOSYS. Some functions are actually named
17450 something starting with __ and the normal name is an alias. */
17451#if defined __stub_$ac_func || defined __stub___$ac_func
17452choke me
17453#endif
17454
17455int
17456main ()
17457{
17458return $ac_func ();
17459 ;
17460 return 0;
17461}
17462_ACEOF
17463rm -f conftest.$ac_objext conftest$ac_exeext
17464if { (ac_try="$ac_link"
17465case "(($ac_try" in
17466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467 *) ac_try_echo=$ac_try;;
17468esac
17469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17470 (eval "$ac_link") 2>conftest.er1
17471 ac_status=$?
17472 grep -v '^ *+' conftest.er1 >conftest.err
17473 rm -f conftest.er1
17474 cat conftest.err >&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } &&
17477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17478 { (case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17481esac
17482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_try") 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; } &&
17487 { ac_try='test -s conftest$ac_exeext'
17488 { (case "(($ac_try" in
17489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490 *) ac_try_echo=$ac_try;;
17491esac
17492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493 (eval "$ac_try") 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; }; then
17497 eval "$as_ac_var=yes"
17498else
17499 echo "$as_me: failed program was:" >&5
17500sed 's/^/| /' conftest.$ac_ext >&5
17501
17502 eval "$as_ac_var=no"
17503fi
17504
17505rm -f core conftest.err conftest.$ac_objext \
17506 conftest$ac_exeext conftest.$ac_ext
17507fi
17508ac_res=`eval echo '${'$as_ac_var'}'`
17509 { echo "$as_me:$LINENO: result: $ac_res" >&5
17510echo "${ECHO_T}$ac_res" >&6; }
17511if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017512 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017513#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017514_ACEOF
17515
17516fi
17517done
Reid Spencerdf3be822006-01-23 08:15:53 +000017518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017519
17520
17521
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017522for ac_func in strerror strerror_r setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017523do
17524as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17525{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17526echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17527if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17528 echo $ECHO_N "(cached) $ECHO_C" >&6
17529else
17530 cat >conftest.$ac_ext <<_ACEOF
17531/* confdefs.h. */
17532_ACEOF
17533cat confdefs.h >>conftest.$ac_ext
17534cat >>conftest.$ac_ext <<_ACEOF
17535/* end confdefs.h. */
17536/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17538#define $ac_func innocuous_$ac_func
17539
17540/* System header to define __stub macros and hopefully few prototypes,
17541 which can conflict with char $ac_func (); below.
17542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17543 <limits.h> exists even on freestanding compilers. */
17544
17545#ifdef __STDC__
17546# include <limits.h>
17547#else
17548# include <assert.h>
17549#endif
17550
17551#undef $ac_func
17552
17553/* Override any GCC internal prototype to avoid an error.
17554 Use char because int might match the return type of a GCC
17555 builtin and then its argument prototype would still apply. */
17556#ifdef __cplusplus
17557extern "C"
17558#endif
17559char $ac_func ();
17560/* The GNU C library defines this for functions which it implements
17561 to always fail with ENOSYS. Some functions are actually named
17562 something starting with __ and the normal name is an alias. */
17563#if defined __stub_$ac_func || defined __stub___$ac_func
17564choke me
17565#endif
17566
17567int
17568main ()
17569{
17570return $ac_func ();
17571 ;
17572 return 0;
17573}
17574_ACEOF
17575rm -f conftest.$ac_objext conftest$ac_exeext
17576if { (ac_try="$ac_link"
17577case "(($ac_try" in
17578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579 *) ac_try_echo=$ac_try;;
17580esac
17581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17582 (eval "$ac_link") 2>conftest.er1
17583 ac_status=$?
17584 grep -v '^ *+' conftest.er1 >conftest.err
17585 rm -f conftest.er1
17586 cat conftest.err >&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } &&
17589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17590 { (case "(($ac_try" in
17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592 *) ac_try_echo=$ac_try;;
17593esac
17594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595 (eval "$ac_try") 2>&5
17596 ac_status=$?
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; } &&
17599 { ac_try='test -s conftest$ac_exeext'
17600 { (case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17603esac
17604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_try") 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; }; then
17609 eval "$as_ac_var=yes"
17610else
17611 echo "$as_me: failed program was:" >&5
17612sed 's/^/| /' conftest.$ac_ext >&5
17613
17614 eval "$as_ac_var=no"
17615fi
17616
17617rm -f core conftest.err conftest.$ac_objext \
17618 conftest$ac_exeext conftest.$ac_ext
17619fi
17620ac_res=`eval echo '${'$as_ac_var'}'`
17621 { echo "$as_me:$LINENO: result: $ac_res" >&5
17622echo "${ECHO_T}$ac_res" >&6; }
17623if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017624 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017625#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017626_ACEOF
17627
17628fi
17629done
17630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017631
17632
17633
17634
Chris Lattner511f11d2005-11-14 07:25:50 +000017635for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017636do
17637as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17638{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17639echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17640if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17641 echo $ECHO_N "(cached) $ECHO_C" >&6
17642else
17643 cat >conftest.$ac_ext <<_ACEOF
17644/* confdefs.h. */
17645_ACEOF
17646cat confdefs.h >>conftest.$ac_ext
17647cat >>conftest.$ac_ext <<_ACEOF
17648/* end confdefs.h. */
17649/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17651#define $ac_func innocuous_$ac_func
17652
17653/* System header to define __stub macros and hopefully few prototypes,
17654 which can conflict with char $ac_func (); below.
17655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17656 <limits.h> exists even on freestanding compilers. */
17657
17658#ifdef __STDC__
17659# include <limits.h>
17660#else
17661# include <assert.h>
17662#endif
17663
17664#undef $ac_func
17665
17666/* Override any GCC internal prototype to avoid an error.
17667 Use char because int might match the return type of a GCC
17668 builtin and then its argument prototype would still apply. */
17669#ifdef __cplusplus
17670extern "C"
17671#endif
17672char $ac_func ();
17673/* The GNU C library defines this for functions which it implements
17674 to always fail with ENOSYS. Some functions are actually named
17675 something starting with __ and the normal name is an alias. */
17676#if defined __stub_$ac_func || defined __stub___$ac_func
17677choke me
17678#endif
17679
17680int
17681main ()
17682{
17683return $ac_func ();
17684 ;
17685 return 0;
17686}
17687_ACEOF
17688rm -f conftest.$ac_objext conftest$ac_exeext
17689if { (ac_try="$ac_link"
17690case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17693esac
17694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695 (eval "$ac_link") 2>conftest.er1
17696 ac_status=$?
17697 grep -v '^ *+' conftest.er1 >conftest.err
17698 rm -f conftest.er1
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } &&
17702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17703 { (case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706esac
17707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_try") 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; } &&
17712 { ac_try='test -s conftest$ac_exeext'
17713 { (case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716esac
17717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_try") 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; }; then
17722 eval "$as_ac_var=yes"
17723else
17724 echo "$as_me: failed program was:" >&5
17725sed 's/^/| /' conftest.$ac_ext >&5
17726
17727 eval "$as_ac_var=no"
17728fi
17729
17730rm -f core conftest.err conftest.$ac_objext \
17731 conftest$ac_exeext conftest.$ac_ext
17732fi
17733ac_res=`eval echo '${'$as_ac_var'}'`
17734 { echo "$as_me:$LINENO: result: $ac_res" >&5
17735echo "${ECHO_T}$ac_res" >&6; }
17736if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017737 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017738#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017739_ACEOF
17740
17741fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017742done
John Criswell7a73b802003-06-30 21:59:07 +000017743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017744
17745
17746
17747
Daniel Dunbar3e462932011-02-03 02:40:02 +000017748
17749for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017750do
17751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17752{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17754if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17755 echo $ECHO_N "(cached) $ECHO_C" >&6
17756else
17757 cat >conftest.$ac_ext <<_ACEOF
17758/* confdefs.h. */
17759_ACEOF
17760cat confdefs.h >>conftest.$ac_ext
17761cat >>conftest.$ac_ext <<_ACEOF
17762/* end confdefs.h. */
17763/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17765#define $ac_func innocuous_$ac_func
17766
17767/* System header to define __stub macros and hopefully few prototypes,
17768 which can conflict with char $ac_func (); below.
17769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17770 <limits.h> exists even on freestanding compilers. */
17771
17772#ifdef __STDC__
17773# include <limits.h>
17774#else
17775# include <assert.h>
17776#endif
17777
17778#undef $ac_func
17779
17780/* Override any GCC internal prototype to avoid an error.
17781 Use char because int might match the return type of a GCC
17782 builtin and then its argument prototype would still apply. */
17783#ifdef __cplusplus
17784extern "C"
17785#endif
17786char $ac_func ();
17787/* The GNU C library defines this for functions which it implements
17788 to always fail with ENOSYS. Some functions are actually named
17789 something starting with __ and the normal name is an alias. */
17790#if defined __stub_$ac_func || defined __stub___$ac_func
17791choke me
17792#endif
17793
17794int
17795main ()
17796{
17797return $ac_func ();
17798 ;
17799 return 0;
17800}
17801_ACEOF
17802rm -f conftest.$ac_objext conftest$ac_exeext
17803if { (ac_try="$ac_link"
17804case "(($ac_try" in
17805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806 *) ac_try_echo=$ac_try;;
17807esac
17808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809 (eval "$ac_link") 2>conftest.er1
17810 ac_status=$?
17811 grep -v '^ *+' conftest.er1 >conftest.err
17812 rm -f conftest.er1
17813 cat conftest.err >&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } &&
17816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17817 { (case "(($ac_try" in
17818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17820esac
17821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822 (eval "$ac_try") 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; } &&
17826 { ac_try='test -s conftest$ac_exeext'
17827 { (case "(($ac_try" in
17828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829 *) ac_try_echo=$ac_try;;
17830esac
17831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832 (eval "$ac_try") 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 eval "$as_ac_var=yes"
17837else
17838 echo "$as_me: failed program was:" >&5
17839sed 's/^/| /' conftest.$ac_ext >&5
17840
17841 eval "$as_ac_var=no"
17842fi
17843
17844rm -f core conftest.err conftest.$ac_objext \
17845 conftest$ac_exeext conftest.$ac_ext
17846fi
17847ac_res=`eval echo '${'$as_ac_var'}'`
17848 { echo "$as_me:$LINENO: result: $ac_res" >&5
17849echo "${ECHO_T}$ac_res" >&6; }
17850if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017851 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017852#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017853_ACEOF
17854
17855fi
17856done
17857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017858{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17859echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17860if test "${llvm_cv_c_printf_a+set}" = set; then
17861 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017862else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017863 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017864ac_cpp='$CPP $CPPFLAGS'
17865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17867ac_compiler_gnu=$ac_cv_c_compiler_gnu
17868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017869 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017870 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017871else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017872 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017874 /* confdefs.h. */
17875_ACEOF
17876cat confdefs.h >>conftest.$ac_ext
17877cat >>conftest.$ac_ext <<_ACEOF
17878/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017879
John Criswella0137d32003-10-13 16:22:01 +000017880#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017881#include <stdlib.h>
17882
John Criswella0137d32003-10-13 16:22:01 +000017883int
17884main ()
17885{
17886
Reid Spencer2706f8c2004-09-19 23:53:36 +000017887volatile double A, B;
17888char Buffer[100];
17889A = 1;
17890A /= 10.0;
17891sprintf(Buffer, "%a", A);
17892B = atof(Buffer);
17893if (A != B)
17894 return (1);
17895if (A != 0x1.999999999999ap-4)
17896 return (1);
17897return (0);
John Criswella0137d32003-10-13 16:22:01 +000017898 ;
17899 return 0;
17900}
17901_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017902rm -f conftest$ac_exeext
17903if { (ac_try="$ac_link"
17904case "(($ac_try" in
17905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906 *) ac_try_echo=$ac_try;;
17907esac
17908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909 (eval "$ac_link") 2>&5
17910 ac_status=$?
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17913 { (case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17916esac
17917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_try") 2>&5
17919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017922 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017924 echo "$as_me: program exited with status $ac_status" >&5
17925echo "$as_me: failed program was:" >&5
17926sed 's/^/| /' conftest.$ac_ext >&5
17927
17928( exit $ac_status )
17929llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017930fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017931rm -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 +000017932fi
Reid Spencera773bd52006-08-04 18:18:08 +000017933
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017934
Reid Spencer2706f8c2004-09-19 23:53:36 +000017935 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017936ac_cpp='$CPP $CPPFLAGS'
17937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17939ac_compiler_gnu=$ac_cv_c_compiler_gnu
17940
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017941fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017942{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17943echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017944 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017946cat >>confdefs.h <<\_ACEOF
17947#define HAVE_PRINTF_A 1
17948_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017949
Reid Spencer2706f8c2004-09-19 23:53:36 +000017950 fi
John Criswella0137d32003-10-13 16:22:01 +000017951
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017953{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17954echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17955if test "${ac_cv_func_rand48+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017957else
Reid Spencera773bd52006-08-04 18:18:08 +000017958 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017959ac_cpp='$CXXCPP $CPPFLAGS'
17960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017964 cat >conftest.$ac_ext <<_ACEOF
17965/* confdefs.h. */
17966_ACEOF
17967cat confdefs.h >>conftest.$ac_ext
17968cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017969/* end confdefs.h. */
17970#include <stdlib.h>
17971int
17972main ()
17973{
17974srand48(0);lrand48();drand48();
17975 ;
17976 return 0;
17977}
17978_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017979rm -f conftest.$ac_objext
17980if { (ac_try="$ac_compile"
17981case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17984esac
17985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_compile") 2>conftest.er1
17987 ac_status=$?
17988 grep -v '^ *+' conftest.er1 >conftest.err
17989 rm -f conftest.er1
17990 cat conftest.err >&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } &&
17993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17994 { (case "(($ac_try" in
17995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996 *) ac_try_echo=$ac_try;;
17997esac
17998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999 (eval "$ac_try") 2>&5
18000 ac_status=$?
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; } &&
18003 { ac_try='test -s conftest.$ac_objext'
18004 { (case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18007esac
18008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_try") 2>&5
18010 ac_status=$?
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018013 ac_cv_func_rand48=yes
18014else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018015 echo "$as_me: failed program was:" >&5
18016sed 's/^/| /' conftest.$ac_ext >&5
18017
18018 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018020
Reid Spencera773bd52006-08-04 18:18:08 +000018021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018022 ac_ext=c
18023ac_cpp='$CPP $CPPFLAGS'
18024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18026ac_compiler_gnu=$ac_cv_c_compiler_gnu
18027
18028fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018029{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18030echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018031
18032if test "$ac_cv_func_rand48" = "yes" ; then
18033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018034cat >>confdefs.h <<\_ACEOF
18035#define HAVE_RAND48 1
18036_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018037
18038fi
John Criswell0021c312004-02-13 21:57:29 +000018039
18040
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000018041{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18042echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18043if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18045else
18046 cat >conftest.$ac_ext <<_ACEOF
18047/* confdefs.h. */
18048_ACEOF
18049cat confdefs.h >>conftest.$ac_ext
18050cat >>conftest.$ac_ext <<_ACEOF
18051/* end confdefs.h. */
18052$ac_includes_default
18053int
18054main ()
18055{
18056#ifndef strerror_s
18057 char *p = (char *) strerror_s;
18058 return !p;
18059#endif
18060
18061 ;
18062 return 0;
18063}
18064_ACEOF
18065rm -f conftest.$ac_objext
18066if { (ac_try="$ac_compile"
18067case "(($ac_try" in
18068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069 *) ac_try_echo=$ac_try;;
18070esac
18071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072 (eval "$ac_compile") 2>conftest.er1
18073 ac_status=$?
18074 grep -v '^ *+' conftest.er1 >conftest.err
18075 rm -f conftest.er1
18076 cat conftest.err >&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); } &&
18079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18080 { (case "(($ac_try" in
18081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18082 *) ac_try_echo=$ac_try;;
18083esac
18084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18085 (eval "$ac_try") 2>&5
18086 ac_status=$?
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; } &&
18089 { ac_try='test -s conftest.$ac_objext'
18090 { (case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18093esac
18094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_try") 2>&5
18096 ac_status=$?
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); }; }; then
18099 ac_cv_have_decl_strerror_s=yes
18100else
18101 echo "$as_me: failed program was:" >&5
18102sed 's/^/| /' conftest.$ac_ext >&5
18103
18104 ac_cv_have_decl_strerror_s=no
18105fi
18106
18107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18108fi
18109{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18110echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18111if test $ac_cv_have_decl_strerror_s = yes; then
18112
18113cat >>confdefs.h <<_ACEOF
18114#define HAVE_DECL_STRERROR_S 1
18115_ACEOF
18116
18117
18118else
18119 cat >>confdefs.h <<_ACEOF
18120#define HAVE_DECL_STRERROR_S 0
18121_ACEOF
18122
18123
18124fi
18125
18126
18127
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018128if test "$llvm_cv_os_type" = "MingW" ; then
18129 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18130echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18131if test "${ac_cv_lib_gcc__alloca+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 _alloca ();
18150int
18151main ()
18152{
18153return _alloca ();
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__alloca=yes
18193else
18194 echo "$as_me: failed program was:" >&5
18195sed 's/^/| /' conftest.$ac_ext >&5
18196
18197 ac_cv_lib_gcc__alloca=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__alloca" >&5
18205echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18206if test $ac_cv_lib_gcc__alloca = yes; then
18207
18208cat >>confdefs.h <<\_ACEOF
18209#define HAVE__ALLOCA 1
18210_ACEOF
18211
18212fi
18213
18214 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18215echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18216if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18217 echo $ECHO_N "(cached) $ECHO_C" >&6
18218else
18219 ac_check_lib_save_LIBS=$LIBS
18220LIBS="-lgcc $LIBS"
18221cat >conftest.$ac_ext <<_ACEOF
18222/* confdefs.h. */
18223_ACEOF
18224cat confdefs.h >>conftest.$ac_ext
18225cat >>conftest.$ac_ext <<_ACEOF
18226/* end confdefs.h. */
18227
18228/* Override any GCC internal prototype to avoid an error.
18229 Use char because int might match the return type of a GCC
18230 builtin and then its argument prototype would still apply. */
18231#ifdef __cplusplus
18232extern "C"
18233#endif
18234char __alloca ();
18235int
18236main ()
18237{
18238return __alloca ();
18239 ;
18240 return 0;
18241}
18242_ACEOF
18243rm -f conftest.$ac_objext conftest$ac_exeext
18244if { (ac_try="$ac_link"
18245case "(($ac_try" in
18246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247 *) ac_try_echo=$ac_try;;
18248esac
18249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250 (eval "$ac_link") 2>conftest.er1
18251 ac_status=$?
18252 grep -v '^ *+' conftest.er1 >conftest.err
18253 rm -f conftest.er1
18254 cat conftest.err >&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); } &&
18257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18258 { (case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18261esac
18262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263 (eval "$ac_try") 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; } &&
18267 { ac_try='test -s conftest$ac_exeext'
18268 { (case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18271esac
18272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_try") 2>&5
18274 ac_status=$?
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; }; then
18277 ac_cv_lib_gcc___alloca=yes
18278else
18279 echo "$as_me: failed program was:" >&5
18280sed 's/^/| /' conftest.$ac_ext >&5
18281
18282 ac_cv_lib_gcc___alloca=no
18283fi
18284
18285rm -f core conftest.err conftest.$ac_objext \
18286 conftest$ac_exeext conftest.$ac_ext
18287LIBS=$ac_check_lib_save_LIBS
18288fi
18289{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18290echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18291if test $ac_cv_lib_gcc___alloca = yes; then
18292
18293cat >>confdefs.h <<\_ACEOF
18294#define HAVE___ALLOCA 1
18295_ACEOF
18296
18297fi
18298
18299 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18300echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18301if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
18303else
18304 ac_check_lib_save_LIBS=$LIBS
18305LIBS="-lgcc $LIBS"
18306cat >conftest.$ac_ext <<_ACEOF
18307/* confdefs.h. */
18308_ACEOF
18309cat confdefs.h >>conftest.$ac_ext
18310cat >>conftest.$ac_ext <<_ACEOF
18311/* end confdefs.h. */
18312
18313/* Override any GCC internal prototype to avoid an error.
18314 Use char because int might match the return type of a GCC
18315 builtin and then its argument prototype would still apply. */
18316#ifdef __cplusplus
18317extern "C"
18318#endif
18319char __chkstk ();
18320int
18321main ()
18322{
18323return __chkstk ();
18324 ;
18325 return 0;
18326}
18327_ACEOF
18328rm -f conftest.$ac_objext conftest$ac_exeext
18329if { (ac_try="$ac_link"
18330case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18333esac
18334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_link") 2>conftest.er1
18336 ac_status=$?
18337 grep -v '^ *+' conftest.er1 >conftest.err
18338 rm -f conftest.er1
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18343 { (case "(($ac_try" in
18344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345 *) ac_try_echo=$ac_try;;
18346esac
18347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_try") 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; } &&
18352 { ac_try='test -s conftest$ac_exeext'
18353 { (case "(($ac_try" in
18354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18356esac
18357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_try") 2>&5
18359 ac_status=$?
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
18362 ac_cv_lib_gcc___chkstk=yes
18363else
18364 echo "$as_me: failed program was:" >&5
18365sed 's/^/| /' conftest.$ac_ext >&5
18366
18367 ac_cv_lib_gcc___chkstk=no
18368fi
18369
18370rm -f core conftest.err conftest.$ac_objext \
18371 conftest$ac_exeext conftest.$ac_ext
18372LIBS=$ac_check_lib_save_LIBS
18373fi
18374{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18375echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18376if test $ac_cv_lib_gcc___chkstk = yes; then
18377
18378cat >>confdefs.h <<\_ACEOF
18379#define HAVE___CHKSTK 1
18380_ACEOF
18381
18382fi
18383
18384 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18385echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18386if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18388else
18389 ac_check_lib_save_LIBS=$LIBS
18390LIBS="-lgcc $LIBS"
18391cat >conftest.$ac_ext <<_ACEOF
18392/* confdefs.h. */
18393_ACEOF
18394cat confdefs.h >>conftest.$ac_ext
18395cat >>conftest.$ac_ext <<_ACEOF
18396/* end confdefs.h. */
18397
18398/* Override any GCC internal prototype to avoid an error.
18399 Use char because int might match the return type of a GCC
18400 builtin and then its argument prototype would still apply. */
18401#ifdef __cplusplus
18402extern "C"
18403#endif
18404char ___chkstk ();
18405int
18406main ()
18407{
18408return ___chkstk ();
18409 ;
18410 return 0;
18411}
18412_ACEOF
18413rm -f conftest.$ac_objext conftest$ac_exeext
18414if { (ac_try="$ac_link"
18415case "(($ac_try" in
18416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18418esac
18419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 (eval "$ac_link") 2>conftest.er1
18421 ac_status=$?
18422 grep -v '^ *+' conftest.er1 >conftest.err
18423 rm -f conftest.er1
18424 cat conftest.err >&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } &&
18427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18428 { (case "(($ac_try" in
18429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430 *) ac_try_echo=$ac_try;;
18431esac
18432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433 (eval "$ac_try") 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; } &&
18437 { ac_try='test -s conftest$ac_exeext'
18438 { (case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18441esac
18442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_try") 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 ac_cv_lib_gcc____chkstk=yes
18448else
18449 echo "$as_me: failed program was:" >&5
18450sed 's/^/| /' conftest.$ac_ext >&5
18451
18452 ac_cv_lib_gcc____chkstk=no
18453fi
18454
18455rm -f core conftest.err conftest.$ac_objext \
18456 conftest$ac_exeext conftest.$ac_ext
18457LIBS=$ac_check_lib_save_LIBS
18458fi
18459{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18460echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18461if test $ac_cv_lib_gcc____chkstk = yes; then
18462
18463cat >>confdefs.h <<\_ACEOF
18464#define HAVE____CHKSTK 1
18465_ACEOF
18466
18467fi
18468
18469
18470 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18471echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18472if test "${ac_cv_lib_gcc___ashldi3+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 __ashldi3 ();
18491int
18492main ()
18493{
18494return __ashldi3 ();
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___ashldi3=yes
18534else
18535 echo "$as_me: failed program was:" >&5
18536sed 's/^/| /' conftest.$ac_ext >&5
18537
18538 ac_cv_lib_gcc___ashldi3=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___ashldi3" >&5
18546echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18547if test $ac_cv_lib_gcc___ashldi3 = yes; then
18548
18549cat >>confdefs.h <<\_ACEOF
18550#define HAVE___ASHLDI3 1
18551_ACEOF
18552
18553fi
18554
18555 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18556echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18557if test "${ac_cv_lib_gcc___ashrdi3+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 __ashrdi3 ();
18576int
18577main ()
18578{
18579return __ashrdi3 ();
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___ashrdi3=yes
18619else
18620 echo "$as_me: failed program was:" >&5
18621sed 's/^/| /' conftest.$ac_ext >&5
18622
18623 ac_cv_lib_gcc___ashrdi3=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___ashrdi3" >&5
18631echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18632if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18633
18634cat >>confdefs.h <<\_ACEOF
18635#define HAVE___ASHRDI3 1
18636_ACEOF
18637
18638fi
18639
18640 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18641echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18642if test "${ac_cv_lib_gcc___divdi3+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 __divdi3 ();
18661int
18662main ()
18663{
18664return __divdi3 ();
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___divdi3=yes
18704else
18705 echo "$as_me: failed program was:" >&5
18706sed 's/^/| /' conftest.$ac_ext >&5
18707
18708 ac_cv_lib_gcc___divdi3=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___divdi3" >&5
18716echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18717if test $ac_cv_lib_gcc___divdi3 = yes; then
18718
18719cat >>confdefs.h <<\_ACEOF
18720#define HAVE___DIVDI3 1
18721_ACEOF
18722
18723fi
18724
18725 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18726echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18727if test "${ac_cv_lib_gcc___fixdfdi+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 __fixdfdi ();
18746int
18747main ()
18748{
18749return __fixdfdi ();
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___fixdfdi=yes
18789else
18790 echo "$as_me: failed program was:" >&5
18791sed 's/^/| /' conftest.$ac_ext >&5
18792
18793 ac_cv_lib_gcc___fixdfdi=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___fixdfdi" >&5
18801echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18802if test $ac_cv_lib_gcc___fixdfdi = yes; then
18803
18804cat >>confdefs.h <<\_ACEOF
18805#define HAVE___FIXDFDI 1
18806_ACEOF
18807
18808fi
18809
18810 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18811echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18812if test "${ac_cv_lib_gcc___fixsfdi+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 __fixsfdi ();
18831int
18832main ()
18833{
18834return __fixsfdi ();
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___fixsfdi=yes
18874else
18875 echo "$as_me: failed program was:" >&5
18876sed 's/^/| /' conftest.$ac_ext >&5
18877
18878 ac_cv_lib_gcc___fixsfdi=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___fixsfdi" >&5
18886echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18887if test $ac_cv_lib_gcc___fixsfdi = yes; then
18888
18889cat >>confdefs.h <<\_ACEOF
18890#define HAVE___FIXSFDI 1
18891_ACEOF
18892
18893fi
18894
18895 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18896echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18897if test "${ac_cv_lib_gcc___floatdidf+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 __floatdidf ();
18916int
18917main ()
18918{
18919return __floatdidf ();
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___floatdidf=yes
18959else
18960 echo "$as_me: failed program was:" >&5
18961sed 's/^/| /' conftest.$ac_ext >&5
18962
18963 ac_cv_lib_gcc___floatdidf=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___floatdidf" >&5
18971echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18972if test $ac_cv_lib_gcc___floatdidf = yes; then
18973
18974cat >>confdefs.h <<\_ACEOF
18975#define HAVE___FLOATDIDF 1
18976_ACEOF
18977
18978fi
18979
18980 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18981echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18982if test "${ac_cv_lib_gcc___lshrdi3+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 __lshrdi3 ();
19001int
19002main ()
19003{
19004return __lshrdi3 ();
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___lshrdi3=yes
19044else
19045 echo "$as_me: failed program was:" >&5
19046sed 's/^/| /' conftest.$ac_ext >&5
19047
19048 ac_cv_lib_gcc___lshrdi3=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___lshrdi3" >&5
19056echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19057if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19058
19059cat >>confdefs.h <<\_ACEOF
19060#define HAVE___LSHRDI3 1
19061_ACEOF
19062
19063fi
19064
19065 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19066echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19067if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19069else
19070 ac_check_lib_save_LIBS=$LIBS
19071LIBS="-lgcc $LIBS"
19072cat >conftest.$ac_ext <<_ACEOF
19073/* confdefs.h. */
19074_ACEOF
19075cat confdefs.h >>conftest.$ac_ext
19076cat >>conftest.$ac_ext <<_ACEOF
19077/* end confdefs.h. */
19078
19079/* Override any GCC internal prototype to avoid an error.
19080 Use char because int might match the return type of a GCC
19081 builtin and then its argument prototype would still apply. */
19082#ifdef __cplusplus
19083extern "C"
19084#endif
19085char __moddi3 ();
19086int
19087main ()
19088{
19089return __moddi3 ();
19090 ;
19091 return 0;
19092}
19093_ACEOF
19094rm -f conftest.$ac_objext conftest$ac_exeext
19095if { (ac_try="$ac_link"
19096case "(($ac_try" in
19097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098 *) ac_try_echo=$ac_try;;
19099esac
19100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101 (eval "$ac_link") 2>conftest.er1
19102 ac_status=$?
19103 grep -v '^ *+' conftest.er1 >conftest.err
19104 rm -f conftest.er1
19105 cat conftest.err >&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } &&
19108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19109 { (case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19112esac
19113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114 (eval "$ac_try") 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; } &&
19118 { ac_try='test -s conftest$ac_exeext'
19119 { (case "(($ac_try" in
19120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121 *) ac_try_echo=$ac_try;;
19122esac
19123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_try") 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; }; then
19128 ac_cv_lib_gcc___moddi3=yes
19129else
19130 echo "$as_me: failed program was:" >&5
19131sed 's/^/| /' conftest.$ac_ext >&5
19132
19133 ac_cv_lib_gcc___moddi3=no
19134fi
19135
19136rm -f core conftest.err conftest.$ac_objext \
19137 conftest$ac_exeext conftest.$ac_ext
19138LIBS=$ac_check_lib_save_LIBS
19139fi
19140{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19141echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19142if test $ac_cv_lib_gcc___moddi3 = yes; then
19143
19144cat >>confdefs.h <<\_ACEOF
19145#define HAVE___MODDI3 1
19146_ACEOF
19147
19148fi
19149
19150 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19151echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19152if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19153 echo $ECHO_N "(cached) $ECHO_C" >&6
19154else
19155 ac_check_lib_save_LIBS=$LIBS
19156LIBS="-lgcc $LIBS"
19157cat >conftest.$ac_ext <<_ACEOF
19158/* confdefs.h. */
19159_ACEOF
19160cat confdefs.h >>conftest.$ac_ext
19161cat >>conftest.$ac_ext <<_ACEOF
19162/* end confdefs.h. */
19163
19164/* Override any GCC internal prototype to avoid an error.
19165 Use char because int might match the return type of a GCC
19166 builtin and then its argument prototype would still apply. */
19167#ifdef __cplusplus
19168extern "C"
19169#endif
19170char __udivdi3 ();
19171int
19172main ()
19173{
19174return __udivdi3 ();
19175 ;
19176 return 0;
19177}
19178_ACEOF
19179rm -f conftest.$ac_objext conftest$ac_exeext
19180if { (ac_try="$ac_link"
19181case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19184esac
19185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_link") 2>conftest.er1
19187 ac_status=$?
19188 grep -v '^ *+' conftest.er1 >conftest.err
19189 rm -f conftest.er1
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
19193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19194 { (case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19197esac
19198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199 (eval "$ac_try") 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try='test -s conftest$ac_exeext'
19204 { (case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19207esac
19208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_try") 2>&5
19210 ac_status=$?
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; }; then
19213 ac_cv_lib_gcc___udivdi3=yes
19214else
19215 echo "$as_me: failed program was:" >&5
19216sed 's/^/| /' conftest.$ac_ext >&5
19217
19218 ac_cv_lib_gcc___udivdi3=no
19219fi
19220
19221rm -f core conftest.err conftest.$ac_objext \
19222 conftest$ac_exeext conftest.$ac_ext
19223LIBS=$ac_check_lib_save_LIBS
19224fi
19225{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19226echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19227if test $ac_cv_lib_gcc___udivdi3 = yes; then
19228
19229cat >>confdefs.h <<\_ACEOF
19230#define HAVE___UDIVDI3 1
19231_ACEOF
19232
19233fi
19234
19235 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19236echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19237if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19238 echo $ECHO_N "(cached) $ECHO_C" >&6
19239else
19240 ac_check_lib_save_LIBS=$LIBS
19241LIBS="-lgcc $LIBS"
19242cat >conftest.$ac_ext <<_ACEOF
19243/* confdefs.h. */
19244_ACEOF
19245cat confdefs.h >>conftest.$ac_ext
19246cat >>conftest.$ac_ext <<_ACEOF
19247/* end confdefs.h. */
19248
19249/* Override any GCC internal prototype to avoid an error.
19250 Use char because int might match the return type of a GCC
19251 builtin and then its argument prototype would still apply. */
19252#ifdef __cplusplus
19253extern "C"
19254#endif
19255char __umoddi3 ();
19256int
19257main ()
19258{
19259return __umoddi3 ();
19260 ;
19261 return 0;
19262}
19263_ACEOF
19264rm -f conftest.$ac_objext conftest$ac_exeext
19265if { (ac_try="$ac_link"
19266case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19269esac
19270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_link") 2>conftest.er1
19272 ac_status=$?
19273 grep -v '^ *+' conftest.er1 >conftest.err
19274 rm -f conftest.er1
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19279 { (case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19282esac
19283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_try") 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; } &&
19288 { ac_try='test -s conftest$ac_exeext'
19289 { (case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19292esac
19293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294 (eval "$ac_try") 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_cv_lib_gcc___umoddi3=yes
19299else
19300 echo "$as_me: failed program was:" >&5
19301sed 's/^/| /' conftest.$ac_ext >&5
19302
19303 ac_cv_lib_gcc___umoddi3=no
19304fi
19305
19306rm -f core conftest.err conftest.$ac_objext \
19307 conftest$ac_exeext conftest.$ac_ext
19308LIBS=$ac_check_lib_save_LIBS
19309fi
19310{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19311echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19312if test $ac_cv_lib_gcc___umoddi3 = yes; then
19313
19314cat >>confdefs.h <<\_ACEOF
19315#define HAVE___UMODDI3 1
19316_ACEOF
19317
19318fi
19319
19320
19321 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19322echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19323if test "${ac_cv_lib_gcc___main+set}" = set; then
19324 echo $ECHO_N "(cached) $ECHO_C" >&6
19325else
19326 ac_check_lib_save_LIBS=$LIBS
19327LIBS="-lgcc $LIBS"
19328cat >conftest.$ac_ext <<_ACEOF
19329/* confdefs.h. */
19330_ACEOF
19331cat confdefs.h >>conftest.$ac_ext
19332cat >>conftest.$ac_ext <<_ACEOF
19333/* end confdefs.h. */
19334
19335/* Override any GCC internal prototype to avoid an error.
19336 Use char because int might match the return type of a GCC
19337 builtin and then its argument prototype would still apply. */
19338#ifdef __cplusplus
19339extern "C"
19340#endif
19341char __main ();
19342int
19343main ()
19344{
19345return __main ();
19346 ;
19347 return 0;
19348}
19349_ACEOF
19350rm -f conftest.$ac_objext conftest$ac_exeext
19351if { (ac_try="$ac_link"
19352case "(($ac_try" in
19353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354 *) ac_try_echo=$ac_try;;
19355esac
19356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357 (eval "$ac_link") 2>conftest.er1
19358 ac_status=$?
19359 grep -v '^ *+' conftest.er1 >conftest.err
19360 rm -f conftest.er1
19361 cat conftest.err >&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } &&
19364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19365 { (case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19368esac
19369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370 (eval "$ac_try") 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; } &&
19374 { ac_try='test -s conftest$ac_exeext'
19375 { (case "(($ac_try" in
19376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377 *) ac_try_echo=$ac_try;;
19378esac
19379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19380 (eval "$ac_try") 2>&5
19381 ac_status=$?
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; }; then
19384 ac_cv_lib_gcc___main=yes
19385else
19386 echo "$as_me: failed program was:" >&5
19387sed 's/^/| /' conftest.$ac_ext >&5
19388
19389 ac_cv_lib_gcc___main=no
19390fi
19391
19392rm -f core conftest.err conftest.$ac_objext \
19393 conftest$ac_exeext conftest.$ac_ext
19394LIBS=$ac_check_lib_save_LIBS
19395fi
19396{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19397echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19398if test $ac_cv_lib_gcc___main = yes; then
19399
19400cat >>confdefs.h <<\_ACEOF
19401#define HAVE___MAIN 1
19402_ACEOF
19403
19404fi
19405
19406 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19407echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19408if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19410else
19411 ac_check_lib_save_LIBS=$LIBS
19412LIBS="-lgcc $LIBS"
19413cat >conftest.$ac_ext <<_ACEOF
19414/* confdefs.h. */
19415_ACEOF
19416cat confdefs.h >>conftest.$ac_ext
19417cat >>conftest.$ac_ext <<_ACEOF
19418/* end confdefs.h. */
19419
19420/* Override any GCC internal prototype to avoid an error.
19421 Use char because int might match the return type of a GCC
19422 builtin and then its argument prototype would still apply. */
19423#ifdef __cplusplus
19424extern "C"
19425#endif
19426char __cmpdi2 ();
19427int
19428main ()
19429{
19430return __cmpdi2 ();
19431 ;
19432 return 0;
19433}
19434_ACEOF
19435rm -f conftest.$ac_objext conftest$ac_exeext
19436if { (ac_try="$ac_link"
19437case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19440esac
19441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_link") 2>conftest.er1
19443 ac_status=$?
19444 grep -v '^ *+' conftest.er1 >conftest.err
19445 rm -f conftest.er1
19446 cat conftest.err >&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } &&
19449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19450 { (case "(($ac_try" in
19451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452 *) ac_try_echo=$ac_try;;
19453esac
19454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455 (eval "$ac_try") 2>&5
19456 ac_status=$?
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; } &&
19459 { ac_try='test -s conftest$ac_exeext'
19460 { (case "(($ac_try" in
19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462 *) ac_try_echo=$ac_try;;
19463esac
19464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465 (eval "$ac_try") 2>&5
19466 ac_status=$?
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; }; then
19469 ac_cv_lib_gcc___cmpdi2=yes
19470else
19471 echo "$as_me: failed program was:" >&5
19472sed 's/^/| /' conftest.$ac_ext >&5
19473
19474 ac_cv_lib_gcc___cmpdi2=no
19475fi
19476
19477rm -f core conftest.err conftest.$ac_objext \
19478 conftest$ac_exeext conftest.$ac_ext
19479LIBS=$ac_check_lib_save_LIBS
19480fi
19481{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19482echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19483if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19484
19485cat >>confdefs.h <<\_ACEOF
19486#define HAVE___CMPDI2 1
19487_ACEOF
19488
19489fi
19490
19491fi
19492
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019493if test "$llvm_cv_os_type" = "MingW" ; then
19494 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19495echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19496 cat >conftest.$ac_ext <<_ACEOF
19497#include <windows.h>
19498#include <imagehlp.h>
19499extern void foo(PENUMLOADED_MODULES_CALLBACK);
19500extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19501_ACEOF
19502rm -f conftest.$ac_objext
19503if { (ac_try="$ac_compile"
19504case "(($ac_try" in
19505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506 *) ac_try_echo=$ac_try;;
19507esac
19508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19509 (eval "$ac_compile") 2>conftest.er1
19510 ac_status=$?
19511 grep -v '^ *+' conftest.er1 >conftest.err
19512 rm -f conftest.er1
19513 cat conftest.err >&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } &&
19516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19517 { (case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520esac
19521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_try") 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; } &&
19526 { ac_try='test -s conftest.$ac_objext'
19527 { (case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19530esac
19531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532 (eval "$ac_try") 2>&5
19533 ac_status=$?
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); }; }; then
19536
19537 { echo "$as_me:$LINENO: result: yes" >&5
19538echo "${ECHO_T}yes" >&6; }
19539 llvm_cv_win32_elmcb_pcstr="PCSTR"
19540
19541else
19542 echo "$as_me: failed program was:" >&5
19543sed 's/^/| /' conftest.$ac_ext >&5
19544
19545
19546 { echo "$as_me:$LINENO: result: no" >&5
19547echo "${ECHO_T}no" >&6; }
19548 llvm_cv_win32_elmcb_pcstr="PSTR"
19549
19550fi
19551
19552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19553
19554cat >>confdefs.h <<_ACEOF
19555#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19556_ACEOF
19557
19558fi
19559
Torok Edwin871384f2010-01-26 08:50:50 +000019560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019561{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19562echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19563if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019565else
Reid Spencera773bd52006-08-04 18:18:08 +000019566 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019567ac_cpp='$CXXCPP $CPPFLAGS'
19568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019572 cat >conftest.$ac_ext <<_ACEOF
19573/* confdefs.h. */
19574_ACEOF
19575cat confdefs.h >>conftest.$ac_ext
19576cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019577/* end confdefs.h. */
19578#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019579int
19580main ()
19581{
19582float f; isnan(f);
19583 ;
19584 return 0;
19585}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019586_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019587rm -f conftest.$ac_objext
19588if { (ac_try="$ac_compile"
19589case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19592esac
19593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_compile") 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
19601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19602 { (case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605esac
19606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_try") 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; } &&
19611 { ac_try='test -s conftest.$ac_objext'
19612 { (case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19615esac
19616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_try") 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019621 ac_cv_func_isnan_in_math_h=yes
19622else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019623 echo "$as_me: failed program was:" >&5
19624sed 's/^/| /' conftest.$ac_ext >&5
19625
19626 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019628
Reid Spencera773bd52006-08-04 18:18:08 +000019629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019630 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019631ac_cpp='$CPP $CPPFLAGS'
19632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19634ac_compiler_gnu=$ac_cv_c_compiler_gnu
19635
19636fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019637{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19638echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019639
19640
19641if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019643cat >>confdefs.h <<\_ACEOF
19644#define HAVE_ISNAN_IN_MATH_H 1
19645_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019646
Reid Spencerabec8f92004-10-27 23:03:44 +000019647fi
19648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019649{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19650echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19651if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019653else
Reid Spencera773bd52006-08-04 18:18:08 +000019654 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019655ac_cpp='$CXXCPP $CPPFLAGS'
19656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019660 cat >conftest.$ac_ext <<_ACEOF
19661/* confdefs.h. */
19662_ACEOF
19663cat confdefs.h >>conftest.$ac_ext
19664cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019665/* end confdefs.h. */
19666#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019667int
19668main ()
19669{
19670float f; isnan(f);
19671 ;
19672 return 0;
19673}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019674_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019675rm -f conftest.$ac_objext
19676if { (ac_try="$ac_compile"
19677case "(($ac_try" in
19678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19679 *) ac_try_echo=$ac_try;;
19680esac
19681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19682 (eval "$ac_compile") 2>conftest.er1
19683 ac_status=$?
19684 grep -v '^ *+' conftest.er1 >conftest.err
19685 rm -f conftest.er1
19686 cat conftest.err >&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } &&
19689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19690 { (case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19693esac
19694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_try") 2>&5
19696 ac_status=$?
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; } &&
19699 { ac_try='test -s conftest.$ac_objext'
19700 { (case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19703esac
19704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_try") 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019709 ac_cv_func_isnan_in_cmath=yes
19710else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019711 echo "$as_me: failed program was:" >&5
19712sed 's/^/| /' conftest.$ac_ext >&5
19713
19714 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019715fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019716
Reid Spencera773bd52006-08-04 18:18:08 +000019717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019718 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019719ac_cpp='$CPP $CPPFLAGS'
19720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19722ac_compiler_gnu=$ac_cv_c_compiler_gnu
19723
19724fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019725{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19726echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019727
19728if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019730cat >>confdefs.h <<\_ACEOF
19731#define HAVE_ISNAN_IN_CMATH 1
19732_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019733
Reid Spencerabec8f92004-10-27 23:03:44 +000019734fi
19735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019736{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19737echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19738if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019740else
Reid Spencera773bd52006-08-04 18:18:08 +000019741 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019742ac_cpp='$CXXCPP $CPPFLAGS'
19743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019747 cat >conftest.$ac_ext <<_ACEOF
19748/* confdefs.h. */
19749_ACEOF
19750cat confdefs.h >>conftest.$ac_ext
19751cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019752/* end confdefs.h. */
19753#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019754int
19755main ()
19756{
19757float f; std::isnan(f);
19758 ;
19759 return 0;
19760}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019761_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019762rm -f conftest.$ac_objext
19763if { (ac_try="$ac_compile"
19764case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19767esac
19768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_compile") 2>conftest.er1
19770 ac_status=$?
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
19776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19777 { (case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19780esac
19781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_try") 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
19787 { (case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19790esac
19791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_try") 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019796 ac_cv_func_std_isnan_in_cmath=yes
19797else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019798 echo "$as_me: failed program was:" >&5
19799sed 's/^/| /' conftest.$ac_ext >&5
19800
19801 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019802fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019803
Reid Spencera773bd52006-08-04 18:18:08 +000019804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019805 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019806ac_cpp='$CPP $CPPFLAGS'
19807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19809ac_compiler_gnu=$ac_cv_c_compiler_gnu
19810
19811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019812{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19813echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019814
19815if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019817cat >>confdefs.h <<\_ACEOF
19818#define HAVE_STD_ISNAN_IN_CMATH 1
19819_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019820
Reid Spencerabec8f92004-10-27 23:03:44 +000019821fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019822
19823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019824{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19825echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19826if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019828else
Reid Spencera773bd52006-08-04 18:18:08 +000019829 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019830ac_cpp='$CXXCPP $CPPFLAGS'
19831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019835 cat >conftest.$ac_ext <<_ACEOF
19836/* confdefs.h. */
19837_ACEOF
19838cat confdefs.h >>conftest.$ac_ext
19839cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019840/* end confdefs.h. */
19841#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019842int
19843main ()
19844{
19845float f; isinf(f);
19846 ;
19847 return 0;
19848}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019849_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019850rm -f conftest.$ac_objext
19851if { (ac_try="$ac_compile"
19852case "(($ac_try" in
19853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854 *) ac_try_echo=$ac_try;;
19855esac
19856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857 (eval "$ac_compile") 2>conftest.er1
19858 ac_status=$?
19859 grep -v '^ *+' conftest.er1 >conftest.err
19860 rm -f conftest.er1
19861 cat conftest.err >&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); } &&
19864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19865 { (case "(($ac_try" in
19866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867 *) ac_try_echo=$ac_try;;
19868esac
19869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870 (eval "$ac_try") 2>&5
19871 ac_status=$?
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } &&
19874 { ac_try='test -s conftest.$ac_objext'
19875 { (case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19878esac
19879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_try") 2>&5
19881 ac_status=$?
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019884 ac_cv_func_isinf_in_math_h=yes
19885else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019886 echo "$as_me: failed program was:" >&5
19887sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019890fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019891
Reid Spencera773bd52006-08-04 18:18:08 +000019892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019893 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019894ac_cpp='$CPP $CPPFLAGS'
19895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19897ac_compiler_gnu=$ac_cv_c_compiler_gnu
19898
19899fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019900{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19901echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019902
19903if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019905cat >>confdefs.h <<\_ACEOF
19906#define HAVE_ISINF_IN_MATH_H 1
19907_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019908
Reid Spencerabec8f92004-10-27 23:03:44 +000019909fi
19910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019911{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19912echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19913if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019915else
Reid Spencera773bd52006-08-04 18:18:08 +000019916 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019917ac_cpp='$CXXCPP $CPPFLAGS'
19918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019922 cat >conftest.$ac_ext <<_ACEOF
19923/* confdefs.h. */
19924_ACEOF
19925cat confdefs.h >>conftest.$ac_ext
19926cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019927/* end confdefs.h. */
19928#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019929int
19930main ()
19931{
19932float f; isinf(f);
19933 ;
19934 return 0;
19935}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019936_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019937rm -f conftest.$ac_objext
19938if { (ac_try="$ac_compile"
19939case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19942esac
19943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_compile") 2>conftest.er1
19945 ac_status=$?
19946 grep -v '^ *+' conftest.er1 >conftest.err
19947 rm -f conftest.er1
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } &&
19951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19952 { (case "(($ac_try" in
19953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954 *) ac_try_echo=$ac_try;;
19955esac
19956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957 (eval "$ac_try") 2>&5
19958 ac_status=$?
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; } &&
19961 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019971 ac_cv_func_isinf_in_cmath=yes
19972else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019973 echo "$as_me: failed program was:" >&5
19974sed 's/^/| /' conftest.$ac_ext >&5
19975
19976 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019977fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019978
Reid Spencera773bd52006-08-04 18:18:08 +000019979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019980 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019981ac_cpp='$CPP $CPPFLAGS'
19982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19984ac_compiler_gnu=$ac_cv_c_compiler_gnu
19985
19986fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019987{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19988echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019989
19990if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019992cat >>confdefs.h <<\_ACEOF
19993#define HAVE_ISINF_IN_CMATH 1
19994_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019995
Reid Spencerabec8f92004-10-27 23:03:44 +000019996fi
19997
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019998{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19999echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20000if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000020002else
Reid Spencera773bd52006-08-04 18:18:08 +000020003 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000020004ac_cpp='$CXXCPP $CPPFLAGS'
20005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20008
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020009 cat >conftest.$ac_ext <<_ACEOF
20010/* confdefs.h. */
20011_ACEOF
20012cat confdefs.h >>conftest.$ac_ext
20013cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020014/* end confdefs.h. */
20015#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000020016int
20017main ()
20018{
20019float f; std::isinf(f)}
20020 ;
20021 return 0;
20022}
Brian Gaeke52a551d2004-07-21 03:14:12 +000020023_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020024rm -f conftest.$ac_objext
20025if { (ac_try="$ac_compile"
20026case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20029esac
20030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_compile") 2>conftest.er1
20032 ac_status=$?
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } &&
20038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20039 { (case "(($ac_try" in
20040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041 *) ac_try_echo=$ac_try;;
20042esac
20043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20044 (eval "$ac_try") 2>&5
20045 ac_status=$?
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; } &&
20048 { ac_try='test -s conftest.$ac_objext'
20049 { (case "(($ac_try" in
20050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051 *) ac_try_echo=$ac_try;;
20052esac
20053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054 (eval "$ac_try") 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020058 ac_cv_func_std_isinf_in_cmath=yes
20059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020060 echo "$as_me: failed program was:" >&5
20061sed 's/^/| /' conftest.$ac_ext >&5
20062
20063 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020065
Reid Spencera773bd52006-08-04 18:18:08 +000020066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020067 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020068ac_cpp='$CPP $CPPFLAGS'
20069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20071ac_compiler_gnu=$ac_cv_c_compiler_gnu
20072
20073fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020074{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20075echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020076
20077if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020079cat >>confdefs.h <<\_ACEOF
20080#define HAVE_STD_ISINF_IN_CMATH 1
20081_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020082
Reid Spencerabec8f92004-10-27 23:03:44 +000020083fi
20084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020085{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20086echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20087if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020089else
Reid Spencera773bd52006-08-04 18:18:08 +000020090 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020091ac_cpp='$CXXCPP $CPPFLAGS'
20092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20095
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020096 cat >conftest.$ac_ext <<_ACEOF
20097/* confdefs.h. */
20098_ACEOF
20099cat confdefs.h >>conftest.$ac_ext
20100cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020101/* end confdefs.h. */
20102#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020103int
20104main ()
20105{
20106float f; finite(f);
20107 ;
20108 return 0;
20109}
Brian Gaeked59a6472004-07-21 03:33:58 +000020110_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020111rm -f conftest.$ac_objext
20112if { (ac_try="$ac_compile"
20113case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20116esac
20117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_compile") 2>conftest.er1
20119 ac_status=$?
20120 grep -v '^ *+' conftest.er1 >conftest.err
20121 rm -f conftest.er1
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } &&
20125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20126 { (case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20129esac
20130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_try") 2>&5
20132 ac_status=$?
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; } &&
20135 { ac_try='test -s conftest.$ac_objext'
20136 { (case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20139esac
20140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_try") 2>&5
20142 ac_status=$?
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020145 ac_cv_func_finite_in_ieeefp_h=yes
20146else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020147 echo "$as_me: failed program was:" >&5
20148sed 's/^/| /' conftest.$ac_ext >&5
20149
20150 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020151fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020152
Reid Spencera773bd52006-08-04 18:18:08 +000020153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020154 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020155ac_cpp='$CPP $CPPFLAGS'
20156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20158ac_compiler_gnu=$ac_cv_c_compiler_gnu
20159
20160fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020161{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20162echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020163
Brian Gaeke6802b552004-10-28 05:06:45 +000020164if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020165
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020166cat >>confdefs.h <<\_ACEOF
20167#define HAVE_FINITE_IN_IEEEFP_H 1
20168_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020169
Reid Spencerabec8f92004-10-27 23:03:44 +000020170fi
20171
20172
20173
Reid Spencer30fe5262007-01-20 07:48:49 +000020174if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020175
20176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020177for ac_header in stdlib.h unistd.h
20178do
20179as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20180if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20183if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20184 echo $ECHO_N "(cached) $ECHO_C" >&6
20185fi
20186ac_res=`eval echo '${'$as_ac_Header'}'`
20187 { echo "$as_me:$LINENO: result: $ac_res" >&5
20188echo "${ECHO_T}$ac_res" >&6; }
20189else
20190 # Is the header compilable?
20191{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20192echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20193cat >conftest.$ac_ext <<_ACEOF
20194/* confdefs.h. */
20195_ACEOF
20196cat confdefs.h >>conftest.$ac_ext
20197cat >>conftest.$ac_ext <<_ACEOF
20198/* end confdefs.h. */
20199$ac_includes_default
20200#include <$ac_header>
20201_ACEOF
20202rm -f conftest.$ac_objext
20203if { (ac_try="$ac_compile"
20204case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20207esac
20208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_compile") 2>conftest.er1
20210 ac_status=$?
20211 grep -v '^ *+' conftest.er1 >conftest.err
20212 rm -f conftest.er1
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } &&
20216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20217 { (case "(($ac_try" in
20218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219 *) ac_try_echo=$ac_try;;
20220esac
20221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222 (eval "$ac_try") 2>&5
20223 ac_status=$?
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; } &&
20226 { ac_try='test -s conftest.$ac_objext'
20227 { (case "(($ac_try" in
20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20230esac
20231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20232 (eval "$ac_try") 2>&5
20233 ac_status=$?
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; }; then
20236 ac_header_compiler=yes
20237else
20238 echo "$as_me: failed program was:" >&5
20239sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020240
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020241 ac_header_compiler=no
20242fi
20243
20244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20245{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20246echo "${ECHO_T}$ac_header_compiler" >&6; }
20247
20248# Is the header present?
20249{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20250echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20251cat >conftest.$ac_ext <<_ACEOF
20252/* confdefs.h. */
20253_ACEOF
20254cat confdefs.h >>conftest.$ac_ext
20255cat >>conftest.$ac_ext <<_ACEOF
20256/* end confdefs.h. */
20257#include <$ac_header>
20258_ACEOF
20259if { (ac_try="$ac_cpp conftest.$ac_ext"
20260case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20263esac
20264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20266 ac_status=$?
20267 grep -v '^ *+' conftest.er1 >conftest.err
20268 rm -f conftest.er1
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } >/dev/null; then
20272 if test -s conftest.err; then
20273 ac_cpp_err=$ac_c_preproc_warn_flag
20274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20275 else
20276 ac_cpp_err=
20277 fi
20278else
20279 ac_cpp_err=yes
20280fi
20281if test -z "$ac_cpp_err"; then
20282 ac_header_preproc=yes
20283else
20284 echo "$as_me: failed program was:" >&5
20285sed 's/^/| /' conftest.$ac_ext >&5
20286
20287 ac_header_preproc=no
20288fi
20289
20290rm -f conftest.err conftest.$ac_ext
20291{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20292echo "${ECHO_T}$ac_header_preproc" >&6; }
20293
20294# So? What about this header?
20295case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20296 yes:no: )
20297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20298echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20300echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20301 ac_header_preproc=yes
20302 ;;
20303 no:yes:* )
20304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20305echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20307echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20309echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20311echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20315echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20316 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020317## ------------------------------------ ##
20318## Report this to http://llvm.org/bugs/ ##
20319## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020320_ASBOX
20321 ) | sed "s/^/$as_me: WARNING: /" >&2
20322 ;;
20323esac
20324{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20327 echo $ECHO_N "(cached) $ECHO_C" >&6
20328else
20329 eval "$as_ac_Header=\$ac_header_preproc"
20330fi
20331ac_res=`eval echo '${'$as_ac_Header'}'`
20332 { echo "$as_me:$LINENO: result: $ac_res" >&5
20333echo "${ECHO_T}$ac_res" >&6; }
20334
20335fi
20336if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020337 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020338#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020339_ACEOF
20340
20341fi
20342
20343done
20344
20345
20346for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020347do
20348as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20349{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20350echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20351if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20352 echo $ECHO_N "(cached) $ECHO_C" >&6
20353else
20354 cat >conftest.$ac_ext <<_ACEOF
20355/* confdefs.h. */
20356_ACEOF
20357cat confdefs.h >>conftest.$ac_ext
20358cat >>conftest.$ac_ext <<_ACEOF
20359/* end confdefs.h. */
20360/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20362#define $ac_func innocuous_$ac_func
20363
20364/* System header to define __stub macros and hopefully few prototypes,
20365 which can conflict with char $ac_func (); below.
20366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20367 <limits.h> exists even on freestanding compilers. */
20368
20369#ifdef __STDC__
20370# include <limits.h>
20371#else
20372# include <assert.h>
20373#endif
20374
20375#undef $ac_func
20376
20377/* Override any GCC internal prototype to avoid an error.
20378 Use char because int might match the return type of a GCC
20379 builtin and then its argument prototype would still apply. */
20380#ifdef __cplusplus
20381extern "C"
20382#endif
20383char $ac_func ();
20384/* The GNU C library defines this for functions which it implements
20385 to always fail with ENOSYS. Some functions are actually named
20386 something starting with __ and the normal name is an alias. */
20387#if defined __stub_$ac_func || defined __stub___$ac_func
20388choke me
20389#endif
20390
20391int
20392main ()
20393{
20394return $ac_func ();
20395 ;
20396 return 0;
20397}
20398_ACEOF
20399rm -f conftest.$ac_objext conftest$ac_exeext
20400if { (ac_try="$ac_link"
20401case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20404esac
20405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406 (eval "$ac_link") 2>conftest.er1
20407 ac_status=$?
20408 grep -v '^ *+' conftest.er1 >conftest.err
20409 rm -f conftest.er1
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } &&
20413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20414 { (case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20417esac
20418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419 (eval "$ac_try") 2>&5
20420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; } &&
20423 { ac_try='test -s conftest$ac_exeext'
20424 { (case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20427esac
20428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429 (eval "$ac_try") 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; }; then
20433 eval "$as_ac_var=yes"
20434else
20435 echo "$as_me: failed program was:" >&5
20436sed 's/^/| /' conftest.$ac_ext >&5
20437
20438 eval "$as_ac_var=no"
20439fi
20440
20441rm -f core conftest.err conftest.$ac_objext \
20442 conftest$ac_exeext conftest.$ac_ext
20443fi
20444ac_res=`eval echo '${'$as_ac_var'}'`
20445 { echo "$as_me:$LINENO: result: $ac_res" >&5
20446echo "${ECHO_T}$ac_res" >&6; }
20447if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020448 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020449#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020450_ACEOF
20451
20452fi
20453done
20454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020455{ echo "$as_me:$LINENO: checking for working mmap" >&5
20456echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20457if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20458 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020460 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020461 ac_cv_func_mmap_fixed_mapped=no
20462else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020463 cat >conftest.$ac_ext <<_ACEOF
20464/* confdefs.h. */
20465_ACEOF
20466cat confdefs.h >>conftest.$ac_ext
20467cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020468/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020469$ac_includes_default
20470/* malloc might have been renamed as rpl_malloc. */
20471#undef malloc
20472
20473/* Thanks to Mike Haertel and Jim Avera for this test.
20474 Here is a matrix of mmap possibilities:
20475 mmap private not fixed
20476 mmap private fixed at somewhere currently unmapped
20477 mmap private fixed at somewhere already mapped
20478 mmap shared not fixed
20479 mmap shared fixed at somewhere currently unmapped
20480 mmap shared fixed at somewhere already mapped
20481 For private mappings, we should verify that changes cannot be read()
20482 back from the file, nor mmap's back from the file at a different
20483 address. (There have been systems where private was not correctly
20484 implemented like the infamous i386 svr4.0, and systems where the
20485 VM page cache was not coherent with the file system buffer cache
20486 like early versions of FreeBSD and possibly contemporary NetBSD.)
20487 For shared mappings, we should conversely verify that changes get
20488 propagated back to all the places they're supposed to be.
20489
20490 Grep wants private fixed already mapped.
20491 The main things grep needs to know about mmap are:
20492 * does it exist and is it safe to write into the mmap'd area
20493 * how to use it (BSD variants) */
20494
20495#include <fcntl.h>
20496#include <sys/mman.h>
20497
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020498#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020499char *malloc ();
20500#endif
20501
20502/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020503#if !HAVE_GETPAGESIZE
20504/* Assume that all systems that can run configure have sys/param.h. */
20505# if !HAVE_SYS_PARAM_H
20506# define HAVE_SYS_PARAM_H 1
20507# endif
20508
John Criswell7a73b802003-06-30 21:59:07 +000020509# ifdef _SC_PAGESIZE
20510# define getpagesize() sysconf(_SC_PAGESIZE)
20511# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020512# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020513# include <sys/param.h>
20514# ifdef EXEC_PAGESIZE
20515# define getpagesize() EXEC_PAGESIZE
20516# else /* no EXEC_PAGESIZE */
20517# ifdef NBPG
20518# define getpagesize() NBPG * CLSIZE
20519# ifndef CLSIZE
20520# define CLSIZE 1
20521# endif /* no CLSIZE */
20522# else /* no NBPG */
20523# ifdef NBPC
20524# define getpagesize() NBPC
20525# else /* no NBPC */
20526# ifdef PAGESIZE
20527# define getpagesize() PAGESIZE
20528# endif /* PAGESIZE */
20529# endif /* no NBPC */
20530# endif /* no NBPG */
20531# endif /* no EXEC_PAGESIZE */
20532# else /* no HAVE_SYS_PARAM_H */
20533# define getpagesize() 8192 /* punt totally */
20534# endif /* no HAVE_SYS_PARAM_H */
20535# endif /* no _SC_PAGESIZE */
20536
20537#endif /* no HAVE_GETPAGESIZE */
20538
20539int
20540main ()
20541{
20542 char *data, *data2, *data3;
20543 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020544 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020545
20546 pagesize = getpagesize ();
20547
20548 /* First, make a file with some known garbage in it. */
20549 data = (char *) malloc (pagesize);
20550 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020551 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020552 for (i = 0; i < pagesize; ++i)
20553 *(data + i) = rand ();
20554 umask (0);
20555 fd = creat ("conftest.mmap", 0600);
20556 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020557 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020558 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020559 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020560 close (fd);
20561
20562 /* Next, try to mmap the file at a fixed address which already has
20563 something else allocated at it. If we can, also make sure that
20564 we see the same garbage. */
20565 fd = open ("conftest.mmap", O_RDWR);
20566 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020567 return 1;
20568 data2 = (char *) malloc (2 * pagesize);
20569 if (!data2)
20570 return 1;
20571 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020572 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020573 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020574 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020575 for (i = 0; i < pagesize; ++i)
20576 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020577 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020578
20579 /* Finally, make sure that changes to the mapped area do not
20580 percolate back to the file as seen by read(). (This is a bug on
20581 some variants of i386 svr4.0.) */
20582 for (i = 0; i < pagesize; ++i)
20583 *(data2 + i) = *(data2 + i) + 1;
20584 data3 = (char *) malloc (pagesize);
20585 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020586 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020587 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020588 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020589 for (i = 0; i < pagesize; ++i)
20590 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020591 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020592 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020593 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020594}
20595_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020596rm -f conftest$ac_exeext
20597if { (ac_try="$ac_link"
20598case "(($ac_try" in
20599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600 *) ac_try_echo=$ac_try;;
20601esac
20602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603 (eval "$ac_link") 2>&5
20604 ac_status=$?
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20607 { (case "(($ac_try" in
20608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609 *) ac_try_echo=$ac_try;;
20610esac
20611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612 (eval "$ac_try") 2>&5
20613 ac_status=$?
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020616 ac_cv_func_mmap_fixed_mapped=yes
20617else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020618 echo "$as_me: program exited with status $ac_status" >&5
20619echo "$as_me: failed program was:" >&5
20620sed 's/^/| /' conftest.$ac_ext >&5
20621
20622( exit $ac_status )
20623ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020625rm -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 +000020626fi
Reid Spencera773bd52006-08-04 18:18:08 +000020627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020628
John Criswell7a73b802003-06-30 21:59:07 +000020629fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020630{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20631echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020632if test $ac_cv_func_mmap_fixed_mapped = yes; then
20633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020634cat >>confdefs.h <<\_ACEOF
20635#define HAVE_MMAP 1
20636_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020637
20638fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020639rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020641 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20642echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20643if test "${ac_cv_func_mmap_file+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020645else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020646 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020647ac_cpp='$CPP $CPPFLAGS'
20648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20650ac_compiler_gnu=$ac_cv_c_compiler_gnu
20651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020652 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020653 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020654else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020655 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020656
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020657 /* confdefs.h. */
20658_ACEOF
20659cat confdefs.h >>conftest.$ac_ext
20660cat >>conftest.$ac_ext <<_ACEOF
20661/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020662
John Criswell7a73b802003-06-30 21:59:07 +000020663#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020664#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020665#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020666
20667int
20668main ()
20669{
John Criswell7a73b802003-06-30 21:59:07 +000020670
20671 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020672 fd = creat ("foo",0777);
20673 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20674 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020675 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020676 ;
20677 return 0;
20678}
John Criswell7a73b802003-06-30 21:59:07 +000020679_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020680rm -f conftest$ac_exeext
20681if { (ac_try="$ac_link"
20682case "(($ac_try" in
20683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684 *) ac_try_echo=$ac_try;;
20685esac
20686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687 (eval "$ac_link") 2>&5
20688 ac_status=$?
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20691 { (case "(($ac_try" in
20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20694esac
20695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_try") 2>&5
20697 ac_status=$?
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020700 ac_cv_func_mmap_file=yes
20701else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020702 echo "$as_me: program exited with status $ac_status" >&5
20703echo "$as_me: failed program was:" >&5
20704sed 's/^/| /' conftest.$ac_ext >&5
20705
20706( exit $ac_status )
20707ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020708fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020709rm -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 +000020710fi
Reid Spencera773bd52006-08-04 18:18:08 +000020711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020712
John Criswell7a73b802003-06-30 21:59:07 +000020713 ac_ext=c
20714ac_cpp='$CPP $CPPFLAGS'
20715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20717ac_compiler_gnu=$ac_cv_c_compiler_gnu
20718
20719
20720fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020721{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20722echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020723if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020725cat >>confdefs.h <<\_ACEOF
20726#define HAVE_MMAP_FILE
20727_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020728
20729 MMAP_FILE=yes
20730
20731fi
20732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020733 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20734echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20735if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020737else
Reid Spencer582a23c2004-12-29 07:07:57 +000020738 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020739 ac_cv_need_dev_zero_for_mmap=yes
20740 else
20741 ac_cv_need_dev_zero_for_mmap=no
20742 fi
20743
20744fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020745{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20746echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020747if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20748
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020749cat >>confdefs.h <<\_ACEOF
20750#define NEED_DEV_ZERO_FOR_MMAP 1
20751_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020752
20753fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020754
Reid Spencer30fe5262007-01-20 07:48:49 +000020755 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20756 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020757 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20758echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020759 fi
20760 if test "$ac_cv_func_mmap_file" = "no"
20761 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020762 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20763echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020764 fi
John Criswellb13092b2003-07-22 21:00:24 +000020765fi
John Criswell7a73b802003-06-30 21:59:07 +000020766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020767{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20768echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020769ac_ext=cpp
20770ac_cpp='$CXXCPP $CPPFLAGS'
20771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020775cat >conftest.$ac_ext <<_ACEOF
20776/* confdefs.h. */
20777_ACEOF
20778cat confdefs.h >>conftest.$ac_ext
20779cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020780/* end confdefs.h. */
20781int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020782 volatile unsigned long val = 1;
20783 __sync_synchronize();
20784 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020785 __sync_add_and_fetch(&val, 1);
20786 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020787 return 0;
20788 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020789
20790_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020791rm -f conftest.$ac_objext conftest$ac_exeext
20792if { (ac_try="$ac_link"
20793case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20796esac
20797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_link") 2>conftest.er1
20799 ac_status=$?
20800 grep -v '^ *+' conftest.er1 >conftest.err
20801 rm -f conftest.er1
20802 cat conftest.err >&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } &&
20805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20806 { (case "(($ac_try" in
20807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808 *) ac_try_echo=$ac_try;;
20809esac
20810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_try") 2>&5
20812 ac_status=$?
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); }; } &&
20815 { ac_try='test -s conftest$ac_exeext'
20816 { (case "(($ac_try" in
20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818 *) ac_try_echo=$ac_try;;
20819esac
20820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821 (eval "$ac_try") 2>&5
20822 ac_status=$?
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020825 ac_ext=c
20826ac_cpp='$CPP $CPPFLAGS'
20827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829ac_compiler_gnu=$ac_cv_c_compiler_gnu
20830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020831 { echo "$as_me:$LINENO: result: yes" >&5
20832echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020833
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020834cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020835#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020836_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020837
Owen Andersond4b272b2009-05-18 23:58:51 +000020838else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020839 echo "$as_me: failed program was:" >&5
20840sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020842 { echo "$as_me:$LINENO: result: no" >&5
20843echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020845cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020846#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020847_ACEOF
20848
20849 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20850echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020851fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020852
Owen Andersond4b272b2009-05-18 23:58:51 +000020853rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020854 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020855
John Criswell7a73b802003-06-30 21:59:07 +000020856
Nick Lewycky4372e692009-09-29 06:18:23 +000020857if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020858 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20859echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20860if test "${llvm_cv_linux_mixed+set}" = set; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020862else
20863 ac_ext=c
20864ac_cpp='$CPP $CPPFLAGS'
20865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20867ac_compiler_gnu=$ac_cv_c_compiler_gnu
20868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020869 cat >conftest.$ac_ext <<_ACEOF
20870/* confdefs.h. */
20871_ACEOF
20872cat confdefs.h >>conftest.$ac_ext
20873cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020874/* end confdefs.h. */
20875#ifndef __x86_64__
20876 error: Not x86-64 even if uname says so!
20877 #endif
20878
20879int
20880main ()
20881{
20882
20883 ;
20884 return 0;
20885}
20886_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020887rm -f conftest.$ac_objext
20888if { (ac_try="$ac_compile"
20889case "(($ac_try" in
20890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891 *) ac_try_echo=$ac_try;;
20892esac
20893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20894 (eval "$ac_compile") 2>conftest.er1
20895 ac_status=$?
20896 grep -v '^ *+' conftest.er1 >conftest.err
20897 rm -f conftest.er1
20898 cat conftest.err >&5
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); } &&
20901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20902 { (case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20905esac
20906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907 (eval "$ac_try") 2>&5
20908 ac_status=$?
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; } &&
20911 { ac_try='test -s conftest.$ac_objext'
20912 { (case "(($ac_try" in
20913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914 *) ac_try_echo=$ac_try;;
20915esac
20916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20917 (eval "$ac_try") 2>&5
20918 ac_status=$?
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020921 llvm_cv_linux_mixed=no
20922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020923 echo "$as_me: failed program was:" >&5
20924sed 's/^/| /' conftest.$ac_ext >&5
20925
20926 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020927fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020928
Nick Lewycky4372e692009-09-29 06:18:23 +000020929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20930 ac_ext=c
20931ac_cpp='$CPP $CPPFLAGS'
20932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934ac_compiler_gnu=$ac_cv_c_compiler_gnu
20935
20936
20937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020938{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20939echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020940
20941 if test "$llvm_cv_linux_mixed" = "yes"; then
20942 llvm_cv_target_arch="x86"
20943 ARCH="x86"
20944 fi
20945fi
20946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020947
Reid Spencer9372f152007-07-30 20:13:24 +000020948for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020949do
20950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20951{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20953if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20954 echo $ECHO_N "(cached) $ECHO_C" >&6
20955else
20956 cat >conftest.$ac_ext <<_ACEOF
20957/* confdefs.h. */
20958_ACEOF
20959cat confdefs.h >>conftest.$ac_ext
20960cat >>conftest.$ac_ext <<_ACEOF
20961/* end confdefs.h. */
20962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20964#define $ac_func innocuous_$ac_func
20965
20966/* System header to define __stub macros and hopefully few prototypes,
20967 which can conflict with char $ac_func (); below.
20968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20969 <limits.h> exists even on freestanding compilers. */
20970
20971#ifdef __STDC__
20972# include <limits.h>
20973#else
20974# include <assert.h>
20975#endif
20976
20977#undef $ac_func
20978
20979/* Override any GCC internal prototype to avoid an error.
20980 Use char because int might match the return type of a GCC
20981 builtin and then its argument prototype would still apply. */
20982#ifdef __cplusplus
20983extern "C"
20984#endif
20985char $ac_func ();
20986/* The GNU C library defines this for functions which it implements
20987 to always fail with ENOSYS. Some functions are actually named
20988 something starting with __ and the normal name is an alias. */
20989#if defined __stub_$ac_func || defined __stub___$ac_func
20990choke me
20991#endif
20992
20993int
20994main ()
20995{
20996return $ac_func ();
20997 ;
20998 return 0;
20999}
21000_ACEOF
21001rm -f conftest.$ac_objext conftest$ac_exeext
21002if { (ac_try="$ac_link"
21003case "(($ac_try" in
21004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005 *) ac_try_echo=$ac_try;;
21006esac
21007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008 (eval "$ac_link") 2>conftest.er1
21009 ac_status=$?
21010 grep -v '^ *+' conftest.er1 >conftest.err
21011 rm -f conftest.er1
21012 cat conftest.err >&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } &&
21015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21016 { (case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21019esac
21020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_try") 2>&5
21022 ac_status=$?
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; } &&
21025 { ac_try='test -s conftest$ac_exeext'
21026 { (case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21029esac
21030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031 (eval "$ac_try") 2>&5
21032 ac_status=$?
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }; then
21035 eval "$as_ac_var=yes"
21036else
21037 echo "$as_me: failed program was:" >&5
21038sed 's/^/| /' conftest.$ac_ext >&5
21039
21040 eval "$as_ac_var=no"
21041fi
21042
21043rm -f core conftest.err conftest.$ac_objext \
21044 conftest$ac_exeext conftest.$ac_ext
21045fi
21046ac_res=`eval echo '${'$as_ac_var'}'`
21047 { echo "$as_me:$LINENO: result: $ac_res" >&5
21048echo "${ECHO_T}$ac_res" >&6; }
21049if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000021050 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000021052_ACEOF
21053
21054fi
21055done
21056
21057
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021058SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021059
21060
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021061SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21062
21063
Jeff Cohen28783c32007-01-12 18:22:38 +000021064if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021065 prefix="/usr/local"
21066fi
Reid Spencere9de0912004-08-20 09:03:57 +000021067eval LLVM_PREFIX="${prefix}";
21068eval LLVM_BINDIR="${prefix}/bin";
21069eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021070eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021071eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021072eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021073eval LLVM_INCLUDEDIR="${prefix}/include";
21074eval LLVM_INFODIR="${prefix}/info";
21075eval LLVM_MANDIR="${prefix}/man";
21076LLVM_CONFIGTIME=`date`
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021088if test "${ENABLE_TIMESTAMPS}" = "0"; then
21089 LLVM_CONFIGTIME="(timestamp not enabled)"
21090fi
21091
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021092
Reid Spencere9de0912004-08-20 09:03:57 +000021093cat >>confdefs.h <<_ACEOF
21094#define LLVM_PREFIX "$LLVM_PREFIX"
21095_ACEOF
21096
21097
21098cat >>confdefs.h <<_ACEOF
21099#define LLVM_BINDIR "$LLVM_BINDIR"
21100_ACEOF
21101
21102
21103cat >>confdefs.h <<_ACEOF
21104#define LLVM_LIBDIR "$LLVM_LIBDIR"
21105_ACEOF
21106
21107
21108cat >>confdefs.h <<_ACEOF
21109#define LLVM_DATADIR "$LLVM_DATADIR"
21110_ACEOF
21111
21112
21113cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021114#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021115_ACEOF
21116
21117
21118cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021119#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021120_ACEOF
21121
21122
21123cat >>confdefs.h <<_ACEOF
21124#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21125_ACEOF
21126
21127
21128cat >>confdefs.h <<_ACEOF
21129#define LLVM_INFODIR "$LLVM_INFODIR"
21130_ACEOF
21131
21132
21133cat >>confdefs.h <<_ACEOF
21134#define LLVM_MANDIR "$LLVM_MANDIR"
21135_ACEOF
21136
21137
21138cat >>confdefs.h <<_ACEOF
21139#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21140_ACEOF
21141
21142
Eric Christopher790e11c2007-12-01 00:34:39 +000021143cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021144#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021145_ACEOF
21146
21147
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021148if test "$BINDINGS_TO_BUILD" = auto ; then
21149 BINDINGS_TO_BUILD=""
21150 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21151 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21152 fi
21153fi
21154BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21155
21156
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021157ALL_BINDINGS=ocaml
21158
21159
Gordon Henriksenf0915682007-10-02 16:42:22 +000021160binding_prereqs_failed=0
21161for a_binding in $BINDINGS_TO_BUILD ; do
21162 case "$a_binding" in
21163 ocaml)
21164 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021165 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21166echo "$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 +000021167 binding_prereqs_failed=1
21168 fi
21169 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021170 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21171echo "$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 +000021172 binding_prereqs_failed=1
21173 fi
21174 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021175 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21176echo "$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 +000021177 fi
21178 if test "x$with_ocaml_libdir" != xauto ; then
21179 OCAML_LIBDIR=$with_ocaml_libdir
21180
21181 else
21182 ocaml_stdlib="`"$OCAMLC" -where`"
21183 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21184 then
21185 # ocaml stdlib is beneath our prefix; use stdlib
21186 OCAML_LIBDIR=$ocaml_stdlib
21187
21188 else
21189 # ocaml stdlib is outside our prefix; use libdir/ocaml
21190 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21191
21192 fi
21193 fi
21194 ;;
21195 esac
21196done
21197if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021198 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21199echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21200 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021201fi
21202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021203{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21204echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21205if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021207else
21208 ac_ext=cpp
21209ac_cpp='$CXXCPP $CPPFLAGS'
21210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21213
21214 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021215 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021216 cat >conftest.$ac_ext <<_ACEOF
21217/* confdefs.h. */
21218_ACEOF
21219cat confdefs.h >>conftest.$ac_ext
21220cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021221/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021222template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021223int
21224main ()
21225{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021226X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021227 ;
21228 return 0;
21229}
21230_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021231rm -f conftest.$ac_objext
21232if { (ac_try="$ac_compile"
21233case "(($ac_try" in
21234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235 *) ac_try_echo=$ac_try;;
21236esac
21237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21238 (eval "$ac_compile") 2>conftest.er1
21239 ac_status=$?
21240 grep -v '^ *+' conftest.er1 >conftest.err
21241 rm -f conftest.er1
21242 cat conftest.err >&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } &&
21245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21246 { (case "(($ac_try" in
21247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248 *) ac_try_echo=$ac_try;;
21249esac
21250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251 (eval "$ac_try") 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; } &&
21255 { ac_try='test -s conftest.$ac_objext'
21256 { (case "(($ac_try" in
21257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258 *) ac_try_echo=$ac_try;;
21259esac
21260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261 (eval "$ac_try") 2>&5
21262 ac_status=$?
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021265 llvm_cv_cxx_visibility_inlines_hidden=yes
21266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021267 echo "$as_me: failed program was:" >&5
21268sed 's/^/| /' conftest.$ac_ext >&5
21269
21270 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021271fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021272
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21274 CXXFLAGS="$oldcxxflags"
21275 ac_ext=c
21276ac_cpp='$CPP $CPPFLAGS'
21277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21279ac_compiler_gnu=$ac_cv_c_compiler_gnu
21280
21281
21282fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021283{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21284echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021285if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21286 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21287
21288else
21289 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21290
21291fi
21292
Gordon Henriksenf0915682007-10-02 16:42:22 +000021293
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021294if test "$llvm_cv_link_use_r" = "yes" ; then
21295 RPATH="-Wl,-R"
21296else
21297 RPATH="-Wl,-rpath"
21298fi
21299
21300
21301if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21302 RDYNAMIC="-Wl,-export-dynamic"
21303else
21304 RDYNAMIC=""
21305fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021306
21307
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021308
Eric Christophera1cba682010-08-08 02:44:25 +000021309ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021310
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021311
21312
21313
21314
21315
Douglas Gregor1555a232009-06-16 20:12:29 +000021316ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21317
21318ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21319
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021320ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21321
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021322ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21323
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021324ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021325
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021326
Reid Spencera773bd52006-08-04 18:18:08 +000021327ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021328
Eric Christopher360fa9a2011-10-26 00:42:12 +000021329
Reid Spencerea949cf2006-08-16 00:45:38 +000021330ac_config_files="$ac_config_files llvm.spec"
21331
21332
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021333ac_config_files="$ac_config_files docs/doxygen.cfg"
21334
Eric Christopher63c09512012-02-02 00:16:55 +000021335
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021336if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021337 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021338fi
Eric Christopher63c09512012-02-02 00:16:55 +000021339if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021340 configh="include/clang/Config/config.h"
21341 doxy="docs/doxygen.cfg"
21342 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021343
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021344 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021345
21346fi
21347
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021348ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021349
Eric Christopher360fa9a2011-10-26 00:42:12 +000021350
Reid Spencera773bd52006-08-04 18:18:08 +000021351ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021352
Reid Spencera773bd52006-08-04 18:18:08 +000021353ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021354
21355
Reid Spencera773bd52006-08-04 18:18:08 +000021356ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021357
21358
Reid Spencera773bd52006-08-04 18:18:08 +000021359ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021360
21361
Reid Spencera773bd52006-08-04 18:18:08 +000021362ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021363
21364
Reid Spencer8b2e1412006-11-17 03:32:33 +000021365ac_config_commands="$ac_config_commands runtime/Makefile"
21366
21367
Reid Spencera773bd52006-08-04 18:18:08 +000021368ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021369
21370
Reid Spencera773bd52006-08-04 18:18:08 +000021371ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021372
21373
Bill Wendlingf24eb392009-01-04 23:12:30 +000021374ac_config_commands="$ac_config_commands unittests/Makefile"
21375
21376
Reid Spencera773bd52006-08-04 18:18:08 +000021377ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021378
21379
Reid Spencera773bd52006-08-04 18:18:08 +000021380ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021381
21382
Reid Spencera773bd52006-08-04 18:18:08 +000021383ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021384
21385
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021386ac_config_commands="$ac_config_commands bindings/Makefile"
21387
21388
21389ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21390
21391
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021392
John Criswell7a73b802003-06-30 21:59:07 +000021393cat >confcache <<\_ACEOF
21394# This file is a shell script that caches the results of configure
21395# tests run on this system so they can be shared between configure
21396# scripts and configure runs, see configure's option --config-cache.
21397# It is not useful on other systems. If it contains results you don't
21398# want to keep, you may remove or edit it.
21399#
21400# config.status only pays attention to the cache file if you give it
21401# the --recheck option to rerun configure.
21402#
John Criswell0c38eaf2003-09-10 15:17:25 +000021403# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021404# loading this file, other *unset* `ac_cv_foo' will be assigned the
21405# following values.
21406
21407_ACEOF
21408
21409# The following way of writing the cache mishandles newlines in values,
21410# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021411# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021412# Ultrix sh set writes to stderr and can't be redirected directly,
21413# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021414(
21415 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21416 eval ac_val=\$$ac_var
21417 case $ac_val in #(
21418 *${as_nl}*)
21419 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021420 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21421echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021422 esac
21423 case $ac_var in #(
21424 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021425 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021426 esac ;;
21427 esac
21428 done
21429
John Criswell7a73b802003-06-30 21:59:07 +000021430 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021431 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21432 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021433 # `set' does not quote correctly, so add quotes (double-quote
21434 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021435 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021436 "s/'/'\\\\''/g;
21437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021438 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021439 *)
21440 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021441 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021442 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021443 esac |
21444 sort
21445) |
John Criswell7a73b802003-06-30 21:59:07 +000021446 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021447 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021448 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021449 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021450 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21451 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021452 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21453 :end' >>confcache
21454if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21455 if test -w "$cache_file"; then
21456 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021457 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21458echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021459 cat confcache >$cache_file
21460 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021461 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21462echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021463 fi
21464fi
21465rm -f confcache
21466
21467test "x$prefix" = xNONE && prefix=$ac_default_prefix
21468# Let make expand exec_prefix.
21469test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21470
John Criswell7a73b802003-06-30 21:59:07 +000021471DEFS=-DHAVE_CONFIG_H
21472
John Criswell0c38eaf2003-09-10 15:17:25 +000021473ac_libobjs=
21474ac_ltlibobjs=
21475for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21476 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021477 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021478 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021479 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21480 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021481 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21482 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021483done
21484LIBOBJS=$ac_libobjs
21485
21486LTLIBOBJS=$ac_ltlibobjs
21487
21488
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021489if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021490 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21491Usually this means the macro was only invoked conditionally." >&5
21492echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21493Usually this means the macro was only invoked conditionally." >&2;}
21494 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021495fi
21496if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021497 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21498Usually this means the macro was only invoked conditionally." >&5
21499echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21500Usually this means the macro was only invoked conditionally." >&2;}
21501 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021502fi
John Criswell7a73b802003-06-30 21:59:07 +000021503
21504: ${CONFIG_STATUS=./config.status}
21505ac_clean_files_save=$ac_clean_files
21506ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021507{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21508echo "$as_me: creating $CONFIG_STATUS" >&6;}
21509cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021510#! $SHELL
21511# Generated by $as_me.
21512# Run this file to recreate the current configuration.
21513# Compiler output produced by configure, useful for debugging
21514# configure, is in config.log if it exists.
21515
21516debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021517ac_cs_recheck=false
21518ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021519SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021520_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021521
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021522cat >>$CONFIG_STATUS <<\_ACEOF
21523## --------------------- ##
21524## M4sh Initialization. ##
21525## --------------------- ##
21526
21527# Be Bourne compatible
21528if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021529 emulate sh
21530 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021531 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021532 # is contrary to our usage. Disable this feature.
21533 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021534 setopt NO_GLOB_SUBST
21535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021536 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021537fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021538BIN_SH=xpg4; export BIN_SH # for Tru64
21539DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021540
John Criswell7a73b802003-06-30 21:59:07 +000021541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021542# PATH needs CR
21543# Avoid depending upon Character Ranges.
21544as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21545as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21546as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21547as_cr_digits='0123456789'
21548as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021549
21550# The user is always right.
21551if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021552 echo "#! /bin/sh" >conf$$.sh
21553 echo "exit 0" >>conf$$.sh
21554 chmod +x conf$$.sh
21555 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21556 PATH_SEPARATOR=';'
21557 else
21558 PATH_SEPARATOR=:
21559 fi
21560 rm -f conf$$.sh
21561fi
21562
21563# Support unset when possible.
21564if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21565 as_unset=unset
21566else
21567 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021568fi
John Criswell7a73b802003-06-30 21:59:07 +000021569
Reid Spencera773bd52006-08-04 18:18:08 +000021570
21571# IFS
21572# We need space, tab and new line, in precisely that order. Quoting is
21573# there to prevent editors from complaining about space-tab.
21574# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21575# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021576as_nl='
21577'
Reid Spencera773bd52006-08-04 18:18:08 +000021578IFS=" "" $as_nl"
21579
21580# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021581case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021582 *[\\/]* ) as_myself=$0 ;;
21583 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021584for as_dir in $PATH
21585do
21586 IFS=$as_save_IFS
21587 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021588 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21589done
Reid Spencera773bd52006-08-04 18:18:08 +000021590IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021591
Reid Spencera773bd52006-08-04 18:18:08 +000021592 ;;
21593esac
21594# We did not find ourselves, most probably we were run as `sh COMMAND'
21595# in which case we are not to be found in the path.
21596if test "x$as_myself" = x; then
21597 as_myself=$0
21598fi
21599if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021600 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21601 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021602fi
21603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021604# Work around bugs in pre-3.0 UWIN ksh.
21605for as_var in ENV MAIL MAILPATH
21606do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021607done
21608PS1='$ '
21609PS2='> '
21610PS4='+ '
21611
21612# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021613for as_var in \
21614 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21615 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21616 LC_TELEPHONE LC_TIME
21617do
21618 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21619 eval $as_var=C; export $as_var
21620 else
21621 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021622 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021623done
Torok Edwin871384f2010-01-26 08:50:50 +000021624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021625# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021626if expr a : '\(a\)' >/dev/null 2>&1 &&
21627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21628 as_expr=expr
21629else
21630 as_expr=false
21631fi
21632
21633if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21634 as_basename=basename
21635else
21636 as_basename=false
21637fi
21638
21639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021640# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021641as_me=`$as_basename -- "$0" ||
21642$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21643 X"$0" : 'X\(//\)$' \| \
21644 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021645echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021646 sed '/^.*\/\([^/][^/]*\)\/*$/{
21647 s//\1/
21648 q
21649 }
21650 /^X\/\(\/\/\)$/{
21651 s//\1/
21652 q
21653 }
21654 /^X\/\(\/\).*/{
21655 s//\1/
21656 q
21657 }
21658 s/.*/./; q'`
21659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021660# CDPATH.
21661$as_unset CDPATH
21662
21663
21664
21665 as_lineno_1=$LINENO
21666 as_lineno_2=$LINENO
21667 test "x$as_lineno_1" != "x$as_lineno_2" &&
21668 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21669
21670 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21671 # uniformly replaced by the line number. The first 'sed' inserts a
21672 # line-number line after each line using $LINENO; the second 'sed'
21673 # does the real work. The second script uses 'N' to pair each
21674 # line-number line with the line containing $LINENO, and appends
21675 # trailing '-' during substitution so that $LINENO is not a special
21676 # case at line end.
21677 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21678 # scripts with optimization help from Paolo Bonzini. Blame Lee
21679 # E. McMahon (1931-1989) for sed's syntax. :-)
21680 sed -n '
21681 p
21682 /[$]LINENO/=
21683 ' <$as_myself |
21684 sed '
21685 s/[$]LINENO.*/&-/
21686 t lineno
21687 b
21688 :lineno
21689 N
21690 :loop
21691 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21692 t loop
21693 s/-\n.*//
21694 ' >$as_me.lineno &&
21695 chmod +x "$as_me.lineno" ||
21696 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21697 { (exit 1); exit 1; }; }
21698
21699 # Don't try to exec as it changes $[0], causing all sort of problems
21700 # (the dirname of $[0] is not the place where we might find the
21701 # original and so on. Autoconf is especially sensitive to this).
21702 . "./$as_me.lineno"
21703 # Exit status is that of the last command.
21704 exit
21705}
21706
21707
21708if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21709 as_dirname=dirname
21710else
21711 as_dirname=false
21712fi
Reid Spencera773bd52006-08-04 18:18:08 +000021713
21714ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021715case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021716-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021717 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021718 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021719 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021720 esac;;
21721*)
21722 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021723esac
21724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021725if expr a : '\(a\)' >/dev/null 2>&1 &&
21726 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21727 as_expr=expr
21728else
21729 as_expr=false
21730fi
21731
John Criswell7a73b802003-06-30 21:59:07 +000021732rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021733if test -d conf$$.dir; then
21734 rm -f conf$$.dir/conf$$.file
21735else
21736 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021737 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021738fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021739echo >conf$$.file
21740if ln -s conf$$.file conf$$ 2>/dev/null; then
21741 as_ln_s='ln -s'
21742 # ... but there are two gotchas:
21743 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21744 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21745 # In both cases, we have to default to `cp -p'.
21746 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021747 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021748elif ln conf$$.file conf$$ 2>/dev/null; then
21749 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021750else
21751 as_ln_s='cp -p'
21752fi
Reid Spencera773bd52006-08-04 18:18:08 +000021753rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21754rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021755
John Criswell0c38eaf2003-09-10 15:17:25 +000021756if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021757 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021758else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021759 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021760 as_mkdir_p=false
21761fi
21762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021763# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21764# systems may use methods other than mode bits to determine executability.
21765cat >conf$$.file <<_ASEOF
21766#! /bin/sh
21767exit 0
21768_ASEOF
21769chmod +x conf$$.file
21770if test -x conf$$.file >/dev/null 2>&1; then
21771 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021772else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021773 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021774fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021775rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021776
21777# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021778as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021779
21780# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021781as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021782
21783
John Criswell7a73b802003-06-30 21:59:07 +000021784exec 6>&1
21785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021786# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021787# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021788# values after options handling.
21789ac_log="
Eric Christopherf33ab862011-12-21 00:52:44 +000021790This file was extended by LLVM $as_me 3.1svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021791generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021792
21793 CONFIG_FILES = $CONFIG_FILES
21794 CONFIG_HEADERS = $CONFIG_HEADERS
21795 CONFIG_LINKS = $CONFIG_LINKS
21796 CONFIG_COMMANDS = $CONFIG_COMMANDS
21797 $ $0 $@
21798
Reid Spencera773bd52006-08-04 18:18:08 +000021799on `(hostname || uname -n) 2>/dev/null | sed 1q`
21800"
21801
John Criswell7a73b802003-06-30 21:59:07 +000021802_ACEOF
21803
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021804cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021805# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021806config_files="$ac_config_files"
21807config_headers="$ac_config_headers"
21808config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021809
Reid Spencera773bd52006-08-04 18:18:08 +000021810_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021812cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021813ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021814\`$as_me' instantiates files from templates according to the
21815current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021817Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021818
21819 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021820 -V, --version print version number, then exit
21821 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021822 -d, --debug don't remove temporary files
21823 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021824 --file=FILE[:TEMPLATE]
21825 instantiate the configuration file FILE
21826 --header=FILE[:TEMPLATE]
21827 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021828
21829Configuration files:
21830$config_files
21831
21832Configuration headers:
21833$config_headers
21834
John Criswellc764fbc2003-09-06 15:17:13 +000021835Configuration commands:
21836$config_commands
21837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021838Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021839
Reid Spencera773bd52006-08-04 18:18:08 +000021840_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021841cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021842ac_cs_version="\\
Eric Christopherf33ab862011-12-21 00:52:44 +000021843LLVM config.status 3.1svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021844configured by $0, generated by GNU Autoconf 2.60,
21845 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021847Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021848This config.status script is free software; the Free Software Foundation
21849gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021850
21851ac_pwd='$ac_pwd'
21852srcdir='$srcdir'
21853INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021854_ACEOF
21855
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021856cat >>$CONFIG_STATUS <<\_ACEOF
21857# If no file are specified by the user, then we need to provide default
21858# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021859ac_need_defaults=:
21860while test $# != 0
21861do
21862 case $1 in
21863 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021864 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21865 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021866 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021867 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021868 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021869 ac_option=$1
21870 ac_optarg=$2
21871 ac_shift=shift
21872 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021873 esac
21874
John Criswell0c38eaf2003-09-10 15:17:25 +000021875 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021876 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021877 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21878 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021879 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021880 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021881 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021882 debug=: ;;
21883 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021884 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021885 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021886 ac_need_defaults=false;;
21887 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021888 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021889 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021890 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021891 --he | --h)
21892 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021893 { echo "$as_me: error: ambiguous option: $1
21894Try \`$0 --help' for more information." >&2
21895 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021896 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021897 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21899 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21900 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021901
21902 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021903 -*) { echo "$as_me: error: unrecognized option: $1
21904Try \`$0 --help' for more information." >&2
21905 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021907 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021908 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021909
21910 esac
21911 shift
21912done
21913
John Criswell0c38eaf2003-09-10 15:17:25 +000021914ac_configure_extra_args=
21915
21916if $ac_cs_silent; then
21917 exec 6>/dev/null
21918 ac_configure_extra_args="$ac_configure_extra_args --silent"
21919fi
21920
21921_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021922cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021923if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021924 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21925 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021926 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021927 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021928fi
21929
John Criswell7a73b802003-06-30 21:59:07 +000021930_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021931cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021932exec 5>>config.log
21933{
21934 echo
21935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21936## Running $as_me. ##
21937_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021938 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021939} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021940
Reid Spencera773bd52006-08-04 18:18:08 +000021941_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021942cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021943#
Reid Spencera773bd52006-08-04 18:18:08 +000021944# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021945#
Reid Spencerc0682832005-02-24 19:05:19 +000021946llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021947
21948_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021949
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021950cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021951
21952# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021953for ac_config_target in $ac_config_targets
21954do
Reid Spencera773bd52006-08-04 18:18:08 +000021955 case $ac_config_target in
21956 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021957 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021958 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21959 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021960 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021961 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021962 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021963 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021964 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021965 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021966 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21967 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021968 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021969 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21970 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21971 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21972 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21973 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021974 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021975 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21976 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021977 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021978 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21979 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21980 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021981 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21982 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021984 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21985echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21986 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021987 esac
21988done
21989
Reid Spencera773bd52006-08-04 18:18:08 +000021990
John Criswell7a73b802003-06-30 21:59:07 +000021991# If the user did not use the arguments to specify the items to instantiate,
21992# then the envvar interface is used. Set only those that are not.
21993# We use the long form for the default assignment because of an extremely
21994# bizarre bug on SunOS 4.1.3.
21995if $ac_need_defaults; then
21996 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21997 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021998 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021999fi
22000
John Criswell0c38eaf2003-09-10 15:17:25 +000022001# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000022002# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000022003# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000022004# Hook for its removal unless debugging.
22005# Note that there is a small window in which the directory will not be cleaned:
22006# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000022007$debug ||
22008{
Reid Spencera773bd52006-08-04 18:18:08 +000022009 tmp=
22010 trap 'exit_status=$?
22011 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22012' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022013 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000022014}
John Criswell7a73b802003-06-30 21:59:07 +000022015# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022016
John Criswell7a73b802003-06-30 21:59:07 +000022017{
Reid Spencera773bd52006-08-04 18:18:08 +000022018 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022019 test -n "$tmp" && test -d "$tmp"
22020} ||
22021{
Reid Spencera773bd52006-08-04 18:18:08 +000022022 tmp=./conf$$-$RANDOM
22023 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022024} ||
22025{
22026 echo "$me: cannot create a temporary directory in ." >&2
22027 { (exit 1); exit 1; }
22028}
John Criswell7a73b802003-06-30 21:59:07 +000022029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022030#
22031# Set up the sed scripts for CONFIG_FILES section.
22032#
22033
22034# No need to generate the scripts if there are no CONFIG_FILES.
22035# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000022036if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000022037
22038_ACEOF
22039
Reid Spencera773bd52006-08-04 18:18:08 +000022040
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022041
Reid Spencera773bd52006-08-04 18:18:08 +000022042ac_delim='%!_!# '
22043for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022044 cat >conf$$subs.sed <<_ACEOF
22045SHELL!$SHELL$ac_delim
22046PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22047PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22048PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22049PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22050PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22051PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22052exec_prefix!$exec_prefix$ac_delim
22053prefix!$prefix$ac_delim
22054program_transform_name!$program_transform_name$ac_delim
22055bindir!$bindir$ac_delim
22056sbindir!$sbindir$ac_delim
22057libexecdir!$libexecdir$ac_delim
22058datarootdir!$datarootdir$ac_delim
22059datadir!$datadir$ac_delim
22060sysconfdir!$sysconfdir$ac_delim
22061sharedstatedir!$sharedstatedir$ac_delim
22062localstatedir!$localstatedir$ac_delim
22063includedir!$includedir$ac_delim
22064oldincludedir!$oldincludedir$ac_delim
22065docdir!$docdir$ac_delim
22066infodir!$infodir$ac_delim
22067htmldir!$htmldir$ac_delim
22068dvidir!$dvidir$ac_delim
22069pdfdir!$pdfdir$ac_delim
22070psdir!$psdir$ac_delim
22071libdir!$libdir$ac_delim
22072localedir!$localedir$ac_delim
22073mandir!$mandir$ac_delim
22074DEFS!$DEFS$ac_delim
22075ECHO_C!$ECHO_C$ac_delim
22076ECHO_N!$ECHO_N$ac_delim
22077ECHO_T!$ECHO_T$ac_delim
22078LIBS!$LIBS$ac_delim
22079build_alias!$build_alias$ac_delim
22080host_alias!$host_alias$ac_delim
22081target_alias!$target_alias$ac_delim
22082LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022083CC!$CC$ac_delim
22084CFLAGS!$CFLAGS$ac_delim
22085LDFLAGS!$LDFLAGS$ac_delim
22086CPPFLAGS!$CPPFLAGS$ac_delim
22087ac_ct_CC!$ac_ct_CC$ac_delim
22088EXEEXT!$EXEEXT$ac_delim
22089OBJEXT!$OBJEXT$ac_delim
22090CXX!$CXX$ac_delim
22091CXXFLAGS!$CXXFLAGS$ac_delim
22092ac_ct_CXX!$ac_ct_CXX$ac_delim
22093CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022094subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022095ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22096LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022097build!$build$ac_delim
22098build_cpu!$build_cpu$ac_delim
22099build_vendor!$build_vendor$ac_delim
22100build_os!$build_os$ac_delim
22101host!$host$ac_delim
22102host_cpu!$host_cpu$ac_delim
22103host_vendor!$host_vendor$ac_delim
22104host_os!$host_os$ac_delim
22105target!$target$ac_delim
22106target_cpu!$target_cpu$ac_delim
22107target_vendor!$target_vendor$ac_delim
22108target_os!$target_os$ac_delim
22109OS!$OS$ac_delim
22110HOST_OS!$HOST_OS$ac_delim
22111TARGET_OS!$TARGET_OS$ac_delim
22112LINKALL!$LINKALL$ac_delim
22113NOLINKALL!$NOLINKALL$ac_delim
22114LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22115LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22116ARCH!$ARCH$ac_delim
22117ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022118GREP!$GREP$ac_delim
22119EGREP!$EGREP$ac_delim
22120LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22121BUILD_CC!$BUILD_CC$ac_delim
22122BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22123BUILD_CXX!$BUILD_CXX$ac_delim
22124CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022125ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022126ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22127ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22128DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22129ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22130EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22131DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22132DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22133JIT!$JIT$ac_delim
22134TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022135ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022136ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000022137LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022138ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022139ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022140ENABLE_SHARED!$ENABLE_SHARED$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022141ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022142_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022144 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022145 break
22146 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022147 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22148echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22149 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022150 else
22151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022152 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022153done
22154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022155ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22156if test -n "$ac_eof"; then
22157 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22158 ac_eof=`expr $ac_eof + 1`
22159fi
22160
22161cat >>$CONFIG_STATUS <<_ACEOF
22162cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22163/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022164_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022165sed '
22166s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22167s/^/s,@/; s/!/@,|#_!!_#|/
22168:n
22169t n
22170s/'"$ac_delim"'$/,g/; t
22171s/$/\\/; p
22172N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22173' >>$CONFIG_STATUS <conf$$subs.sed
22174rm -f conf$$subs.sed
22175cat >>$CONFIG_STATUS <<_ACEOF
22176CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022177_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022178
22179
22180ac_delim='%!_!# '
22181for ac_last_try in false false false false false :; do
22182 cat >conf$$subs.sed <<_ACEOF
Eric Christopherbee515f2011-11-11 22:51:42 +000022183ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022184TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22185LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22186LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022187LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022188LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022189ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022190OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022191EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022192EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022193CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022194BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022195INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022196NM!$NM$ac_delim
22197ifGNUmake!$ifGNUmake$ac_delim
22198LN_S!$LN_S$ac_delim
22199CMP!$CMP$ac_delim
22200CP!$CP$ac_delim
22201DATE!$DATE$ac_delim
22202FIND!$FIND$ac_delim
22203MKDIR!$MKDIR$ac_delim
22204MV!$MV$ac_delim
22205RANLIB!$RANLIB$ac_delim
22206AR!$AR$ac_delim
22207RM!$RM$ac_delim
22208SED!$SED$ac_delim
22209TAR!$TAR$ac_delim
22210BINPWD!$BINPWD$ac_delim
22211GRAPHVIZ!$GRAPHVIZ$ac_delim
22212DOT!$DOT$ac_delim
22213FDP!$FDP$ac_delim
22214NEATO!$NEATO$ac_delim
22215TWOPI!$TWOPI$ac_delim
22216CIRCO!$CIRCO$ac_delim
22217GV!$GV$ac_delim
22218DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022219XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022220INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22221INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22222INSTALL_DATA!$INSTALL_DATA$ac_delim
22223BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022224CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022225DOXYGEN!$DOXYGEN$ac_delim
22226GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022227GZIPBIN!$GZIPBIN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022228POD2HTML!$POD2HTML$ac_delim
22229POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022230PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022231RUNTEST!$RUNTEST$ac_delim
22232TCLSH!$TCLSH$ac_delim
22233ZIP!$ZIP$ac_delim
22234OCAMLC!$OCAMLC$ac_delim
22235OCAMLOPT!$OCAMLOPT$ac_delim
22236OCAMLDEP!$OCAMLDEP$ac_delim
22237OCAMLDOC!$OCAMLDOC$ac_delim
22238GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022239HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022240INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22241INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22242CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22243CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22244LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022245NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22246NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022247COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022248USE_UDIS86!$USE_UDIS86$ac_delim
22249USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022250USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22251INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22252INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022253HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22254HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22255MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022256SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022257SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022258LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22259LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22260LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22261LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22262LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22263LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22264LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22265LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22266LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22267LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22268BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22269ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022270OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22271ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22272RPATH!$RPATH$ac_delim
22273RDYNAMIC!$RDYNAMIC$ac_delim
22274LIBOBJS!$LIBOBJS$ac_delim
22275LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022276_ACEOF
22277
Eli Bendersky61b18512012-03-13 08:33:15 +000022278 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022279 break
22280 elif $ac_last_try; then
22281 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22282echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22283 { (exit 1); exit 1; }; }
22284 else
22285 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22286 fi
22287done
22288
22289ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22290if test -n "$ac_eof"; then
22291 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22292 ac_eof=`expr $ac_eof + 1`
22293fi
22294
22295cat >>$CONFIG_STATUS <<_ACEOF
22296cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022297/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22298_ACEOF
22299sed '
22300s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22301s/^/s,@/; s/!/@,|#_!!_#|/
22302:n
22303t n
22304s/'"$ac_delim"'$/,g/; t
22305s/$/\\/; p
22306N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22307' >>$CONFIG_STATUS <conf$$subs.sed
22308rm -f conf$$subs.sed
22309cat >>$CONFIG_STATUS <<_ACEOF
22310:end
22311s/|#_!!_#|//g
22312CEOF$ac_eof
22313_ACEOF
22314
22315
Reid Spencera773bd52006-08-04 18:18:08 +000022316# VPATH may cause trouble with some makes, so we remove $(srcdir),
22317# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22318# trailing colons and then remove the whole line if VPATH becomes empty
22319# (actually we leave an empty line to preserve line numbers).
22320if test "x$srcdir" = x.; then
22321 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22322s/:*\$(srcdir):*/:/
22323s/:*\${srcdir}:*/:/
22324s/:*@srcdir@:*/:/
22325s/^\([^=]*=[ ]*\):*/\1/
22326s/:*$//
22327s/^[^=]*=[ ]*$//
22328}'
22329fi
22330
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022331cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022332fi # test -n "$CONFIG_FILES"
22333
Reid Spencera773bd52006-08-04 18:18:08 +000022334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022335for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022336do
22337 case $ac_tag in
22338 :[FHLC]) ac_mode=$ac_tag; continue;;
22339 esac
22340 case $ac_mode$ac_tag in
22341 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022342 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22343echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22344 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022345 :[FH]-) ac_tag=-:-;;
22346 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22347 esac
22348 ac_save_IFS=$IFS
22349 IFS=:
22350 set x $ac_tag
22351 IFS=$ac_save_IFS
22352 shift
22353 ac_file=$1
22354 shift
22355
22356 case $ac_mode in
22357 :L) ac_source=$1;;
22358 :[FH])
22359 ac_file_inputs=
22360 for ac_f
22361 do
22362 case $ac_f in
22363 -) ac_f="$tmp/stdin";;
22364 *) # Look for the file first in the build tree, then in the source tree
22365 # (if the path is not absolute). The absolute path cannot be DOS-style,
22366 # because $ac_f cannot contain `:'.
22367 test -f "$ac_f" ||
22368 case $ac_f in
22369 [\\/$]*) false;;
22370 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22371 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022372 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22373echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22374 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022375 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022376 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022377 done
22378
22379 # Let's still pretend it is `configure' which instantiates (i.e., don't
22380 # use $as_me), people would be surprised to read:
22381 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022382 configure_input="Generated from "`IFS=:
22383 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022384 if test x"$ac_file" != x-; then
22385 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022386 { echo "$as_me:$LINENO: creating $ac_file" >&5
22387echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022388 fi
22389
22390 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022391 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022392 esac
22393 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022394 esac
22395
Reid Spencera773bd52006-08-04 18:18:08 +000022396 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022397$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022398 X"$ac_file" : 'X\(//\)[^/]' \| \
22399 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022400 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022401echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22403 s//\1/
22404 q
22405 }
22406 /^X\(\/\/\)[^/].*/{
22407 s//\1/
22408 q
22409 }
22410 /^X\(\/\/\)$/{
22411 s//\1/
22412 q
22413 }
22414 /^X\(\/\).*/{
22415 s//\1/
22416 q
22417 }
22418 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022419 { as_dir="$ac_dir"
22420 case $as_dir in #(
22421 -*) as_dir=./$as_dir;;
22422 esac
22423 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22424 as_dirs=
22425 while :; do
22426 case $as_dir in #(
22427 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22428 *) as_qdir=$as_dir;;
22429 esac
22430 as_dirs="'$as_qdir' $as_dirs"
22431 as_dir=`$as_dirname -- "$as_dir" ||
22432$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22433 X"$as_dir" : 'X\(//\)[^/]' \| \
22434 X"$as_dir" : 'X\(//\)$' \| \
22435 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22436echo X"$as_dir" |
22437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22438 s//\1/
22439 q
22440 }
22441 /^X\(\/\/\)[^/].*/{
22442 s//\1/
22443 q
22444 }
22445 /^X\(\/\/\)$/{
22446 s//\1/
22447 q
22448 }
22449 /^X\(\/\).*/{
22450 s//\1/
22451 q
22452 }
22453 s/.*/./; q'`
22454 test -d "$as_dir" && break
22455 done
22456 test -z "$as_dirs" || eval "mkdir $as_dirs"
22457 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22458echo "$as_me: error: cannot create directory $as_dir" >&2;}
22459 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022460 ac_builddir=.
22461
Reid Spencera773bd52006-08-04 18:18:08 +000022462case "$ac_dir" in
22463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22464*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022465 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022466 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022467 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022468 case $ac_top_builddir_sub in
22469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22471 esac ;;
22472esac
22473ac_abs_top_builddir=$ac_pwd
22474ac_abs_builddir=$ac_pwd$ac_dir_suffix
22475# for backward compatibility:
22476ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022477
22478case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022479 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022480 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022481 ac_top_srcdir=$ac_top_builddir_sub
22482 ac_abs_top_srcdir=$ac_pwd ;;
22483 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022484 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022485 ac_top_srcdir=$srcdir
22486 ac_abs_top_srcdir=$srcdir ;;
22487 *) # Relative name.
22488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22489 ac_top_srcdir=$ac_top_build_prefix$srcdir
22490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022491esac
Reid Spencera773bd52006-08-04 18:18:08 +000022492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022493
John Criswell7a73b802003-06-30 21:59:07 +000022494
Reid Spencera773bd52006-08-04 18:18:08 +000022495 case $ac_mode in
22496 :F)
22497 #
22498 # CONFIG_FILE
22499 #
John Criswell7a73b802003-06-30 21:59:07 +000022500
22501 case $INSTALL in
22502 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022503 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022504 esac
John Criswell7a73b802003-06-30 21:59:07 +000022505_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022507cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022508# If the template does not know about datarootdir, expand it.
22509# FIXME: This hack should be removed a few years after 2.60.
22510ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022511
22512case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022513 p
22514 q
22515}
22516/@datadir@/p
22517/@docdir@/p
22518/@infodir@/p
22519/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022520/@mandir@/p
22521' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022522*datarootdir*) ac_datarootdir_seen=yes;;
22523*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022524 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22525echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022526_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022527cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022528 ac_datarootdir_hack='
22529 s&@datadir@&$datadir&g
22530 s&@docdir@&$docdir&g
22531 s&@infodir@&$infodir&g
22532 s&@localedir@&$localedir&g
22533 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022534 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022535esac
22536_ACEOF
22537
22538# Neutralize VPATH when `$srcdir' = `.'.
22539# Shell code in configure.ac might set extrasub.
22540# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022541cat >>$CONFIG_STATUS <<_ACEOF
22542 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022543$extrasub
22544_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022545cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022546:t
22547/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022548s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022549s&@top_builddir@&$ac_top_builddir_sub&;t t
22550s&@srcdir@&$ac_srcdir&;t t
22551s&@abs_srcdir@&$ac_abs_srcdir&;t t
22552s&@top_srcdir@&$ac_top_srcdir&;t t
22553s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22554s&@builddir@&$ac_builddir&;t t
22555s&@abs_builddir@&$ac_abs_builddir&;t t
22556s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22557s&@INSTALL@&$ac_INSTALL&;t t
22558$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022559" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022560
Reid Spencera773bd52006-08-04 18:18:08 +000022561test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22562 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22563 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022564 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022565which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022566echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022567which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022568
Reid Spencera773bd52006-08-04 18:18:08 +000022569 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022570 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022571 -) cat "$tmp/out"; rm -f "$tmp/out";;
22572 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22573 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022574 ;;
22575 :H)
22576 #
22577 # CONFIG_HEADER
22578 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022579_ACEOF
22580
22581# Transform confdefs.h into a sed script `conftest.defines', that
22582# substitutes the proper values into config.h.in to produce config.h.
22583rm -f conftest.defines conftest.tail
22584# First, append a space to every undef/define line, to ease matching.
22585echo 's/$/ /' >conftest.defines
22586# Then, protect against being on the right side of a sed subst, or in
22587# an unquoted here document, in config.status. If some macros were
22588# called several times there might be several #defines for the same
22589# symbol, which is useless. But do not sort them, since the last
22590# AC_DEFINE must be honored.
22591ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22592# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22593# NAME is the cpp macro being defined, VALUE is the value it is being given.
22594# PARAMS is the parameter list in the macro definition--in most cases, it's
22595# just an empty string.
22596ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22597ac_dB='\\)[ (].*,\\1define\\2'
22598ac_dC=' '
22599ac_dD=' ,'
22600
22601uniq confdefs.h |
22602 sed -n '
22603 t rset
22604 :rset
22605 s/^[ ]*#[ ]*define[ ][ ]*//
22606 t ok
22607 d
22608 :ok
22609 s/[\\&,]/\\&/g
22610 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22611 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22612 ' >>conftest.defines
22613
22614# Remove the space that was appended to ease matching.
22615# Then replace #undef with comments. This is necessary, for
22616# example, in the case of _POSIX_SOURCE, which is predefined and required
22617# on some systems where configure will not decide to define it.
22618# (The regexp can be short, since the line contains either #define or #undef.)
22619echo 's/ $//
22620s,^[ #]*u.*,/* & */,' >>conftest.defines
22621
22622# Break up conftest.defines:
22623ac_max_sed_lines=50
22624
22625# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22626# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22627# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22628# et cetera.
22629ac_in='$ac_file_inputs'
22630ac_out='"$tmp/out1"'
22631ac_nxt='"$tmp/out2"'
22632
22633while :
22634do
22635 # Write a here document:
22636 cat >>$CONFIG_STATUS <<_ACEOF
22637 # First, check the format of the line:
22638 cat >"\$tmp/defines.sed" <<\\CEOF
22639/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22640/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22641b
22642:def
22643_ACEOF
22644 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22645 echo 'CEOF
22646 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22647 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22648 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22649 grep . conftest.tail >/dev/null || break
22650 rm -f conftest.defines
22651 mv conftest.tail conftest.defines
22652done
22653rm -f conftest.defines conftest.tail
22654
22655echo "ac_result=$ac_in" >>$CONFIG_STATUS
22656cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022657 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022658 echo "/* $configure_input */" >"$tmp/config.h"
22659 cat "$ac_result" >>"$tmp/config.h"
22660 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22661 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22662echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022663 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022664 rm -f $ac_file
22665 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022666 fi
22667 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022668 echo "/* $configure_input */"
22669 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022670 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022671 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022672 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022674 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22675echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022676 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022677 esac
John Criswell7a73b802003-06-30 21:59:07 +000022678
Reid Spencera773bd52006-08-04 18:18:08 +000022679
22680 case $ac_file$ac_mode in
22681 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022682 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022683 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022684 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022685 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022686 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022687 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022688 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022689 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022690 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022691 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022692 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022693 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022694 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022695 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022696 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022697 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022698 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022699 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022700 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022701 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022702 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022703 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022704 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022705 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022706 ${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 +000022707
22708 esac
22709done # for ac_tag
22710
John Criswell7a73b802003-06-30 21:59:07 +000022711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022712{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022713_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022714chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022715ac_clean_files=$ac_clean_files_save
22716
22717
22718# configure is writing to config.log, and then calls config.status.
22719# config.status does its own redirection, appending to config.log.
22720# Unfortunately, on DOS this fails, as config.log is still kept open
22721# by configure, so config.status won't be able to write to it; its
22722# output is simply discarded. So we exec the FD to /dev/null,
22723# effectively closing config.log, so it can be properly (re)opened and
22724# appended to by config.status. When coming back to configure, we
22725# need to make the FD available again.
22726if test "$no_create" != yes; then
22727 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022728 ac_config_status_args=
22729 test "$silent" = yes &&
22730 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022731 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022732 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022733 exec 5>>config.log
22734 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22735 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022736 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022737fi
22738
John Criswell12399a12003-09-30 15:55:44 +000022739#
22740# CONFIG_SUBDIRS section.
22741#
22742if test "$no_recursion" != yes; then
22743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022744 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022745 ac_sub_configure_args=
22746 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022747 eval "set x $ac_configure_args"
22748 shift
22749 for ac_arg
22750 do
John Criswell12399a12003-09-30 15:55:44 +000022751 if test -n "$ac_prev"; then
22752 ac_prev=
22753 continue
22754 fi
22755 case $ac_arg in
22756 -cache-file | --cache-file | --cache-fil | --cache-fi \
22757 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22758 ac_prev=cache_file ;;
22759 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22760 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22761 | --c=*)
22762 ;;
22763 --config-cache | -C)
22764 ;;
22765 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22766 ac_prev=srcdir ;;
22767 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22768 ;;
22769 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22770 ac_prev=prefix ;;
22771 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22772 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022773 *)
22774 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022775 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022776 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022777 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022778 esac
22779 done
22780
22781 # Always prepend --prefix to ensure using the same prefix
22782 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022783 ac_arg="--prefix=$prefix"
22784 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022785 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022786 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022787 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022788
22789 ac_popdir=`pwd`
22790 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22791
22792 # Do not complain, so a configure script can configure whichever
22793 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022794 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022795
Reid Spencera773bd52006-08-04 18:18:08 +000022796 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022797 echo "$as_me:$LINENO: $ac_msg" >&5
22798 echo "$ac_msg" >&6
22799 { as_dir="$ac_dir"
22800 case $as_dir in #(
22801 -*) as_dir=./$as_dir;;
22802 esac
22803 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22804 as_dirs=
22805 while :; do
22806 case $as_dir in #(
22807 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22808 *) as_qdir=$as_dir;;
22809 esac
22810 as_dirs="'$as_qdir' $as_dirs"
22811 as_dir=`$as_dirname -- "$as_dir" ||
22812$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22813 X"$as_dir" : 'X\(//\)[^/]' \| \
22814 X"$as_dir" : 'X\(//\)$' \| \
22815 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22816echo X"$as_dir" |
22817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22818 s//\1/
22819 q
22820 }
22821 /^X\(\/\/\)[^/].*/{
22822 s//\1/
22823 q
22824 }
22825 /^X\(\/\/\)$/{
22826 s//\1/
22827 q
22828 }
22829 /^X\(\/\).*/{
22830 s//\1/
22831 q
22832 }
22833 s/.*/./; q'`
22834 test -d "$as_dir" && break
22835 done
22836 test -z "$as_dirs" || eval "mkdir $as_dirs"
22837 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22838echo "$as_me: error: cannot create directory $as_dir" >&2;}
22839 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022840 ac_builddir=.
22841
Reid Spencera773bd52006-08-04 18:18:08 +000022842case "$ac_dir" in
22843.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22844*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022845 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022846 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022847 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022848 case $ac_top_builddir_sub in
22849 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22850 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22851 esac ;;
22852esac
22853ac_abs_top_builddir=$ac_pwd
22854ac_abs_builddir=$ac_pwd$ac_dir_suffix
22855# for backward compatibility:
22856ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022857
22858case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022859 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022860 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022861 ac_top_srcdir=$ac_top_builddir_sub
22862 ac_abs_top_srcdir=$ac_pwd ;;
22863 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022864 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022865 ac_top_srcdir=$srcdir
22866 ac_abs_top_srcdir=$srcdir ;;
22867 *) # Relative name.
22868 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22869 ac_top_srcdir=$ac_top_build_prefix$srcdir
22870 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022871esac
Reid Spencera773bd52006-08-04 18:18:08 +000022872ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022873
22874
Reid Spencera773bd52006-08-04 18:18:08 +000022875 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022876
22877 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022878 if test -f "$ac_srcdir/configure.gnu"; then
22879 ac_sub_configure=$ac_srcdir/configure.gnu
22880 elif test -f "$ac_srcdir/configure"; then
22881 ac_sub_configure=$ac_srcdir/configure
22882 elif test -f "$ac_srcdir/configure.in"; then
22883 # This should be Cygnus configure.
22884 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022885 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022886 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22887echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022888 ac_sub_configure=
22889 fi
22890
22891 # The recursion is here.
22892 if test -n "$ac_sub_configure"; then
22893 # Make the cache file name correct relative to the subdirectory.
22894 case $cache_file in
22895 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022896 *) # Relative name.
22897 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022898 esac
22899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022900 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22901echo "$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 +000022902 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022903 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22904 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022905 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22906echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22907 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022908 fi
22909
Reid Spencera773bd52006-08-04 18:18:08 +000022910 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022911 done
22912fi
22913