blob: b3d37fd90556cbc5e8428d919fecc18f27f95bde [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
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'
Benjamin Kramerb85b2d52012-04-20 18:15:07 +0000564PACKAGE_VERSION='3.2svn'
565PACKAGE_STRING='LLVM 3.2svn'
Eric Christopherf33ab862011-12-21 00:52:44 +0000566PACKAGE_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
Danil Malyshevbb8cef52012-05-17 21:07:47 +0000677HOST_ARCH
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000678ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
Eric Christopherbee515f2011-11-11 22:51:42 +0000686ENABLE_LIBCPP
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000687ENABLE_OPTIMIZED
688ENABLE_PROFILING
689DISABLE_ASSERTIONS
690ENABLE_EXPENSIVE_CHECKS
691EXPENSIVE_CHECKS
692DEBUG_RUNTIME
693DEBUG_SYMBOLS
694JIT
695TARGET_HAS_JIT
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +0000696ENABLE_DOCS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000697ENABLE_DOXYGEN
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +0000698LLVM_ENABLE_THREADS
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +0000699ENABLE_PTHREADS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000700ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000701ENABLE_SHARED
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +0000702ENABLE_EMBED_STDCXX
Daniel Dunbardd464df2010-05-10 20:11:56 +0000703ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000704TARGETS_TO_BUILD
705LLVM_ENUM_TARGETS
706LLVM_ENUM_ASM_PRINTERS
707LLVM_ENUM_ASM_PARSERS
708LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000709OPTIMIZE_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
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000745GROFF
Eric Christopher031d3072010-12-10 01:31:51 +0000746GZIPBIN
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000747PDFROFF
748RUNTEST
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000749TCLSH
750ZIP
751OCAMLC
752OCAMLOPT
753OCAMLDEP
754OCAMLDOC
Daniel Dunbarf468fd82012-05-08 18:26:07 +0000755GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000756HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000757INSTALL_LTDL_TRUE
758INSTALL_LTDL_FALSE
759CONVENIENCE_LTDL_TRUE
760CONVENIENCE_LTDL_FALSE
761LIBADD_DL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000762NO_VARIADIC_MACROS
763NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000764COVERED_SWITCH_DEFAULT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000765USE_UDIS86
766USE_OPROFILE
Eli Bendersky61b18512012-03-13 08:33:15 +0000767USE_INTEL_JITEVENTS
768INTEL_JITEVENTS_INCDIR
769INTEL_JITEVENTS_LIBDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000770HAVE_PTHREAD
771HUGE_VAL_SANITY
772MMAP_FILE
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000773SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000774SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775LLVM_PREFIX
776LLVM_BINDIR
777LLVM_LIBDIR
778LLVM_DATADIR
779LLVM_DOCSDIR
780LLVM_ETCDIR
781LLVM_INCLUDEDIR
782LLVM_INFODIR
783LLVM_MANDIR
784LLVM_CONFIGTIME
785BINDINGS_TO_BUILD
786ALL_BINDINGS
787OCAML_LIBDIR
788ENABLE_VISIBILITY_INLINES_HIDDEN
789RPATH
790RDYNAMIC
791LIBOBJS
792LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000793ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800CPPFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +0000801CXX
802CXXFLAGS
Eric Christopherffee5722011-09-16 20:36:25 +0000803CCC
804CPP'
John Criswell0157f502010-03-19 21:31:39 +0000805ac_subdirs_all='projects/llvm-gcc
806projects/test-suite
807projects/llvm-test
808projects/poolalloc
809projects/llvm-poolalloc
810projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000811projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000812projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/llvm-java
815projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000816projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000817projects/llvm-kernel
818tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000819
820# Initialize some variables set by options.
821ac_init_help=
822ac_init_version=false
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000845# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000854includedir='${prefix}/include'
855oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000865
866ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000867ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000868for ac_option
869do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000872 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000873 ac_prev=
874 continue
875 fi
876
Reid Spencera773bd52006-08-04 18:18:08 +0000877 case $ac_option in
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *) ac_optarg=yes ;;
880 esac
John Criswell7a73b802003-06-30 21:59:07 +0000881
882 # Accept the important Cygnus configure options, so we can diagnose typos.
883
Reid Spencera773bd52006-08-04 18:18:08 +0000884 case $ac_dashdash$ac_option in
885 --)
886 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000887
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
892
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
897
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
904
905 --config-cache | -C)
906 cache_file=config.cache ;;
907
Reid Spencera773bd52006-08-04 18:18:08 +0000908 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000909 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000911 datadir=$ac_optarg ;;
912
Reid Spencera773bd52006-08-04 18:18:08 +0000913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
919
John Criswell7a73b802003-06-30 21:59:07 +0000920 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000921 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000922 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000923 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000938
939 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000940 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000941 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000942 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944 { (exit 1); exit 1; }; }
945 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
Reid Spencera773bd52006-08-04 18:18:08 +0000973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
John Criswell7a73b802003-06-30 21:59:07 +0000979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
Reid Spencera773bd52006-08-04 18:18:08 +00001003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
John Criswell7a73b802003-06-30 21:59:07 +00001008 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001009 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
Reid Spencera773bd52006-08-04 18:18:08 +00001077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
John Criswell7a73b802003-06-30 21:59:07 +00001087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1135
1136 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001137 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001138 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package| sed 's/-/_/g'`
1143 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001144
1145 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001147 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid package name: $ac_package" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_package=`echo $ac_package | sed 's/-/_/g'`
1152 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001172 -*) { echo "$as_me: error: unrecognized option: $ac_option
1173Try \`$0 --help' for more information." >&2
1174 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001175 ;;
1176
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001180 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001183 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001188 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001190 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 ;;
1193
1194 esac
1195done
1196
1197if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001199 { echo "$as_me: error: missing argument to $ac_option" >&2
1200 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001201fi
1202
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001203# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001208do
Reid Spencera773bd52006-08-04 18:18:08 +00001209 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001210 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001213 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001214 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001216done
1217
1218# There might be people who depend on the old broken behavior: `$host'
1219# used to hold the argument of --host etc.
1220# FIXME: To remove some day.
1221build=$build_alias
1222host=$host_alias
1223target=$target_alias
1224
1225# FIXME: To remove some day.
1226if test "x$host_alias" != x; then
1227 if test "x$build_alias" = x; then
1228 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001229 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001230 If a cross compiler is detected then cross compile mode will be used." >&2
1231 elif test "x$build_alias" != "x$host_alias"; then
1232 cross_compiling=yes
1233 fi
1234fi
1235
1236ac_tool_prefix=
1237test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239test "$silent" = yes && exec 6>/dev/null
1240
1241
Reid Spencera773bd52006-08-04 18:18:08 +00001242ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243ac_ls_di=`ls -di .` &&
1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001245 { echo "$as_me: error: Working directory cannot be determined" >&2
1246 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001247test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001248 { echo "$as_me: error: pwd does not report name of working directory" >&2
1249 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001250
1251
John Criswell7a73b802003-06-30 21:59:07 +00001252# Find the source files, if location was not specified.
1253if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001255 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001256 ac_confdir=`$as_dirname -- "$0" ||
1257$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$0" : 'X\(//\)[^/]' \| \
1259 X"$0" : 'X\(//\)$' \| \
1260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001279 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001280 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001281 srcdir=..
1282 fi
1283else
1284 ac_srcdir_defaulted=no
1285fi
Reid Spencera773bd52006-08-04 18:18:08 +00001286if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001288 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001290fi
Reid Spencera773bd52006-08-04 18:18:08 +00001291ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001293 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001295 pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
John Criswell7a73b802003-06-30 21:59:07 +00001312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001320\`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
John Criswell7a73b802003-06-30 21:59:07 +00001340Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001342 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001344 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherf33ab862011-12-21 00:52:44 +00001368 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001373_ACEOF
1374
1375 cat <<\_ACEOF
1376
1377System types:
1378 --build=BUILD configure for building on BUILD [guessed]
1379 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1380 --target=TARGET configure for building compilers for TARGET [HOST]
1381_ACEOF
1382fi
1383
1384if test -n "$ac_init_help"; then
1385 case $ac_init_help in
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001386 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001387 esac
1388 cat <<\_ACEOF
1389
1390Optional Features:
1391 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1392 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001393 --enable-polly Use polly if available (default is YES)
Eric Christopherbee515f2011-11-11 22:51:42 +00001394 --enable-libcpp Use libc++ if available (default is NO)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1398 YES)
David Greenea696d242007-06-28 19:36:08 +00001399 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001400 Compile with expensive debug checks enabled (default
1401 is NO)
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001406 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00001407 --enable-docs Build documents (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001408 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001409 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00001410 --enable-pthreads Use pthreads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001411 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001412 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001413 --enable-shared Build a shared library and link tools against it
1414 (default is NO)
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00001415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00001416 Win32 DLL (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001417 --enable-timestamps Enable embedding timestamp information in build
1418 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
Eric Christopherf33ab862011-12-21 00:52:44 +00001421 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
Justin Holewinski49683f32012-05-04 20:18:50 +00001422 xcore, msp430, ptx, nvptx, and cpp (default=all)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001425 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001426 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001427
1428Optional Packages:
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001431 --with-optimize-option Select the compiler options to use for optimized
1432 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001433 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbared344d22011-06-16 22:30:41 +00001434 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001435 --with-ocaml-libdir Specify install location for ocaml bindings (default
1436 is stdlib)
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00001437 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruth6b241162010-10-19 08:21:25 +00001438 --with-clang-resource-dir
1439 Relative directory from the Clang binary for
1440 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001441 --with-c-include-dirs Colon separated list of directories clang will
1442 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001443 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop7e5c3162012-04-16 04:11:45 +00001444 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001445 --with-binutils-include Specify path to binutils/include/ containing
1446 plugin-api.h file for gold plugin.
Eric Christopher91e7ccd2011-07-20 17:04:49 +00001447 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00001448 submitted (default=http://llvm.org/bugs/)
Bob Wilsonae7e2a42011-11-28 07:59:52 +00001449 --with-internal-prefix Installation directory for internal files
Reid Spencer0fcb9412004-11-30 08:11:54 +00001450 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001451 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001452 --with-oprofile=<prefix>
1453 Tell OProfile >= 0.9.4 how to symbolize JIT output
Eli Bendersky61b18512012-03-13 08:33:15 +00001454 --with-intel-jitevents=<vtune-amplifier-dir>
1455 Specify location of run-time support library for
1456 Intel JIT API
1457 (default=/opt/intel/vtune_amplifier_xe_2011)
John Criswell7a73b802003-06-30 21:59:07 +00001458
1459Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001460 CC C compiler command
1461 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001465 you have headers in a nonstandard directory <include dir>
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001466 CXX C++ compiler command
1467 CXXFLAGS C++ compiler flags
Eric Christopherffee5722011-09-16 20:36:25 +00001468 CPP C preprocessor
John Criswell7a73b802003-06-30 21:59:07 +00001469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
Eric Christopherf33ab862011-12-21 00:52:44 +00001473Report bugs to <http://llvm.org/bugs/>.
John Criswell7a73b802003-06-30 21:59:07 +00001474_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001475ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001481 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001482 ac_builddir=.
1483
Reid Spencera773bd52006-08-04 18:18:08 +00001484case "$ac_dir" in
1485.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001488 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494esac
1495ac_abs_top_builddir=$ac_pwd
1496ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497# for backward compatibility:
1498ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001499
1500case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001501 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001502 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001506 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001513esac
Reid Spencera773bd52006-08-04 18:18:08 +00001514ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001515
Reid Spencera773bd52006-08-04 18:18:08 +00001516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001524 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001525 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001526 fi || ac_status=$?
1527 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001528 done
1529fi
1530
Reid Spencera773bd52006-08-04 18:18:08 +00001531test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001532if $ac_init_version; then
1533 cat <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001534LLVM configure 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001535generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001536
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15382002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001539This configure script is free software; the Free Software Foundation
1540gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001541
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001542Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001543_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001544 exit
John Criswell7a73b802003-06-30 21:59:07 +00001545fi
Reid Spencera773bd52006-08-04 18:18:08 +00001546cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001547This file contains any messages produced by compilers while
1548running configure, to aid debugging if configure makes a mistake.
1549
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001550It was created by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001551generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001552
1553 $ $0 $@
1554
1555_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001556exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001557{
1558cat <<_ASUNAME
1559## --------- ##
1560## Platform. ##
1561## --------- ##
1562
1563hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568
1569/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1571
1572/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1573/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1574/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001575/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001576/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1577/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1578/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1579
1580_ASUNAME
1581
1582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583for as_dir in $PATH
1584do
1585 IFS=$as_save_IFS
1586 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001587 echo "PATH: $as_dir"
1588done
Reid Spencera773bd52006-08-04 18:18:08 +00001589IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001590
1591} >&5
1592
1593cat >&5 <<_ACEOF
1594
1595
1596## ----------- ##
1597## Core tests. ##
1598## ----------- ##
1599
1600_ACEOF
1601
1602
1603# Keep a trace of the command line.
1604# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001605# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001606# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001607# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001608ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001609ac_configure_args0=
1610ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001611ac_must_keep_next=false
1612for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001613do
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 for ac_arg
1615 do
1616 case $ac_arg in
1617 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619 | -silent | --silent | --silen | --sile | --sil)
1620 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001621 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001622 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 esac
1624 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001625 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001629 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001631 case $ac_arg in
1632 *=* | --config-cache | -C | -disable-* | --disable-* \
1633 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635 | -with-* | --with-* | -without-* | --without-* | --x)
1636 case "$ac_configure_args0 " in
1637 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638 esac
1639 ;;
1640 -* ) ac_must_keep_next=true ;;
1641 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001642 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001643 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 ;;
1645 esac
1646 done
John Criswell7a73b802003-06-30 21:59:07 +00001647done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001648$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001650
1651# When interrupted or exit'd, cleanup temporary files, and complete
1652# config.log. We remove comments because anyway the quotes in there
1653# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001654# WARNING: Use '\'' to represent an apostrophe within the trap.
1655# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001656trap 'exit_status=$?
1657 # Save into config.log some information that might help in debugging.
1658 {
1659 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001660
John Criswell7a73b802003-06-30 21:59:07 +00001661 cat <<\_ASBOX
1662## ---------------- ##
1663## Cache variables. ##
1664## ---------------- ##
1665_ASBOX
1666 echo
1667 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001668(
1669 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670 eval ac_val=\$$ac_var
1671 case $ac_val in #(
1672 *${as_nl}*)
1673 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001674 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001676 esac
1677 case $ac_var in #(
1678 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001679 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001680 esac ;;
1681 esac
1682 done
John Criswell7a73b802003-06-30 21:59:07 +00001683 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001684 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001686 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001687 "s/'\''/'\''\\\\'\'''\''/g;
1688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001690 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001692 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001693 esac |
1694 sort
1695)
John Criswell7a73b802003-06-30 21:59:07 +00001696 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001697
1698 cat <<\_ASBOX
1699## ----------------- ##
1700## Output variables. ##
1701## ----------------- ##
1702_ASBOX
1703 echo
1704 for ac_var in $ac_subst_vars
1705 do
Reid Spencera773bd52006-08-04 18:18:08 +00001706 eval ac_val=\$$ac_var
1707 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001708 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001709 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001710 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001711 done | sort
1712 echo
1713
1714 if test -n "$ac_subst_files"; then
1715 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001716## ------------------- ##
1717## File substitutions. ##
1718## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001719_ASBOX
1720 echo
1721 for ac_var in $ac_subst_files
1722 do
Reid Spencera773bd52006-08-04 18:18:08 +00001723 eval ac_val=\$$ac_var
1724 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001726 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 done | sort
1729 echo
1730 fi
1731
John Criswell7a73b802003-06-30 21:59:07 +00001732 if test -s confdefs.h; then
1733 cat <<\_ASBOX
1734## ----------- ##
1735## confdefs.h. ##
1736## ----------- ##
1737_ASBOX
1738 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001739 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001740 echo
1741 fi
1742 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001743 echo "$as_me: caught signal $ac_signal"
1744 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001745 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001746 rm -f core *.core core.conftest.* &&
1747 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001748 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001749' 0
John Criswell7a73b802003-06-30 21:59:07 +00001750for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001751 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001752done
1753ac_signal=0
1754
1755# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001756rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001757
1758# Predefined preprocessor variables.
1759
1760cat >>confdefs.h <<_ACEOF
1761#define PACKAGE_NAME "$PACKAGE_NAME"
1762_ACEOF
1763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001764
John Criswell7a73b802003-06-30 21:59:07 +00001765cat >>confdefs.h <<_ACEOF
1766#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767_ACEOF
1768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001769
John Criswell7a73b802003-06-30 21:59:07 +00001770cat >>confdefs.h <<_ACEOF
1771#define PACKAGE_VERSION "$PACKAGE_VERSION"
1772_ACEOF
1773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001774
John Criswell7a73b802003-06-30 21:59:07 +00001775cat >>confdefs.h <<_ACEOF
1776#define PACKAGE_STRING "$PACKAGE_STRING"
1777_ACEOF
1778
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001779
John Criswell7a73b802003-06-30 21:59:07 +00001780cat >>confdefs.h <<_ACEOF
1781#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782_ACEOF
1783
1784
1785# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001786# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001787if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001789elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001791else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$ac_default_prefix/share/config.site" \
1793 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001794fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001795shift
1796for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001797do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798 if test -r "$ac_site_file"; then
1799 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001801 sed 's/^/| /' "$ac_site_file" >&5
1802 . "$ac_site_file"
1803 fi
1804done
1805
1806if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001807 # Some versions of bash will fail to source /dev/null (special
1808 # files actually), so we avoid doing that.
1809 if test -f "$cache_file"; then
1810 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001812 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001813 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001815 esac
1816 fi
1817else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001818 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001820 >$cache_file
1821fi
1822
1823# Check that the precious variables saved in the cache have kept the same
1824# value.
1825ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001826for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001827 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001829 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001831 case $ac_old_set,$ac_new_set in
1832 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001833 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001835 ac_cache_corrupted=: ;;
1836 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001837 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001839 ac_cache_corrupted=: ;;
1840 ,);;
1841 *)
1842 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001843 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1846echo "$as_me: former value: $ac_old_val" >&2;}
1847 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1848echo "$as_me: current value: $ac_new_val" >&2;}
1849 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001850 fi;;
1851 esac
1852 # Pass precious variables to config.status.
1853 if test "$ac_new_set" = set; then
1854 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001855 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001856 *) ac_arg=$ac_var=$ac_new_val ;;
1857 esac
1858 case " $ac_configure_args " in
1859 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001860 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001861 esac
1862 fi
1863done
1864if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001865 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001870fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
Reid Spencera773bd52006-08-04 18:18:08 +00001895
John Criswell7a73b802003-06-30 21:59:07 +00001896ac_ext=c
1897ac_cpp='$CPP $CPPFLAGS'
1898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901
1902
1903
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001904cat >>confdefs.h <<\_ACEOF
1905#define LLVM_VERSION_MAJOR 3
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<\_ACEOF
Benjamin Kramerb85b2d52012-04-20 18:15:07 +00001910#define LLVM_VERSION_MINOR 2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00001911_ACEOF
1912
1913
NAKAMURA Takumi45ba1652012-01-01 08:16:56 +00001914LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001915
1916
1917
1918
1919
1920
1921
John Criswell7a73b802003-06-30 21:59:07 +00001922ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001923for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001924 if test -f "$ac_dir/install-sh"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/install-sh -c"
1927 break
1928 elif test -f "$ac_dir/install.sh"; then
1929 ac_aux_dir=$ac_dir
1930 ac_install_sh="$ac_aux_dir/install.sh -c"
1931 break
1932 elif test -f "$ac_dir/shtool"; then
1933 ac_aux_dir=$ac_dir
1934 ac_install_sh="$ac_aux_dir/shtool install -c"
1935 break
1936 fi
John Criswell7a73b802003-06-30 21:59:07 +00001937done
1938if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001939 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1940echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1941 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001942fi
Reid Spencera773bd52006-08-04 18:18:08 +00001943
1944# These three variables are undocumented and unsupported,
1945# and are intended to be withdrawn in a future Autoconf release.
1946# They can cause serious problems if a builder's source tree is in a directory
1947# whose full name contains unusual characters.
1948ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1949ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1950ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1951
John Criswell7a73b802003-06-30 21:59:07 +00001952
John Criswell392aaa32003-07-22 19:18:09 +00001953
Reid Spencer2706f8c2004-09-19 23:53:36 +00001954if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001955 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001956 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1957echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1958 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001959 fi
John Criswell93e1c722003-09-15 17:04:06 +00001960fi
1961
Nick Lewycky83fc4472009-09-29 05:48:51 +00001962ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001963ac_cpp='$CPP $CPPFLAGS'
1964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001967if test -n "$ac_tool_prefix"; then
Eric Christopherffee5722011-09-16 20:36:25 +00001968 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00001969 do
1970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001976else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001979else
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 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 +00001987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001989 break 2
1990 fi
1991done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001992done
Reid Spencera773bd52006-08-04 18:18:08 +00001993IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001994
1995fi
1996fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001997CC=$ac_cv_prog_CC
1998if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001999 { echo "$as_me:$LINENO: result: $CC" >&5
2000echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002001else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002002 { echo "$as_me:$LINENO: result: no" >&5
2003echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002004fi
2005
Reid Spencera773bd52006-08-04 18:18:08 +00002006
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002007 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002008 done
2009fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002010if test -z "$CC"; then
2011 ac_ct_CC=$CC
Eric Christopherffee5722011-09-16 20:36:25 +00002012 for ac_prog in clang llvm-gcc gcc
John Criswell7a73b802003-06-30 21:59:07 +00002013do
2014 # Extract the first word of "$ac_prog", so it can be a program name with args.
2015set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002016{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002020else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002021 if test -n "$ac_ct_CC"; then
2022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002023else
2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025for as_dir in $PATH
2026do
2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 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 +00002031 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002033 break 2
2034 fi
2035done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002036done
Reid Spencera773bd52006-08-04 18:18:08 +00002037IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002038
2039fi
2040fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002041ac_ct_CC=$ac_cv_prog_ac_ct_CC
2042if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2044echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002045else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002046 { echo "$as_me:$LINENO: result: no" >&5
2047echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002048fi
2049
Reid Spencera773bd52006-08-04 18:18:08 +00002050
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002051 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002052done
John Criswell7a73b802003-06-30 21:59:07 +00002053
Reid Spencera773bd52006-08-04 18:18:08 +00002054 if test "x$ac_ct_CC" = x; then
2055 CC=""
2056 else
2057 case $cross_compiling:$ac_tool_warned in
2058yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002059{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2060whose name does not start with the host triplet. If you think this
2061configuration is useful to you, please write to autoconf@gnu.org." >&5
2062echo "$as_me: 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." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002065ac_tool_warned=yes ;;
2066esac
2067 CC=$ac_ct_CC
2068 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069fi
2070
John Criswell7a73b802003-06-30 21:59:07 +00002071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002072test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: no acceptable C compiler found in \$PATH
2075See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002077
John Criswell7a73b802003-06-30 21:59:07 +00002078# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002079echo "$as_me:$LINENO: checking for C compiler version" >&5
2080ac_compiler=`set X $ac_compile; echo $2`
2081{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002082case "(($ac_try" in
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2085esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2087 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002088 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }
2091{ (ac_try="$ac_compiler -v >&5"
2092case "(($ac_try" in
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2095esac
2096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097 (eval "$ac_compiler -v >&5") 2>&5
2098 ac_status=$?
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
2101{ (ac_try="$ac_compiler -V >&5"
2102case "(($ac_try" in
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2105esac
2106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2107 (eval "$ac_compiler -V >&5") 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002112cat >conftest.$ac_ext <<_ACEOF
2113/* confdefs.h. */
2114_ACEOF
2115cat confdefs.h >>conftest.$ac_ext
2116cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002117/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002118
John Criswell7a73b802003-06-30 21:59:07 +00002119int
2120main ()
2121{
2122
2123 ;
2124 return 0;
2125}
2126_ACEOF
2127ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002128ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002129# Try to create an executable without -o first, disregard a.out.
2130# It will help us diagnose broken compilers, and finding out an intuition
2131# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002132{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2133echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2134ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2135#
2136# List of possible output files, starting from the most likely.
2137# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2138# only as a last resort. b.out is created by i960 compilers.
2139ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2140#
2141# The IRIX 6 linker writes into existing files which may not be
2142# executable, retaining their permissions. Remove them first so a
2143# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002144ac_rmfiles=
2145for ac_file in $ac_files
2146do
2147 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002149 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2150 esac
2151done
2152rm -f $ac_rmfiles
2153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002154if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002155case "(($ac_try" in
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2158esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002160 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002161 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002164 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2165# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2166# in a Makefile. We should not override ac_cv_exeext if it was cached,
2167# so that the user can short-circuit this test for compilers unknown to
2168# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002169for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002170do
2171 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002172 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002174 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002175 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002176 # We found the default executable, but exeext='' is most
2177 # certainly right.
2178 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002179 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002180 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002181 then :; else
2182 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183 fi
2184 # We set ac_cv_exeext here because the later test for it is not
2185 # safe: cross compilers may not add the suffix if given an `-o'
2186 # argument, so we may need to know it at that point already.
2187 # Even if this section looks crufty: it has the advantage of
2188 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002189 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002190 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002191 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002192 esac
2193done
Reid Spencera773bd52006-08-04 18:18:08 +00002194test "$ac_cv_exeext" = no && ac_cv_exeext=
2195
John Criswell7a73b802003-06-30 21:59:07 +00002196else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002197 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002198sed 's/^/| /' conftest.$ac_ext >&5
2199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002200{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2201See \`config.log' for more details." >&5
2202echo "$as_me: error: C compiler cannot create executables
2203See \`config.log' for more details." >&2;}
2204 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002205fi
John Criswell7a73b802003-06-30 21:59:07 +00002206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002207ac_exeext=$ac_cv_exeext
2208{ echo "$as_me:$LINENO: result: $ac_file" >&5
2209echo "${ECHO_T}$ac_file" >&6; }
2210
2211# Check that the compiler produces executables we can run. If not, either
2212# the compiler is broken, or we cross compile.
2213{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2214echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2215# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2216# If not cross compiling, check that we can run a simple program.
2217if test "$cross_compiling" != yes; then
2218 if { ac_try='./$ac_file'
2219 { (case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2222esac
2223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2224 (eval "$ac_try") 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2228 cross_compiling=no
2229 else
2230 if test "$cross_compiling" = maybe; then
2231 cross_compiling=yes
2232 else
2233 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2234If you meant to cross compile, use \`--host'.
2235See \`config.log' for more details." >&5
2236echo "$as_me: error: cannot run C compiled programs.
2237If you meant to cross compile, use \`--host'.
2238See \`config.log' for more details." >&2;}
2239 { (exit 1); exit 1; }; }
2240 fi
2241 fi
2242fi
2243{ echo "$as_me:$LINENO: result: yes" >&5
2244echo "${ECHO_T}yes" >&6; }
2245
2246rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002247ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002248# Check that the compiler produces executables we can run. If not, either
2249# the compiler is broken, or we cross compile.
2250{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2251echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2252{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2253echo "${ECHO_T}$cross_compiling" >&6; }
2254
2255{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2256echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2257if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002258case "(($ac_try" in
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2261esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002263 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002264 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2269# work properly (i.e., refer to `conftest.exe'), while it won't with
2270# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002271for ac_file in conftest.exe conftest conftest.*; do
2272 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002273 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002276 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002277 * ) break;;
2278 esac
2279done
2280else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002281 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282See \`config.log' for more details." >&5
2283echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284See \`config.log' for more details." >&2;}
2285 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002287
2288rm -f conftest$ac_cv_exeext
2289{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002291
2292rm -f conftest.$ac_ext
2293EXEEXT=$ac_cv_exeext
2294ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002295{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2297if test "${ac_cv_objext+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002299else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002300 cat >conftest.$ac_ext <<_ACEOF
2301/* confdefs.h. */
2302_ACEOF
2303cat confdefs.h >>conftest.$ac_ext
2304cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002306
John Criswell7a73b802003-06-30 21:59:07 +00002307int
2308main ()
2309{
2310
2311 ;
2312 return 0;
2313}
2314_ACEOF
2315rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002316if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002317case "(($ac_try" in
2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2320esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002322 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002323 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002326 for ac_file in conftest.o conftest.obj conftest.*; do
2327 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002328 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002330 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2331 break;;
2332 esac
2333done
2334else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002335 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002336sed 's/^/| /' conftest.$ac_ext >&5
2337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002338{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2339See \`config.log' for more details." >&5
2340echo "$as_me: error: cannot compute suffix of object files: cannot compile
2341See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002344
John Criswell7a73b802003-06-30 21:59:07 +00002345rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002347{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2348echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002349OBJEXT=$ac_cv_objext
2350ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002351{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2352echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2353if test "${ac_cv_c_compiler_gnu+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002355else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002356 cat >conftest.$ac_ext <<_ACEOF
2357/* confdefs.h. */
2358_ACEOF
2359cat confdefs.h >>conftest.$ac_ext
2360cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002362
John Criswell7a73b802003-06-30 21:59:07 +00002363int
2364main ()
2365{
2366#ifndef __GNUC__
2367 choke me
2368#endif
2369
2370 ;
2371 return 0;
2372}
2373_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002374rm -f conftest.$ac_objext
2375if { (ac_try="$ac_compile"
2376case "(($ac_try" in
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2379esac
2380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381 (eval "$ac_compile") 2>conftest.er1
2382 ac_status=$?
2383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2389 { (case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2392esac
2393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394 (eval "$ac_try") 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2402esac
2403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404 (eval "$ac_try") 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002408 ac_compiler_gnu=yes
2409else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002410 echo "$as_me: failed program was:" >&5
2411sed 's/^/| /' conftest.$ac_ext >&5
2412
2413 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002414fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002415
Reid Spencera773bd52006-08-04 18:18:08 +00002416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002418
2419fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002420{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2421echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2422GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423ac_test_CFLAGS=${CFLAGS+set}
2424ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002425{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2426echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2427if test "${ac_cv_prog_cc_g+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002429else
Reid Spencera773bd52006-08-04 18:18:08 +00002430 ac_save_c_werror_flag=$ac_c_werror_flag
2431 ac_c_werror_flag=yes
2432 ac_cv_prog_cc_g=no
2433 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002434 cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h. */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002439/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002440
John Criswell7a73b802003-06-30 21:59:07 +00002441int
2442main ()
2443{
2444
2445 ;
2446 return 0;
2447}
2448_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002449rm -f conftest.$ac_objext
2450if { (ac_try="$ac_compile"
2451case "(($ac_try" in
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2454esac
2455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_compile") 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2464 { (case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2467esac
2468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469 (eval "$ac_try") 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (case "(($ac_try" in
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2477esac
2478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479 (eval "$ac_try") 2>&5
2480 ac_status=$?
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002483 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002484else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002485 echo "$as_me: failed program was:" >&5
2486sed 's/^/| /' conftest.$ac_ext >&5
2487
2488 CFLAGS=""
2489 cat >conftest.$ac_ext <<_ACEOF
2490/* confdefs.h. */
2491_ACEOF
2492cat confdefs.h >>conftest.$ac_ext
2493cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002494/* end confdefs.h. */
2495
2496int
2497main ()
2498{
2499
2500 ;
2501 return 0;
2502}
2503_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002504rm -f conftest.$ac_objext
2505if { (ac_try="$ac_compile"
2506case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2509esac
2510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511 (eval "$ac_compile") 2>conftest.er1
2512 ac_status=$?
2513 grep -v '^ *+' conftest.er1 >conftest.err
2514 rm -f conftest.er1
2515 cat conftest.err >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
2518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2519 { (case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2522esac
2523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_try") 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2532esac
2533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_try") 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2538 :
Torok Edwin871384f2010-01-26 08:50:50 +00002539else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002540 echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00002544 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002545 cat >conftest.$ac_ext <<_ACEOF
2546/* confdefs.h. */
2547_ACEOF
2548cat confdefs.h >>conftest.$ac_ext
2549cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002550/* end confdefs.h. */
2551
2552int
2553main ()
2554{
2555
2556 ;
2557 return 0;
2558}
2559_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002560rm -f conftest.$ac_objext
2561if { (ac_try="$ac_compile"
2562case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2565esac
2566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_compile") 2>conftest.er1
2568 ac_status=$?
2569 grep -v '^ *+' conftest.er1 >conftest.err
2570 rm -f conftest.er1
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2575 { (case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578esac
2579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_try") 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try='test -s conftest.$ac_objext'
2585 { (case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2588esac
2589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_try") 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002594 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002595else
2596 echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599
John Criswell7a73b802003-06-30 21:59:07 +00002600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002601
Reid Spencera773bd52006-08-04 18:18:08 +00002602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
2606fi
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
2609 ac_c_werror_flag=$ac_save_c_werror_flag
2610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002611{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2612echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002613if test "$ac_test_CFLAGS" = set; then
2614 CFLAGS=$ac_save_CFLAGS
2615elif test $ac_cv_prog_cc_g = yes; then
2616 if test "$GCC" = yes; then
2617 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002618 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002619 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002620 fi
2621else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622 if test "$GCC" = yes; then
2623 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002624 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002626 fi
2627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002628{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2629echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2630if test "${ac_cv_prog_cc_c89+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632else
Reid Spencera773bd52006-08-04 18:18:08 +00002633 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002635cat >conftest.$ac_ext <<_ACEOF
2636/* confdefs.h. */
2637_ACEOF
2638cat confdefs.h >>conftest.$ac_ext
2639cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002640/* end confdefs.h. */
2641#include <stdarg.h>
2642#include <stdio.h>
2643#include <sys/types.h>
2644#include <sys/stat.h>
2645/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2646struct buf { int x; };
2647FILE * (*rcsopen) (struct buf *, struct stat *, int);
2648static char *e (p, i)
2649 char **p;
2650 int i;
2651{
2652 return p[i];
2653}
2654static char *f (char * (*g) (char **, int), char **p, ...)
2655{
2656 char *s;
2657 va_list v;
2658 va_start (v,p);
2659 s = g (p, va_arg (v,int));
2660 va_end (v);
2661 return s;
2662}
2663
2664/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2665 function prototypes and stuff, but not '\xHH' hex character constants.
2666 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00002667 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002668 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2669 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00002670 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002671int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2672
Reid Spencera773bd52006-08-04 18:18:08 +00002673/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2674 inside strings and character constants. */
2675#define FOO(x) 'x'
2676int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2677
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002678int test (int i, double x);
2679struct s1 {int (*f) (int a);};
2680struct s2 {int (*f) (double a);};
2681int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2682int argc;
2683char **argv;
2684int
2685main ()
2686{
2687return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2688 ;
2689 return 0;
2690}
2691_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00002692for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2693 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002694do
2695 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002696 rm -f conftest.$ac_objext
2697if { (ac_try="$ac_compile"
2698case "(($ac_try" in
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2701esac
2702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2704 ac_status=$?
2705 grep -v '^ *+' conftest.er1 >conftest.err
2706 rm -f conftest.er1
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2711 { (case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714esac
2715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_try") 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; } &&
2720 { ac_try='test -s conftest.$ac_objext'
2721 { (case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724esac
2725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_try") 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002730 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002731else
2732 echo "$as_me: failed program was:" >&5
2733sed 's/^/| /' conftest.$ac_ext >&5
2734
2735
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002736fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002737
Reid Spencera773bd52006-08-04 18:18:08 +00002738rm -f core conftest.err conftest.$ac_objext
2739 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002740done
Reid Spencera773bd52006-08-04 18:18:08 +00002741rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002742CC=$ac_save_CC
2743
2744fi
Reid Spencera773bd52006-08-04 18:18:08 +00002745# AC_CACHE_VAL
2746case "x$ac_cv_prog_cc_c89" in
2747 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748 { echo "$as_me:$LINENO: result: none needed" >&5
2749echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002750 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002751 { echo "$as_me:$LINENO: result: unsupported" >&5
2752echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002753 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002754 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002755 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2756echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002757esac
2758
John Criswell0c38eaf2003-09-10 15:17:25 +00002759
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002760ac_ext=c
2761ac_cpp='$CPP $CPPFLAGS'
2762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
Eric Christopherffee5722011-09-16 20:36:25 +00002766ac_ext=cpp
2767ac_cpp='$CXXCPP $CPPFLAGS'
2768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2771if test -z "$CXX"; then
2772 if test -n "$CCC"; then
2773 CXX=$CCC
2774 else
2775 if test -n "$ac_tool_prefix"; then
2776 for ac_prog in clang++ llvm-g++ g++
2777 do
2778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2779set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2782if test "${ac_cv_prog_CXX+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784else
2785 if test -n "$CXX"; then
2786 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799done
2800done
2801IFS=$as_save_IFS
2802
2803fi
2804fi
2805CXX=$ac_cv_prog_CXX
2806if test -n "$CXX"; then
2807 { echo "$as_me:$LINENO: result: $CXX" >&5
2808echo "${ECHO_T}$CXX" >&6; }
2809else
2810 { echo "$as_me:$LINENO: result: no" >&5
2811echo "${ECHO_T}no" >&6; }
2812fi
2813
2814
2815 test -n "$CXX" && break
2816 done
2817fi
2818if test -z "$CXX"; then
2819 ac_ct_CXX=$CXX
2820 for ac_prog in clang++ llvm-g++ g++
2821do
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823set dummy $ac_prog; ac_word=$2
2824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2826if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2828else
2829 if test -n "$ac_ct_CXX"; then
2830 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2831else
2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833for as_dir in $PATH
2834do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_ac_ct_CXX="$ac_prog"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2842 fi
2843done
2844done
2845IFS=$as_save_IFS
2846
2847fi
2848fi
2849ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2850if test -n "$ac_ct_CXX"; then
2851 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2852echo "${ECHO_T}$ac_ct_CXX" >&6; }
2853else
2854 { echo "$as_me:$LINENO: result: no" >&5
2855echo "${ECHO_T}no" >&6; }
2856fi
2857
2858
2859 test -n "$ac_ct_CXX" && break
2860done
2861
2862 if test "x$ac_ct_CXX" = x; then
2863 CXX="g++"
2864 else
2865 case $cross_compiling:$ac_tool_warned in
2866yes:)
2867{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2868whose name does not start with the host triplet. If you think this
2869configuration is useful to you, please write to autoconf@gnu.org." >&5
2870echo "$as_me: 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." >&2;}
2873ac_tool_warned=yes ;;
2874esac
2875 CXX=$ac_ct_CXX
2876 fi
2877fi
2878
2879 fi
2880fi
2881# Provide some information about the compiler.
2882echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2883ac_compiler=`set X $ac_compile; echo $2`
2884{ (ac_try="$ac_compiler --version >&5"
2885case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compiler --version >&5") 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2894{ (ac_try="$ac_compiler -v >&5"
2895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compiler -v >&5") 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2904{ (ac_try="$ac_compiler -V >&5"
2905case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908esac
2909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compiler -V >&5") 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2914
2915{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2916echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2917if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919else
2920 cat >conftest.$ac_ext <<_ACEOF
2921/* confdefs.h. */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
2925/* end confdefs.h. */
2926
2927int
2928main ()
2929{
2930#ifndef __GNUC__
2931 choke me
2932#endif
2933
2934 ;
2935 return 0;
2936}
2937_ACEOF
2938rm -f conftest.$ac_objext
2939if { (ac_try="$ac_compile"
2940case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943esac
2944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compile") 2>conftest.er1
2946 ac_status=$?
2947 grep -v '^ *+' conftest.er1 >conftest.err
2948 rm -f conftest.er1
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2953 { (case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956esac
2957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_try") 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; } &&
2962 { ac_try='test -s conftest.$ac_objext'
2963 { (case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966esac
2967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_try") 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2972 ac_compiler_gnu=yes
2973else
2974 echo "$as_me: failed program was:" >&5
2975sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 ac_compiler_gnu=no
2978fi
2979
2980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2982
2983fi
2984{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2985echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2986GXX=`test $ac_compiler_gnu = yes && echo yes`
2987ac_test_CXXFLAGS=${CXXFLAGS+set}
2988ac_save_CXXFLAGS=$CXXFLAGS
2989{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2990echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2991if test "${ac_cv_prog_cxx_g+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993else
2994 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2995 ac_cxx_werror_flag=yes
2996 ac_cv_prog_cxx_g=no
2997 CXXFLAGS="-g"
2998 cat >conftest.$ac_ext <<_ACEOF
2999/* confdefs.h. */
3000_ACEOF
3001cat confdefs.h >>conftest.$ac_ext
3002cat >>conftest.$ac_ext <<_ACEOF
3003/* end confdefs.h. */
3004
3005int
3006main ()
3007{
3008
3009 ;
3010 return 0;
3011}
3012_ACEOF
3013rm -f conftest.$ac_objext
3014if { (ac_try="$ac_compile"
3015case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018esac
3019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_compile") 2>conftest.er1
3021 ac_status=$?
3022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3028 { (case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031esac
3032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_try") 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041esac
3042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_try") 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 ac_cv_prog_cxx_g=yes
3048else
3049 echo "$as_me: failed program was:" >&5
3050sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 CXXFLAGS=""
3053 cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h. */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h. */
3059
3060int
3061main ()
3062{
3063
3064 ;
3065 return 0;
3066}
3067_ACEOF
3068rm -f conftest.$ac_objext
3069if { (ac_try="$ac_compile"
3070case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073esac
3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3076 ac_status=$?
3077 grep -v '^ *+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096esac
3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_try") 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 :
3103else
3104 echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3108 CXXFLAGS="-g"
3109 cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h. */
3115
3116int
3117main ()
3118{
3119
3120 ;
3121 return 0;
3122}
3123_ACEOF
3124rm -f conftest.$ac_objext
3125if { (ac_try="$ac_compile"
3126case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142esac
3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152esac
3153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 ac_cv_prog_cxx_g=yes
3159else
3160 echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163
3164fi
3165
3166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
3173 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3174fi
3175{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3176echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3177if test "$ac_test_CXXFLAGS" = set; then
3178 CXXFLAGS=$ac_save_CXXFLAGS
3179elif test $ac_cv_prog_cxx_g = yes; then
3180 if test "$GXX" = yes; then
3181 CXXFLAGS="-g -O2"
3182 else
3183 CXXFLAGS="-g"
3184 fi
3185else
3186 if test "$GXX" = yes; then
3187 CXXFLAGS="-O2"
3188 else
3189 CXXFLAGS=
3190 fi
3191fi
3192ac_ext=c
3193ac_cpp='$CPP $CPPFLAGS'
3194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003197
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003198ac_ext=c
3199ac_cpp='$CPP $CPPFLAGS'
3200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003203{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3204echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003205# On Suns, sometimes $CPP names a directory.
3206if test -n "$CPP" && test -d "$CPP"; then
3207 CPP=
3208fi
3209if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003210 if test "${ac_cv_prog_CPP+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003212else
3213 # Double quotes because CPP needs to be expanded
3214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3215 do
3216 ac_preproc_ok=false
3217for ac_c_preproc_warn_flag in '' yes
3218do
3219 # Use a header file that comes with gcc, so configuring glibc
3220 # with a fresh cross-compiler works.
3221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3222 # <limits.h> exists even on freestanding compilers.
3223 # On the NeXT, cc -E runs the code through the compiler's parser,
3224 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003225 cat >conftest.$ac_ext <<_ACEOF
3226/* confdefs.h. */
3227_ACEOF
3228cat confdefs.h >>conftest.$ac_ext
3229cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003230/* end confdefs.h. */
3231#ifdef __STDC__
3232# include <limits.h>
3233#else
3234# include <assert.h>
3235#endif
3236 Syntax error
3237_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003238if { (ac_try="$ac_cpp conftest.$ac_ext"
3239case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242esac
3243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } >/dev/null; then
3251 if test -s conftest.err; then
3252 ac_cpp_err=$ac_c_preproc_warn_flag
3253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3254 else
3255 ac_cpp_err=
3256 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003257else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003258 ac_cpp_err=yes
3259fi
3260if test -z "$ac_cpp_err"; then
3261 :
3262else
3263 echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003266 # Broken: fails on valid input.
3267continue
3268fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003269
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003270rm -f conftest.err conftest.$ac_ext
3271
Reid Spencera773bd52006-08-04 18:18:08 +00003272 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003273 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003274 cat >conftest.$ac_ext <<_ACEOF
3275/* confdefs.h. */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003279/* end confdefs.h. */
3280#include <ac_nonexistent.h>
3281_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003282if { (ac_try="$ac_cpp conftest.$ac_ext"
3283case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286esac
3287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3289 ac_status=$?
3290 grep -v '^ *+' conftest.er1 >conftest.err
3291 rm -f conftest.er1
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } >/dev/null; then
3295 if test -s conftest.err; then
3296 ac_cpp_err=$ac_c_preproc_warn_flag
3297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3298 else
3299 ac_cpp_err=
3300 fi
3301else
3302 ac_cpp_err=yes
3303fi
3304if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003305 # Broken: success on invalid input.
3306continue
3307else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003308 echo "$as_me: failed program was:" >&5
3309sed 's/^/| /' conftest.$ac_ext >&5
3310
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003311 # Passes both tests.
3312ac_preproc_ok=:
3313break
3314fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003315
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003316rm -f conftest.err conftest.$ac_ext
3317
3318done
3319# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003321if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003322 break
3323fi
3324
3325 done
3326 ac_cv_prog_CPP=$CPP
3327
3328fi
3329 CPP=$ac_cv_prog_CPP
3330else
3331 ac_cv_prog_CPP=$CPP
3332fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003333{ echo "$as_me:$LINENO: result: $CPP" >&5
3334echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335ac_preproc_ok=false
3336for ac_c_preproc_warn_flag in '' yes
3337do
3338 # Use a header file that comes with gcc, so configuring glibc
3339 # with a fresh cross-compiler works.
3340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341 # <limits.h> exists even on freestanding compilers.
3342 # On the NeXT, cc -E runs the code through the compiler's parser,
3343 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003344 cat >conftest.$ac_ext <<_ACEOF
3345/* confdefs.h. */
3346_ACEOF
3347cat confdefs.h >>conftest.$ac_ext
3348cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003349/* end confdefs.h. */
3350#ifdef __STDC__
3351# include <limits.h>
3352#else
3353# include <assert.h>
3354#endif
3355 Syntax error
3356_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003357if { (ac_try="$ac_cpp conftest.$ac_ext"
3358case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361esac
3362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3364 ac_status=$?
3365 grep -v '^ *+' conftest.er1 >conftest.err
3366 rm -f conftest.er1
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } >/dev/null; then
3370 if test -s conftest.err; then
3371 ac_cpp_err=$ac_c_preproc_warn_flag
3372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3373 else
3374 ac_cpp_err=
3375 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003376else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003377 ac_cpp_err=yes
3378fi
3379if test -z "$ac_cpp_err"; then
3380 :
3381else
3382 echo "$as_me: failed program was:" >&5
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385 # Broken: fails on valid input.
3386continue
3387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003388
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003389rm -f conftest.err conftest.$ac_ext
3390
Reid Spencera773bd52006-08-04 18:18:08 +00003391 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003393 cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h. */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003398/* end confdefs.h. */
3399#include <ac_nonexistent.h>
3400_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003401if { (ac_try="$ac_cpp conftest.$ac_ext"
3402case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405esac
3406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408 ac_status=$?
3409 grep -v '^ *+' conftest.er1 >conftest.err
3410 rm -f conftest.er1
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } >/dev/null; then
3414 if test -s conftest.err; then
3415 ac_cpp_err=$ac_c_preproc_warn_flag
3416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417 else
3418 ac_cpp_err=
3419 fi
3420else
3421 ac_cpp_err=yes
3422fi
3423if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424 # Broken: success on invalid input.
3425continue
3426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003427 echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003430 # Passes both tests.
3431ac_preproc_ok=:
3432break
3433fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003434
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003435rm -f conftest.err conftest.$ac_ext
3436
3437done
3438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003440if $ac_preproc_ok; then
3441 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003442else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003443 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3444See \`config.log' for more details." >&5
3445echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3446See \`config.log' for more details." >&2;}
3447 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003448fi
3449
John Criswell7a73b802003-06-30 21:59:07 +00003450ac_ext=c
3451ac_cpp='$CPP $CPPFLAGS'
3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
John Criswell7a73b802003-06-30 21:59:07 +00003456
Eric Christopherffee5722011-09-16 20:36:25 +00003457
3458
3459if test -d ${srcdir}/projects/llvm-gcc ; then
3460 subdirs="$subdirs projects/llvm-gcc"
3461
3462fi
3463
3464if test -d ${srcdir}/projects/test-suite ; then
3465 subdirs="$subdirs projects/test-suite"
3466
3467fi
3468
3469if test -d ${srcdir}/projects/llvm-test ; then
3470 subdirs="$subdirs projects/llvm-test"
3471
3472fi
3473
3474if test -d ${srcdir}/projects/poolalloc ; then
3475 subdirs="$subdirs projects/poolalloc"
3476
3477fi
3478
3479if test -d ${srcdir}/projects/llvm-poolalloc ; then
3480 subdirs="$subdirs projects/llvm-poolalloc"
3481
3482fi
3483
3484for i in `ls ${srcdir}/projects`
3485do
3486 if test -d ${srcdir}/projects/${i} ; then
3487 case ${i} in
3488 sample) subdirs="$subdirs projects/sample"
3489 ;;
3490 privbracket) subdirs="$subdirs projects/privbracket"
3491 ;;
3492 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3493 ;;
3494 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3495;;
3496 llvm-java) subdirs="$subdirs projects/llvm-java"
3497 ;;
3498 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3499 ;;
3500 safecode) subdirs="$subdirs projects/safecode"
3501 ;;
3502 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3503 ;;
Daniel Dunbard45162b2011-12-07 22:07:03 +00003504 compiler-rt) ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003505 llvm-gcc) ;;
3506 test-suite) ;;
3507 llvm-test) ;;
3508 poolalloc) ;;
3509 llvm-poolalloc) ;;
3510 *)
3511 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3512echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3513 ;;
3514 esac
3515 fi
3516done
3517
3518# Check whether --enable-polly was given.
3519if test "${enable_polly+set}" = set; then
3520 enableval=$enable_polly;
3521else
3522 enableval=default
3523fi
3524
3525case "$enableval" in
3526 yes) ENABLE_POLLY=1
3527 ;;
3528 no) ENABLE_POLLY=0
3529 ;;
3530 default) ENABLE_POLLY=1
3531 ;;
3532 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3533echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3534 { (exit 1); exit 1; }; } ;;
3535esac
3536
3537
3538if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3539 LLVM_HAS_POLLY=1
3540
3541 subdirs="$subdirs tools/polly"
3542
3543fi
3544
3545
3546# Make sure we can run config.sub.
3547$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3548 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3549echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3550 { (exit 1); exit 1; }; }
3551
3552{ echo "$as_me:$LINENO: checking build system type" >&5
3553echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3554if test "${ac_cv_build+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557 ac_build_alias=$build_alias
3558test "x$ac_build_alias" = x &&
3559 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3560test "x$ac_build_alias" = x &&
3561 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3562echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3563 { (exit 1); exit 1; }; }
3564ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3565 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3566echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3567 { (exit 1); exit 1; }; }
3568
3569fi
3570{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3571echo "${ECHO_T}$ac_cv_build" >&6; }
3572case $ac_cv_build in
3573*-*-*) ;;
3574*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3575echo "$as_me: error: invalid value of canonical build" >&2;}
3576 { (exit 1); exit 1; }; };;
3577esac
3578build=$ac_cv_build
3579ac_save_IFS=$IFS; IFS='-'
3580set x $ac_cv_build
3581shift
3582build_cpu=$1
3583build_vendor=$2
3584shift; shift
3585# Remember, the first character of IFS is used to create $*,
3586# except with old shells:
3587build_os=$*
3588IFS=$ac_save_IFS
3589case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3590
3591
3592{ echo "$as_me:$LINENO: checking host system type" >&5
3593echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3594if test "${ac_cv_host+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596else
3597 if test "x$host_alias" = x; then
3598 ac_cv_host=$ac_cv_build
3599else
3600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3601 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3602echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3603 { (exit 1); exit 1; }; }
3604fi
3605
3606fi
3607{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3608echo "${ECHO_T}$ac_cv_host" >&6; }
3609case $ac_cv_host in
3610*-*-*) ;;
3611*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3612echo "$as_me: error: invalid value of canonical host" >&2;}
3613 { (exit 1); exit 1; }; };;
3614esac
3615host=$ac_cv_host
3616ac_save_IFS=$IFS; IFS='-'
3617set x $ac_cv_host
3618shift
3619host_cpu=$1
3620host_vendor=$2
3621shift; shift
3622# Remember, the first character of IFS is used to create $*,
3623# except with old shells:
3624host_os=$*
3625IFS=$ac_save_IFS
3626case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3627
3628
3629{ echo "$as_me:$LINENO: checking target system type" >&5
3630echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3631if test "${ac_cv_target+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3633else
3634 if test "x$target_alias" = x; then
3635 ac_cv_target=$ac_cv_host
3636else
3637 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3638 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3639echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3640 { (exit 1); exit 1; }; }
3641fi
3642
3643fi
3644{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3645echo "${ECHO_T}$ac_cv_target" >&6; }
3646case $ac_cv_target in
3647*-*-*) ;;
3648*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3649echo "$as_me: error: invalid value of canonical target" >&2;}
3650 { (exit 1); exit 1; }; };;
3651esac
3652target=$ac_cv_target
3653ac_save_IFS=$IFS; IFS='-'
3654set x $ac_cv_target
3655shift
3656target_cpu=$1
3657target_vendor=$2
3658shift; shift
3659# Remember, the first character of IFS is used to create $*,
3660# except with old shells:
3661target_os=$*
3662IFS=$ac_save_IFS
3663case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3664
3665
3666# The aliases save the names the user supplied, while $host etc.
3667# will get canonicalized.
3668test -n "$target_alias" &&
3669 test "$program_prefix$program_suffix$program_transform_name" = \
3670 NONENONEs,x,x, &&
3671 program_prefix=${target_alias}-
3672
3673{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3674echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3675if test "${llvm_cv_os_type+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677else
3678 case $host in
3679 *-*-aix*)
3680 llvm_cv_link_all_option="-Wl,--whole-archive"
3681 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682 llvm_cv_os_type="AIX"
3683 llvm_cv_platform_type="Unix" ;;
3684 *-*-irix*)
3685 llvm_cv_link_all_option="-Wl,--whole-archive"
3686 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687 llvm_cv_os_type="IRIX"
3688 llvm_cv_platform_type="Unix" ;;
3689 *-*-cygwin*)
3690 llvm_cv_link_all_option="-Wl,--whole-archive"
3691 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3692 llvm_cv_os_type="Cygwin"
3693 llvm_cv_platform_type="Unix" ;;
3694 *-*-darwin*)
3695 llvm_cv_link_all_option="-Wl,-all_load"
3696 llvm_cv_no_link_all_option="-Wl,-noall_load"
3697 llvm_cv_os_type="Darwin"
3698 llvm_cv_platform_type="Unix" ;;
3699 *-*-minix*)
3700 llvm_cv_link_all_option="-Wl,-all_load"
3701 llvm_cv_no_link_all_option="-Wl,-noall_load"
3702 llvm_cv_os_type="Minix"
3703 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003704 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003705 llvm_cv_link_all_option="-Wl,--whole-archive"
3706 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707 llvm_cv_os_type="FreeBSD"
3708 llvm_cv_platform_type="Unix" ;;
3709 *-*-openbsd*)
3710 llvm_cv_link_all_option="-Wl,--whole-archive"
3711 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712 llvm_cv_os_type="OpenBSD"
3713 llvm_cv_platform_type="Unix" ;;
3714 *-*-netbsd*)
3715 llvm_cv_link_all_option="-Wl,--whole-archive"
3716 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717 llvm_cv_os_type="NetBSD"
3718 llvm_cv_platform_type="Unix" ;;
3719 *-*-dragonfly*)
3720 llvm_cv_link_all_option="-Wl,--whole-archive"
3721 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722 llvm_cv_os_type="DragonFly"
3723 llvm_cv_platform_type="Unix" ;;
3724 *-*-hpux*)
3725 llvm_cv_link_all_option="-Wl,--whole-archive"
3726 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3727 llvm_cv_os_type="HP-UX"
3728 llvm_cv_platform_type="Unix" ;;
3729 *-*-interix*)
3730 llvm_cv_link_all_option="-Wl,--whole-archive"
3731 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3732 llvm_cv_os_type="Interix"
3733 llvm_cv_platform_type="Unix" ;;
3734 *-*-linux*)
3735 llvm_cv_link_all_option="-Wl,--whole-archive"
3736 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3737 llvm_cv_os_type="Linux"
3738 llvm_cv_platform_type="Unix" ;;
Rafael Espindolaf6139192011-12-22 14:01:18 +00003739 *-*-gnu*)
3740 llvm_cv_link_all_option="-Wl,--whole-archive"
3741 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3742 llvm_cv_os_type="GNU"
3743 llvm_cv_platform_type="Unix" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003744 *-*-solaris*)
3745 llvm_cv_link_all_option="-Wl,-z,allextract"
3746 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3747 llvm_cv_os_type="SunOS"
3748 llvm_cv_platform_type="Unix" ;;
3749 *-*-auroraux*)
3750 llvm_cv_link_all_option="-Wl,-z,allextract"
3751 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3752 llvm_cv_os_type="AuroraUX"
3753 llvm_cv_platform_type="Unix" ;;
3754 *-*-win32*)
3755 llvm_cv_link_all_option="-Wl,--whole-archive"
3756 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3757 llvm_cv_os_type="Win32"
3758 llvm_cv_platform_type="Win32" ;;
3759 *-*-mingw*)
3760 llvm_cv_link_all_option="-Wl,--whole-archive"
3761 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3762 llvm_cv_os_type="MingW"
3763 llvm_cv_platform_type="Win32" ;;
3764 *-*-haiku*)
3765 llvm_cv_link_all_option="-Wl,--whole-archive"
3766 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3767 llvm_cv_os_type="Haiku"
3768 llvm_cv_platform_type="Unix" ;;
3769 *-unknown-eabi*)
3770 llvm_cv_link_all_option="-Wl,--whole-archive"
3771 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3772 llvm_cv_os_type="Freestanding"
3773 llvm_cv_platform_type="Unix" ;;
3774 *-unknown-elf*)
3775 llvm_cv_link_all_option="-Wl,--whole-archive"
3776 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3777 llvm_cv_os_type="Freestanding"
3778 llvm_cv_platform_type="Unix" ;;
3779 *)
3780 llvm_cv_link_all_option=""
3781 llvm_cv_no_link_all_option=""
3782 llvm_cv_os_type="Unknown"
3783 llvm_cv_platform_type="Unknown" ;;
3784esac
3785fi
3786{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3787echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3788
3789{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3790echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3791if test "${llvm_cv_target_os_type+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794 case $target in
3795 *-*-aix*)
3796 llvm_cv_target_os_type="AIX" ;;
3797 *-*-irix*)
3798 llvm_cv_target_os_type="IRIX" ;;
3799 *-*-cygwin*)
3800 llvm_cv_target_os_type="Cygwin" ;;
3801 *-*-darwin*)
3802 llvm_cv_target_os_type="Darwin" ;;
3803 *-*-minix*)
3804 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00003805 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopherffee5722011-09-16 20:36:25 +00003806 llvm_cv_target_os_type="FreeBSD" ;;
3807 *-*-openbsd*)
3808 llvm_cv_target_os_type="OpenBSD" ;;
3809 *-*-netbsd*)
3810 llvm_cv_target_os_type="NetBSD" ;;
3811 *-*-dragonfly*)
3812 llvm_cv_target_os_type="DragonFly" ;;
3813 *-*-hpux*)
3814 llvm_cv_target_os_type="HP-UX" ;;
3815 *-*-interix*)
3816 llvm_cv_target_os_type="Interix" ;;
3817 *-*-linux*)
3818 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledru703bf842012-04-05 19:34:15 +00003819 *-*-gnu*)
3820 llvm_cv_target_os_type="GNU" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003821 *-*-solaris*)
3822 llvm_cv_target_os_type="SunOS" ;;
3823 *-*-auroraux*)
3824 llvm_cv_target_os_type="AuroraUX" ;;
3825 *-*-win32*)
3826 llvm_cv_target_os_type="Win32" ;;
3827 *-*-mingw*)
3828 llvm_cv_target_os_type="MingW" ;;
3829 *-*-haiku*)
3830 llvm_cv_target_os_type="Haiku" ;;
3831 *-*-rtems*)
3832 llvm_cv_target_os_type="RTEMS" ;;
3833 *-*-nacl*)
3834 llvm_cv_target_os_type="NativeClient" ;;
3835 *-unknown-eabi*)
3836 llvm_cv_target_os_type="Freestanding" ;;
3837 *)
3838 llvm_cv_target_os_type="Unknown" ;;
3839esac
3840fi
3841{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3842echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3843
3844if test "$llvm_cv_os_type" = "Unknown" ; then
3845 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3846echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3847 { (exit 1); exit 1; }; }
3848fi
3849
3850OS=$llvm_cv_os_type
3851
3852HOST_OS=$llvm_cv_os_type
3853
3854TARGET_OS=$llvm_cv_target_os_type
3855
3856
3857LINKALL=$llvm_cv_link_all_option
3858
3859NOLINKALL=$llvm_cv_no_link_all_option
3860
3861
3862case $llvm_cv_platform_type in
3863 Unix)
3864
3865cat >>confdefs.h <<\_ACEOF
3866#define LLVM_ON_UNIX 1
3867_ACEOF
3868
3869 LLVM_ON_UNIX=1
3870
3871 LLVM_ON_WIN32=0
3872
3873 ;;
3874 Win32)
3875
3876cat >>confdefs.h <<\_ACEOF
3877#define LLVM_ON_WIN32 1
3878_ACEOF
3879
3880 LLVM_ON_UNIX=0
3881
3882 LLVM_ON_WIN32=1
3883
3884 ;;
3885esac
3886
3887{ echo "$as_me:$LINENO: checking target architecture" >&5
3888echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3889if test "${llvm_cv_target_arch+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3891else
3892 case $target in
3893 i?86-*) llvm_cv_target_arch="x86" ;;
3894 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3895 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3896 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003897 arm*-*) llvm_cv_target_arch="ARM" ;;
3898 mips-*) llvm_cv_target_arch="Mips" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00003899 mipsel-*) llvm_cv_target_arch="Mips" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003900 xcore-*) llvm_cv_target_arch="XCore" ;;
3901 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003902 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003903 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3904 ptx-*) llvm_cv_target_arch="PTX" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00003905 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopherffee5722011-09-16 20:36:25 +00003906 *) 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
Danil Malyshevbb8cef52012-05-17 21:07:47 +00003926case $host in
3927 i?86-*) host_arch="x86" ;;
3928 amd64-* | x86_64-*) host_arch="x86_64" ;;
3929 sparc*-*) host_arch="Sparc" ;;
3930 powerpc*-*) host_arch="PowerPC" ;;
3931 arm*-*) host_arch="ARM" ;;
3932 mips-*) host_arch="Mips" ;;
3933 mipsel-*) host_arch="Mips" ;;
3934 xcore-*) host_arch="XCore" ;;
3935 msp430-*) host_arch="MSP430" ;;
3936 hexagon-*) host_arch="Hexagon" ;;
3937 mblaze-*) host_arch="MBlaze" ;;
3938 ptx-*) host_arch="PTX" ;;
3939 *) host_arch="Unknown" ;;
3940esac
3941
3942if test "$host_arch" = "Unknown" ; then
3943 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3944echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3945fi
3946
3947HOST_ARCH=$host_arch
3948
3949
Eric Christopherffee5722011-09-16 20:36:25 +00003950
3951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003952{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3953echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3954if test "${ac_cv_path_GREP+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003957 # Extract the first word of "grep ggrep" to use in msg output
3958if test -z "$GREP"; then
3959set dummy grep ggrep; ac_prog_name=$2
3960if test "${ac_cv_path_GREP+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
Reid Spencera773bd52006-08-04 18:18:08 +00003963 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003964# Loop through the user's path and test for each of PROGNAME-LIST
3965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003966for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003967do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003970 for ac_prog in grep ggrep; do
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3973 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3974 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003975 # Check for GNU $ac_path_GREP
3976case `"$ac_path_GREP" --version 2>&1` in
3977*GNU*)
3978 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3979*)
3980 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003981 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003982 while :
3983 do
3984 cat "conftest.in" "conftest.in" >"conftest.tmp"
3985 mv "conftest.tmp" "conftest.in"
3986 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003987 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003988 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003990 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003991 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3992 # Best one so far, save it but keep looking for a better one
3993 ac_cv_path_GREP="$ac_path_GREP"
3994 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003995 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003996 # 10*(2^10) chars as input seems more than enough
3997 test $ac_count -gt 10 && break
3998 done
3999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4000esac
4001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004002
4003 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004004 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004005done
4006
4007done
Reid Spencera773bd52006-08-04 18:18:08 +00004008IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004009
4010
4011fi
4012
4013GREP="$ac_cv_path_GREP"
4014if test -z "$GREP"; then
4015 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4016echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4017 { (exit 1); exit 1; }; }
4018fi
4019
Reid Spencera773bd52006-08-04 18:18:08 +00004020else
4021 ac_cv_path_GREP=$GREP
4022fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004024
Reid Spencera773bd52006-08-04 18:18:08 +00004025fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004026{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4027echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004028 GREP="$ac_cv_path_GREP"
4029
4030
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004031{ echo "$as_me:$LINENO: checking for egrep" >&5
4032echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4033if test "${ac_cv_path_EGREP+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004035else
4036 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4037 then ac_cv_path_EGREP="$GREP -E"
4038 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004039 # Extract the first word of "egrep" to use in msg output
4040if test -z "$EGREP"; then
4041set dummy egrep; ac_prog_name=$2
4042if test "${ac_cv_path_EGREP+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044else
Reid Spencera773bd52006-08-04 18:18:08 +00004045 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004046# Loop through the user's path and test for each of PROGNAME-LIST
4047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00004048for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4049do
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004052 for ac_prog in egrep; do
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4055 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4056 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00004057 # Check for GNU $ac_path_EGREP
4058case `"$ac_path_EGREP" --version 2>&1` in
4059*GNU*)
4060 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4061*)
4062 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004063 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00004064 while :
4065 do
4066 cat "conftest.in" "conftest.in" >"conftest.tmp"
4067 mv "conftest.tmp" "conftest.in"
4068 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004069 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00004070 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4071 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004072 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00004073 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4074 # Best one so far, save it but keep looking for a better one
4075 ac_cv_path_EGREP="$ac_path_EGREP"
4076 ac_path_EGREP_max=$ac_count
4077 fi
4078 # 10*(2^10) chars as input seems more than enough
4079 test $ac_count -gt 10 && break
4080 done
4081 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4082esac
4083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004084
4085 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00004086 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004087done
4088
4089done
Reid Spencera773bd52006-08-04 18:18:08 +00004090IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004091
4092
4093fi
4094
4095EGREP="$ac_cv_path_EGREP"
4096if test -z "$EGREP"; then
4097 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4098echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4099 { (exit 1); exit 1; }; }
4100fi
4101
Reid Spencera773bd52006-08-04 18:18:08 +00004102else
4103 ac_cv_path_EGREP=$EGREP
4104fi
4105
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004106
Reid Spencera773bd52006-08-04 18:18:08 +00004107 fi
4108fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004109{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4110echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004111 EGREP="$ac_cv_path_EGREP"
4112
4113
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004114{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4115echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4116if test "${ac_cv_header_stdc+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004118else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004119 cat >conftest.$ac_ext <<_ACEOF
4120/* confdefs.h. */
4121_ACEOF
4122cat confdefs.h >>conftest.$ac_ext
4123cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004124/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004125#include <stdlib.h>
4126#include <stdarg.h>
4127#include <string.h>
4128#include <float.h>
4129
John Criswell0c38eaf2003-09-10 15:17:25 +00004130int
4131main ()
4132{
4133
4134 ;
4135 return 0;
4136}
John Criswell7a73b802003-06-30 21:59:07 +00004137_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004138rm -f conftest.$ac_objext
4139if { (ac_try="$ac_compile"
4140case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4143esac
4144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_compile") 2>conftest.er1
4146 ac_status=$?
4147 grep -v '^ *+' conftest.er1 >conftest.err
4148 rm -f conftest.er1
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4156esac
4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try='test -s conftest.$ac_objext'
4163 { (case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166esac
4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_try") 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004172 ac_cv_header_stdc=yes
4173else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004174 echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
4177 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004178fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004179
Reid Spencera773bd52006-08-04 18:18:08 +00004180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004181
4182if test $ac_cv_header_stdc = yes; then
4183 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004184 cat >conftest.$ac_ext <<_ACEOF
4185/* confdefs.h. */
4186_ACEOF
4187cat confdefs.h >>conftest.$ac_ext
4188cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004189/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004190#include <string.h>
4191
4192_ACEOF
4193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004194 $EGREP "memchr" >/dev/null 2>&1; then
4195 :
John Criswell7a73b802003-06-30 21:59:07 +00004196else
4197 ac_cv_header_stdc=no
4198fi
4199rm -f conftest*
4200
4201fi
4202
4203if test $ac_cv_header_stdc = yes; then
4204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
4212
4213_ACEOF
4214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004215 $EGREP "free" >/dev/null 2>&1; then
4216 :
John Criswell7a73b802003-06-30 21:59:07 +00004217else
4218 ac_cv_header_stdc=no
4219fi
4220rm -f conftest*
4221
4222fi
4223
4224if test $ac_cv_header_stdc = yes; then
4225 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004226 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00004227 :
4228else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h. */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004234/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004235#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004236#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004237#if ((' ' & 0x0FF) == 0x020)
4238# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4239# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4240#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004241# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004242 (('a' <= (c) && (c) <= 'i') \
4243 || ('j' <= (c) && (c) <= 'r') \
4244 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004245# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4246#endif
4247
4248#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4249int
4250main ()
4251{
4252 int i;
4253 for (i = 0; i < 256; i++)
4254 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004255 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004256 return 2;
4257 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004258}
4259_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004260rm -f conftest$ac_exeext
4261if { (ac_try="$ac_link"
4262case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265esac
4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_link") 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4271 { (case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274esac
4275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_try") 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4280 :
John Criswell7a73b802003-06-30 21:59:07 +00004281else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004282 echo "$as_me: program exited with status $ac_status" >&5
4283echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286( exit $ac_status )
4287ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004288fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004289rm -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 +00004290fi
4291
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004292
John Criswell7a73b802003-06-30 21:59:07 +00004293fi
4294fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004295{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4296echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004297if test $ac_cv_header_stdc = yes; then
4298
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004299cat >>confdefs.h <<\_ACEOF
4300#define STDC_HEADERS 1
4301_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004302
4303fi
4304
Reid Spencera773bd52006-08-04 18:18:08 +00004305# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004306
4307
4308
4309
4310
4311
4312
4313
4314
Reid Spencera773bd52006-08-04 18:18:08 +00004315for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4316 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004317do
4318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4319{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4321if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4323else
4324 cat >conftest.$ac_ext <<_ACEOF
4325/* confdefs.h. */
4326_ACEOF
4327cat confdefs.h >>conftest.$ac_ext
4328cat >>conftest.$ac_ext <<_ACEOF
4329/* end confdefs.h. */
4330$ac_includes_default
4331
4332#include <$ac_header>
4333_ACEOF
4334rm -f conftest.$ac_objext
4335if { (ac_try="$ac_compile"
4336case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339esac
4340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_compile") 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4349 { (case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352esac
4353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354 (eval "$ac_try") 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; } &&
4358 { ac_try='test -s conftest.$ac_objext'
4359 { (case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4362esac
4363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364 (eval "$ac_try") 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 eval "$as_ac_Header=yes"
4369else
4370 echo "$as_me: failed program was:" >&5
4371sed 's/^/| /' conftest.$ac_ext >&5
4372
4373 eval "$as_ac_Header=no"
4374fi
4375
4376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377fi
4378ac_res=`eval echo '${'$as_ac_Header'}'`
4379 { echo "$as_me:$LINENO: result: $ac_res" >&5
4380echo "${ECHO_T}$ac_res" >&6; }
4381if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004382 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004384_ACEOF
4385
4386fi
4387
4388done
4389
4390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004391{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4392echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4393if test "${ac_cv_c_bigendian+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004395else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004396 # See if sys/param.h defines the BYTE_ORDER macro.
4397cat >conftest.$ac_ext <<_ACEOF
4398/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004399_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004400cat confdefs.h >>conftest.$ac_ext
4401cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004402/* end confdefs.h. */
4403#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004404#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004405
4406int
4407main ()
4408{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004409#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4410 bogus endian macros
4411#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004412
4413 ;
4414 return 0;
4415}
4416_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004417rm -f conftest.$ac_objext
4418if { (ac_try="$ac_compile"
4419case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422esac
4423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_compile") 2>conftest.er1
4425 ac_status=$?
4426 grep -v '^ *+' conftest.er1 >conftest.err
4427 rm -f conftest.er1
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } &&
4431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4432 { (case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435esac
4436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_try") 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; } &&
4441 { ac_try='test -s conftest.$ac_objext'
4442 { (case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445esac
4446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_try") 2>&5
4448 ac_status=$?
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004451 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004452cat >conftest.$ac_ext <<_ACEOF
4453/* confdefs.h. */
4454_ACEOF
4455cat confdefs.h >>conftest.$ac_ext
4456cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004457/* end confdefs.h. */
4458#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004459#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004460
4461int
4462main ()
4463{
4464#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004465 not big endian
4466#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004467
4468 ;
4469 return 0;
4470}
4471_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004472rm -f conftest.$ac_objext
4473if { (ac_try="$ac_compile"
4474case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4477esac
4478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479 (eval "$ac_compile") 2>conftest.er1
4480 ac_status=$?
4481 grep -v '^ *+' conftest.er1 >conftest.err
4482 rm -f conftest.er1
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4487 { (case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4490esac
4491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492 (eval "$ac_try") 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try='test -s conftest.$ac_objext'
4497 { (case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500esac
4501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_try") 2>&5
4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004506 ac_cv_c_bigendian=yes
4507else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004508 echo "$as_me: failed program was:" >&5
4509sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004511 ac_cv_c_bigendian=no
4512fi
4513
4514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515else
4516 echo "$as_me: failed program was:" >&5
4517sed 's/^/| /' conftest.$ac_ext >&5
4518
4519 # It does not; compile a test program.
4520if test "$cross_compiling" = yes; then
4521 # try to guess the endianness by grepping values into an object file
4522 ac_cv_c_bigendian=unknown
4523 cat >conftest.$ac_ext <<_ACEOF
4524/* confdefs.h. */
4525_ACEOF
4526cat confdefs.h >>conftest.$ac_ext
4527cat >>conftest.$ac_ext <<_ACEOF
4528/* end confdefs.h. */
4529short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4530short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4531void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4532short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4533short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4534void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004535int
4536main ()
4537{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004538 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004539 ;
4540 return 0;
4541}
4542_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004543rm -f conftest.$ac_objext
4544if { (ac_try="$ac_compile"
4545case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548esac
4549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_compile") 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4558 { (case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561esac
4562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_try") 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; } &&
4567 { ac_try='test -s conftest.$ac_objext'
4568 { (case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4571esac
4572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_try") 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004578 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004579fi
4580if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4581 if test "$ac_cv_c_bigendian" = unknown; then
4582 ac_cv_c_bigendian=no
4583 else
4584 # finding both strings is unlikely to happen, but who knows?
4585 ac_cv_c_bigendian=unknown
4586 fi
4587fi
Reid Spencera773bd52006-08-04 18:18:08 +00004588else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004589 echo "$as_me: failed program was:" >&5
4590sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004592
Torok Edwin871384f2010-01-26 08:50:50 +00004593fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004594
Reid Spencera773bd52006-08-04 18:18:08 +00004595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004597 cat >conftest.$ac_ext <<_ACEOF
4598/* confdefs.h. */
4599_ACEOF
4600cat confdefs.h >>conftest.$ac_ext
4601cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004602/* end confdefs.h. */
4603$ac_includes_default
4604int
4605main ()
4606{
4607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004608 /* Are we little or big endian? From Harbison&Steele. */
4609 union
4610 {
4611 long int l;
4612 char c[sizeof (long int)];
4613 } u;
4614 u.l = 1;
4615 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004616
4617 ;
4618 return 0;
4619}
4620_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004621rm -f conftest$ac_exeext
4622if { (ac_try="$ac_link"
4623case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626esac
4627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628 (eval "$ac_link") 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4632 { (case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635esac
4636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_try") 2>&5
4638 ac_status=$?
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004641 ac_cv_c_bigendian=no
4642else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004643 echo "$as_me: program exited with status $ac_status" >&5
4644echo "$as_me: failed program was:" >&5
4645sed 's/^/| /' conftest.$ac_ext >&5
4646
4647( exit $ac_status )
4648ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004649fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004650rm -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 +00004651fi
4652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004653
Reid Spencera773bd52006-08-04 18:18:08 +00004654fi
4655
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657fi
4658{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4659echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4660case $ac_cv_c_bigendian in
4661 yes)
4662 ENDIAN=big
4663 ;;
4664 no)
4665 ENDIAN=little
4666 ;;
4667 *)
4668 { { echo "$as_me:$LINENO: error: unknown endianness
4669presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4670echo "$as_me: error: unknown endianness
4671presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4672 { (exit 1); exit 1; }; } ;;
4673esac
Reid Spencera773bd52006-08-04 18:18:08 +00004674
4675
4676if test "$cross_compiling" = yes; then
4677 LLVM_CROSS_COMPILING=1
4678
4679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004680{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4681echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4682if test "${ac_cv_build_exeext+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004684else
4685 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4686 ac_cv_build_exeext=.exe
4687else
4688 ac_build_prefix=${build_alias}-
4689
4690 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4691set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4694if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004696else
4697 if test -n "$BUILD_CC"; then
4698 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4699else
4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 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 +00004707 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004709 break 2
4710 fi
4711done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004712done
Reid Spencera773bd52006-08-04 18:18:08 +00004713IFS=$as_save_IFS
4714
4715fi
4716fi
4717BUILD_CC=$ac_cv_prog_BUILD_CC
4718if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004719 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4720echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004721else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004722 { echo "$as_me:$LINENO: result: no" >&5
4723echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004724fi
4725
4726
4727 if test -z "$BUILD_CC"; then
4728 # Extract the first word of "gcc", so it can be a program name with args.
4729set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004734else
4735 if test -n "$BUILD_CC"; then
4736 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4737else
4738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 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 +00004745 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004747 break 2
4748 fi
4749done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004750done
Reid Spencera773bd52006-08-04 18:18:08 +00004751IFS=$as_save_IFS
4752
4753fi
4754fi
4755BUILD_CC=$ac_cv_prog_BUILD_CC
4756if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004757 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4758echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004759else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004760 { echo "$as_me:$LINENO: result: no" >&5
4761echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004762fi
4763
4764
4765 if test -z "$BUILD_CC"; then
4766 # Extract the first word of "cc", so it can be a program name with args.
4767set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004768{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004772else
4773 if test -n "$BUILD_CC"; then
4774 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4775else
4776 ac_prog_rejected=no
4777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 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 +00004784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4785 ac_prog_rejected=yes
4786 continue
4787 fi
4788 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004790 break 2
4791 fi
4792done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004793done
Reid Spencera773bd52006-08-04 18:18:08 +00004794IFS=$as_save_IFS
4795
4796if test $ac_prog_rejected = yes; then
4797 # We found a bogon in the path, so make sure we never use it.
4798 set dummy $ac_cv_prog_BUILD_CC
4799 shift
4800 if test $# != 0; then
4801 # We chose a different compiler from the bogus one.
4802 # However, it has the same basename, so the bogon will be chosen
4803 # first if we set BUILD_CC to just the basename; use the full file name.
4804 shift
4805 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4806 fi
4807fi
4808fi
4809fi
4810BUILD_CC=$ac_cv_prog_BUILD_CC
4811if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004812 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4813echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004814else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004815 { echo "$as_me:$LINENO: result: no" >&5
4816echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004817fi
4818
4819
4820 fi
4821 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004822 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4823echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4824 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004825 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4826 rm -f conftest*
4827 echo 'int main () { return 0; }' > conftest.$ac_ext
4828 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004829 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004830 (eval $ac_build_link) 2>&5
4831 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004834 for file in conftest.*; do
4835 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004836 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004837 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4838 esac
4839 done
4840 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004841 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4842echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4843 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004844 fi
4845 rm -f conftest*
4846 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4847fi
4848fi
4849
4850BUILD_EXEEXT=""
4851test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004852{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4853echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004854ac_build_exeext=$BUILD_EXEEXT
4855
Jim Grosbach673612e2008-10-02 22:56:44 +00004856 ac_build_prefix=${build_alias}-
4857 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4858set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004859{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004863else
4864 if test -n "$BUILD_CXX"; then
4865 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4866else
4867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH
4869do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 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 +00004874 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004876 break 2
4877 fi
4878done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004879done
Jim Grosbach673612e2008-10-02 22:56:44 +00004880IFS=$as_save_IFS
4881
4882fi
4883fi
4884BUILD_CXX=$ac_cv_prog_BUILD_CXX
4885if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004886 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4887echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004888else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004889 { echo "$as_me:$LINENO: result: no" >&5
4890echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004891fi
4892
4893
4894 if test -z "$BUILD_CXX"; then
4895 # Extract the first word of "g++", so it can be a program name with args.
4896set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004901else
4902 if test -n "$BUILD_CXX"; then
4903 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4904else
4905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906for as_dir in $PATH
4907do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 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 +00004912 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004914 break 2
4915 fi
4916done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004917done
Jim Grosbach673612e2008-10-02 22:56:44 +00004918IFS=$as_save_IFS
4919
4920fi
4921fi
4922BUILD_CXX=$ac_cv_prog_BUILD_CXX
4923if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004924 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4925echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004926else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004927 { echo "$as_me:$LINENO: result: no" >&5
4928echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004929fi
4930
4931
4932 if test -z "$BUILD_CXX"; then
4933 # Extract the first word of "c++", so it can be a program name with args.
4934set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004939else
4940 if test -n "$BUILD_CXX"; then
4941 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4942else
4943 ac_prog_rejected=no
4944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945for as_dir in $PATH
4946do
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 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 +00004951 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4952 ac_prog_rejected=yes
4953 continue
4954 fi
4955 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004957 break 2
4958 fi
4959done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004960done
Jim Grosbach673612e2008-10-02 22:56:44 +00004961IFS=$as_save_IFS
4962
4963if test $ac_prog_rejected = yes; then
4964 # We found a bogon in the path, so make sure we never use it.
4965 set dummy $ac_cv_prog_BUILD_CXX
4966 shift
4967 if test $# != 0; then
4968 # We chose a different compiler from the bogus one.
4969 # However, it has the same basename, so the bogon will be chosen
4970 # first if we set BUILD_CXX to just the basename; use the full file name.
4971 shift
4972 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4973 fi
4974fi
4975fi
4976fi
4977BUILD_CXX=$ac_cv_prog_BUILD_CXX
4978if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004979 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4980echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004982 { echo "$as_me:$LINENO: result: no" >&5
4983echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004984fi
4985
4986
4987 fi
4988 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004989else
4990 LLVM_CROSS_COMPILING=0
4991
4992fi
4993
Dan Gohman56fb5f92010-08-04 16:25:01 +00004994if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004995 cvsbuild="yes"
4996 optimize="no"
4997 CVSBUILD=CVSBUILD=1
4998
4999else
5000 cvsbuild="no"
5001 optimize="yes"
5002fi
5003
5004
Eric Christopherbee515f2011-11-11 22:51:42 +00005005# Check whether --enable-libcpp was given.
5006if test "${enable_libcpp+set}" = set; then
5007 enableval=$enable_libcpp;
5008else
5009 enableval=default
5010fi
5011
5012case "$enableval" in
5013 yes) ENABLE_LIBCPP=1
5014 ;;
5015 no) ENABLE_LIBCPP=0
5016 ;;
5017 default) ENABLE_LIBCPP=0
5018;;
5019 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5020echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5021 { (exit 1); exit 1; }; } ;;
5022esac
5023
Reid Spencera773bd52006-08-04 18:18:08 +00005024# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005025if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005026 enableval=$enable_optimized;
5027else
5028 enableval=$optimize
5029fi
5030
5031if test ${enableval} = "no" ; then
5032 ENABLE_OPTIMIZED=
5033
5034else
5035 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5036
5037fi
5038
David Greene2a5a12c2009-04-17 14:50:39 +00005039# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005040if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00005041 enableval=$enable_profiling;
5042else
5043 enableval="no"
5044fi
5045
5046if test ${enableval} = "no" ; then
5047 ENABLE_PROFILING=
5048
5049else
5050 ENABLE_PROFILING=ENABLE_PROFILING=1
5051
5052fi
5053
Reid Spencera773bd52006-08-04 18:18:08 +00005054# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005055if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005056 enableval=$enable_assertions;
5057else
5058 enableval="yes"
5059fi
5060
5061if test ${enableval} = "yes" ; then
5062 DISABLE_ASSERTIONS=
5063
5064else
5065 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5066
5067fi
5068
David Greenea696d242007-06-28 19:36:08 +00005069# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005070if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00005071 enableval=$enable_expensive_checks;
5072else
5073 enableval="no"
5074fi
5075
5076if test ${enableval} = "yes" ; then
5077 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5078
5079 EXPENSIVE_CHECKS=yes
5080
5081else
5082 ENABLE_EXPENSIVE_CHECKS=
5083
5084 EXPENSIVE_CHECKS=no
5085
5086fi
5087
Reid Spencer8b2e1412006-11-17 03:32:33 +00005088# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005089if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00005090 enableval=$enable_debug_runtime;
5091else
5092 enableval=no
5093fi
5094
5095if test ${enableval} = "no" ; then
5096 DEBUG_RUNTIME=
5097
5098else
5099 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5100
5101fi
5102
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005103# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005104if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00005105 enableval=$enable_debug_symbols;
5106else
5107 enableval=no
5108fi
5109
5110if test ${enableval} = "no" ; then
5111 DEBUG_SYMBOLS=
5112
5113else
5114 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5115
5116fi
5117
Reid Spencera773bd52006-08-04 18:18:08 +00005118# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005119if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005120 enableval=$enable_jit;
5121else
5122 enableval=default
5123fi
5124
5125if test ${enableval} = "no"
5126then
5127 JIT=
5128
5129else
5130 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005131 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005132 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005133 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005134 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005135 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005136 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005137 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00005138 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00005139 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00005140 ;;
Bruno Cardoso Lopesdca6cdd2011-07-21 16:28:51 +00005141 Mips) TARGET_HAS_JIT=1
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005142 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005143 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00005144 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005145 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00005146 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005147 Hexagon) TARGET_HAS_JIT=0
5148 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005149 MBlaze) TARGET_HAS_JIT=0
5150 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005151 PTX) TARGET_HAS_JIT=0
5152 ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005153 NVPTX) TARGET_HAS_JIT=0
5154 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005155 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00005156 ;;
5157 esac
5158fi
5159
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +00005160# Check whether --enable-docs was given.
5161if test "${enable_docs+set}" = set; then
5162 enableval=$enable_docs;
5163else
5164 enableval=default
5165fi
5166
5167case "$enableval" in
5168 yes) ENABLE_DOCS=1
5169 ;;
5170 no) ENABLE_DOCS=0
5171 ;;
5172 default) ENABLE_DOCS=1
5173 ;;
5174 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5175echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5176 { (exit 1); exit 1; }; } ;;
5177esac
5178
Reid Spencera773bd52006-08-04 18:18:08 +00005179# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005180if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005181 enableval=$enable_doxygen;
5182else
5183 enableval=default
5184fi
5185
5186case "$enableval" in
5187 yes) ENABLE_DOXYGEN=1
5188 ;;
5189 no) ENABLE_DOXYGEN=0
5190 ;;
5191 default) ENABLE_DOXYGEN=0
5192 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005193 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5194echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5195 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005196esac
5197
5198# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005199if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005200 enableval=$enable_threads;
5201else
Reid Spencer65c5d752006-11-05 17:08:18 +00005202 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00005203fi
5204
5205case "$enableval" in
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005206 yes) LLVM_ENABLE_THREADS=1
Reid Spencera773bd52006-08-04 18:18:08 +00005207 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005208 no) LLVM_ENABLE_THREADS=0
Reid Spencera773bd52006-08-04 18:18:08 +00005209 ;;
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005210 default) LLVM_ENABLE_THREADS=1
Reid Spencer65c5d752006-11-05 17:08:18 +00005211 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005212 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5213echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5214 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005215esac
5216
Owen Andersona8603702009-05-19 22:18:56 +00005217cat >>confdefs.h <<_ACEOF
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +00005218#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersona8603702009-05-19 22:18:56 +00005219_ACEOF
5220
5221
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +00005222# Check whether --enable-pthreads was given.
5223if test "${enable_pthreads+set}" = set; then
5224 enableval=$enable_pthreads;
5225else
5226 enableval=default
5227fi
5228
5229case "$enableval" in
5230 yes) ENABLE_PTHREADS=1
5231 ;;
5232 no) ENABLE_PTHREADS=0
5233 ;;
5234 default) ENABLE_PTHREADS=1
5235 ;;
5236 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5237echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5238 { (exit 1); exit 1; }; } ;;
5239esac
5240
Reid Spencer89b0d992006-12-16 22:07:52 +00005241# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005242if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00005243 enableval=$enable_pic;
5244else
5245 enableval=default
5246fi
5247
5248case "$enableval" in
5249 yes) ENABLE_PIC=1
5250 ;;
5251 no) ENABLE_PIC=0
5252 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00005253 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00005254 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005255 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5256echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5257 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00005258esac
5259
5260cat >>confdefs.h <<_ACEOF
5261#define ENABLE_PIC $ENABLE_PIC
5262_ACEOF
5263
5264
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00005265# Check whether --enable-shared was given.
5266if test "${enable_shared+set}" = set; then
5267 enableval=$enable_shared;
5268else
5269 enableval=default
5270fi
5271
5272case "$enableval" in
5273 yes) ENABLE_SHARED=1
5274 ;;
5275 no) ENABLE_SHARED=0
5276 ;;
5277 default) ENABLE_SHARED=0
5278 ;;
5279 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5280echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5281 { (exit 1); exit 1; }; } ;;
5282esac
5283
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005284# Check whether --enable-embed-stdcxx was given.
5285if test "${enable_embed_stdcxx+set}" = set; then
5286 enableval=$enable_embed_stdcxx;
5287else
5288 enableval=default
5289fi
5290
5291case "$enableval" in
5292 yes) ENABLE_EMBED_STDCXX=1
5293 ;;
5294 no) ENABLE_EMBED_STDCXX=0
5295 ;;
NAKAMURA Takumie9d3c1c2011-10-13 18:04:52 +00005296 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +00005297 ;;
5298 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5299echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5300 { (exit 1); exit 1; }; } ;;
5301esac
5302
Daniel Dunbardd464df2010-05-10 20:11:56 +00005303# Check whether --enable-timestamps was given.
5304if test "${enable_timestamps+set}" = set; then
5305 enableval=$enable_timestamps;
5306else
5307 enableval=default
5308fi
5309
5310case "$enableval" in
5311 yes) ENABLE_TIMESTAMPS=1
5312 ;;
5313 no) ENABLE_TIMESTAMPS=0
5314 ;;
5315 default) ENABLE_TIMESTAMPS=1
5316 ;;
5317 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5318echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5319 { (exit 1); exit 1; }; } ;;
5320esac
5321
5322cat >>confdefs.h <<_ACEOF
5323#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5324_ACEOF
5325
5326
Reid Spencera773bd52006-08-04 18:18:08 +00005327TARGETS_TO_BUILD=""
5328# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005329if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005330 enableval=$enable_targets;
5331else
5332 enableval=all
5333fi
5334
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005335if test "$enableval" = host-only ; then
5336 enableval=host
5337fi
Reid Spencera773bd52006-08-04 18:18:08 +00005338case "$enableval" in
Justin Holewinski49683f32012-05-04 20:18:50 +00005339 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX NVPTX Hexagon" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005340 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5341 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00005342 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5343 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5344 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5345 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005346 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5347 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindola97fb69b2011-12-28 17:08:00 +00005348 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005349 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005350 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5351 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005352 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005353 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005354 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005355 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005356 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005357 host) case "$llvm_cv_target_arch" in
5358 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5359 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5360 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5361 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005362 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5363 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005364 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005365 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005366 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5367 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005368 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005369 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Justin Holewinski49683f32012-05-04 20:18:50 +00005370 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005371 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5372echo "$as_me: error: Can not set target to build" >&2;}
5373 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005374 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005375 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5376echo "$as_me: error: Unrecognized target $a_target" >&2;}
5377 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005378 esac
5379 done
5380 ;;
5381esac
Reid Spencera773bd52006-08-04 18:18:08 +00005382TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5383
5384
Douglas Gregor0711c302009-06-17 00:43:20 +00005385for a_target in $TARGETS_TO_BUILD; do
5386 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5387
5388cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005389#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5390_ACEOF
5391
5392 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5393 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Chenge78085a2011-07-22 21:58:54 +00005394 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christopher753f3262010-08-30 18:34:48 +00005395 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005396 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5397 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5398 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005399 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5400 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5401 fi
Eric Christopher753f3262010-08-30 18:34:48 +00005402
5403cat >>confdefs.h <<_ACEOF
5404#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005405_ACEOF
5406
5407
5408cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005409#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5410_ACEOF
5411
5412
5413cat >>confdefs.h <<_ACEOF
Evan Chenge78085a2011-07-22 21:58:54 +00005414#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng43966132011-07-19 06:37:02 +00005415_ACEOF
5416
5417
5418cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005419#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005420_ACEOF
5421
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005422 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödindd54ffd2011-03-09 17:25:46 +00005423
5424cat >>confdefs.h <<_ACEOF
5425#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5426_ACEOF
5427
Jan Sjödin6e70cc12011-03-14 22:12:35 +00005428 fi
Eric Christopherc4b22712012-03-26 21:56:56 +00005429 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5430
5431cat >>confdefs.h <<_ACEOF
5432#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5433_ACEOF
5434
5435 fi
Douglas Gregor0711c302009-06-17 00:43:20 +00005436 fi
5437done
5438
Douglas Gregor1555a232009-06-16 20:12:29 +00005439LLVM_ENUM_TARGETS=""
5440LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005441LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005442LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005443for target_to_build in $TARGETS_TO_BUILD; do
5444 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattnere15f2e12010-11-14 19:10:47 +00005445 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach7ac16092010-10-01 22:39:28 +00005446 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5447 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005448 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5449 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5450 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005451 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5452 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5453 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005454done
5455
5456
5457
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005458
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005459
Reid Spencera773bd52006-08-04 18:18:08 +00005460
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005461# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005462if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005463 withval=$with_optimize_option;
5464else
5465 withval=default
5466fi
5467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005468{ echo "$as_me:$LINENO: checking optimization flags" >&5
5469echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005470case "$withval" in
5471 default)
5472 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005473 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005474 MingW) optimize_option=-O2 ;;
5475 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005476 esac ;;
5477 *) optimize_option="$withval" ;;
5478esac
5479OPTIMIZE_OPTION=$optimize_option
5480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005481{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5482echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005483
5484
Reid Spencera773bd52006-08-04 18:18:08 +00005485# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005486if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005487 withval=$with_extra_options;
5488else
5489 withval=default
5490fi
5491
5492case "$withval" in
5493 default) EXTRA_OPTIONS= ;;
5494 *) EXTRA_OPTIONS=$withval ;;
5495esac
5496EXTRA_OPTIONS=$EXTRA_OPTIONS
5497
5498
Daniel Dunbared344d22011-06-16 22:30:41 +00005499
5500# Check whether --with-extra-ld-options was given.
5501if test "${with_extra_ld_options+set}" = set; then
5502 withval=$with_extra_ld_options;
5503else
5504 withval=default
5505fi
5506
5507case "$withval" in
5508 default) EXTRA_LD_OPTIONS= ;;
5509 *) EXTRA_LD_OPTIONS=$withval ;;
5510esac
5511EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5512
5513
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005514# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005515if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005516 enableval=$enable_bindings;
5517else
5518 enableval=default
5519fi
5520
5521BINDINGS_TO_BUILD=""
5522case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005523 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005524 all ) BINDINGS_TO_BUILD="ocaml" ;;
5525 none | no) BINDINGS_TO_BUILD="" ;;
5526 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5527 case "$a_binding" in
5528 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005529 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5530echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5531 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005532 esac
5533 done
5534 ;;
5535esac
5536
Reid Spencera773bd52006-08-04 18:18:08 +00005537
Gordon Henriksenf0915682007-10-02 16:42:22 +00005538# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005539if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005540 withval=$with_ocaml_libdir;
5541else
5542 withval=auto
5543fi
5544
5545case "$withval" in
5546 auto) with_ocaml_libdir="$withval" ;;
5547 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005548 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5549echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5550 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005551esac
5552
5553
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005554# Check whether --with-clang-srcdir was given.
5555if test "${with_clang_srcdir+set}" = set; then
5556 withval=$with_clang_srcdir;
5557else
5558 withval="-"
5559fi
5560
5561case "$withval" in
Eric Christopherac898652012-02-02 00:19:05 +00005562 -) clang_src_root="" ;;
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +00005563 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5564 *) clang_src_root="$ac_pwd/$withval" ;;
5565esac
5566CLANG_SRC_ROOT=$clang_src_root
5567
5568
5569
Chandler Carruth6b241162010-10-19 08:21:25 +00005570# Check whether --with-clang-resource-dir was given.
5571if test "${with_clang_resource_dir+set}" = set; then
5572 withval=$with_clang_resource_dir;
5573else
5574 withval=""
5575fi
5576
5577
5578cat >>confdefs.h <<_ACEOF
5579#define CLANG_RESOURCE_DIR "$withval"
5580_ACEOF
5581
5582
5583
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005584# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005585if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005586 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005587else
5588 withval=""
5589fi
5590
5591
5592cat >>confdefs.h <<_ACEOF
5593#define C_INCLUDE_DIRS "$withval"
5594_ACEOF
5595
5596
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005597# Clang normally uses the system c++ headers and libraries. With this option,
5598# clang will use the ones provided by a gcc installation instead. This option should
5599# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005600
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005601# Check whether --with-gcc-toolchain was given.
5602if test "${with_gcc_toolchain+set}" = set; then
5603 withval=$with_gcc_toolchain;
Rafael Espindola420d23c2009-11-16 19:46:55 +00005604else
5605 withval=""
5606fi
5607
5608
5609cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005610#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola420d23c2009-11-16 19:46:55 +00005611_ACEOF
5612
5613
5614
Sebastian Pope4f1b372012-04-30 20:06:58 +00005615# Check whether --with-default-sysroot was given.
5616if test "${with_default_sysroot+set}" = set; then
5617 withval=$with_default_sysroot;
Sebastian Pop7e5c3162012-04-16 04:11:45 +00005618else
5619 withval=""
5620fi
5621
5622
5623cat >>confdefs.h <<_ACEOF
5624#define DEFAULT_SYSROOT "$withval"
5625_ACEOF
5626
5627
5628
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005629# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005630if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005631 withval=$with_binutils_include;
5632else
5633 withval=default
5634fi
5635
5636case "$withval" in
5637 default) WITH_BINUTILS_INCDIR=default ;;
5638 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005639 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5640echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5641 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005642esac
5643if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5644 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5645
5646 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5647 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005648 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5649echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5650 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005651 fi
5652fi
5653
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005654
5655# Check whether --with-bug-report-url was given.
5656if test "${with_bug_report_url+set}" = set; then
5657 withval=$with_bug_report_url;
5658else
NAKAMURA Takumi4362c622011-08-12 01:50:43 +00005659 withval="http://llvm.org/bugs/"
Eric Christopher91e7ccd2011-07-20 17:04:49 +00005660fi
5661
5662
5663cat >>confdefs.h <<_ACEOF
5664#define BUG_REPORT_URL "$withval"
5665_ACEOF
5666
5667
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005668# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005669if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005670 enableval=$enable_libffi; case "$enableval" in
5671 yes) llvm_cv_enable_libffi="yes" ;;
5672 no) llvm_cv_enable_libffi="no" ;;
5673 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005674echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5675 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005676 esac
5677else
5678 llvm_cv_enable_libffi=no
5679fi
5680
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005681
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005682
Bob Wilsonae7e2a42011-11-28 07:59:52 +00005683# Check whether --with-internal-prefix was given.
5684if test "${with_internal_prefix+set}" = set; then
5685 withval=$with_internal_prefix;
5686else
5687 withval=""
5688fi
5689
5690INTERNAL_PREFIX=$withval
5691
5692
5693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005694{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5695echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5696if test "${lt_cv_path_NM+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005698else
5699 if test -n "$NM"; then
5700 # Let the user override the test.
5701 lt_cv_path_NM="$NM"
5702else
5703 lt_nm_to_check="${ac_tool_prefix}nm"
5704 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5705 lt_nm_to_check="$lt_nm_to_check nm"
5706 fi
5707 for lt_tmp_nm in $lt_nm_to_check; do
5708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5709 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5710 IFS="$lt_save_ifs"
5711 test -z "$ac_dir" && ac_dir=.
5712 tmp_nm="$ac_dir/$lt_tmp_nm"
5713 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5714 # Check to see if the nm accepts a BSD-compat flag.
5715 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5716 # nm: unknown option "B" ignored
5717 # Tru64's nm complains that /dev/null is an invalid object file
5718 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5719 */dev/null* | *'Invalid file or object type'*)
5720 lt_cv_path_NM="$tmp_nm -B"
5721 break
5722 ;;
5723 *)
5724 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5725 */dev/null*)
5726 lt_cv_path_NM="$tmp_nm -p"
5727 break
5728 ;;
5729 *)
5730 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5731 continue # so that we can try to find one that supports BSD flags
5732 ;;
5733 esac
5734 ;;
5735 esac
5736 fi
5737 done
5738 IFS="$lt_save_ifs"
5739 done
5740 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5741fi
5742fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005743{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5744echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005745NM="$lt_cv_path_NM"
5746
5747
5748
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005749{ echo "$as_me:$LINENO: checking for GNU make" >&5
5750echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5751if test "${llvm_cv_gnu_make_command+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005753else
5754 llvm_cv_gnu_make_command=''
5755 for a in "$MAKE" make gmake gnumake ; do
5756 if test -z "$a" ; then continue ; fi ;
5757 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5758 then
5759 llvm_cv_gnu_make_command=$a ;
5760 break;
5761 fi
5762 done
5763fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005764{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5765echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005766 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5767 ifGNUmake='' ;
5768 else
5769 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005770 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5771echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00005772 fi
5773
5774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005775{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5776echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005777LN_S=$as_ln_s
5778if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005779 { echo "$as_me:$LINENO: result: yes" >&5
5780echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005782 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5783echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005784fi
5785
5786# Extract the first word of "cmp", so it can be a program name with args.
5787set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790if test "${ac_cv_path_CMP+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005792else
5793 case $CMP in
5794 [\\/]* | ?:[\\/]*)
5795 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5796 ;;
5797 *)
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799for as_dir in $PATH
5800do
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 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 +00005805 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005807 break 2
5808 fi
5809done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005810done
Reid Spencera773bd52006-08-04 18:18:08 +00005811IFS=$as_save_IFS
5812
5813 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5814 ;;
5815esac
5816fi
5817CMP=$ac_cv_path_CMP
5818if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005819 { echo "$as_me:$LINENO: result: $CMP" >&5
5820echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005821else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005822 { echo "$as_me:$LINENO: result: no" >&5
5823echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005824fi
5825
5826
5827# Extract the first word of "cp", so it can be a program name with args.
5828set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5831if test "${ac_cv_path_CP+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005833else
5834 case $CP in
5835 [\\/]* | ?:[\\/]*)
5836 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5837 ;;
5838 *)
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840for as_dir in $PATH
5841do
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 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 +00005846 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005848 break 2
5849 fi
5850done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005851done
Reid Spencera773bd52006-08-04 18:18:08 +00005852IFS=$as_save_IFS
5853
5854 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5855 ;;
5856esac
5857fi
5858CP=$ac_cv_path_CP
5859if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005860 { echo "$as_me:$LINENO: result: $CP" >&5
5861echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005862else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005863 { echo "$as_me:$LINENO: result: no" >&5
5864echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005865fi
5866
5867
5868# Extract the first word of "date", so it can be a program name with args.
5869set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5872if test "${ac_cv_path_DATE+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005874else
5875 case $DATE in
5876 [\\/]* | ?:[\\/]*)
5877 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5878 ;;
5879 *)
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883 IFS=$as_save_IFS
5884 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 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 +00005887 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005889 break 2
5890 fi
5891done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005892done
Reid Spencera773bd52006-08-04 18:18:08 +00005893IFS=$as_save_IFS
5894
5895 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5896 ;;
5897esac
5898fi
5899DATE=$ac_cv_path_DATE
5900if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005901 { echo "$as_me:$LINENO: result: $DATE" >&5
5902echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005903else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005904 { echo "$as_me:$LINENO: result: no" >&5
5905echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005906fi
5907
5908
5909# Extract the first word of "find", so it can be a program name with args.
5910set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5913if test "${ac_cv_path_FIND+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005915else
5916 case $FIND in
5917 [\\/]* | ?:[\\/]*)
5918 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5919 ;;
5920 *)
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922for as_dir in $PATH
5923do
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 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 +00005928 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005930 break 2
5931 fi
5932done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005933done
Reid Spencera773bd52006-08-04 18:18:08 +00005934IFS=$as_save_IFS
5935
5936 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5937 ;;
5938esac
5939fi
5940FIND=$ac_cv_path_FIND
5941if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005942 { echo "$as_me:$LINENO: result: $FIND" >&5
5943echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005945 { echo "$as_me:$LINENO: result: no" >&5
5946echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005947fi
5948
5949
5950# Extract the first word of "grep", so it can be a program name with args.
5951set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5954if test "${ac_cv_path_GREP+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005956else
5957 case $GREP in
5958 [\\/]* | ?:[\\/]*)
5959 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5960 ;;
5961 *)
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963for as_dir in $PATH
5964do
5965 IFS=$as_save_IFS
5966 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 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 +00005969 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005971 break 2
5972 fi
5973done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005974done
Reid Spencera773bd52006-08-04 18:18:08 +00005975IFS=$as_save_IFS
5976
5977 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5978 ;;
5979esac
5980fi
5981GREP=$ac_cv_path_GREP
5982if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005983 { echo "$as_me:$LINENO: result: $GREP" >&5
5984echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005985else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005986 { echo "$as_me:$LINENO: result: no" >&5
5987echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005988fi
5989
5990
5991# Extract the first word of "mkdir", so it can be a program name with args.
5992set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005993{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5995if test "${ac_cv_path_MKDIR+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005997else
5998 case $MKDIR in
5999 [\\/]* | ?:[\\/]*)
6000 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6001 ;;
6002 *)
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH
6005do
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 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 +00006010 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006012 break 2
6013 fi
6014done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006015done
Reid Spencera773bd52006-08-04 18:18:08 +00006016IFS=$as_save_IFS
6017
6018 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6019 ;;
6020esac
6021fi
6022MKDIR=$ac_cv_path_MKDIR
6023if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006024 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6025echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006026else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006027 { echo "$as_me:$LINENO: result: no" >&5
6028echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006029fi
6030
6031
6032# Extract the first word of "mv", so it can be a program name with args.
6033set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006034{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6036if test "${ac_cv_path_MV+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006038else
6039 case $MV in
6040 [\\/]* | ?:[\\/]*)
6041 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6042 ;;
6043 *)
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045for as_dir in $PATH
6046do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 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 +00006051 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006053 break 2
6054 fi
6055done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006056done
Reid Spencera773bd52006-08-04 18:18:08 +00006057IFS=$as_save_IFS
6058
6059 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6060 ;;
6061esac
6062fi
6063MV=$ac_cv_path_MV
6064if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006065 { echo "$as_me:$LINENO: result: $MV" >&5
6066echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006067else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006068 { echo "$as_me:$LINENO: result: no" >&5
6069echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006070fi
6071
6072
6073if test -n "$ac_tool_prefix"; then
6074 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6075set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6078if test "${ac_cv_prog_RANLIB+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006080else
6081 if test -n "$RANLIB"; then
6082 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6083else
6084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085for as_dir in $PATH
6086do
6087 IFS=$as_save_IFS
6088 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 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 +00006091 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006093 break 2
6094 fi
6095done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006096done
Reid Spencera773bd52006-08-04 18:18:08 +00006097IFS=$as_save_IFS
6098
6099fi
6100fi
6101RANLIB=$ac_cv_prog_RANLIB
6102if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006103 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6104echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006105else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006106 { echo "$as_me:$LINENO: result: no" >&5
6107echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006108fi
6109
6110
6111fi
6112if test -z "$ac_cv_prog_RANLIB"; then
6113 ac_ct_RANLIB=$RANLIB
6114 # Extract the first word of "ranlib", so it can be a program name with args.
6115set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006116{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6118if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006120else
6121 if test -n "$ac_ct_RANLIB"; then
6122 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6123else
6124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125for as_dir in $PATH
6126do
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 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 +00006131 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006133 break 2
6134 fi
6135done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006136done
Reid Spencera773bd52006-08-04 18:18:08 +00006137IFS=$as_save_IFS
6138
6139fi
6140fi
6141ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6142if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006143 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6144echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006145else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006146 { echo "$as_me:$LINENO: result: no" >&5
6147echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006148fi
6149
6150 if test "x$ac_ct_RANLIB" = x; then
6151 RANLIB=":"
6152 else
6153 case $cross_compiling:$ac_tool_warned in
6154yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006155{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6156whose name does not start with the host triplet. If you think this
6157configuration is useful to you, please write to autoconf@gnu.org." >&5
6158echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6159whose name does not start with the host triplet. If you think this
6160configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006161ac_tool_warned=yes ;;
6162esac
6163 RANLIB=$ac_ct_RANLIB
6164 fi
6165else
6166 RANLIB="$ac_cv_prog_RANLIB"
6167fi
6168
Torok Edwin871384f2010-01-26 08:50:50 +00006169if test -n "$ac_tool_prefix"; then
6170 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6171set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174if test "${ac_cv_prog_AR+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006176else
6177 if test -n "$AR"; then
6178 ac_cv_prog_AR="$AR" # Let the user override the test.
6179else
6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181for as_dir in $PATH
6182do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 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 +00006187 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006189 break 2
6190 fi
6191done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006192done
Torok Edwin871384f2010-01-26 08:50:50 +00006193IFS=$as_save_IFS
6194
6195fi
6196fi
6197AR=$ac_cv_prog_AR
6198if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006199 { echo "$as_me:$LINENO: result: $AR" >&5
6200echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006202 { echo "$as_me:$LINENO: result: no" >&5
6203echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006204fi
6205
6206
6207fi
6208if test -z "$ac_cv_prog_AR"; then
6209 ac_ct_AR=$AR
6210 # Extract the first word of "ar", so it can be a program name with args.
6211set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006216else
6217 if test -n "$ac_ct_AR"; then
6218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6219else
6220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221for as_dir in $PATH
6222do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 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 +00006227 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00006229 break 2
6230 fi
6231done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006232done
Torok Edwin871384f2010-01-26 08:50:50 +00006233IFS=$as_save_IFS
6234
6235fi
6236fi
6237ac_ct_AR=$ac_cv_prog_ac_ct_AR
6238if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006239 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6240echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006241else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006242 { echo "$as_me:$LINENO: result: no" >&5
6243echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00006244fi
6245
6246 if test "x$ac_ct_AR" = x; then
6247 AR="false"
6248 else
6249 case $cross_compiling:$ac_tool_warned in
6250yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006251{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6252whose name does not start with the host triplet. If you think this
6253configuration is useful to you, please write to autoconf@gnu.org." >&5
6254echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6255whose name does not start with the host triplet. If you think this
6256configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00006257ac_tool_warned=yes ;;
6258esac
6259 AR=$ac_ct_AR
6260 fi
6261else
6262 AR="$ac_cv_prog_AR"
6263fi
6264
Reid Spencera773bd52006-08-04 18:18:08 +00006265# Extract the first word of "rm", so it can be a program name with args.
6266set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269if test "${ac_cv_path_RM+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006271else
6272 case $RM in
6273 [\\/]* | ?:[\\/]*)
6274 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6275 ;;
6276 *)
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278for as_dir in $PATH
6279do
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 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 +00006284 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006286 break 2
6287 fi
6288done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006289done
Reid Spencera773bd52006-08-04 18:18:08 +00006290IFS=$as_save_IFS
6291
6292 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6293 ;;
6294esac
6295fi
6296RM=$ac_cv_path_RM
6297if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006298 { echo "$as_me:$LINENO: result: $RM" >&5
6299echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006300else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006301 { echo "$as_me:$LINENO: result: no" >&5
6302echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006303fi
6304
6305
6306# Extract the first word of "sed", so it can be a program name with args.
6307set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006308{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310if test "${ac_cv_path_SED+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006312else
6313 case $SED in
6314 [\\/]* | ?:[\\/]*)
6315 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6316 ;;
6317 *)
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319for as_dir in $PATH
6320do
6321 IFS=$as_save_IFS
6322 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 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 +00006325 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006327 break 2
6328 fi
6329done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006330done
Reid Spencera773bd52006-08-04 18:18:08 +00006331IFS=$as_save_IFS
6332
6333 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6334 ;;
6335esac
6336fi
6337SED=$ac_cv_path_SED
6338if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006339 { echo "$as_me:$LINENO: result: $SED" >&5
6340echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006342 { echo "$as_me:$LINENO: result: no" >&5
6343echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006344fi
6345
6346
6347# Extract the first word of "tar", so it can be a program name with args.
6348set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351if test "${ac_cv_path_TAR+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006353else
6354 case $TAR in
6355 [\\/]* | ?:[\\/]*)
6356 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6357 ;;
6358 *)
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 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 +00006366 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006368 break 2
6369 fi
6370done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006371done
Reid Spencera773bd52006-08-04 18:18:08 +00006372IFS=$as_save_IFS
6373
6374 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6375 ;;
6376esac
6377fi
6378TAR=$ac_cv_path_TAR
6379if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006380 { echo "$as_me:$LINENO: result: $TAR" >&5
6381echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006382else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006383 { echo "$as_me:$LINENO: result: no" >&5
6384echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006385fi
6386
6387
6388# Extract the first word of "pwd", so it can be a program name with args.
6389set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6392if test "${ac_cv_path_BINPWD+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006394else
6395 case $BINPWD in
6396 [\\/]* | ?:[\\/]*)
6397 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6398 ;;
6399 *)
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401for as_dir in $PATH
6402do
6403 IFS=$as_save_IFS
6404 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 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 +00006407 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006409 break 2
6410 fi
6411done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006412done
Reid Spencera773bd52006-08-04 18:18:08 +00006413IFS=$as_save_IFS
6414
6415 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6416 ;;
6417esac
6418fi
6419BINPWD=$ac_cv_path_BINPWD
6420if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006421 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6422echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006424 { echo "$as_me:$LINENO: result: no" >&5
6425echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006426fi
6427
6428
6429
6430# Extract the first word of "Graphviz", so it can be a program name with args.
6431set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6434if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006436else
6437 case $GRAPHVIZ in
6438 [\\/]* | ?:[\\/]*)
6439 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6440 ;;
6441 *)
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443for as_dir in $PATH
6444do
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 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 +00006449 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006451 break 2
6452 fi
6453done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006454done
Reid Spencera773bd52006-08-04 18:18:08 +00006455IFS=$as_save_IFS
6456
6457 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6458 ;;
6459esac
6460fi
6461GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6462if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006463 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6464echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006465else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006466 { echo "$as_me:$LINENO: result: no" >&5
6467echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006468fi
6469
6470
6471if test "$GRAPHVIZ" != "echo Graphviz" ; then
6472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006473cat >>confdefs.h <<\_ACEOF
6474#define HAVE_GRAPHVIZ 1
6475_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006476
Jeff Cohen28783c32007-01-12 18:22:38 +00006477 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006478 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6479 fi
6480
6481cat >>confdefs.h <<_ACEOF
6482#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6483_ACEOF
6484
6485fi
6486# Extract the first word of "dot", so it can be a program name with args.
6487set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6490if test "${ac_cv_path_DOT+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006492else
6493 case $DOT in
6494 [\\/]* | ?:[\\/]*)
6495 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6496 ;;
6497 *)
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499for as_dir in $PATH
6500do
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 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 +00006505 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006507 break 2
6508 fi
6509done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006510done
Reid Spencera773bd52006-08-04 18:18:08 +00006511IFS=$as_save_IFS
6512
6513 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6514 ;;
6515esac
6516fi
6517DOT=$ac_cv_path_DOT
6518if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006519 { echo "$as_me:$LINENO: result: $DOT" >&5
6520echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006521else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006522 { echo "$as_me:$LINENO: result: no" >&5
6523echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006524fi
6525
6526
6527if test "$DOT" != "echo dot" ; then
6528
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006529cat >>confdefs.h <<\_ACEOF
6530#define HAVE_DOT 1
6531_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006532
Jeff Cohen28783c32007-01-12 18:22:38 +00006533 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006534 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6535 fi
6536
6537cat >>confdefs.h <<_ACEOF
6538#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6539_ACEOF
6540
6541fi
David Greenef0b9eff2009-07-09 17:16:26 +00006542# Extract the first word of "fdp", so it can be a program name with args.
6543set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006544{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6546if test "${ac_cv_path_FDP+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006548else
6549 case $FDP in
6550 [\\/]* | ?:[\\/]*)
6551 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6552 ;;
6553 *)
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555for as_dir in $PATH
6556do
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 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 +00006561 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006563 break 2
6564 fi
6565done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006566done
David Greenef0b9eff2009-07-09 17:16:26 +00006567IFS=$as_save_IFS
6568
6569 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6570 ;;
6571esac
6572fi
6573FDP=$ac_cv_path_FDP
6574if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006575 { echo "$as_me:$LINENO: result: $FDP" >&5
6576echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006577else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006578 { echo "$as_me:$LINENO: result: no" >&5
6579echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006580fi
6581
6582
6583if test "$FDP" != "echo fdp" ; then
6584
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006585cat >>confdefs.h <<\_ACEOF
6586#define HAVE_FDP 1
6587_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006588
6589 if test "$llvm_cv_os_type" = "MingW" ; then
6590 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6591 fi
6592
6593cat >>confdefs.h <<_ACEOF
6594#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6595_ACEOF
6596
6597fi
6598# Extract the first word of "neato", so it can be a program name with args.
6599set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602if test "${ac_cv_path_NEATO+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006604else
6605 case $NEATO in
6606 [\\/]* | ?:[\\/]*)
6607 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6608 ;;
6609 *)
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611for as_dir in $PATH
6612do
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 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 +00006617 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006619 break 2
6620 fi
6621done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006622done
David Greenef0b9eff2009-07-09 17:16:26 +00006623IFS=$as_save_IFS
6624
6625 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6626 ;;
6627esac
6628fi
6629NEATO=$ac_cv_path_NEATO
6630if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006631 { echo "$as_me:$LINENO: result: $NEATO" >&5
6632echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006633else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006634 { echo "$as_me:$LINENO: result: no" >&5
6635echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006636fi
6637
6638
6639if test "$NEATO" != "echo neato" ; then
6640
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006641cat >>confdefs.h <<\_ACEOF
6642#define HAVE_NEATO 1
6643_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006644
6645 if test "$llvm_cv_os_type" = "MingW" ; then
6646 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6647 fi
6648
6649cat >>confdefs.h <<_ACEOF
6650#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6651_ACEOF
6652
6653fi
6654# Extract the first word of "twopi", so it can be a program name with args.
6655set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658if test "${ac_cv_path_TWOPI+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006660else
6661 case $TWOPI in
6662 [\\/]* | ?:[\\/]*)
6663 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6664 ;;
6665 *)
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 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 +00006673 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006675 break 2
6676 fi
6677done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006678done
David Greenef0b9eff2009-07-09 17:16:26 +00006679IFS=$as_save_IFS
6680
6681 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6682 ;;
6683esac
6684fi
6685TWOPI=$ac_cv_path_TWOPI
6686if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006687 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6688echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006689else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006690 { echo "$as_me:$LINENO: result: no" >&5
6691echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006692fi
6693
6694
6695if test "$TWOPI" != "echo twopi" ; then
6696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006697cat >>confdefs.h <<\_ACEOF
6698#define HAVE_TWOPI 1
6699_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006700
6701 if test "$llvm_cv_os_type" = "MingW" ; then
6702 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6703 fi
6704
6705cat >>confdefs.h <<_ACEOF
6706#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6707_ACEOF
6708
6709fi
6710# Extract the first word of "circo", so it can be a program name with args.
6711set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006712{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6714if test "${ac_cv_path_CIRCO+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00006716else
6717 case $CIRCO in
6718 [\\/]* | ?:[\\/]*)
6719 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6720 ;;
6721 *)
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723for as_dir in $PATH
6724do
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 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 +00006729 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00006731 break 2
6732 fi
6733done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006734done
David Greenef0b9eff2009-07-09 17:16:26 +00006735IFS=$as_save_IFS
6736
6737 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6738 ;;
6739esac
6740fi
6741CIRCO=$ac_cv_path_CIRCO
6742if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006743 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6744echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006745else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006746 { echo "$as_me:$LINENO: result: no" >&5
6747echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00006748fi
6749
6750
6751if test "$CIRCO" != "echo circo" ; then
6752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006753cat >>confdefs.h <<\_ACEOF
6754#define HAVE_CIRCO 1
6755_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00006756
6757 if test "$llvm_cv_os_type" = "MingW" ; then
6758 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6759 fi
6760
6761cat >>confdefs.h <<_ACEOF
6762#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6763_ACEOF
6764
6765fi
Reid Spencera773bd52006-08-04 18:18:08 +00006766for ac_prog in gv gsview32
6767do
6768 # Extract the first word of "$ac_prog", so it can be a program name with args.
6769set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772if test "${ac_cv_path_GV+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006774else
6775 case $GV in
6776 [\\/]* | ?:[\\/]*)
6777 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6778 ;;
6779 *)
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781for as_dir in $PATH
6782do
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 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 +00006787 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006789 break 2
6790 fi
6791done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006792done
Reid Spencera773bd52006-08-04 18:18:08 +00006793IFS=$as_save_IFS
6794
6795 ;;
6796esac
6797fi
6798GV=$ac_cv_path_GV
6799if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006800 { echo "$as_me:$LINENO: result: $GV" >&5
6801echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006802else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006803 { echo "$as_me:$LINENO: result: no" >&5
6804echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006805fi
6806
6807
6808 test -n "$GV" && break
6809done
6810test -n "$GV" || GV="echo gv"
6811
6812if test "$GV" != "echo gv" ; then
6813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006814cat >>confdefs.h <<\_ACEOF
6815#define HAVE_GV 1
6816_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006817
Jeff Cohen28783c32007-01-12 18:22:38 +00006818 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006819 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6820 fi
6821
6822cat >>confdefs.h <<_ACEOF
6823#define LLVM_PATH_GV "$GV${EXEEXT}"
6824_ACEOF
6825
6826fi
6827# Extract the first word of "dotty", so it can be a program name with args.
6828set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831if test "${ac_cv_path_DOTTY+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006833else
6834 case $DOTTY in
6835 [\\/]* | ?:[\\/]*)
6836 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6837 ;;
6838 *)
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 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 +00006846 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006848 break 2
6849 fi
6850done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006851done
Reid Spencera773bd52006-08-04 18:18:08 +00006852IFS=$as_save_IFS
6853
6854 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6855 ;;
6856esac
6857fi
6858DOTTY=$ac_cv_path_DOTTY
6859if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006860 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6861echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006862else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006863 { echo "$as_me:$LINENO: result: no" >&5
6864echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006865fi
6866
6867
6868if test "$DOTTY" != "echo dotty" ; then
6869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006870cat >>confdefs.h <<\_ACEOF
6871#define HAVE_DOTTY 1
6872_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006873
Jeff Cohen28783c32007-01-12 18:22:38 +00006874 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00006875 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6876 fi
6877
6878cat >>confdefs.h <<_ACEOF
6879#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6880_ACEOF
6881
6882fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00006883# Extract the first word of "xdot.py", so it can be a program name with args.
6884set dummy xdot.py; ac_word=$2
6885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887if test "${ac_cv_path_XDOT_PY+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6889else
6890 case $XDOT_PY in
6891 [\\/]* | ?:[\\/]*)
6892 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6893 ;;
6894 *)
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896for as_dir in $PATH
6897do
6898 IFS=$as_save_IFS
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6902 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 break 2
6905 fi
6906done
6907done
6908IFS=$as_save_IFS
6909
6910 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6911 ;;
6912esac
6913fi
6914XDOT_PY=$ac_cv_path_XDOT_PY
6915if test -n "$XDOT_PY"; then
6916 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6917echo "${ECHO_T}$XDOT_PY" >&6; }
6918else
6919 { echo "$as_me:$LINENO: result: no" >&5
6920echo "${ECHO_T}no" >&6; }
6921fi
6922
6923
6924if test "$XDOT_PY" != "echo xdot.py" ; then
6925
6926cat >>confdefs.h <<\_ACEOF
6927#define HAVE_XDOT_PY 1
6928_ACEOF
6929
6930 if test "$llvm_cv_os_type" = "MingW" ; then
6931 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6932 fi
6933
6934cat >>confdefs.h <<_ACEOF
6935#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6936_ACEOF
6937
6938fi
Reid Spencera773bd52006-08-04 18:18:08 +00006939
Reid Spencera773bd52006-08-04 18:18:08 +00006940# Find a good install program. We prefer a C program (faster),
6941# so one script is as good as another. But avoid the broken or
6942# incompatible versions:
6943# SysV /etc/install, /usr/sbin/install
6944# SunOS /usr/etc/install
6945# IRIX /sbin/install
6946# AIX /bin/install
6947# AmigaOS /C/install, which installs bootblocks on floppy discs
6948# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6949# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6950# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6951# OS/2's system install, which has a completely different semantic
6952# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006953{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6954echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006955if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006956if test "${ac_cv_path_install+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006958else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006964 # Account for people who put trailing slashes in PATH elements.
6965case $as_dir/ in
6966 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006967 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006968 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00006969 /usr/ucb/* ) ;;
6970 *)
6971 # OSF1 and SCO ODT 3.0 have their own names for install.
6972 # Don't use installbsd from OSF since it installs stuff as root
6973 # by default.
6974 for ac_prog in ginstall scoinst install; do
6975 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006976 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 +00006977 if test $ac_prog = install &&
6978 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6979 # AIX install. It has an incompatible calling convention.
6980 :
6981 elif test $ac_prog = install &&
6982 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6983 # program-specific install script used by HP pwplus--don't use.
6984 :
6985 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006986 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6987 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00006988 fi
6989 fi
6990 done
6991 done
6992 ;;
6993esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006994done
Reid Spencera773bd52006-08-04 18:18:08 +00006995IFS=$as_save_IFS
6996
6997
6998fi
6999 if test "${ac_cv_path_install+set}" = set; then
7000 INSTALL=$ac_cv_path_install
7001 else
7002 # As a last resort, use the slow shell script. Don't cache a
7003 # value for INSTALL within a source directory, because that will
7004 # break other packages using the cache if that directory is
7005 # removed, or if the value is a relative name.
7006 INSTALL=$ac_install_sh
7007 fi
7008fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007009{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7010echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007011
7012# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7013# It thinks the first close brace ends the variable substitution.
7014test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7015
7016test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7017
7018test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7019
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007020case "$INSTALL" in
7021 [\\/$]* | ?:[\\/]* ) ;;
7022 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7023esac
Reid Spencera773bd52006-08-04 18:18:08 +00007024
7025# Extract the first word of "bzip2", so it can be a program name with args.
7026set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029if test "${ac_cv_path_BZIP2+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007031else
7032 case $BZIP2 in
7033 [\\/]* | ?:[\\/]*)
7034 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7035 ;;
7036 *)
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in $PATH
7039do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 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 +00007044 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007046 break 2
7047 fi
7048done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007049done
Reid Spencera773bd52006-08-04 18:18:08 +00007050IFS=$as_save_IFS
7051
Reid Spencera773bd52006-08-04 18:18:08 +00007052 ;;
7053esac
7054fi
7055BZIP2=$ac_cv_path_BZIP2
7056if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007057 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7058echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007060 { echo "$as_me:$LINENO: result: no" >&5
7061echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007062fi
7063
7064
mike-m68cb3192010-05-06 23:45:43 +00007065# Extract the first word of "cat", so it can be a program name with args.
7066set dummy cat; ac_word=$2
7067{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069if test "${ac_cv_path_CAT+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072 case $CAT in
7073 [\\/]* | ?:[\\/]*)
7074 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7075 ;;
7076 *)
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078for as_dir in $PATH
7079do
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7087 fi
7088done
7089done
7090IFS=$as_save_IFS
7091
7092 ;;
7093esac
7094fi
7095CAT=$ac_cv_path_CAT
7096if test -n "$CAT"; then
7097 { echo "$as_me:$LINENO: result: $CAT" >&5
7098echo "${ECHO_T}$CAT" >&6; }
7099else
7100 { echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6; }
7102fi
7103
7104
Reid Spencera773bd52006-08-04 18:18:08 +00007105# Extract the first word of "doxygen", so it can be a program name with args.
7106set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007107{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109if test "${ac_cv_path_DOXYGEN+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007111else
7112 case $DOXYGEN in
7113 [\\/]* | ?:[\\/]*)
7114 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7115 ;;
7116 *)
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 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 +00007124 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007126 break 2
7127 fi
7128done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007129done
Reid Spencera773bd52006-08-04 18:18:08 +00007130IFS=$as_save_IFS
7131
Reid Spencera773bd52006-08-04 18:18:08 +00007132 ;;
7133esac
7134fi
7135DOXYGEN=$ac_cv_path_DOXYGEN
7136if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007137 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7138echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007140 { echo "$as_me:$LINENO: result: no" >&5
7141echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007142fi
7143
7144
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007145# Extract the first word of "groff", so it can be a program name with args.
7146set dummy groff; ac_word=$2
7147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149if test "${ac_cv_path_GROFF+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151else
7152 case $GROFF in
7153 [\\/]* | ?:[\\/]*)
7154 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7155 ;;
7156 *)
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158for as_dir in $PATH
7159do
7160 IFS=$as_save_IFS
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 break 2
7167 fi
7168done
7169done
7170IFS=$as_save_IFS
7171
7172 ;;
7173esac
7174fi
7175GROFF=$ac_cv_path_GROFF
7176if test -n "$GROFF"; then
7177 { echo "$as_me:$LINENO: result: $GROFF" >&5
7178echo "${ECHO_T}$GROFF" >&6; }
7179else
7180 { echo "$as_me:$LINENO: result: no" >&5
7181echo "${ECHO_T}no" >&6; }
7182fi
7183
7184
Reid Spencera773bd52006-08-04 18:18:08 +00007185# Extract the first word of "gzip", so it can be a program name with args.
7186set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher031d3072010-12-10 01:31:51 +00007189if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007190 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007191else
Eric Christopher031d3072010-12-10 01:31:51 +00007192 case $GZIPBIN in
Reid Spencera773bd52006-08-04 18:18:08 +00007193 [\\/]* | ?:[\\/]*)
Eric Christopher031d3072010-12-10 01:31:51 +00007194 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencera773bd52006-08-04 18:18:08 +00007195 ;;
7196 *)
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198for as_dir in $PATH
7199do
7200 IFS=$as_save_IFS
7201 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 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 +00007204 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007206 break 2
7207 fi
7208done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007209done
Reid Spencera773bd52006-08-04 18:18:08 +00007210IFS=$as_save_IFS
7211
Reid Spencera773bd52006-08-04 18:18:08 +00007212 ;;
7213esac
7214fi
Eric Christopher031d3072010-12-10 01:31:51 +00007215GZIPBIN=$ac_cv_path_GZIPBIN
7216if test -n "$GZIPBIN"; then
7217 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7218echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007219else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007220 { echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007222fi
7223
7224
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007225# Extract the first word of "pdfroff", so it can be a program name with args.
7226set dummy pdfroff; ac_word=$2
7227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7229if test "${ac_cv_path_PDFROFF+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232 case $PDFROFF in
7233 [\\/]* | ?:[\\/]*)
7234 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7235 ;;
7236 *)
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238for as_dir in $PATH
7239do
7240 IFS=$as_save_IFS
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7244 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 break 2
7247 fi
7248done
7249done
7250IFS=$as_save_IFS
7251
7252 ;;
7253esac
7254fi
7255PDFROFF=$ac_cv_path_PDFROFF
7256if test -n "$PDFROFF"; then
7257 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7258echo "${ECHO_T}$PDFROFF" >&6; }
7259else
7260 { echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6; }
7262fi
7263
7264
7265# Extract the first word of "runtest", so it can be a program name with args.
7266set dummy runtest; ac_word=$2
7267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269if test "${ac_cv_path_RUNTEST+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7271else
7272 case $RUNTEST in
7273 [\\/]* | ?:[\\/]*)
7274 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7275 ;;
7276 *)
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 break 2
7287 fi
7288done
7289done
7290IFS=$as_save_IFS
7291
7292 ;;
7293esac
7294fi
7295RUNTEST=$ac_cv_path_RUNTEST
7296if test -n "$RUNTEST"; then
7297 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7298echo "${ECHO_T}$RUNTEST" >&6; }
7299else
7300 { echo "$as_me:$LINENO: result: no" >&5
7301echo "${ECHO_T}no" >&6; }
7302fi
7303
7304
Reid Spencera773bd52006-08-04 18:18:08 +00007305
7306no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007307{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7308echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007309
7310# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007311if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00007312 withval=$with_tclinclude; with_tclinclude=${withval}
7313else
7314 with_tclinclude=''
7315fi
7316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007317if test "${ac_cv_path_tclsh+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007319else
7320
7321if test x"${with_tclinclude}" != x ; then
7322 if test -f ${with_tclinclude}/tclsh ; then
7323 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7324 elif test -f ${with_tclinclude}/src/tclsh ; then
7325 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7326 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007327 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7328echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7329 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007330 fi
7331fi
Torok Edwin871384f2010-01-26 08:50:50 +00007332fi
7333
Reid Spencera773bd52006-08-04 18:18:08 +00007334
7335if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007336 { echo "$as_me:$LINENO: result: none" >&5
7337echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007338 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
7339do
7340 # Extract the first word of "$ac_prog", so it can be a program name with args.
7341set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007342{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344if test "${ac_cv_path_TCLSH+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007346else
7347 case $TCLSH in
7348 [\\/]* | ?:[\\/]*)
7349 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7350 ;;
7351 *)
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 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 +00007359 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007361 break 2
7362 fi
7363done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007364done
Reid Spencera773bd52006-08-04 18:18:08 +00007365IFS=$as_save_IFS
7366
7367 ;;
7368esac
7369fi
7370TCLSH=$ac_cv_path_TCLSH
7371if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007372 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7373echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007374else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007375 { echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007377fi
7378
7379
7380 test -n "$TCLSH" && break
7381done
7382
7383 if test x"${TCLSH}" = x ; then
7384 ac_cv_path_tclsh='';
7385 else
7386 ac_cv_path_tclsh="${TCLSH}";
7387 fi
7388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007389 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7390echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007391 TCLSH="${ac_cv_path_tclsh}"
7392
7393fi
7394
Reid Spencera773bd52006-08-04 18:18:08 +00007395# Extract the first word of "zip", so it can be a program name with args.
7396set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7399if test "${ac_cv_path_ZIP+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007401else
7402 case $ZIP in
7403 [\\/]* | ?:[\\/]*)
7404 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7405 ;;
7406 *)
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408for as_dir in $PATH
7409do
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 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 +00007414 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007416 break 2
7417 fi
7418done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007419done
Reid Spencera773bd52006-08-04 18:18:08 +00007420IFS=$as_save_IFS
7421
Reid Spencera773bd52006-08-04 18:18:08 +00007422 ;;
7423esac
7424fi
7425ZIP=$ac_cv_path_ZIP
7426if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007427 { echo "$as_me:$LINENO: result: $ZIP" >&5
7428echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007429else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007430 { echo "$as_me:$LINENO: result: no" >&5
7431echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007432fi
7433
7434
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007435for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007436do
7437 # Extract the first word of "$ac_prog", so it can be a program name with args.
7438set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441if test "${ac_cv_path_OCAMLC+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007443else
7444 case $OCAMLC in
7445 [\\/]* | ?:[\\/]*)
7446 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7447 ;;
7448 *)
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450for as_dir in $PATH
7451do
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 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 +00007456 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007458 break 2
7459 fi
7460done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007461done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007462IFS=$as_save_IFS
7463
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007464 ;;
7465esac
7466fi
7467OCAMLC=$ac_cv_path_OCAMLC
7468if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007469 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7470echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007471else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007472 { echo "$as_me:$LINENO: result: no" >&5
7473echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007474fi
7475
7476
Gordon Henriksene7072162008-03-07 18:20:01 +00007477 test -n "$OCAMLC" && break
7478done
7479
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007480for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007481do
7482 # Extract the first word of "$ac_prog", so it can be a program name with args.
7483set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7486if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007488else
7489 case $OCAMLOPT in
7490 [\\/]* | ?:[\\/]*)
7491 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7492 ;;
7493 *)
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 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 +00007501 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007503 break 2
7504 fi
7505done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007506done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007507IFS=$as_save_IFS
7508
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007509 ;;
7510esac
7511fi
7512OCAMLOPT=$ac_cv_path_OCAMLOPT
7513if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007514 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7515echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007516else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007517 { echo "$as_me:$LINENO: result: no" >&5
7518echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007519fi
7520
7521
Gordon Henriksene7072162008-03-07 18:20:01 +00007522 test -n "$OCAMLOPT" && break
7523done
7524
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007525for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007526do
7527 # Extract the first word of "$ac_prog", so it can be a program name with args.
7528set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007533else
7534 case $OCAMLDEP in
7535 [\\/]* | ?:[\\/]*)
7536 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7537 ;;
7538 *)
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 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 +00007546 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007548 break 2
7549 fi
7550done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007551done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007552IFS=$as_save_IFS
7553
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007554 ;;
7555esac
7556fi
7557OCAMLDEP=$ac_cv_path_OCAMLDEP
7558if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007559 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7560echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007561else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007562 { echo "$as_me:$LINENO: result: no" >&5
7563echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007564fi
7565
7566
Gordon Henriksene7072162008-03-07 18:20:01 +00007567 test -n "$OCAMLDEP" && break
7568done
7569
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007570for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007571do
7572 # Extract the first word of "$ac_prog", so it can be a program name with args.
7573set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007578else
7579 case $OCAMLDOC in
7580 [\\/]* | ?:[\\/]*)
7581 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7582 ;;
7583 *)
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 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 +00007591 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007593 break 2
7594 fi
7595done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007596done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007597IFS=$as_save_IFS
7598
7599 ;;
7600esac
7601fi
7602OCAMLDOC=$ac_cv_path_OCAMLDOC
7603if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007604 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7605echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007606else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007607 { echo "$as_me:$LINENO: result: no" >&5
7608echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007609fi
7610
7611
7612 test -n "$OCAMLDOC" && break
7613done
7614
Daniel Dunbarf468fd82012-05-08 18:26:07 +00007615for ac_prog in gas as
7616do
7617 # Extract the first word of "$ac_prog", so it can be a program name with args.
7618set dummy $ac_prog; ac_word=$2
7619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7621if test "${ac_cv_path_GAS+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623else
7624 case $GAS in
7625 [\\/]* | ?:[\\/]*)
7626 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7627 ;;
7628 *)
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7636 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 break 2
7639 fi
7640done
7641done
7642IFS=$as_save_IFS
7643
7644 ;;
7645esac
7646fi
7647GAS=$ac_cv_path_GAS
7648if test -n "$GAS"; then
7649 { echo "$as_me:$LINENO: result: $GAS" >&5
7650echo "${ECHO_T}$GAS" >&6; }
7651else
7652 { echo "$as_me:$LINENO: result: no" >&5
7653echo "${ECHO_T}no" >&6; }
7654fi
7655
7656
7657 test -n "$GAS" && break
7658done
7659
Reid Spencera773bd52006-08-04 18:18:08 +00007660
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007661{ echo "$as_me:$LINENO: checking for linker version" >&5
7662echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7663if test "${llvm_cv_link_version+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666
7667 version_string="$(ld -v 2>&1 | head -1)"
7668
7669 # Check for ld64.
7670 if (echo "$version_string" | grep -q "ld64"); then
Charles Davis8b376372012-02-28 02:55:41 +00007671 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00007672 else
7673 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7674 fi
7675
7676fi
7677{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7678echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7679
7680cat >>confdefs.h <<_ACEOF
7681#define HOST_LINK_VERSION "$llvm_cv_link_version"
7682_ACEOF
7683
7684
7685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007686{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7687echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7688if test "${llvm_cv_link_use_r+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007690else
7691 ac_ext=c
7692ac_cpp='$CPP $CPPFLAGS'
7693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7695ac_compiler_gnu=$ac_cv_c_compiler_gnu
7696
7697 oldcflags="$CFLAGS"
7698 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007699 cat >conftest.$ac_ext <<_ACEOF
7700/* confdefs.h. */
7701_ACEOF
7702cat confdefs.h >>conftest.$ac_ext
7703cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007704/* end confdefs.h. */
7705
7706int
7707main ()
7708{
Dan Gohman39ed6782010-04-25 00:12:20 +00007709
Reid Spencera773bd52006-08-04 18:18:08 +00007710 ;
7711 return 0;
7712}
7713_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007714rm -f conftest.$ac_objext conftest$ac_exeext
7715if { (ac_try="$ac_link"
7716case "(($ac_try" in
7717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718 *) ac_try_echo=$ac_try;;
7719esac
7720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721 (eval "$ac_link") 2>conftest.er1
7722 ac_status=$?
7723 grep -v '^ *+' conftest.er1 >conftest.err
7724 rm -f conftest.er1
7725 cat conftest.err >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7729 { (case "(($ac_try" in
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7732esac
7733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 (eval "$ac_try") 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; } &&
7738 { ac_try='test -s conftest$ac_exeext'
7739 { (case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7742esac
7743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_try") 2>&5
7745 ac_status=$?
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007748 llvm_cv_link_use_r=yes
7749else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007750 echo "$as_me: failed program was:" >&5
7751sed 's/^/| /' conftest.$ac_ext >&5
7752
7753 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00007754fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007755
Bill Wendlingebcceee2009-04-18 11:20:33 +00007756rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007757 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00007758 CFLAGS="$oldcflags"
7759 ac_ext=c
7760ac_cpp='$CPP $CPPFLAGS'
7761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7763ac_compiler_gnu=$ac_cv_c_compiler_gnu
7764
7765
7766fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007767{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7768echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007769if test "$llvm_cv_link_use_r" = yes ; then
7770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007771cat >>confdefs.h <<\_ACEOF
7772#define HAVE_LINK_R 1
7773_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007774
7775 fi
7776
7777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007778{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7779echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7780if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007782else
7783 ac_ext=c
7784ac_cpp='$CPP $CPPFLAGS'
7785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7787ac_compiler_gnu=$ac_cv_c_compiler_gnu
7788
7789 oldcflags="$CFLAGS"
7790 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007791 cat >conftest.$ac_ext <<_ACEOF
7792/* confdefs.h. */
7793_ACEOF
7794cat confdefs.h >>conftest.$ac_ext
7795cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007796/* end confdefs.h. */
7797
7798int
7799main ()
7800{
Dan Gohman39ed6782010-04-25 00:12:20 +00007801
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007802 ;
7803 return 0;
7804}
7805_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007806rm -f conftest.$ac_objext conftest$ac_exeext
7807if { (ac_try="$ac_link"
7808case "(($ac_try" in
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7811esac
7812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_link") 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7821 { (case "(($ac_try" in
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7824esac
7825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826 (eval "$ac_try") 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try='test -s conftest$ac_exeext'
7831 { (case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7834esac
7835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_try") 2>&5
7837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007840 llvm_cv_link_use_export_dynamic=yes
7841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007842 echo "$as_me: failed program was:" >&5
7843sed 's/^/| /' conftest.$ac_ext >&5
7844
7845 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007846fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007847
Bill Wendlingebcceee2009-04-18 11:20:33 +00007848rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007849 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007850 CFLAGS="$oldcflags"
7851 ac_ext=c
7852ac_cpp='$CPP $CPPFLAGS'
7853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7855ac_compiler_gnu=$ac_cv_c_compiler_gnu
7856
7857
7858fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007859{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7860echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007861if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007863cat >>confdefs.h <<\_ACEOF
7864#define HAVE_LINK_EXPORT_DYNAMIC 1
7865_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00007866
7867 fi
7868
7869
Dan Gohmanda612d62010-06-01 14:56:56 +00007870{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7871echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7872if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00007873 echo $ECHO_N "(cached) $ECHO_C" >&6
7874else
7875 ac_ext=c
7876ac_cpp='$CPP $CPPFLAGS'
7877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7879ac_compiler_gnu=$ac_cv_c_compiler_gnu
7880
7881 oldcflags="$CFLAGS"
7882
7883 # The following code is from the autoconf manual,
7884 # "11.13: Limitations of Usual Tools".
7885 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7886 # Use mktemp if possible; otherwise fall back on mkdir,
7887 # with $RANDOM to make collisions less likely.
7888 : ${TMPDIR=/tmp}
7889 {
7890 tmp=`
7891 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7892 ` &&
7893 test -n "$tmp" && test -d "$tmp"
7894 } || {
7895 tmp=$TMPDIR/foo$$-$RANDOM
7896 (umask 077 && mkdir "$tmp")
7897 } || exit $?
7898
Dan Gohmanda612d62010-06-01 14:56:56 +00007899 echo "{" > "$tmp/export.map"
7900 echo " global: main;" >> "$tmp/export.map"
7901 echo " local: *;" >> "$tmp/export.map"
7902 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007903
Dan Gohmanda612d62010-06-01 14:56:56 +00007904 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007905 cat >conftest.$ac_ext <<_ACEOF
7906/* confdefs.h. */
7907_ACEOF
7908cat confdefs.h >>conftest.$ac_ext
7909cat >>conftest.$ac_ext <<_ACEOF
7910/* end confdefs.h. */
7911
7912int
7913main ()
7914{
Dan Gohman39ed6782010-04-25 00:12:20 +00007915
Dan Gohman391569c2010-04-16 22:59:06 +00007916 ;
7917 return 0;
7918}
7919_ACEOF
7920rm -f conftest.$ac_objext conftest$ac_exeext
7921if { (ac_try="$ac_link"
7922case "(($ac_try" in
7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7925esac
7926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927 (eval "$ac_link") 2>conftest.er1
7928 ac_status=$?
7929 grep -v '^ *+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7931 cat conftest.err >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } &&
7934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7935 { (case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7938esac
7939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_try") 2>&5
7941 ac_status=$?
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; } &&
7944 { ac_try='test -s conftest$ac_exeext'
7945 { (case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7948esac
7949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_try") 2>&5
7951 ac_status=$?
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00007954 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00007955else
7956 echo "$as_me: failed program was:" >&5
7957sed 's/^/| /' conftest.$ac_ext >&5
7958
Dan Gohman943005e2010-06-01 16:22:27 +00007959 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00007960fi
7961
7962rm -f core conftest.err conftest.$ac_objext \
7963 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00007964 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00007965 rmdir "$tmp"
7966 CFLAGS="$oldcflags"
7967 ac_ext=c
7968ac_cpp='$CPP $CPPFLAGS'
7969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971ac_compiler_gnu=$ac_cv_c_compiler_gnu
7972
7973
7974fi
Dan Gohmanda612d62010-06-01 14:56:56 +00007975{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7976echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7977if test "$llvm_cv_link_use_version_script" = yes ; then
7978 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00007979
7980 fi
7981
7982
Reid Spencera773bd52006-08-04 18:18:08 +00007983
7984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007985{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7986echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7987if test "${ac_cv_c_const+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007989else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007990 cat >conftest.$ac_ext <<_ACEOF
7991/* confdefs.h. */
7992_ACEOF
7993cat confdefs.h >>conftest.$ac_ext
7994cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007995/* end confdefs.h. */
7996
7997int
7998main ()
7999{
8000/* FIXME: Include the comments suggested by Paul. */
8001#ifndef __cplusplus
8002 /* Ultrix mips cc rejects this. */
8003 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008004 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008005 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008006 char const *const *ccp;
8007 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008008 /* NEC SVR4.0.2 mips cc rejects this. */
8009 struct point {int x, y;};
8010 static struct point const zero = {0,0};
8011 /* AIX XL C 1.02.0.0 rejects this.
8012 It does not let you subtract one const X* pointer from another in
8013 an arm of an if-expression whose if-part is not a constant
8014 expression */
8015 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008016 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008017 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008018 ++ccp;
8019 p = (char**) ccp;
8020 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008021 { /* SCO 3.2v4 cc rejects this. */
8022 char *t;
8023 char const *s = 0 ? (char *) 0 : (char const *) 0;
8024
8025 *t++ = 0;
8026 if (s) return 0;
8027 }
8028 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8029 int x[] = {25, 17};
8030 const int *foo = &x[0];
8031 ++foo;
8032 }
8033 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8034 typedef const int *iptr;
8035 iptr p = 0;
8036 ++p;
8037 }
8038 { /* AIX XL C 1.02.0.0 rejects this saying
8039 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8040 struct s { int j; const int *ap[3]; };
8041 struct s *b; b->j = 5;
8042 }
8043 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8044 const int foo = 10;
8045 if (!foo) return 0;
8046 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008047 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008048#endif
8049
8050 ;
8051 return 0;
8052}
8053_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008054rm -f conftest.$ac_objext
8055if { (ac_try="$ac_compile"
8056case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8059esac
8060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_compile") 2>conftest.er1
8062 ac_status=$?
8063 grep -v '^ *+' conftest.er1 >conftest.err
8064 rm -f conftest.er1
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } &&
8068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8069 { (case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072esac
8073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_try") 2>&5
8075 ac_status=$?
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; } &&
8078 { ac_try='test -s conftest.$ac_objext'
8079 { (case "(($ac_try" in
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8082esac
8083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_try") 2>&5
8085 ac_status=$?
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008088 ac_cv_c_const=yes
8089else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008090 echo "$as_me: failed program was:" >&5
8091sed 's/^/| /' conftest.$ac_ext >&5
8092
8093 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008094fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008095
Reid Spencera773bd52006-08-04 18:18:08 +00008096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008098{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8099echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008100if test $ac_cv_c_const = no; then
8101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008102cat >>confdefs.h <<\_ACEOF
8103#define const
8104_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008105
8106fi
8107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008108
8109
8110
8111
8112
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008113ac_header_dirent=no
8114for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008115 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8116{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8117echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008120else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008121 cat >conftest.$ac_ext <<_ACEOF
8122/* confdefs.h. */
8123_ACEOF
8124cat confdefs.h >>conftest.$ac_ext
8125cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008126/* end confdefs.h. */
8127#include <sys/types.h>
8128#include <$ac_hdr>
8129
8130int
8131main ()
8132{
8133if ((DIR *) 0)
8134return 0;
8135 ;
8136 return 0;
8137}
8138_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008139rm -f conftest.$ac_objext
8140if { (ac_try="$ac_compile"
8141case "(($ac_try" in
8142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143 *) ac_try_echo=$ac_try;;
8144esac
8145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146 (eval "$ac_compile") 2>conftest.er1
8147 ac_status=$?
8148 grep -v '^ *+' conftest.er1 >conftest.err
8149 rm -f conftest.er1
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } &&
8153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8154 { (case "(($ac_try" in
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8157esac
8158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_try") 2>&5
8160 ac_status=$?
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; } &&
8163 { ac_try='test -s conftest.$ac_objext'
8164 { (case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167esac
8168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_try") 2>&5
8170 ac_status=$?
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008173 eval "$as_ac_Header=yes"
8174else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008175 echo "$as_me: failed program was:" >&5
8176sed 's/^/| /' conftest.$ac_ext >&5
8177
8178 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008179fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008180
Reid Spencera773bd52006-08-04 18:18:08 +00008181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008182fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008183ac_res=`eval echo '${'$as_ac_Header'}'`
8184 { echo "$as_me:$LINENO: result: $ac_res" >&5
8185echo "${ECHO_T}$ac_res" >&6; }
8186if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008187 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008188#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008189_ACEOF
8190
8191ac_header_dirent=$ac_hdr; break
8192fi
8193
8194done
8195# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8196if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008197 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8198echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8199if test "${ac_cv_search_opendir+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008201else
8202 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008203cat >conftest.$ac_ext <<_ACEOF
8204/* confdefs.h. */
8205_ACEOF
8206cat confdefs.h >>conftest.$ac_ext
8207cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008208/* end confdefs.h. */
8209
Reid Spencera773bd52006-08-04 18:18:08 +00008210/* Override any GCC internal prototype to avoid an error.
8211 Use char because int might match the return type of a GCC
8212 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008213#ifdef __cplusplus
8214extern "C"
8215#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008216char opendir ();
8217int
8218main ()
8219{
Reid Spencera773bd52006-08-04 18:18:08 +00008220return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008221 ;
8222 return 0;
8223}
8224_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008225for ac_lib in '' dir; do
8226 if test -z "$ac_lib"; then
8227 ac_res="none required"
8228 else
8229 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008231 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008232 rm -f conftest.$ac_objext conftest$ac_exeext
8233if { (ac_try="$ac_link"
8234case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8237esac
8238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_link") 2>conftest.er1
8240 ac_status=$?
8241 grep -v '^ *+' conftest.er1 >conftest.err
8242 rm -f conftest.er1
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
8246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8247 { (case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250esac
8251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_try") 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; } &&
8256 { ac_try='test -s conftest$ac_exeext'
8257 { (case "(($ac_try" in
8258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259 *) ac_try_echo=$ac_try;;
8260esac
8261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_try") 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008266 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008267else
8268 echo "$as_me: failed program was:" >&5
8269sed 's/^/| /' conftest.$ac_ext >&5
8270
8271
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008272fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008273
Bill Wendlingebcceee2009-04-18 11:20:33 +00008274rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008275 conftest$ac_exeext
8276 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008277 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008278fi
John Criswell7a73b802003-06-30 21:59:07 +00008279done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008280if test "${ac_cv_search_opendir+set}" = set; then
8281 :
Reid Spencera773bd52006-08-04 18:18:08 +00008282else
8283 ac_cv_search_opendir=no
8284fi
8285rm conftest.$ac_ext
8286LIBS=$ac_func_search_save_LIBS
8287fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008288{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8289echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008290ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008291if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008292 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008293
Reid Spencera773bd52006-08-04 18:18:08 +00008294fi
8295
8296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008297 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8298echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8299if test "${ac_cv_search_opendir+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008301else
8302 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008303cat >conftest.$ac_ext <<_ACEOF
8304/* confdefs.h. */
8305_ACEOF
8306cat confdefs.h >>conftest.$ac_ext
8307cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008308/* end confdefs.h. */
8309
8310/* Override any GCC internal prototype to avoid an error.
8311 Use char because int might match the return type of a GCC
8312 builtin and then its argument prototype would still apply. */
8313#ifdef __cplusplus
8314extern "C"
8315#endif
8316char opendir ();
8317int
8318main ()
8319{
8320return opendir ();
8321 ;
8322 return 0;
8323}
8324_ACEOF
8325for ac_lib in '' x; do
8326 if test -z "$ac_lib"; then
8327 ac_res="none required"
8328 else
8329 ac_res=-l$ac_lib
8330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8331 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008332 rm -f conftest.$ac_objext conftest$ac_exeext
8333if { (ac_try="$ac_link"
8334case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8337esac
8338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_link") 2>conftest.er1
8340 ac_status=$?
8341 grep -v '^ *+' conftest.er1 >conftest.err
8342 rm -f conftest.er1
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8347 { (case "(($ac_try" in
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8350esac
8351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_try") 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; } &&
8356 { ac_try='test -s conftest$ac_exeext'
8357 { (case "(($ac_try" in
8358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8360esac
8361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362 (eval "$ac_try") 2>&5
8363 ac_status=$?
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008366 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008367else
8368 echo "$as_me: failed program was:" >&5
8369sed 's/^/| /' conftest.$ac_ext >&5
8370
8371
Reid Spencera773bd52006-08-04 18:18:08 +00008372fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008373
Bill Wendlingebcceee2009-04-18 11:20:33 +00008374rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008375 conftest$ac_exeext
8376 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008377 break
8378fi
8379done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008380if test "${ac_cv_search_opendir+set}" = set; then
8381 :
Reid Spencera773bd52006-08-04 18:18:08 +00008382else
8383 ac_cv_search_opendir=no
8384fi
8385rm conftest.$ac_ext
8386LIBS=$ac_func_search_save_LIBS
8387fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008388{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8389echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008390ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008391if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8393
8394fi
8395
8396fi
John Criswell7a73b802003-06-30 21:59:07 +00008397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008398
John Criswell7a73b802003-06-30 21:59:07 +00008399for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008400do
8401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407fi
8408ac_res=`eval echo '${'$as_ac_Header'}'`
8409 { echo "$as_me:$LINENO: result: $ac_res" >&5
8410echo "${ECHO_T}$ac_res" >&6; }
8411else
8412 # Is the header compilable?
8413{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8414echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8415cat >conftest.$ac_ext <<_ACEOF
8416/* confdefs.h. */
8417_ACEOF
8418cat confdefs.h >>conftest.$ac_ext
8419cat >>conftest.$ac_ext <<_ACEOF
8420/* end confdefs.h. */
8421$ac_includes_default
8422#include <$ac_header>
8423_ACEOF
8424rm -f conftest.$ac_objext
8425if { (ac_try="$ac_compile"
8426case "(($ac_try" in
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428 *) ac_try_echo=$ac_try;;
8429esac
8430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_compile") 2>conftest.er1
8432 ac_status=$?
8433 grep -v '^ *+' conftest.er1 >conftest.err
8434 rm -f conftest.er1
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8439 { (case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8442esac
8443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_try") 2>&5
8445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; } &&
8448 { ac_try='test -s conftest.$ac_objext'
8449 { (case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8452esac
8453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_try") 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 ac_header_compiler=yes
8459else
8460 echo "$as_me: failed program was:" >&5
8461sed 's/^/| /' conftest.$ac_ext >&5
8462
8463 ac_header_compiler=no
8464fi
8465
8466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8468echo "${ECHO_T}$ac_header_compiler" >&6; }
8469
8470# Is the header present?
8471{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8473cat >conftest.$ac_ext <<_ACEOF
8474/* confdefs.h. */
8475_ACEOF
8476cat confdefs.h >>conftest.$ac_ext
8477cat >>conftest.$ac_ext <<_ACEOF
8478/* end confdefs.h. */
8479#include <$ac_header>
8480_ACEOF
8481if { (ac_try="$ac_cpp conftest.$ac_ext"
8482case "(($ac_try" in
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8485esac
8486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8488 ac_status=$?
8489 grep -v '^ *+' conftest.er1 >conftest.err
8490 rm -f conftest.er1
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } >/dev/null; then
8494 if test -s conftest.err; then
8495 ac_cpp_err=$ac_c_preproc_warn_flag
8496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8497 else
8498 ac_cpp_err=
8499 fi
8500else
8501 ac_cpp_err=yes
8502fi
8503if test -z "$ac_cpp_err"; then
8504 ac_header_preproc=yes
8505else
8506 echo "$as_me: failed program was:" >&5
8507sed 's/^/| /' conftest.$ac_ext >&5
8508
8509 ac_header_preproc=no
8510fi
8511
8512rm -f conftest.err conftest.$ac_ext
8513{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8514echo "${ECHO_T}$ac_header_preproc" >&6; }
8515
8516# So? What about this header?
8517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8518 yes:no: )
8519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8520echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8522echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8523 ac_header_preproc=yes
8524 ;;
8525 no:yes:* )
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8529echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8531echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8533echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8535echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8537echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8538 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +00008539## ------------------------------------ ##
8540## Report this to http://llvm.org/bugs/ ##
8541## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008542_ASBOX
8543 ) | sed "s/^/$as_me: WARNING: /" >&2
8544 ;;
8545esac
8546{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550else
8551 eval "$as_ac_Header=\$ac_header_preproc"
8552fi
8553ac_res=`eval echo '${'$as_ac_Header'}'`
8554 { echo "$as_me:$LINENO: result: $ac_res" >&5
8555echo "${ECHO_T}$ac_res" >&6; }
8556
8557fi
8558if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00008559 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00008561_ACEOF
8562
8563fi
8564
8565done
8566
Reid Spencera773bd52006-08-04 18:18:08 +00008567# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008568if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008569 enableval=$enable_ltdl_install;
8570fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008571
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008572
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008573
8574
8575if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008576 INSTALL_LTDL_TRUE=
8577 INSTALL_LTDL_FALSE='#'
8578else
8579 INSTALL_LTDL_TRUE='#'
8580 INSTALL_LTDL_FALSE=
8581fi
8582
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008583
8584
8585if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008586 CONVENIENCE_LTDL_TRUE=
8587 CONVENIENCE_LTDL_FALSE='#'
8588else
8589 CONVENIENCE_LTDL_TRUE='#'
8590 CONVENIENCE_LTDL_FALSE=
8591fi
8592
8593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008594{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8595echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008596library_names_spec=
8597libname_spec='lib$name'
8598soname_spec=
8599shrext_cmds=".so"
8600postinstall_cmds=
8601postuninstall_cmds=
8602finish_cmds=
8603finish_eval=
8604shlibpath_var=
8605shlibpath_overrides_runpath=unknown
8606version_type=none
8607dynamic_linker="$host_os ld.so"
8608sys_lib_dlsearch_path_spec="/lib /usr/lib"
8609if test "$GCC" = yes; then
8610 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8611 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8612 # if the path contains ";" then we assume it to be the separator
8613 # otherwise default to the standard path separator (i.e. ":") - it is
8614 # assumed that no part of a normal pathname contains ";" but that should
8615 # okay in the real world where ";" in dirpaths is itself problematic.
8616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8617 else
8618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8619 fi
8620else
8621 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8622fi
8623need_lib_prefix=unknown
8624hardcode_into_libs=no
8625
8626# when you set need_version to no, make sure it does not cause -set_version
8627# flags to be left without arguments
8628need_version=unknown
8629
8630case $host_os in
8631aix3*)
8632 version_type=linux
8633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8634 shlibpath_var=LIBPATH
8635
8636 # AIX 3 has no versioning support, so we append a major version to the name.
8637 soname_spec='${libname}${release}${shared_ext}$major'
8638 ;;
8639
8640aix4* | aix5*)
8641 version_type=linux
8642 need_lib_prefix=no
8643 need_version=no
8644 hardcode_into_libs=yes
8645 if test "$host_cpu" = ia64; then
8646 # AIX 5 supports IA64
8647 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8648 shlibpath_var=LD_LIBRARY_PATH
8649 else
8650 # With GCC up to 2.95.x, collect2 would create an import file
8651 # for dependence libraries. The import file would start with
8652 # the line `#! .'. This would cause the generated library to
8653 # depend on `.', always an invalid library. This was fixed in
8654 # development snapshots of GCC prior to 3.0.
8655 case $host_os in
8656 aix4 | aix4.[01] | aix4.[01].*)
8657 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8658 echo ' yes '
8659 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8660 :
8661 else
8662 can_build_shared=no
8663 fi
8664 ;;
8665 esac
8666 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8667 # soname into executable. Probably we can add versioning support to
8668 # collect2, so additional links can be useful in future.
8669 if test "$aix_use_runtimelinking" = yes; then
8670 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8671 # instead of lib<name>.a to let people know that these are not
8672 # typical AIX shared libraries.
8673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8674 else
8675 # We preserve .a as extension for shared libraries through AIX4.2
8676 # and later when we are not doing run time linking.
8677 library_names_spec='${libname}${release}.a $libname.a'
8678 soname_spec='${libname}${release}${shared_ext}$major'
8679 fi
8680 shlibpath_var=LIBPATH
8681 fi
8682 ;;
8683
8684amigaos*)
8685 library_names_spec='$libname.ixlibrary $libname.a'
8686 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8687 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'
8688 ;;
8689
8690beos*)
8691 library_names_spec='${libname}${shared_ext}'
8692 dynamic_linker="$host_os ld.so"
8693 shlibpath_var=LIBRARY_PATH
8694 ;;
8695
8696bsdi[45]*)
8697 version_type=linux
8698 need_version=no
8699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8700 soname_spec='${libname}${release}${shared_ext}$major'
8701 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8702 shlibpath_var=LD_LIBRARY_PATH
8703 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8704 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8705 # the default ld.so.conf also contains /usr/contrib/lib and
8706 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8707 # libtool to hard-code these into programs
8708 ;;
8709
8710cygwin* | mingw* | pw32*)
8711 version_type=windows
8712 shrext_cmds=".dll"
8713 need_version=no
8714 need_lib_prefix=no
8715
8716 case $GCC,$host_os in
8717 yes,cygwin* | yes,mingw* | yes,pw32*)
8718 library_names_spec='$libname.dll.a'
8719 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8720 postinstall_cmds='base_file=`basename \${file}`~
8721 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8722 dldir=$destdir/`dirname \$dlpath`~
8723 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008724 $install_prog $dir/$dlname \$dldir/$dlname~
8725 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8727 dlpath=$dir/\$dldll~
8728 $rm \$dlpath'
8729 shlibpath_overrides_runpath=yes
8730
8731 case $host_os in
8732 cygwin*)
8733 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8734 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8735 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8736 ;;
8737 mingw*)
8738 # MinGW DLLs use traditional 'lib' prefix
8739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8740 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8741 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8742 # It is most probably a Windows format PATH printed by
8743 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8744 # path with ; separators, and with drive letters. We can handle the
8745 # drive letters (cygwin fileutils understands them), so leave them,
8746 # especially as we might pass files found there to a mingw objdump,
8747 # which wouldn't understand a cygwinified path. Ahh.
8748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8749 else
8750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8751 fi
8752 ;;
8753 pw32*)
8754 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008755 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 +00008756 ;;
8757 esac
8758 ;;
8759
8760 *)
8761 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8762 ;;
8763 esac
8764 dynamic_linker='Win32 ld.exe'
8765 # FIXME: first we should search . and the directory the executable is in
8766 shlibpath_var=PATH
8767 ;;
8768
8769darwin* | rhapsody*)
8770 dynamic_linker="$host_os dyld"
8771 version_type=darwin
8772 need_lib_prefix=no
8773 need_version=no
8774 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8775 soname_spec='${libname}${release}${major}$shared_ext'
8776 shlibpath_overrides_runpath=yes
8777 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008778 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008779 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8780 if test "$GCC" = yes; then
8781 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"`
8782 else
8783 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8784 fi
8785 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8786 ;;
8787
8788dgux*)
8789 version_type=linux
8790 need_lib_prefix=no
8791 need_version=no
8792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8793 soname_spec='${libname}${release}${shared_ext}$major'
8794 shlibpath_var=LD_LIBRARY_PATH
8795 ;;
8796
Eric Christopher360fa9a2011-10-26 00:42:12 +00008797freebsd1.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008798 dynamic_linker=no
8799 ;;
8800
8801kfreebsd*-gnu)
8802 version_type=linux
8803 need_lib_prefix=no
8804 need_version=no
8805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8806 soname_spec='${libname}${release}${shared_ext}$major'
8807 shlibpath_var=LD_LIBRARY_PATH
8808 shlibpath_overrides_runpath=no
8809 hardcode_into_libs=yes
8810 dynamic_linker='GNU ld.so'
8811 ;;
8812
Reid Spencera773bd52006-08-04 18:18:08 +00008813freebsd* | dragonfly*)
8814 # DragonFly does not have aout. When/if they implement a new
8815 # versioning mechanism, adjust this.
8816 if test -x /usr/bin/objformat; then
8817 objformat=`/usr/bin/objformat`
8818 else
8819 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008820 freebsd[123].*) objformat=aout ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008821 *) objformat=elf ;;
8822 esac
8823 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008824 version_type=freebsd-$objformat
8825 case $version_type in
8826 freebsd-elf*)
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8828 need_version=no
8829 need_lib_prefix=no
8830 ;;
8831 freebsd-*)
8832 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8833 need_version=yes
8834 ;;
8835 esac
8836 shlibpath_var=LD_LIBRARY_PATH
8837 case $host_os in
Eric Christopher360fa9a2011-10-26 00:42:12 +00008838 freebsd2.*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008839 shlibpath_overrides_runpath=yes
8840 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008841 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008842 shlibpath_overrides_runpath=yes
8843 hardcode_into_libs=yes
8844 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008845 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8846 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008847 shlibpath_overrides_runpath=no
8848 hardcode_into_libs=yes
8849 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008850 freebsd*) # from 4.6 on
8851 shlibpath_overrides_runpath=yes
8852 hardcode_into_libs=yes
8853 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008854 esac
8855 ;;
8856
8857gnu*)
8858 version_type=linux
8859 need_lib_prefix=no
8860 need_version=no
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8862 soname_spec='${libname}${release}${shared_ext}$major'
8863 shlibpath_var=LD_LIBRARY_PATH
8864 hardcode_into_libs=yes
8865 ;;
8866
8867hpux9* | hpux10* | hpux11*)
8868 # Give a soname corresponding to the major version so that dld.sl refuses to
8869 # link against other versions.
8870 version_type=sunos
8871 need_lib_prefix=no
8872 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008873 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008874 ia64*)
8875 shrext_cmds='.so'
8876 hardcode_into_libs=yes
8877 dynamic_linker="$host_os dld.so"
8878 shlibpath_var=LD_LIBRARY_PATH
8879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 if test "X$HPUX_IA64_MODE" = X32; then
8883 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8884 else
8885 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8886 fi
8887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8888 ;;
8889 hppa*64*)
8890 shrext_cmds='.sl'
8891 hardcode_into_libs=yes
8892 dynamic_linker="$host_os dld.sl"
8893 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896 soname_spec='${libname}${release}${shared_ext}$major'
8897 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8899 ;;
8900 *)
8901 shrext_cmds='.sl'
8902 dynamic_linker="$host_os dld.sl"
8903 shlibpath_var=SHLIB_PATH
8904 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8906 soname_spec='${libname}${release}${shared_ext}$major'
8907 ;;
8908 esac
8909 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8910 postinstall_cmds='chmod 555 $lib'
8911 ;;
8912
Reid Spencera773bd52006-08-04 18:18:08 +00008913interix3*)
8914 version_type=linux
8915 need_lib_prefix=no
8916 need_version=no
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8920 shlibpath_var=LD_LIBRARY_PATH
8921 shlibpath_overrides_runpath=no
8922 hardcode_into_libs=yes
8923 ;;
8924
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008925irix5* | irix6* | nonstopux*)
8926 case $host_os in
8927 nonstopux*) version_type=nonstopux ;;
8928 *)
8929 if test "$lt_cv_prog_gnu_ld" = yes; then
8930 version_type=linux
8931 else
8932 version_type=irix
8933 fi ;;
8934 esac
8935 need_lib_prefix=no
8936 need_version=no
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8939 case $host_os in
8940 irix5* | nonstopux*)
8941 libsuff= shlibsuff=
8942 ;;
8943 *)
8944 case $LD in # libtool.m4 will add one of these switches to LD
8945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8946 libsuff= shlibsuff= libmagic=32-bit;;
8947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8948 libsuff=32 shlibsuff=N32 libmagic=N32;;
8949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8951 *) libsuff= shlibsuff= libmagic=never-match;;
8952 esac
8953 ;;
8954 esac
8955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8956 shlibpath_overrides_runpath=no
8957 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8958 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8959 hardcode_into_libs=yes
8960 ;;
8961
8962# No shared lib support for Linux oldld, aout, or coff.
8963linux*oldld* | linux*aout* | linux*coff*)
8964 dynamic_linker=no
8965 ;;
8966
8967# This must be Linux ELF.
8968linux*)
8969 version_type=linux
8970 need_lib_prefix=no
8971 need_version=no
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8973 soname_spec='${libname}${release}${shared_ext}$major'
8974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8975 shlibpath_var=LD_LIBRARY_PATH
8976 shlibpath_overrides_runpath=no
8977 # This implies no fast_install, which is unacceptable.
8978 # Some rework will be needed to allow for fast_install
8979 # before this can be enabled.
8980 hardcode_into_libs=yes
8981
8982 # Append ld.so.conf contents to the search path
8983 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008984 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 +00008985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8986 fi
8987
8988 # We used to test for /lib/ld.so.1 and disable shared libraries on
8989 # powerpc, because MkLinux only supported shared libraries with the
8990 # GNU dynamic linker. Since this was broken with cross compilers,
8991 # most powerpc-linux boxes support dynamic linking these days and
8992 # people can always --disable-shared, the test was removed, and we
8993 # assume the GNU/Linux dynamic linker is in use.
8994 dynamic_linker='GNU/Linux ld.so'
8995 ;;
8996
8997knetbsd*-gnu)
8998 version_type=linux
8999 need_lib_prefix=no
9000 need_version=no
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=no
9005 hardcode_into_libs=yes
9006 dynamic_linker='GNU ld.so'
9007 ;;
9008
9009netbsd*)
9010 version_type=sunos
9011 need_lib_prefix=no
9012 need_version=no
9013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9016 dynamic_linker='NetBSD (a.out) ld.so'
9017 else
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 dynamic_linker='NetBSD ld.elf_so'
9021 fi
9022 shlibpath_var=LD_LIBRARY_PATH
9023 shlibpath_overrides_runpath=yes
9024 hardcode_into_libs=yes
9025 ;;
9026
9027newsos6)
9028 version_type=linux
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 shlibpath_overrides_runpath=yes
9032 ;;
9033
9034nto-qnx*)
9035 version_type=linux
9036 need_lib_prefix=no
9037 need_version=no
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=yes
9042 ;;
9043
9044openbsd*)
9045 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009046 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009047 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009048 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9049 case $host_os in
9050 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9051 *) need_version=no ;;
9052 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9057 case $host_os in
9058 openbsd2.[89] | openbsd2.[89].*)
9059 shlibpath_overrides_runpath=no
9060 ;;
9061 *)
9062 shlibpath_overrides_runpath=yes
9063 ;;
9064 esac
9065 else
9066 shlibpath_overrides_runpath=yes
9067 fi
9068 ;;
9069
9070os2*)
9071 libname_spec='$name'
9072 shrext_cmds=".dll"
9073 need_lib_prefix=no
9074 library_names_spec='$libname${shared_ext} $libname.a'
9075 dynamic_linker='OS/2 ld.exe'
9076 shlibpath_var=LIBPATH
9077 ;;
9078
9079osf3* | osf4* | osf5*)
9080 version_type=osf
9081 need_lib_prefix=no
9082 need_version=no
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9087 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9088 ;;
9089
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009090solaris*)
9091 version_type=linux
9092 need_lib_prefix=no
9093 need_version=no
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 shlibpath_overrides_runpath=yes
9098 hardcode_into_libs=yes
9099 # ldd complains unless libraries are executable
9100 postinstall_cmds='chmod +x $lib'
9101 ;;
9102
9103sunos4*)
9104 version_type=sunos
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9106 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 shlibpath_overrides_runpath=yes
9109 if test "$with_gnu_ld" = yes; then
9110 need_lib_prefix=no
9111 fi
9112 need_version=yes
9113 ;;
9114
Reid Spencera773bd52006-08-04 18:18:08 +00009115sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009116 version_type=linux
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 shlibpath_var=LD_LIBRARY_PATH
9120 case $host_vendor in
9121 sni)
9122 shlibpath_overrides_runpath=no
9123 need_lib_prefix=no
9124 export_dynamic_flag_spec='${wl}-Blargedynsym'
9125 runpath_var=LD_RUN_PATH
9126 ;;
9127 siemens)
9128 need_lib_prefix=no
9129 ;;
9130 motorola)
9131 need_lib_prefix=no
9132 need_version=no
9133 shlibpath_overrides_runpath=no
9134 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9135 ;;
9136 esac
9137 ;;
9138
9139sysv4*MP*)
9140 if test -d /usr/nec ;then
9141 version_type=linux
9142 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9143 soname_spec='$libname${shared_ext}.$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 fi
9146 ;;
9147
Reid Spencera773bd52006-08-04 18:18:08 +00009148sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9149 version_type=freebsd-elf
9150 need_lib_prefix=no
9151 need_version=no
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 hardcode_into_libs=yes
9156 if test "$with_gnu_ld" = yes; then
9157 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9158 shlibpath_overrides_runpath=no
9159 else
9160 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9161 shlibpath_overrides_runpath=yes
9162 case $host_os in
9163 sco3.2v5*)
9164 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9165 ;;
9166 esac
9167 fi
9168 sys_lib_dlsearch_path_spec='/usr/lib'
9169 ;;
9170
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009171uts4*)
9172 version_type=linux
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 shlibpath_var=LD_LIBRARY_PATH
9176 ;;
9177
9178*)
9179 dynamic_linker=no
9180 ;;
9181esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009182{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9183echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009184test "$dynamic_linker" = no && can_build_shared=no
9185
Reid Spencera773bd52006-08-04 18:18:08 +00009186variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9187if test "$GCC" = yes; then
9188 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9189fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009190
Reid Spencera773bd52006-08-04 18:18:08 +00009191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009192{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9193echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9194if test "${libltdl_cv_shlibext+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009196else
9197
9198module=yes
9199eval libltdl_cv_shlibext=$shrext_cmds
9200
9201fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009202{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9203echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009204if test -n "$libltdl_cv_shlibext"; then
9205
9206cat >>confdefs.h <<_ACEOF
9207#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9208_ACEOF
9209
9210fi
9211
9212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009213{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9214echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9215if test "${libltdl_cv_shlibpath_var+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009217else
9218 libltdl_cv_shlibpath_var="$shlibpath_var"
9219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009220{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9221echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009222if test -n "$libltdl_cv_shlibpath_var"; then
9223
9224cat >>confdefs.h <<_ACEOF
9225#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9226_ACEOF
9227
9228fi
9229
9230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009231{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9232echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9233if test "${libltdl_cv_sys_search_path+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009235else
9236 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9237fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009238{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9239echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009240if test -n "$libltdl_cv_sys_search_path"; then
9241 sys_search_path=
9242 for dir in $libltdl_cv_sys_search_path; do
9243 if test -z "$sys_search_path"; then
9244 sys_search_path="$dir"
9245 else
9246 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9247 fi
9248 done
9249
9250cat >>confdefs.h <<_ACEOF
9251#define LTDL_SYSSEARCHPATH "$sys_search_path"
9252_ACEOF
9253
9254fi
9255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009256{ echo "$as_me:$LINENO: checking for objdir" >&5
9257echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9258if test "${libltdl_cv_objdir+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009260else
9261 libltdl_cv_objdir="$objdir"
9262 if test -n "$objdir"; then
9263 :
9264 else
9265 rm -f .libs 2>/dev/null
9266 mkdir .libs 2>/dev/null
9267 if test -d .libs; then
9268 libltdl_cv_objdir=.libs
9269 else
9270 # MS-DOS does not allow filenames that begin with a dot.
9271 libltdl_cv_objdir=_libs
9272 fi
9273 rmdir .libs 2>/dev/null
9274 fi
9275
9276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009277{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9278echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009279
9280cat >>confdefs.h <<_ACEOF
9281#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9282_ACEOF
9283
9284
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009285
9286
9287
9288
9289# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009290{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9291echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9292if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009294else
9295
9296# These are sane defaults that work on at least a few old systems.
9297# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9298
9299# Character class describing NM global symbol codes.
9300symcode='[BCDEGRST]'
9301
9302# Regexp to match symbols that can be accessed directly from C.
9303sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9304
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009305# Transform an extracted symbol line into a proper C declaration
9306lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9307
9308# Transform an extracted symbol line into symbol name and symbol address
9309lt_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'"
9310
9311# Define system-specific variables.
9312case $host_os in
9313aix*)
9314 symcode='[BCDT]'
9315 ;;
9316cygwin* | mingw* | pw32*)
9317 symcode='[ABCDGISTW]'
9318 ;;
9319hpux*) # Its linker distinguishes data from code symbols
9320 if test "$host_cpu" = ia64; then
9321 symcode='[ABCDEGRST]'
9322 fi
9323 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9324 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'"
9325 ;;
9326linux*)
9327 if test "$host_cpu" = ia64; then
9328 symcode='[ABCDGIRSTW]'
9329 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9330 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'"
9331 fi
9332 ;;
9333irix* | nonstopux*)
9334 symcode='[BCDEGRST]'
9335 ;;
9336osf*)
9337 symcode='[BCDEGQRST]'
9338 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009339solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009340 symcode='[BDRT]'
9341 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009342sco3.2v5*)
9343 symcode='[DT]'
9344 ;;
9345sysv4.2uw2*)
9346 symcode='[DT]'
9347 ;;
9348sysv5* | sco5v6* | unixware* | OpenUNIX*)
9349 symcode='[ABDT]'
9350 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009351sysv4)
9352 symcode='[DFNSTU]'
9353 ;;
9354esac
9355
9356# Handle CRLF in mingw tool chain
9357opt_cr=
9358case $build_os in
9359mingw*)
9360 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9361 ;;
9362esac
9363
9364# If we're using GNU nm, then use its standard symbol codes.
9365case `$NM -V 2>&1` in
9366*GNU* | *'with BFD'*)
9367 symcode='[ABCDGIRSTW]' ;;
9368esac
9369
9370# Try without a prefix undercore, then with it.
9371for ac_symprfx in "" "_"; do
9372
Reid Spencera773bd52006-08-04 18:18:08 +00009373 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9374 symxfrm="\\1 $ac_symprfx\\2 \\2"
9375
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009376 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009377 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 +00009378
9379 # Check to see that the pipe works correctly.
9380 pipe_works=no
9381
9382 rm -f conftest*
9383 cat > conftest.$ac_ext <<EOF
9384#ifdef __cplusplus
9385extern "C" {
9386#endif
9387char nm_test_var;
9388void nm_test_func(){}
9389#ifdef __cplusplus
9390}
9391#endif
9392int main(){nm_test_var='a';nm_test_func();return(0);}
9393EOF
9394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009396 (eval $ac_compile) 2>&5
9397 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009400 # Now try to grab the symbols.
9401 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009402 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 +00009403 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9404 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009407 # Try sorting and uniquifying the output.
9408 if sort "$nlist" | uniq > "$nlist"T; then
9409 mv -f "$nlist"T "$nlist"
9410 else
9411 rm -f "$nlist"T
9412 fi
9413
9414 # Make sure that we snagged all the symbols we need.
9415 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9416 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9417 cat <<EOF > conftest.$ac_ext
9418#ifdef __cplusplus
9419extern "C" {
9420#endif
9421
9422EOF
9423 # Now generate the symbol file.
9424 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9425
9426 cat <<EOF >> conftest.$ac_ext
9427#if defined (__STDC__) && __STDC__
9428# define lt_ptr_t void *
9429#else
9430# define lt_ptr_t char *
9431# define const
9432#endif
9433
9434/* The mapping between symbol names and symbols. */
9435const struct {
9436 const char *name;
9437 lt_ptr_t address;
9438}
9439lt_preloaded_symbols[] =
9440{
9441EOF
9442 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9443 cat <<\EOF >> conftest.$ac_ext
9444 {0, (lt_ptr_t) 0}
9445};
9446
9447#ifdef __cplusplus
9448}
9449#endif
9450EOF
9451 # Now try linking the two files.
9452 mv conftest.$ac_objext conftstm.$ac_objext
9453 lt_save_LIBS="$LIBS"
9454 lt_save_CFLAGS="$CFLAGS"
9455 LIBS="conftstm.$ac_objext"
9456 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009458 (eval $ac_link) 2>&5
9459 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009462 pipe_works=yes
9463 fi
9464 LIBS="$lt_save_LIBS"
9465 CFLAGS="$lt_save_CFLAGS"
9466 else
9467 echo "cannot find nm_test_func in $nlist" >&5
9468 fi
9469 else
9470 echo "cannot find nm_test_var in $nlist" >&5
9471 fi
9472 else
9473 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9474 fi
9475 else
9476 echo "$progname: failed program was:" >&5
9477 cat conftest.$ac_ext >&5
9478 fi
9479 rm -f conftest* conftst*
9480
9481 # Do not use the global_symbol_pipe unless it works.
9482 if test "$pipe_works" = yes; then
9483 break
9484 else
9485 lt_cv_sys_global_symbol_pipe=
9486 fi
9487done
9488
9489fi
9490
9491if test -z "$lt_cv_sys_global_symbol_pipe"; then
9492 lt_cv_sys_global_symbol_to_cdecl=
9493fi
9494if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009495 { echo "$as_me:$LINENO: result: failed" >&5
9496echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009497else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009498 { echo "$as_me:$LINENO: result: ok" >&5
9499echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009500fi
9501
9502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009503{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9504echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9505if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009507else
9508 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9509 libltdl_cv_preloaded_symbols=yes
9510 else
9511 libltdl_cv_preloaded_symbols=no
9512 fi
9513
9514fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009515{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9516echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009517if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009519cat >>confdefs.h <<\_ACEOF
9520#define HAVE_PRELOADED_SYMBOLS 1
9521_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009522
9523fi
9524
9525LIBADD_DL=
9526
9527ac_ext=c
9528ac_cpp='$CPP $CPPFLAGS'
9529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9531ac_compiler_gnu=$ac_cv_c_compiler_gnu
9532
9533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009534{ echo "$as_me:$LINENO: checking for shl_load" >&5
9535echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9536if test "${ac_cv_func_shl_load+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9538else
9539 cat >conftest.$ac_ext <<_ACEOF
9540/* confdefs.h. */
9541_ACEOF
9542cat confdefs.h >>conftest.$ac_ext
9543cat >>conftest.$ac_ext <<_ACEOF
9544/* end confdefs.h. */
9545/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9547#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009548
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009549/* System header to define __stub macros and hopefully few prototypes,
9550 which can conflict with char shl_load (); below.
9551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9552 <limits.h> exists even on freestanding compilers. */
9553
9554#ifdef __STDC__
9555# include <limits.h>
9556#else
9557# include <assert.h>
9558#endif
9559
9560#undef shl_load
9561
9562/* Override any GCC internal prototype to avoid an error.
9563 Use char because int might match the return type of a GCC
9564 builtin and then its argument prototype would still apply. */
9565#ifdef __cplusplus
9566extern "C"
9567#endif
9568char shl_load ();
9569/* The GNU C library defines this for functions which it implements
9570 to always fail with ENOSYS. Some functions are actually named
9571 something starting with __ and the normal name is an alias. */
9572#if defined __stub_shl_load || defined __stub___shl_load
9573choke me
9574#endif
9575
9576int
9577main ()
9578{
9579return shl_load ();
9580 ;
9581 return 0;
9582}
9583_ACEOF
9584rm -f conftest.$ac_objext conftest$ac_exeext
9585if { (ac_try="$ac_link"
9586case "(($ac_try" in
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9589esac
9590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_link") 2>conftest.er1
9592 ac_status=$?
9593 grep -v '^ *+' conftest.er1 >conftest.err
9594 rm -f conftest.er1
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9599 { (case "(($ac_try" in
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9602esac
9603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604 (eval "$ac_try") 2>&5
9605 ac_status=$?
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; } &&
9608 { ac_try='test -s conftest$ac_exeext'
9609 { (case "(($ac_try" in
9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9611 *) ac_try_echo=$ac_try;;
9612esac
9613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614 (eval "$ac_try") 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 ac_cv_func_shl_load=yes
9619else
9620 echo "$as_me: failed program was:" >&5
9621sed 's/^/| /' conftest.$ac_ext >&5
9622
9623 ac_cv_func_shl_load=no
9624fi
9625
9626rm -f core conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9628fi
9629{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9630echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9631if test $ac_cv_func_shl_load = yes; then
9632
9633cat >>confdefs.h <<\_ACEOF
9634#define HAVE_SHL_LOAD 1
9635_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009636
9637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009638 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9639echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9640if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009642else
9643 ac_check_lib_save_LIBS=$LIBS
9644LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009645cat >conftest.$ac_ext <<_ACEOF
9646/* confdefs.h. */
9647_ACEOF
9648cat confdefs.h >>conftest.$ac_ext
9649cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009650/* end confdefs.h. */
9651
Reid Spencera773bd52006-08-04 18:18:08 +00009652/* Override any GCC internal prototype to avoid an error.
9653 Use char because int might match the return type of a GCC
9654 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009655#ifdef __cplusplus
9656extern "C"
9657#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009658char shl_load ();
9659int
9660main ()
9661{
Reid Spencera773bd52006-08-04 18:18:08 +00009662return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009663 ;
9664 return 0;
9665}
9666_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009667rm -f conftest.$ac_objext conftest$ac_exeext
9668if { (ac_try="$ac_link"
9669case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9672esac
9673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_link") 2>conftest.er1
9675 ac_status=$?
9676 grep -v '^ *+' conftest.er1 >conftest.err
9677 rm -f conftest.er1
9678 cat conftest.err >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9682 { (case "(($ac_try" in
9683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9685esac
9686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687 (eval "$ac_try") 2>&5
9688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; } &&
9691 { ac_try='test -s conftest$ac_exeext'
9692 { (case "(($ac_try" in
9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9695esac
9696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_try") 2>&5
9698 ac_status=$?
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009701 ac_cv_lib_dld_shl_load=yes
9702else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009703 echo "$as_me: failed program was:" >&5
9704sed 's/^/| /' conftest.$ac_ext >&5
9705
9706 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009707fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009708
Bill Wendlingebcceee2009-04-18 11:20:33 +00009709rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009710 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009711LIBS=$ac_check_lib_save_LIBS
9712fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009713{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9714echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9715if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009717cat >>confdefs.h <<\_ACEOF
9718#define HAVE_SHL_LOAD 1
9719_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009720
9721 LIBADD_DL="$LIBADD_DL -ldld"
9722else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009723 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9724echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9725if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009727else
9728 ac_check_lib_save_LIBS=$LIBS
9729LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009730cat >conftest.$ac_ext <<_ACEOF
9731/* confdefs.h. */
9732_ACEOF
9733cat confdefs.h >>conftest.$ac_ext
9734cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009735/* end confdefs.h. */
9736
Reid Spencera773bd52006-08-04 18:18:08 +00009737/* Override any GCC internal prototype to avoid an error.
9738 Use char because int might match the return type of a GCC
9739 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009740#ifdef __cplusplus
9741extern "C"
9742#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009743char dlopen ();
9744int
9745main ()
9746{
Reid Spencera773bd52006-08-04 18:18:08 +00009747return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009748 ;
9749 return 0;
9750}
9751_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009752rm -f conftest.$ac_objext conftest$ac_exeext
9753if { (ac_try="$ac_link"
9754case "(($ac_try" in
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9757esac
9758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759 (eval "$ac_link") 2>conftest.er1
9760 ac_status=$?
9761 grep -v '^ *+' conftest.er1 >conftest.err
9762 rm -f conftest.er1
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9767 { (case "(($ac_try" in
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9770esac
9771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_try") 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; } &&
9776 { ac_try='test -s conftest$ac_exeext'
9777 { (case "(($ac_try" in
9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779 *) ac_try_echo=$ac_try;;
9780esac
9781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_try") 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009786 ac_cv_lib_dl_dlopen=yes
9787else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009788 echo "$as_me: failed program was:" >&5
9789sed 's/^/| /' conftest.$ac_ext >&5
9790
9791 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009792fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009793
Bill Wendlingebcceee2009-04-18 11:20:33 +00009794rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009795 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009796LIBS=$ac_check_lib_save_LIBS
9797fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009798{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9799echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9800if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009801
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009802cat >>confdefs.h <<\_ACEOF
9803#define HAVE_LIBDL 1
9804_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009805
9806 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9807else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009808 cat >conftest.$ac_ext <<_ACEOF
9809/* confdefs.h. */
9810_ACEOF
9811cat confdefs.h >>conftest.$ac_ext
9812cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009813/* end confdefs.h. */
9814#if HAVE_DLFCN_H
9815# include <dlfcn.h>
9816#endif
9817
9818int
9819main ()
9820{
9821dlopen(0, 0);
9822 ;
9823 return 0;
9824}
9825_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009826rm -f conftest.$ac_objext conftest$ac_exeext
9827if { (ac_try="$ac_link"
9828case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831esac
9832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_link") 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9841 { (case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9844esac
9845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_try") 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try='test -s conftest$ac_exeext'
9851 { (case "(($ac_try" in
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9854esac
9855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856 (eval "$ac_try") 2>&5
9857 ac_status=$?
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009861cat >>confdefs.h <<\_ACEOF
9862#define HAVE_LIBDL 1
9863_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009864 libltdl_cv_func_dlopen="yes"
9865else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009866 echo "$as_me: failed program was:" >&5
9867sed 's/^/| /' conftest.$ac_ext >&5
9868
9869 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9870echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9871if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009873else
9874 ac_check_lib_save_LIBS=$LIBS
9875LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009876cat >conftest.$ac_ext <<_ACEOF
9877/* confdefs.h. */
9878_ACEOF
9879cat confdefs.h >>conftest.$ac_ext
9880cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009881/* end confdefs.h. */
9882
Reid Spencera773bd52006-08-04 18:18:08 +00009883/* Override any GCC internal prototype to avoid an error.
9884 Use char because int might match the return type of a GCC
9885 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009886#ifdef __cplusplus
9887extern "C"
9888#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009889char dlopen ();
9890int
9891main ()
9892{
Reid Spencera773bd52006-08-04 18:18:08 +00009893return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009894 ;
9895 return 0;
9896}
9897_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009898rm -f conftest.$ac_objext conftest$ac_exeext
9899if { (ac_try="$ac_link"
9900case "(($ac_try" in
9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902 *) ac_try_echo=$ac_try;;
9903esac
9904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_link") 2>conftest.er1
9906 ac_status=$?
9907 grep -v '^ *+' conftest.er1 >conftest.err
9908 rm -f conftest.er1
9909 cat conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9913 { (case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9916esac
9917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_try") 2>&5
9919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; } &&
9922 { ac_try='test -s conftest$ac_exeext'
9923 { (case "(($ac_try" in
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9926esac
9927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_try") 2>&5
9929 ac_status=$?
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009932 ac_cv_lib_svld_dlopen=yes
9933else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009934 echo "$as_me: failed program was:" >&5
9935sed 's/^/| /' conftest.$ac_ext >&5
9936
9937 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009938fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009939
Bill Wendlingebcceee2009-04-18 11:20:33 +00009940rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009941 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009942LIBS=$ac_check_lib_save_LIBS
9943fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009944{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9945echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9946if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009947
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009948cat >>confdefs.h <<\_ACEOF
9949#define HAVE_LIBDL 1
9950_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009951
9952 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9953else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009954 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9955echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9956if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009958else
9959 ac_check_lib_save_LIBS=$LIBS
9960LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009961cat >conftest.$ac_ext <<_ACEOF
9962/* confdefs.h. */
9963_ACEOF
9964cat confdefs.h >>conftest.$ac_ext
9965cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009966/* end confdefs.h. */
9967
Reid Spencera773bd52006-08-04 18:18:08 +00009968/* Override any GCC internal prototype to avoid an error.
9969 Use char because int might match the return type of a GCC
9970 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009971#ifdef __cplusplus
9972extern "C"
9973#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009974char dld_link ();
9975int
9976main ()
9977{
Reid Spencera773bd52006-08-04 18:18:08 +00009978return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009979 ;
9980 return 0;
9981}
9982_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009983rm -f conftest.$ac_objext conftest$ac_exeext
9984if { (ac_try="$ac_link"
9985case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9988esac
9989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_link") 2>conftest.er1
9991 ac_status=$?
9992 grep -v '^ *+' conftest.er1 >conftest.err
9993 rm -f conftest.er1
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9998 { (case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10001esac
10002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_try") 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; } &&
10007 { ac_try='test -s conftest$ac_exeext'
10008 { (case "(($ac_try" in
10009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010 *) ac_try_echo=$ac_try;;
10011esac
10012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013 (eval "$ac_try") 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010017 ac_cv_lib_dld_dld_link=yes
10018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010019 echo "$as_me: failed program was:" >&5
10020sed 's/^/| /' conftest.$ac_ext >&5
10021
10022 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010024
Bill Wendlingebcceee2009-04-18 11:20:33 +000010025rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010026 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010027LIBS=$ac_check_lib_save_LIBS
10028fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010029{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10030echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10031if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010033cat >>confdefs.h <<\_ACEOF
10034#define HAVE_DLD 1
10035_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010036
10037 LIBADD_DL="$LIBADD_DL -ldld"
10038else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010039 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10040echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10041if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10043else
10044 cat >conftest.$ac_ext <<_ACEOF
10045/* confdefs.h. */
10046_ACEOF
10047cat confdefs.h >>conftest.$ac_ext
10048cat >>conftest.$ac_ext <<_ACEOF
10049/* end confdefs.h. */
10050/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10052#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010053
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010054/* System header to define __stub macros and hopefully few prototypes,
10055 which can conflict with char _dyld_func_lookup (); below.
10056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10057 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010059#ifdef __STDC__
10060# include <limits.h>
10061#else
10062# include <assert.h>
10063#endif
10064
10065#undef _dyld_func_lookup
10066
10067/* Override any GCC internal prototype to avoid an error.
10068 Use char because int might match the return type of a GCC
10069 builtin and then its argument prototype would still apply. */
10070#ifdef __cplusplus
10071extern "C"
10072#endif
10073char _dyld_func_lookup ();
10074/* The GNU C library defines this for functions which it implements
10075 to always fail with ENOSYS. Some functions are actually named
10076 something starting with __ and the normal name is an alias. */
10077#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10078choke me
10079#endif
10080
10081int
10082main ()
10083{
10084return _dyld_func_lookup ();
10085 ;
10086 return 0;
10087}
10088_ACEOF
10089rm -f conftest.$ac_objext conftest$ac_exeext
10090if { (ac_try="$ac_link"
10091case "(($ac_try" in
10092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093 *) ac_try_echo=$ac_try;;
10094esac
10095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096 (eval "$ac_link") 2>conftest.er1
10097 ac_status=$?
10098 grep -v '^ *+' conftest.er1 >conftest.err
10099 rm -f conftest.er1
10100 cat conftest.err >&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10104 { (case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10107esac
10108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_try") 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; } &&
10113 { ac_try='test -s conftest$ac_exeext'
10114 { (case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10117esac
10118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_try") 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 ac_cv_func__dyld_func_lookup=yes
10124else
10125 echo "$as_me: failed program was:" >&5
10126sed 's/^/| /' conftest.$ac_ext >&5
10127
10128 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010129fi
Reid Spencera773bd52006-08-04 18:18:08 +000010130
Bill Wendlingebcceee2009-04-18 11:20:33 +000010131rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010132 conftest$ac_exeext conftest.$ac_ext
10133fi
10134{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10135echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10136if test $ac_cv_func__dyld_func_lookup = yes; then
10137
10138cat >>confdefs.h <<\_ACEOF
10139#define HAVE_DYLD 1
10140_ACEOF
10141
10142fi
10143
10144
10145fi
10146
10147
10148fi
10149
10150
10151fi
10152
10153rm -f core conftest.err conftest.$ac_objext \
10154 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010155
10156fi
10157
10158
10159fi
10160
10161
10162fi
10163
10164
10165if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10166then
10167 lt_save_LIBS="$LIBS"
10168 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010169
10170for ac_func in dlerror
10171do
10172as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10173{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10174echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10175if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10177else
10178 cat >conftest.$ac_ext <<_ACEOF
10179/* confdefs.h. */
10180_ACEOF
10181cat confdefs.h >>conftest.$ac_ext
10182cat >>conftest.$ac_ext <<_ACEOF
10183/* end confdefs.h. */
10184/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10186#define $ac_func innocuous_$ac_func
10187
10188/* System header to define __stub macros and hopefully few prototypes,
10189 which can conflict with char $ac_func (); below.
10190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10191 <limits.h> exists even on freestanding compilers. */
10192
10193#ifdef __STDC__
10194# include <limits.h>
10195#else
10196# include <assert.h>
10197#endif
10198
10199#undef $ac_func
10200
10201/* Override any GCC internal prototype to avoid an error.
10202 Use char because int might match the return type of a GCC
10203 builtin and then its argument prototype would still apply. */
10204#ifdef __cplusplus
10205extern "C"
10206#endif
10207char $ac_func ();
10208/* The GNU C library defines this for functions which it implements
10209 to always fail with ENOSYS. Some functions are actually named
10210 something starting with __ and the normal name is an alias. */
10211#if defined __stub_$ac_func || defined __stub___$ac_func
10212choke me
10213#endif
10214
10215int
10216main ()
10217{
10218return $ac_func ();
10219 ;
10220 return 0;
10221}
10222_ACEOF
10223rm -f conftest.$ac_objext conftest$ac_exeext
10224if { (ac_try="$ac_link"
10225case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228esac
10229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } &&
10237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10238 { (case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10241esac
10242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_try") 2>&5
10244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; } &&
10247 { ac_try='test -s conftest$ac_exeext'
10248 { (case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10251esac
10252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_try") 2>&5
10254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 eval "$as_ac_var=yes"
10258else
10259 echo "$as_me: failed program was:" >&5
10260sed 's/^/| /' conftest.$ac_ext >&5
10261
10262 eval "$as_ac_var=no"
10263fi
10264
10265rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10267fi
10268ac_res=`eval echo '${'$as_ac_var'}'`
10269 { echo "$as_me:$LINENO: result: $ac_res" >&5
10270echo "${ECHO_T}$ac_res" >&6; }
10271if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010272 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010274_ACEOF
10275
10276fi
10277done
10278
10279 LIBS="$lt_save_LIBS"
10280fi
10281ac_ext=c
10282ac_cpp='$CPP $CPPFLAGS'
10283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10285ac_compiler_gnu=$ac_cv_c_compiler_gnu
10286
10287
10288
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010289{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10290echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10291if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010293else
10294 ac_cv_sys_symbol_underscore=no
10295 cat > conftest.$ac_ext <<EOF
10296void nm_test_func(){}
10297int main(){nm_test_func;return 0;}
10298EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010300 (eval $ac_compile) 2>&5
10301 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010304 # Now try to grab the symbols.
10305 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010306 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 +000010307 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10308 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010311 # See whether the symbols have a leading underscore.
10312 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10313 ac_cv_sys_symbol_underscore=yes
10314 else
10315 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10316 :
10317 else
10318 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10319 fi
10320 fi
10321 else
10322 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10323 fi
10324 else
10325 echo "configure: failed program was:" >&5
10326 cat conftest.c >&5
10327 fi
10328 rm -rf conftest*
10329
10330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010331{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10332echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010333
10334
10335if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10336 if test x"$libltdl_cv_func_dlopen" = xyes ||
10337 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010338 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10339echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10340if test "${libltdl_cv_need_uscore+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010342else
10343 libltdl_cv_need_uscore=unknown
10344 save_LIBS="$LIBS"
10345 LIBS="$LIBS $LIBADD_DL"
10346 if test "$cross_compiling" = yes; then :
10347 libltdl_cv_need_uscore=cross
10348else
10349 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10350 lt_status=$lt_dlunknown
10351 cat > conftest.$ac_ext <<EOF
Danil Malyshevbb8cef52012-05-17 21:07:47 +000010352#line 10352 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353#include "confdefs.h"
10354
10355#if HAVE_DLFCN_H
10356#include <dlfcn.h>
10357#endif
10358
10359#include <stdio.h>
10360
10361#ifdef RTLD_GLOBAL
10362# define LT_DLGLOBAL RTLD_GLOBAL
10363#else
10364# ifdef DL_GLOBAL
10365# define LT_DLGLOBAL DL_GLOBAL
10366# else
10367# define LT_DLGLOBAL 0
10368# endif
10369#endif
10370
10371/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10372 find out it does not work in some platform. */
10373#ifndef LT_DLLAZY_OR_NOW
10374# ifdef RTLD_LAZY
10375# define LT_DLLAZY_OR_NOW RTLD_LAZY
10376# else
10377# ifdef DL_LAZY
10378# define LT_DLLAZY_OR_NOW DL_LAZY
10379# else
10380# ifdef RTLD_NOW
10381# define LT_DLLAZY_OR_NOW RTLD_NOW
10382# else
10383# ifdef DL_NOW
10384# define LT_DLLAZY_OR_NOW DL_NOW
10385# else
10386# define LT_DLLAZY_OR_NOW 0
10387# endif
10388# endif
10389# endif
10390# endif
10391#endif
10392
10393#ifdef __cplusplus
10394extern "C" void exit (int);
10395#endif
10396
10397void fnord() { int i=42;}
10398int main ()
10399{
10400 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10401 int status = $lt_dlunknown;
10402
10403 if (self)
10404 {
10405 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10406 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10407 /* dlclose (self); */
10408 }
Reid Spencera773bd52006-08-04 18:18:08 +000010409 else
10410 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010411
10412 exit (status);
10413}
10414EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010416 (eval $ac_link) 2>&5
10417 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010420 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010421 lt_status=$?
10422 case x$lt_status in
10423 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10424 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010425 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010426 esac
10427 else :
10428 # compilation failed
10429
10430 fi
10431fi
10432rm -fr conftest*
10433
10434 LIBS="$save_LIBS"
10435
10436fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010437{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10438echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010439 fi
10440fi
10441
10442if test x"$libltdl_cv_need_uscore" = xyes; then
10443
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010444cat >>confdefs.h <<\_ACEOF
10445#define NEED_USCORE 1
10446_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447
10448fi
10449
10450
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010451{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10452echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10453if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010455else
10456 # PORTME does your system automatically load deplibs for dlopen?
10457 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10458 # For now, we just catch OSes we know something about -- in the
10459 # future, we'll try test this programmatically.
10460 libltdl_cv_sys_dlopen_deplibs=unknown
10461 case "$host_os" in
10462 aix3*|aix4.1.*|aix4.2.*)
10463 # Unknown whether this is true for these versions of AIX, but
10464 # we want this `case' here to explicitly catch those versions.
10465 libltdl_cv_sys_dlopen_deplibs=unknown
10466 ;;
10467 aix[45]*)
10468 libltdl_cv_sys_dlopen_deplibs=yes
10469 ;;
10470 darwin*)
10471 # Assuming the user has installed a libdl from somewhere, this is true
10472 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10473 libltdl_cv_sys_dlopen_deplibs=yes
10474 ;;
10475 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10476 # GNU and its variants, using gnu ld.so (Glibc)
10477 libltdl_cv_sys_dlopen_deplibs=yes
10478 ;;
10479 hpux10*|hpux11*)
10480 libltdl_cv_sys_dlopen_deplibs=yes
10481 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010482 interix*)
10483 libltdl_cv_sys_dlopen_deplibs=yes
10484 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010485 irix[12345]*|irix6.[01]*)
10486 # Catch all versions of IRIX before 6.2, and indicate that we don't
10487 # know how it worked for any of those versions.
10488 libltdl_cv_sys_dlopen_deplibs=unknown
10489 ;;
10490 irix*)
10491 # The case above catches anything before 6.2, and it's known that
10492 # at 6.2 and later dlopen does load deplibs.
10493 libltdl_cv_sys_dlopen_deplibs=yes
10494 ;;
10495 netbsd*)
10496 libltdl_cv_sys_dlopen_deplibs=yes
10497 ;;
10498 openbsd*)
10499 libltdl_cv_sys_dlopen_deplibs=yes
10500 ;;
10501 osf[1234]*)
10502 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10503 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner7a2bdde2011-04-15 05:18:47 +000010504 # library depends on, so we explicitly say `no'.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010505 libltdl_cv_sys_dlopen_deplibs=no
10506 ;;
10507 osf5.0|osf5.0a|osf5.1)
10508 # dlopen *does* load deplibs and with the right loader patch applied
10509 # it even uses RPATH in a shared library to search for shared objects
10510 # that the library depends on, but there's no easy way to know if that
10511 # patch is installed. Since this is the case, all we can really
10512 # say is unknown -- it depends on the patch being installed. If
10513 # it is, this changes to `yes'. Without it, it would be `no'.
10514 libltdl_cv_sys_dlopen_deplibs=unknown
10515 ;;
10516 osf*)
10517 # the two cases above should catch all versions of osf <= 5.1. Read
10518 # the comments above for what we know about them.
10519 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10520 # is used to find them so we can finally say `yes'.
10521 libltdl_cv_sys_dlopen_deplibs=yes
10522 ;;
10523 solaris*)
10524 libltdl_cv_sys_dlopen_deplibs=yes
10525 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10527 libltdl_cv_sys_dlopen_deplibs=yes
10528 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010529 esac
10530
10531fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010532{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10533echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010534if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010536cat >>confdefs.h <<\_ACEOF
10537#define LTDL_DLOPEN_DEPLIBS 1
10538_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010539
10540fi
10541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010542
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010543for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010544do
10545as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10551fi
10552ac_res=`eval echo '${'$as_ac_Header'}'`
10553 { echo "$as_me:$LINENO: result: $ac_res" >&5
10554echo "${ECHO_T}$ac_res" >&6; }
10555else
10556 # Is the header compilable?
10557{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10558echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10559cat >conftest.$ac_ext <<_ACEOF
10560/* confdefs.h. */
10561_ACEOF
10562cat confdefs.h >>conftest.$ac_ext
10563cat >>conftest.$ac_ext <<_ACEOF
10564/* end confdefs.h. */
10565$ac_includes_default
10566#include <$ac_header>
10567_ACEOF
10568rm -f conftest.$ac_objext
10569if { (ac_try="$ac_compile"
10570case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10573esac
10574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575 (eval "$ac_compile") 2>conftest.er1
10576 ac_status=$?
10577 grep -v '^ *+' conftest.er1 >conftest.err
10578 rm -f conftest.er1
10579 cat conftest.err >&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } &&
10582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10583 { (case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586esac
10587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_try") 2>&5
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; } &&
10592 { ac_try='test -s conftest.$ac_objext'
10593 { (case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10596esac
10597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_try") 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; }; then
10602 ac_header_compiler=yes
10603else
10604 echo "$as_me: failed program was:" >&5
10605sed 's/^/| /' conftest.$ac_ext >&5
10606
10607 ac_header_compiler=no
10608fi
10609
10610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10611{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10612echo "${ECHO_T}$ac_header_compiler" >&6; }
10613
10614# Is the header present?
10615{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10616echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10617cat >conftest.$ac_ext <<_ACEOF
10618/* confdefs.h. */
10619_ACEOF
10620cat confdefs.h >>conftest.$ac_ext
10621cat >>conftest.$ac_ext <<_ACEOF
10622/* end confdefs.h. */
10623#include <$ac_header>
10624_ACEOF
10625if { (ac_try="$ac_cpp conftest.$ac_ext"
10626case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629esac
10630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } >/dev/null; then
10638 if test -s conftest.err; then
10639 ac_cpp_err=$ac_c_preproc_warn_flag
10640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10641 else
10642 ac_cpp_err=
10643 fi
10644else
10645 ac_cpp_err=yes
10646fi
10647if test -z "$ac_cpp_err"; then
10648 ac_header_preproc=yes
10649else
10650 echo "$as_me: failed program was:" >&5
10651sed 's/^/| /' conftest.$ac_ext >&5
10652
10653 ac_header_preproc=no
10654fi
10655
10656rm -f conftest.err conftest.$ac_ext
10657{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10658echo "${ECHO_T}$ac_header_preproc" >&6; }
10659
10660# So? What about this header?
10661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10662 yes:no: )
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10666echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10667 ac_header_preproc=yes
10668 ;;
10669 no:yes:* )
10670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10671echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10673echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10675echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10677echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10681echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10682 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000010683## ------------------------------------ ##
10684## Report this to http://llvm.org/bugs/ ##
10685## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010686_ASBOX
10687 ) | sed "s/^/$as_me: WARNING: /" >&2
10688 ;;
10689esac
10690{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10694else
10695 eval "$as_ac_Header=\$ac_header_preproc"
10696fi
10697ac_res=`eval echo '${'$as_ac_Header'}'`
10698 { echo "$as_me:$LINENO: result: $ac_res" >&5
10699echo "${ECHO_T}$ac_res" >&6; }
10700
10701fi
10702if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010703 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010705_ACEOF
10706
10707fi
10708
10709done
10710
10711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010712{ echo "$as_me:$LINENO: checking for error_t" >&5
10713echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10714if test "${ac_cv_type_error_t+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10716else
10717 cat >conftest.$ac_ext <<_ACEOF
10718/* confdefs.h. */
10719_ACEOF
10720cat confdefs.h >>conftest.$ac_ext
10721cat >>conftest.$ac_ext <<_ACEOF
10722/* end confdefs.h. */
10723#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010724# include <argz.h>
10725#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010726
10727typedef error_t ac__type_new_;
10728int
10729main ()
10730{
10731if ((ac__type_new_ *) 0)
10732 return 0;
10733if (sizeof (ac__type_new_))
10734 return 0;
10735 ;
10736 return 0;
10737}
10738_ACEOF
10739rm -f conftest.$ac_objext
10740if { (ac_try="$ac_compile"
10741case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10744esac
10745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_compile") 2>conftest.er1
10747 ac_status=$?
10748 grep -v '^ *+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } &&
10753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10754 { (case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10757esac
10758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759 (eval "$ac_try") 2>&5
10760 ac_status=$?
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; } &&
10763 { ac_try='test -s conftest.$ac_objext'
10764 { (case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10767esac
10768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_try") 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; }; then
10773 ac_cv_type_error_t=yes
10774else
10775 echo "$as_me: failed program was:" >&5
10776sed 's/^/| /' conftest.$ac_ext >&5
10777
10778 ac_cv_type_error_t=no
10779fi
10780
10781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10782fi
10783{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10784echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10785if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010786
10787cat >>confdefs.h <<_ACEOF
10788#define HAVE_ERROR_T 1
10789_ACEOF
10790
10791
10792else
10793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010794cat >>confdefs.h <<\_ACEOF
10795#define error_t int
10796_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010797
10798fi
10799
10800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010801
10802
10803
10804
10805
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010806for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010807do
10808as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10809{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10810echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10811if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10813else
10814 cat >conftest.$ac_ext <<_ACEOF
10815/* confdefs.h. */
10816_ACEOF
10817cat confdefs.h >>conftest.$ac_ext
10818cat >>conftest.$ac_ext <<_ACEOF
10819/* end confdefs.h. */
10820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10822#define $ac_func innocuous_$ac_func
10823
10824/* System header to define __stub macros and hopefully few prototypes,
10825 which can conflict with char $ac_func (); below.
10826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10827 <limits.h> exists even on freestanding compilers. */
10828
10829#ifdef __STDC__
10830# include <limits.h>
10831#else
10832# include <assert.h>
10833#endif
10834
10835#undef $ac_func
10836
10837/* Override any GCC internal prototype to avoid an error.
10838 Use char because int might match the return type of a GCC
10839 builtin and then its argument prototype would still apply. */
10840#ifdef __cplusplus
10841extern "C"
10842#endif
10843char $ac_func ();
10844/* The GNU C library defines this for functions which it implements
10845 to always fail with ENOSYS. Some functions are actually named
10846 something starting with __ and the normal name is an alias. */
10847#if defined __stub_$ac_func || defined __stub___$ac_func
10848choke me
10849#endif
10850
10851int
10852main ()
10853{
10854return $ac_func ();
10855 ;
10856 return 0;
10857}
10858_ACEOF
10859rm -f conftest.$ac_objext conftest$ac_exeext
10860if { (ac_try="$ac_link"
10861case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10864esac
10865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_link") 2>conftest.er1
10867 ac_status=$?
10868 grep -v '^ *+' conftest.er1 >conftest.err
10869 rm -f conftest.er1
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } &&
10873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10874 { (case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10877esac
10878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_try") 2>&5
10880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; } &&
10883 { ac_try='test -s conftest$ac_exeext'
10884 { (case "(($ac_try" in
10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10887esac
10888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_try") 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
10893 eval "$as_ac_var=yes"
10894else
10895 echo "$as_me: failed program was:" >&5
10896sed 's/^/| /' conftest.$ac_ext >&5
10897
10898 eval "$as_ac_var=no"
10899fi
10900
10901rm -f core conftest.err conftest.$ac_objext \
10902 conftest$ac_exeext conftest.$ac_ext
10903fi
10904ac_res=`eval echo '${'$as_ac_var'}'`
10905 { echo "$as_me:$LINENO: result: $ac_res" >&5
10906echo "${ECHO_T}$ac_res" >&6; }
10907if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010908 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010909#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010910_ACEOF
10911
10912fi
10913done
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010934
10935
10936
10937
10938
10939
10940
10941
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010942for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10943 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010944do
10945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951fi
10952ac_res=`eval echo '${'$as_ac_Header'}'`
10953 { echo "$as_me:$LINENO: result: $ac_res" >&5
10954echo "${ECHO_T}$ac_res" >&6; }
10955else
10956 # Is the header compilable?
10957{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10959cat >conftest.$ac_ext <<_ACEOF
10960/* confdefs.h. */
10961_ACEOF
10962cat confdefs.h >>conftest.$ac_ext
10963cat >>conftest.$ac_ext <<_ACEOF
10964/* end confdefs.h. */
10965$ac_includes_default
10966#include <$ac_header>
10967_ACEOF
10968rm -f conftest.$ac_objext
10969if { (ac_try="$ac_compile"
10970case "(($ac_try" in
10971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972 *) ac_try_echo=$ac_try;;
10973esac
10974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975 (eval "$ac_compile") 2>conftest.er1
10976 ac_status=$?
10977 grep -v '^ *+' conftest.er1 >conftest.err
10978 rm -f conftest.er1
10979 cat conftest.err >&5
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); } &&
10982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10983 { (case "(($ac_try" in
10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985 *) ac_try_echo=$ac_try;;
10986esac
10987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988 (eval "$ac_try") 2>&5
10989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; } &&
10992 { ac_try='test -s conftest.$ac_objext'
10993 { (case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10996esac
10997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_try") 2>&5
10999 ac_status=$?
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; }; then
11002 ac_header_compiler=yes
11003else
11004 echo "$as_me: failed program was:" >&5
11005sed 's/^/| /' conftest.$ac_ext >&5
11006
11007 ac_header_compiler=no
11008fi
11009
11010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11011{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11012echo "${ECHO_T}$ac_header_compiler" >&6; }
11013
11014# Is the header present?
11015{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11017cat >conftest.$ac_ext <<_ACEOF
11018/* confdefs.h. */
11019_ACEOF
11020cat confdefs.h >>conftest.$ac_ext
11021cat >>conftest.$ac_ext <<_ACEOF
11022/* end confdefs.h. */
11023#include <$ac_header>
11024_ACEOF
11025if { (ac_try="$ac_cpp conftest.$ac_ext"
11026case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11029esac
11030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11032 ac_status=$?
11033 grep -v '^ *+' conftest.er1 >conftest.err
11034 rm -f conftest.er1
11035 cat conftest.err >&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } >/dev/null; then
11038 if test -s conftest.err; then
11039 ac_cpp_err=$ac_c_preproc_warn_flag
11040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11041 else
11042 ac_cpp_err=
11043 fi
11044else
11045 ac_cpp_err=yes
11046fi
11047if test -z "$ac_cpp_err"; then
11048 ac_header_preproc=yes
11049else
11050 echo "$as_me: failed program was:" >&5
11051sed 's/^/| /' conftest.$ac_ext >&5
11052
11053 ac_header_preproc=no
11054fi
11055
11056rm -f conftest.err conftest.$ac_ext
11057{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11058echo "${ECHO_T}$ac_header_preproc" >&6; }
11059
11060# So? What about this header?
11061case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11062 yes:no: )
11063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11064echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11066echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11067 ac_header_preproc=yes
11068 ;;
11069 no:yes:* )
11070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11073echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11075echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11077echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11081echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11082 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011083## ------------------------------------ ##
11084## Report this to http://llvm.org/bugs/ ##
11085## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011086_ASBOX
11087 ) | sed "s/^/$as_me: WARNING: /" >&2
11088 ;;
11089esac
11090{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11094else
11095 eval "$as_ac_Header=\$ac_header_preproc"
11096fi
11097ac_res=`eval echo '${'$as_ac_Header'}'`
11098 { echo "$as_me:$LINENO: result: $ac_res" >&5
11099echo "${ECHO_T}$ac_res" >&6; }
11100
11101fi
11102if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011103 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011105_ACEOF
11106
11107fi
11108
11109done
11110
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011111
11112
11113
11114
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011115for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011116do
11117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11123fi
11124ac_res=`eval echo '${'$as_ac_Header'}'`
11125 { echo "$as_me:$LINENO: result: $ac_res" >&5
11126echo "${ECHO_T}$ac_res" >&6; }
11127else
11128 # Is the header compilable?
11129{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11130echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11131cat >conftest.$ac_ext <<_ACEOF
11132/* confdefs.h. */
11133_ACEOF
11134cat confdefs.h >>conftest.$ac_ext
11135cat >>conftest.$ac_ext <<_ACEOF
11136/* end confdefs.h. */
11137$ac_includes_default
11138#include <$ac_header>
11139_ACEOF
11140rm -f conftest.$ac_objext
11141if { (ac_try="$ac_compile"
11142case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11145esac
11146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_compile") 2>conftest.er1
11148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
11154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11155 { (case "(($ac_try" in
11156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157 *) ac_try_echo=$ac_try;;
11158esac
11159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160 (eval "$ac_try") 2>&5
11161 ac_status=$?
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; } &&
11164 { ac_try='test -s conftest.$ac_objext'
11165 { (case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11168esac
11169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_try") 2>&5
11171 ac_status=$?
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
11174 ac_header_compiler=yes
11175else
11176 echo "$as_me: failed program was:" >&5
11177sed 's/^/| /' conftest.$ac_ext >&5
11178
11179 ac_header_compiler=no
11180fi
11181
11182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11183{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11184echo "${ECHO_T}$ac_header_compiler" >&6; }
11185
11186# Is the header present?
11187{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11188echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11189cat >conftest.$ac_ext <<_ACEOF
11190/* confdefs.h. */
11191_ACEOF
11192cat confdefs.h >>conftest.$ac_ext
11193cat >>conftest.$ac_ext <<_ACEOF
11194/* end confdefs.h. */
11195#include <$ac_header>
11196_ACEOF
11197if { (ac_try="$ac_cpp conftest.$ac_ext"
11198case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11201esac
11202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11204 ac_status=$?
11205 grep -v '^ *+' conftest.er1 >conftest.err
11206 rm -f conftest.er1
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } >/dev/null; then
11210 if test -s conftest.err; then
11211 ac_cpp_err=$ac_c_preproc_warn_flag
11212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11213 else
11214 ac_cpp_err=
11215 fi
11216else
11217 ac_cpp_err=yes
11218fi
11219if test -z "$ac_cpp_err"; then
11220 ac_header_preproc=yes
11221else
11222 echo "$as_me: failed program was:" >&5
11223sed 's/^/| /' conftest.$ac_ext >&5
11224
11225 ac_header_preproc=no
11226fi
11227
11228rm -f conftest.err conftest.$ac_ext
11229{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11230echo "${ECHO_T}$ac_header_preproc" >&6; }
11231
11232# So? What about this header?
11233case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11234 yes:no: )
11235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11236echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11238echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11239 ac_header_preproc=yes
11240 ;;
11241 no:yes:* )
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11243echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11245echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11247echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11249echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11251echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11253echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11254 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011255## ------------------------------------ ##
11256## Report this to http://llvm.org/bugs/ ##
11257## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011258_ASBOX
11259 ) | sed "s/^/$as_me: WARNING: /" >&2
11260 ;;
11261esac
11262{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266else
11267 eval "$as_ac_Header=\$ac_header_preproc"
11268fi
11269ac_res=`eval echo '${'$as_ac_Header'}'`
11270 { echo "$as_me:$LINENO: result: $ac_res" >&5
11271echo "${ECHO_T}$ac_res" >&6; }
11272
11273fi
11274if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011275 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011277_ACEOF
11278
11279fi
11280
11281done
11282
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011283
11284
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011285for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011286do
11287as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11293fi
11294ac_res=`eval echo '${'$as_ac_Header'}'`
11295 { echo "$as_me:$LINENO: result: $ac_res" >&5
11296echo "${ECHO_T}$ac_res" >&6; }
11297else
11298 # Is the header compilable?
11299{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11300echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11301cat >conftest.$ac_ext <<_ACEOF
11302/* confdefs.h. */
11303_ACEOF
11304cat confdefs.h >>conftest.$ac_ext
11305cat >>conftest.$ac_ext <<_ACEOF
11306/* end confdefs.h. */
11307$ac_includes_default
11308#include <$ac_header>
11309_ACEOF
11310rm -f conftest.$ac_objext
11311if { (ac_try="$ac_compile"
11312case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11315esac
11316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_compile") 2>conftest.er1
11318 ac_status=$?
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } &&
11324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11325 { (case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11328esac
11329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_try") 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest.$ac_objext'
11335 { (case "(($ac_try" in
11336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337 *) ac_try_echo=$ac_try;;
11338esac
11339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340 (eval "$ac_try") 2>&5
11341 ac_status=$?
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; }; then
11344 ac_header_compiler=yes
11345else
11346 echo "$as_me: failed program was:" >&5
11347sed 's/^/| /' conftest.$ac_ext >&5
11348
11349 ac_header_compiler=no
11350fi
11351
11352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11353{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11354echo "${ECHO_T}$ac_header_compiler" >&6; }
11355
11356# Is the header present?
11357{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11358echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11359cat >conftest.$ac_ext <<_ACEOF
11360/* confdefs.h. */
11361_ACEOF
11362cat confdefs.h >>conftest.$ac_ext
11363cat >>conftest.$ac_ext <<_ACEOF
11364/* end confdefs.h. */
11365#include <$ac_header>
11366_ACEOF
11367if { (ac_try="$ac_cpp conftest.$ac_ext"
11368case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11371esac
11372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11374 ac_status=$?
11375 grep -v '^ *+' conftest.er1 >conftest.err
11376 rm -f conftest.er1
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } >/dev/null; then
11380 if test -s conftest.err; then
11381 ac_cpp_err=$ac_c_preproc_warn_flag
11382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11383 else
11384 ac_cpp_err=
11385 fi
11386else
11387 ac_cpp_err=yes
11388fi
11389if test -z "$ac_cpp_err"; then
11390 ac_header_preproc=yes
11391else
11392 echo "$as_me: failed program was:" >&5
11393sed 's/^/| /' conftest.$ac_ext >&5
11394
11395 ac_header_preproc=no
11396fi
11397
11398rm -f conftest.err conftest.$ac_ext
11399{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11400echo "${ECHO_T}$ac_header_preproc" >&6; }
11401
11402# So? What about this header?
11403case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11404 yes:no: )
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11408echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11409 ac_header_preproc=yes
11410 ;;
11411 no:yes:* )
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11415echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11417echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11419echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11421echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11423echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11424 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000011425## ------------------------------------ ##
11426## Report this to http://llvm.org/bugs/ ##
11427## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011428_ASBOX
11429 ) | sed "s/^/$as_me: WARNING: /" >&2
11430 ;;
11431esac
11432{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436else
11437 eval "$as_ac_Header=\$ac_header_preproc"
11438fi
11439ac_res=`eval echo '${'$as_ac_Header'}'`
11440 { echo "$as_me:$LINENO: result: $ac_res" >&5
11441echo "${ECHO_T}$ac_res" >&6; }
11442
11443fi
11444if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011445 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011447_ACEOF
11448 break
11449fi
11450
11451done
11452
11453
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011454
11455
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011456for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011457do
11458as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11459{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11460echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11461if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463else
11464 cat >conftest.$ac_ext <<_ACEOF
11465/* confdefs.h. */
11466_ACEOF
11467cat confdefs.h >>conftest.$ac_ext
11468cat >>conftest.$ac_ext <<_ACEOF
11469/* end confdefs.h. */
11470/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11472#define $ac_func innocuous_$ac_func
11473
11474/* System header to define __stub macros and hopefully few prototypes,
11475 which can conflict with char $ac_func (); below.
11476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11477 <limits.h> exists even on freestanding compilers. */
11478
11479#ifdef __STDC__
11480# include <limits.h>
11481#else
11482# include <assert.h>
11483#endif
11484
11485#undef $ac_func
11486
11487/* Override any GCC internal prototype to avoid an error.
11488 Use char because int might match the return type of a GCC
11489 builtin and then its argument prototype would still apply. */
11490#ifdef __cplusplus
11491extern "C"
11492#endif
11493char $ac_func ();
11494/* The GNU C library defines this for functions which it implements
11495 to always fail with ENOSYS. Some functions are actually named
11496 something starting with __ and the normal name is an alias. */
11497#if defined __stub_$ac_func || defined __stub___$ac_func
11498choke me
11499#endif
11500
11501int
11502main ()
11503{
11504return $ac_func ();
11505 ;
11506 return 0;
11507}
11508_ACEOF
11509rm -f conftest.$ac_objext conftest$ac_exeext
11510if { (ac_try="$ac_link"
11511case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11514esac
11515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_link") 2>conftest.er1
11517 ac_status=$?
11518 grep -v '^ *+' conftest.er1 >conftest.err
11519 rm -f conftest.er1
11520 cat conftest.err >&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } &&
11523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11524 { (case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11527esac
11528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_try") 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; } &&
11533 { ac_try='test -s conftest$ac_exeext'
11534 { (case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11537esac
11538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_try") 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; }; then
11543 eval "$as_ac_var=yes"
11544else
11545 echo "$as_me: failed program was:" >&5
11546sed 's/^/| /' conftest.$ac_ext >&5
11547
11548 eval "$as_ac_var=no"
11549fi
11550
11551rm -f core conftest.err conftest.$ac_objext \
11552 conftest$ac_exeext conftest.$ac_ext
11553fi
11554ac_res=`eval echo '${'$as_ac_var'}'`
11555 { echo "$as_me:$LINENO: result: $ac_res" >&5
11556echo "${ECHO_T}$ac_res" >&6; }
11557if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011558 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011560_ACEOF
11561 break
11562fi
11563done
11564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011565
11566
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011567for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011568do
11569as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11570{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11571echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11572if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11574else
11575 cat >conftest.$ac_ext <<_ACEOF
11576/* confdefs.h. */
11577_ACEOF
11578cat confdefs.h >>conftest.$ac_ext
11579cat >>conftest.$ac_ext <<_ACEOF
11580/* end confdefs.h. */
11581/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11583#define $ac_func innocuous_$ac_func
11584
11585/* System header to define __stub macros and hopefully few prototypes,
11586 which can conflict with char $ac_func (); below.
11587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11588 <limits.h> exists even on freestanding compilers. */
11589
11590#ifdef __STDC__
11591# include <limits.h>
11592#else
11593# include <assert.h>
11594#endif
11595
11596#undef $ac_func
11597
11598/* Override any GCC internal prototype to avoid an error.
11599 Use char because int might match the return type of a GCC
11600 builtin and then its argument prototype would still apply. */
11601#ifdef __cplusplus
11602extern "C"
11603#endif
11604char $ac_func ();
11605/* The GNU C library defines this for functions which it implements
11606 to always fail with ENOSYS. Some functions are actually named
11607 something starting with __ and the normal name is an alias. */
11608#if defined __stub_$ac_func || defined __stub___$ac_func
11609choke me
11610#endif
11611
11612int
11613main ()
11614{
11615return $ac_func ();
11616 ;
11617 return 0;
11618}
11619_ACEOF
11620rm -f conftest.$ac_objext conftest$ac_exeext
11621if { (ac_try="$ac_link"
11622case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625esac
11626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_link") 2>conftest.er1
11628 ac_status=$?
11629 grep -v '^ *+' conftest.er1 >conftest.err
11630 rm -f conftest.er1
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } &&
11634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11635 { (case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638esac
11639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_try") 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try='test -s conftest$ac_exeext'
11645 { (case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648esac
11649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_try") 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11654 eval "$as_ac_var=yes"
11655else
11656 echo "$as_me: failed program was:" >&5
11657sed 's/^/| /' conftest.$ac_ext >&5
11658
11659 eval "$as_ac_var=no"
11660fi
11661
11662rm -f core conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11664fi
11665ac_res=`eval echo '${'$as_ac_var'}'`
11666 { echo "$as_me:$LINENO: result: $ac_res" >&5
11667echo "${ECHO_T}$ac_res" >&6; }
11668if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011669 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011670#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011671_ACEOF
11672 break
11673fi
11674done
11675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011676
11677
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011678for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011679do
11680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11681{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11683if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11685else
11686 cat >conftest.$ac_ext <<_ACEOF
11687/* confdefs.h. */
11688_ACEOF
11689cat confdefs.h >>conftest.$ac_ext
11690cat >>conftest.$ac_ext <<_ACEOF
11691/* end confdefs.h. */
11692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11694#define $ac_func innocuous_$ac_func
11695
11696/* System header to define __stub macros and hopefully few prototypes,
11697 which can conflict with char $ac_func (); below.
11698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11699 <limits.h> exists even on freestanding compilers. */
11700
11701#ifdef __STDC__
11702# include <limits.h>
11703#else
11704# include <assert.h>
11705#endif
11706
11707#undef $ac_func
11708
11709/* Override any GCC internal prototype to avoid an error.
11710 Use char because int might match the return type of a GCC
11711 builtin and then its argument prototype would still apply. */
11712#ifdef __cplusplus
11713extern "C"
11714#endif
11715char $ac_func ();
11716/* The GNU C library defines this for functions which it implements
11717 to always fail with ENOSYS. Some functions are actually named
11718 something starting with __ and the normal name is an alias. */
11719#if defined __stub_$ac_func || defined __stub___$ac_func
11720choke me
11721#endif
11722
11723int
11724main ()
11725{
11726return $ac_func ();
11727 ;
11728 return 0;
11729}
11730_ACEOF
11731rm -f conftest.$ac_objext conftest$ac_exeext
11732if { (ac_try="$ac_link"
11733case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11736esac
11737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_link") 2>conftest.er1
11739 ac_status=$?
11740 grep -v '^ *+' conftest.er1 >conftest.err
11741 rm -f conftest.er1
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } &&
11745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11746 { (case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11749esac
11750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_try") 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; } &&
11755 { ac_try='test -s conftest$ac_exeext'
11756 { (case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11759esac
11760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_try") 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11765 eval "$as_ac_var=yes"
11766else
11767 echo "$as_me: failed program was:" >&5
11768sed 's/^/| /' conftest.$ac_ext >&5
11769
11770 eval "$as_ac_var=no"
11771fi
11772
11773rm -f core conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext conftest.$ac_ext
11775fi
11776ac_res=`eval echo '${'$as_ac_var'}'`
11777 { echo "$as_me:$LINENO: result: $ac_res" >&5
11778echo "${ECHO_T}$ac_res" >&6; }
11779if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011780 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011781#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011782_ACEOF
11783 break
11784fi
11785done
11786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011787
11788
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011789for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011790do
11791as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11792{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11793echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11794if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11796else
11797 cat >conftest.$ac_ext <<_ACEOF
11798/* confdefs.h. */
11799_ACEOF
11800cat confdefs.h >>conftest.$ac_ext
11801cat >>conftest.$ac_ext <<_ACEOF
11802/* end confdefs.h. */
11803/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11805#define $ac_func innocuous_$ac_func
11806
11807/* System header to define __stub macros and hopefully few prototypes,
11808 which can conflict with char $ac_func (); below.
11809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11810 <limits.h> exists even on freestanding compilers. */
11811
11812#ifdef __STDC__
11813# include <limits.h>
11814#else
11815# include <assert.h>
11816#endif
11817
11818#undef $ac_func
11819
11820/* Override any GCC internal prototype to avoid an error.
11821 Use char because int might match the return type of a GCC
11822 builtin and then its argument prototype would still apply. */
11823#ifdef __cplusplus
11824extern "C"
11825#endif
11826char $ac_func ();
11827/* The GNU C library defines this for functions which it implements
11828 to always fail with ENOSYS. Some functions are actually named
11829 something starting with __ and the normal name is an alias. */
11830#if defined __stub_$ac_func || defined __stub___$ac_func
11831choke me
11832#endif
11833
11834int
11835main ()
11836{
11837return $ac_func ();
11838 ;
11839 return 0;
11840}
11841_ACEOF
11842rm -f conftest.$ac_objext conftest$ac_exeext
11843if { (ac_try="$ac_link"
11844case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11847esac
11848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_link") 2>conftest.er1
11850 ac_status=$?
11851 grep -v '^ *+' conftest.er1 >conftest.err
11852 rm -f conftest.er1
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
11856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11857 { (case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860esac
11861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_try") 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; } &&
11866 { ac_try='test -s conftest$ac_exeext'
11867 { (case "(($ac_try" in
11868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869 *) ac_try_echo=$ac_try;;
11870esac
11871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872 (eval "$ac_try") 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 eval "$as_ac_var=yes"
11877else
11878 echo "$as_me: failed program was:" >&5
11879sed 's/^/| /' conftest.$ac_ext >&5
11880
11881 eval "$as_ac_var=no"
11882fi
11883
11884rm -f core conftest.err conftest.$ac_objext \
11885 conftest$ac_exeext conftest.$ac_ext
11886fi
11887ac_res=`eval echo '${'$as_ac_var'}'`
11888 { echo "$as_me:$LINENO: result: $ac_res" >&5
11889echo "${ECHO_T}$ac_res" >&6; }
11890if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011891 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011893_ACEOF
11894
11895fi
11896done
11897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011898
11899
11900
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011901for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011902do
11903as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11904{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11905echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11906if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908else
11909 cat >conftest.$ac_ext <<_ACEOF
11910/* confdefs.h. */
11911_ACEOF
11912cat confdefs.h >>conftest.$ac_ext
11913cat >>conftest.$ac_ext <<_ACEOF
11914/* end confdefs.h. */
11915/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11917#define $ac_func innocuous_$ac_func
11918
11919/* System header to define __stub macros and hopefully few prototypes,
11920 which can conflict with char $ac_func (); below.
11921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11922 <limits.h> exists even on freestanding compilers. */
11923
11924#ifdef __STDC__
11925# include <limits.h>
11926#else
11927# include <assert.h>
11928#endif
11929
11930#undef $ac_func
11931
11932/* Override any GCC internal prototype to avoid an error.
11933 Use char because int might match the return type of a GCC
11934 builtin and then its argument prototype would still apply. */
11935#ifdef __cplusplus
11936extern "C"
11937#endif
11938char $ac_func ();
11939/* The GNU C library defines this for functions which it implements
11940 to always fail with ENOSYS. Some functions are actually named
11941 something starting with __ and the normal name is an alias. */
11942#if defined __stub_$ac_func || defined __stub___$ac_func
11943choke me
11944#endif
11945
11946int
11947main ()
11948{
11949return $ac_func ();
11950 ;
11951 return 0;
11952}
11953_ACEOF
11954rm -f conftest.$ac_objext conftest$ac_exeext
11955if { (ac_try="$ac_link"
11956case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11959esac
11960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_link") 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11969 { (case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11972esac
11973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_try") 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest$ac_exeext'
11979 { (case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11982esac
11983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_try") 2>&5
11985 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11988 eval "$as_ac_var=yes"
11989else
11990 echo "$as_me: failed program was:" >&5
11991sed 's/^/| /' conftest.$ac_ext >&5
11992
11993 eval "$as_ac_var=no"
11994fi
11995
11996rm -f core conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11998fi
11999ac_res=`eval echo '${'$as_ac_var'}'`
12000 { echo "$as_me:$LINENO: result: $ac_res" >&5
12001echo "${ECHO_T}$ac_res" >&6; }
12002if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012003 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005_ACEOF
12006
12007fi
12008done
12009
12010
Douglas Gregor01746742009-05-11 18:05:52 +000012011
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012012{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12013echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012014
Reid Spencer86901802004-12-08 23:07:27 +000012015ICC=no
12016IXX=no
12017case $CC in
12018 icc*|icpc*)
12019 ICC=yes
12020 IXX=yes
12021 ;;
12022 *)
12023 ;;
12024esac
12025
Duraid Madina937c60a2006-02-15 07:57:42 +000012026if test "$GCC" != "yes" && test "$ICC" != "yes"
12027then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012028 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12029echo "$as_me: error: gcc|icc required but not found" >&2;}
12030 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012031fi
12032
12033if test "$GXX" != "yes" && test "$IXX" != "yes"
12034then
Eric Christopher73e36da2010-12-08 02:02:14 +000012035 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12036echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012037 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012038fi
12039
Reid Spencer86901802004-12-08 23:07:27 +000012040if test "$GCC" = "yes"
12041then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012042 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012043#if !defined(__GNUC__) || __GNUC__ < 3
12044#error Unsupported GCC version
12045#endif
12046
12047_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012048rm -f conftest.$ac_objext
12049if { (ac_try="$ac_compile"
12050case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12053esac
12054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_compile") 2>conftest.er1
12056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } &&
12062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12063 { (case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12066esac
12067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_try") 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } &&
12072 { ac_try='test -s conftest.$ac_objext'
12073 { (case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12076esac
12077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_try") 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012083else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012084 echo "$as_me: failed program was:" >&5
12085sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12088echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12089 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012090fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012091
Chris Lattner399c7c72008-02-05 19:43:53 +000012092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012093fi
12094
12095if test -z "$llvm_cv_gnu_make_command"
12096then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012097 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12098echo "$as_me: error: GNU Make required but not found" >&2;}
12099 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012100fi
12101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012102{ echo "$as_me:$LINENO: result: ok" >&5
12103echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012104
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012105{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12106echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012107NO_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 +000012108
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012109NO_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 +000012110
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012111COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12112
12113{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12114echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012115
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012117
12118{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12119echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12120if test "${ac_cv_lib_m_sin+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012122else
12123 ac_check_lib_save_LIBS=$LIBS
12124LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012125cat >conftest.$ac_ext <<_ACEOF
12126/* confdefs.h. */
12127_ACEOF
12128cat confdefs.h >>conftest.$ac_ext
12129cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012130/* end confdefs.h. */
12131
Reid Spencera773bd52006-08-04 18:18:08 +000012132/* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012135#ifdef __cplusplus
12136extern "C"
12137#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012138char sin ();
12139int
12140main ()
12141{
Reid Spencera773bd52006-08-04 18:18:08 +000012142return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012143 ;
12144 return 0;
12145}
12146_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012147rm -f conftest.$ac_objext conftest$ac_exeext
12148if { (ac_try="$ac_link"
12149case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12152esac
12153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_link") 2>conftest.er1
12155 ac_status=$?
12156 grep -v '^ *+' conftest.er1 >conftest.err
12157 rm -f conftest.er1
12158 cat conftest.err >&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } &&
12161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12162 { (case "(($ac_try" in
12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164 *) ac_try_echo=$ac_try;;
12165esac
12166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12167 (eval "$ac_try") 2>&5
12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; } &&
12171 { ac_try='test -s conftest$ac_exeext'
12172 { (case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12175esac
12176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_try") 2>&5
12178 ac_status=$?
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012181 ac_cv_lib_m_sin=yes
12182else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012183 echo "$as_me: failed program was:" >&5
12184sed 's/^/| /' conftest.$ac_ext >&5
12185
12186 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012187fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012188
Bill Wendlingebcceee2009-04-18 11:20:33 +000012189rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012190 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012191LIBS=$ac_check_lib_save_LIBS
12192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012193{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12194echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12195if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012196 cat >>confdefs.h <<_ACEOF
12197#define HAVE_LIBM 1
12198_ACEOF
12199
12200 LIBS="-lm $LIBS"
12201
12202fi
12203
Jeff Cohen28783c32007-01-12 18:22:38 +000012204if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012205
12206{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12207echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12208if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012210else
12211 ac_check_lib_save_LIBS=$LIBS
12212LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012213cat >conftest.$ac_ext <<_ACEOF
12214/* confdefs.h. */
12215_ACEOF
12216cat confdefs.h >>conftest.$ac_ext
12217cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012218/* end confdefs.h. */
12219
Reid Spencer48fdf912006-06-01 19:03:21 +000012220
Reid Spencer484fc8e2006-06-01 16:55:59 +000012221int
12222main ()
12223{
Reid Spencera773bd52006-08-04 18:18:08 +000012224return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012225 ;
12226 return 0;
12227}
12228_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012229rm -f conftest.$ac_objext conftest$ac_exeext
12230if { (ac_try="$ac_link"
12231case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12234esac
12235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_link") 2>conftest.er1
12237 ac_status=$?
12238 grep -v '^ *+' conftest.er1 >conftest.err
12239 rm -f conftest.er1
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } &&
12243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12244 { (case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12247esac
12248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_try") 2>&5
12250 ac_status=$?
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; } &&
12253 { ac_try='test -s conftest$ac_exeext'
12254 { (case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12257esac
12258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_try") 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012263 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012264else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012265 echo "$as_me: failed program was:" >&5
12266sed 's/^/| /' conftest.$ac_ext >&5
12267
12268 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012269fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012270
Bill Wendlingebcceee2009-04-18 11:20:33 +000012271rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012272 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012273LIBS=$ac_check_lib_save_LIBS
12274fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012275{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12276echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12277if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012278 cat >>confdefs.h <<_ACEOF
12279#define HAVE_LIBIMAGEHLP 1
12280_ACEOF
12281
12282 LIBS="-limagehlp $LIBS"
12283
12284fi
12285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012286
12287{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12288echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12289if test "${ac_cv_lib_psapi_main+set}" = set; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000012291else
12292 ac_check_lib_save_LIBS=$LIBS
12293LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012294cat >conftest.$ac_ext <<_ACEOF
12295/* confdefs.h. */
12296_ACEOF
12297cat confdefs.h >>conftest.$ac_ext
12298cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000012299/* end confdefs.h. */
12300
Reid Spencer48fdf912006-06-01 19:03:21 +000012301
Reid Spencer484fc8e2006-06-01 16:55:59 +000012302int
12303main ()
12304{
Reid Spencera773bd52006-08-04 18:18:08 +000012305return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000012306 ;
12307 return 0;
12308}
12309_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012310rm -f conftest.$ac_objext conftest$ac_exeext
12311if { (ac_try="$ac_link"
12312case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12315esac
12316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_link") 2>conftest.er1
12318 ac_status=$?
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325 { (case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12328esac
12329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_try") 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } &&
12334 { ac_try='test -s conftest$ac_exeext'
12335 { (case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12338esac
12339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_try") 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000012344 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000012345else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012346 echo "$as_me: failed program was:" >&5
12347sed 's/^/| /' conftest.$ac_ext >&5
12348
12349 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000012350fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012351
Bill Wendlingebcceee2009-04-18 11:20:33 +000012352rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012353 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000012354LIBS=$ac_check_lib_save_LIBS
12355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012356{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12357echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12358if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000012359 cat >>confdefs.h <<_ACEOF
12360#define HAVE_LIBPSAPI 1
12361_ACEOF
12362
12363 LIBS="-lpsapi $LIBS"
12364
12365fi
12366
12367fi
Reid Spencer22177fe2005-07-12 15:24:20 +000012368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012369{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12370echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12371if test "${ac_cv_search_dlopen+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012373else
12374 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012375cat >conftest.$ac_ext <<_ACEOF
12376/* confdefs.h. */
12377_ACEOF
12378cat confdefs.h >>conftest.$ac_ext
12379cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012380/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012381
Reid Spencera773bd52006-08-04 18:18:08 +000012382/* Override any GCC internal prototype to avoid an error.
12383 Use char because int might match the return type of a GCC
12384 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012385#ifdef __cplusplus
12386extern "C"
12387#endif
John Criswell7a73b802003-06-30 21:59:07 +000012388char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012389int
12390main ()
12391{
Reid Spencera773bd52006-08-04 18:18:08 +000012392return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000012393 ;
12394 return 0;
12395}
12396_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012397for ac_lib in '' dl; do
12398 if test -z "$ac_lib"; then
12399 ac_res="none required"
12400 else
12401 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012403 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012404 rm -f conftest.$ac_objext conftest$ac_exeext
12405if { (ac_try="$ac_link"
12406case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409esac
12410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_link") 2>conftest.er1
12412 ac_status=$?
12413 grep -v '^ *+' conftest.er1 >conftest.err
12414 rm -f conftest.er1
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
12418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12419 { (case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12422esac
12423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_try") 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest$ac_exeext'
12429 { (case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12432esac
12433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_try") 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012438 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012439else
12440 echo "$as_me: failed program was:" >&5
12441sed 's/^/| /' conftest.$ac_ext >&5
12442
12443
John Criswell7a73b802003-06-30 21:59:07 +000012444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012445
Bill Wendlingebcceee2009-04-18 11:20:33 +000012446rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012447 conftest$ac_exeext
12448 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012449 break
John Criswell7a73b802003-06-30 21:59:07 +000012450fi
Reid Spencera773bd52006-08-04 18:18:08 +000012451done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012452if test "${ac_cv_search_dlopen+set}" = set; then
12453 :
Reid Spencera773bd52006-08-04 18:18:08 +000012454else
12455 ac_cv_search_dlopen=no
12456fi
12457rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012458LIBS=$ac_func_search_save_LIBS
12459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012460{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12461echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012462ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012463if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012466cat >>confdefs.h <<\_ACEOF
12467#define HAVE_DLOPEN 1
12468_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012469
12470else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012471 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12472echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000012473fi
12474
12475
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012476if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012477 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12478echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12479if test "${ac_cv_search_ffi_call+set}" = set; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012481else
Nick Lewycky267fddb2009-04-13 04:26:27 +000012482 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012483cat >conftest.$ac_ext <<_ACEOF
12484/* confdefs.h. */
12485_ACEOF
12486cat confdefs.h >>conftest.$ac_ext
12487cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012488/* end confdefs.h. */
12489
12490/* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
12493#ifdef __cplusplus
12494extern "C"
12495#endif
12496char ffi_call ();
12497int
12498main ()
12499{
12500return ffi_call ();
12501 ;
12502 return 0;
12503}
12504_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012505for ac_lib in '' ffi; do
12506 if test -z "$ac_lib"; then
12507 ac_res="none required"
12508 else
12509 ac_res=-l$ac_lib
12510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12511 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012512 rm -f conftest.$ac_objext conftest$ac_exeext
12513if { (ac_try="$ac_link"
12514case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517esac
12518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_link") 2>conftest.er1
12520 ac_status=$?
12521 grep -v '^ *+' conftest.er1 >conftest.err
12522 rm -f conftest.er1
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } &&
12526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12527 { (case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12530esac
12531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_try") 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; } &&
12536 { ac_try='test -s conftest$ac_exeext'
12537 { (case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12540esac
12541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_try") 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012546 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012547else
12548 echo "$as_me: failed program was:" >&5
12549sed 's/^/| /' conftest.$ac_ext >&5
12550
12551
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012552fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012553
Bill Wendlingebcceee2009-04-18 11:20:33 +000012554rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012555 conftest$ac_exeext
12556 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012557 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012558fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000012559done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012560if test "${ac_cv_search_ffi_call+set}" = set; then
12561 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000012562else
12563 ac_cv_search_ffi_call=no
12564fi
12565rm conftest.$ac_ext
12566LIBS=$ac_func_search_save_LIBS
12567fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012568{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12569echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000012570ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012571if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000012572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012574cat >>confdefs.h <<\_ACEOF
12575#define HAVE_FFI_CALL 1
12576_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000012577
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012578else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000012579 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12580echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12581 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012582fi
12583
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000012584fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000012585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012586{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12587echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12588if test "${ac_cv_search_mallinfo+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012590else
12591 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012592cat >conftest.$ac_ext <<_ACEOF
12593/* confdefs.h. */
12594_ACEOF
12595cat confdefs.h >>conftest.$ac_ext
12596cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012597/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012598
Reid Spencera773bd52006-08-04 18:18:08 +000012599/* Override any GCC internal prototype to avoid an error.
12600 Use char because int might match the return type of a GCC
12601 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000012602#ifdef __cplusplus
12603extern "C"
12604#endif
John Criswell7a73b802003-06-30 21:59:07 +000012605char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012606int
12607main ()
12608{
Reid Spencera773bd52006-08-04 18:18:08 +000012609return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000012610 ;
12611 return 0;
12612}
12613_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012614for ac_lib in '' malloc; do
12615 if test -z "$ac_lib"; then
12616 ac_res="none required"
12617 else
12618 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000012619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012620 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012621 rm -f conftest.$ac_objext conftest$ac_exeext
12622if { (ac_try="$ac_link"
12623case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626esac
12627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_link") 2>conftest.er1
12629 ac_status=$?
12630 grep -v '^ *+' conftest.er1 >conftest.err
12631 rm -f conftest.er1
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } &&
12635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12636 { (case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12639esac
12640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_try") 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } &&
12645 { ac_try='test -s conftest$ac_exeext'
12646 { (case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649esac
12650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_try") 2>&5
12652 ac_status=$?
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012655 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012656else
12657 echo "$as_me: failed program was:" >&5
12658sed 's/^/| /' conftest.$ac_ext >&5
12659
12660
John Criswell7a73b802003-06-30 21:59:07 +000012661fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012662
Bill Wendlingebcceee2009-04-18 11:20:33 +000012663rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012664 conftest$ac_exeext
12665 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012666 break
John Criswell7a73b802003-06-30 21:59:07 +000012667fi
Reid Spencera773bd52006-08-04 18:18:08 +000012668done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012669if test "${ac_cv_search_mallinfo+set}" = set; then
12670 :
Reid Spencera773bd52006-08-04 18:18:08 +000012671else
12672 ac_cv_search_mallinfo=no
12673fi
12674rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012675LIBS=$ac_func_search_save_LIBS
12676fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012677{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12678echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012679ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012680if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000012682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012683cat >>confdefs.h <<\_ACEOF
12684#define HAVE_MALLINFO 1
12685_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000012686
12687fi
12688
12689
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000012690if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012691
12692{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12693echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12694if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000012696else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012697 ac_check_lib_save_LIBS=$LIBS
12698LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012699cat >conftest.$ac_ext <<_ACEOF
12700/* confdefs.h. */
12701_ACEOF
12702cat confdefs.h >>conftest.$ac_ext
12703cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012704/* end confdefs.h. */
12705
Reid Spencera773bd52006-08-04 18:18:08 +000012706/* Override any GCC internal prototype to avoid an error.
12707 Use char because int might match the return type of a GCC
12708 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000012709#ifdef __cplusplus
12710extern "C"
12711#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000012712char pthread_mutex_init ();
12713int
12714main ()
12715{
Reid Spencera773bd52006-08-04 18:18:08 +000012716return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000012717 ;
12718 return 0;
12719}
12720_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012721rm -f conftest.$ac_objext conftest$ac_exeext
12722if { (ac_try="$ac_link"
12723case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12726esac
12727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_link") 2>conftest.er1
12729 ac_status=$?
12730 grep -v '^ *+' conftest.er1 >conftest.err
12731 rm -f conftest.er1
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } &&
12735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12736 { (case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12739esac
12740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_try") 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest$ac_exeext'
12746 { (case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12749esac
12750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751 (eval "$ac_try") 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012755 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000012756else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012757 echo "$as_me: failed program was:" >&5
12758sed 's/^/| /' conftest.$ac_ext >&5
12759
12760 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000012761fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012762
Bill Wendlingebcceee2009-04-18 11:20:33 +000012763rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012764 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012765LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000012766fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012767{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12768echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12769if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012770 cat >>confdefs.h <<_ACEOF
12771#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000012772_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000012773
Edward O'Callaghan5da60462009-10-14 11:12:33 +000012774 LIBS="-lpthread $LIBS"
12775
Reid Spencer22177fe2005-07-12 15:24:20 +000012776fi
12777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012778 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12779echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12780if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000012782else
12783 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012784cat >conftest.$ac_ext <<_ACEOF
12785/* confdefs.h. */
12786_ACEOF
12787cat confdefs.h >>conftest.$ac_ext
12788cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000012789/* end confdefs.h. */
12790
Reid Spencera773bd52006-08-04 18:18:08 +000012791/* Override any GCC internal prototype to avoid an error.
12792 Use char because int might match the return type of a GCC
12793 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000012794#ifdef __cplusplus
12795extern "C"
12796#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000012797char pthread_mutex_lock ();
12798int
12799main ()
12800{
Reid Spencera773bd52006-08-04 18:18:08 +000012801return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000012802 ;
12803 return 0;
12804}
12805_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012806for ac_lib in '' pthread; do
12807 if test -z "$ac_lib"; then
12808 ac_res="none required"
12809 else
12810 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000012811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000012812 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012813 rm -f conftest.$ac_objext conftest$ac_exeext
12814if { (ac_try="$ac_link"
12815case "(($ac_try" in
12816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817 *) ac_try_echo=$ac_try;;
12818esac
12819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820 (eval "$ac_link") 2>conftest.er1
12821 ac_status=$?
12822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
12827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12828 { (case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12831esac
12832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_try") 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; } &&
12837 { ac_try='test -s conftest$ac_exeext'
12838 { (case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12841esac
12842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_try") 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012847 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012848else
12849 echo "$as_me: failed program was:" >&5
12850sed 's/^/| /' conftest.$ac_ext >&5
12851
12852
Brian Gaeke5f268f72003-12-05 19:29:01 +000012853fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012854
Bill Wendlingebcceee2009-04-18 11:20:33 +000012855rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012856 conftest$ac_exeext
12857 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012858 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000012859fi
Reid Spencera773bd52006-08-04 18:18:08 +000012860done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012861if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12862 :
Reid Spencera773bd52006-08-04 18:18:08 +000012863else
12864 ac_cv_search_pthread_mutex_lock=no
12865fi
12866rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000012867LIBS=$ac_func_search_save_LIBS
12868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012869{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12870echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000012871ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012872if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000012873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000012874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012875cat >>confdefs.h <<\_ACEOF
12876#define HAVE_PTHREAD_MUTEX_LOCK 1
12877_ACEOF
John Criswell40468462004-09-24 21:19:06 +000012878
12879fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000012880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012881 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12882echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12883if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000012885else
12886 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012887cat >conftest.$ac_ext <<_ACEOF
12888/* confdefs.h. */
12889_ACEOF
12890cat confdefs.h >>conftest.$ac_ext
12891cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012892/* end confdefs.h. */
12893
12894/* Override any GCC internal prototype to avoid an error.
12895 Use char because int might match the return type of a GCC
12896 builtin and then its argument prototype would still apply. */
12897#ifdef __cplusplus
12898extern "C"
12899#endif
12900char pthread_rwlock_init ();
12901int
12902main ()
12903{
12904return pthread_rwlock_init ();
12905 ;
12906 return 0;
12907}
12908_ACEOF
12909for ac_lib in '' pthread; do
12910 if test -z "$ac_lib"; then
12911 ac_res="none required"
12912 else
12913 ac_res=-l$ac_lib
12914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12915 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012916 rm -f conftest.$ac_objext conftest$ac_exeext
12917if { (ac_try="$ac_link"
12918case "(($ac_try" in
12919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920 *) ac_try_echo=$ac_try;;
12921esac
12922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923 (eval "$ac_link") 2>conftest.er1
12924 ac_status=$?
12925 grep -v '^ *+' conftest.er1 >conftest.err
12926 rm -f conftest.er1
12927 cat conftest.err >&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } &&
12930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12931 { (case "(($ac_try" in
12932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933 *) ac_try_echo=$ac_try;;
12934esac
12935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12936 (eval "$ac_try") 2>&5
12937 ac_status=$?
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; } &&
12940 { ac_try='test -s conftest$ac_exeext'
12941 { (case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12944esac
12945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946 (eval "$ac_try") 2>&5
12947 ac_status=$?
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012950 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012951else
12952 echo "$as_me: failed program was:" >&5
12953sed 's/^/| /' conftest.$ac_ext >&5
12954
12955
Owen Andersonde8aed22009-06-16 18:20:20 +000012956fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012957
Owen Andersonde8aed22009-06-16 18:20:20 +000012958rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012959 conftest$ac_exeext
12960 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012961 break
12962fi
12963done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012964if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12965 :
Owen Andersonde8aed22009-06-16 18:20:20 +000012966else
12967 ac_cv_search_pthread_rwlock_init=no
12968fi
12969rm conftest.$ac_ext
12970LIBS=$ac_func_search_save_LIBS
12971fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012972{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12973echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000012974ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012975if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000012976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012978cat >>confdefs.h <<\_ACEOF
12979#define HAVE_PTHREAD_RWLOCK_INIT 1
12980_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000012981
12982fi
12983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012984 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12985echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12986if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000012988else
12989 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012990cat >conftest.$ac_ext <<_ACEOF
12991/* confdefs.h. */
12992_ACEOF
12993cat confdefs.h >>conftest.$ac_ext
12994cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000012995/* end confdefs.h. */
12996
12997/* Override any GCC internal prototype to avoid an error.
12998 Use char because int might match the return type of a GCC
12999 builtin and then its argument prototype would still apply. */
13000#ifdef __cplusplus
13001extern "C"
13002#endif
13003char pthread_getspecific ();
13004int
13005main ()
13006{
13007return pthread_getspecific ();
13008 ;
13009 return 0;
13010}
13011_ACEOF
13012for ac_lib in '' pthread; do
13013 if test -z "$ac_lib"; then
13014 ac_res="none required"
13015 else
13016 ac_res=-l$ac_lib
13017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13018 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013019 rm -f conftest.$ac_objext conftest$ac_exeext
13020if { (ac_try="$ac_link"
13021case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13024esac
13025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_link") 2>conftest.er1
13027 ac_status=$?
13028 grep -v '^ *+' conftest.er1 >conftest.err
13029 rm -f conftest.er1
13030 cat conftest.err >&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } &&
13033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13034 { (case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13037esac
13038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_try") 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; } &&
13043 { ac_try='test -s conftest$ac_exeext'
13044 { (case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13047esac
13048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_try") 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013053 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013054else
13055 echo "$as_me: failed program was:" >&5
13056sed 's/^/| /' conftest.$ac_ext >&5
13057
13058
Owen Anderson27fcfe12009-06-25 23:10:26 +000013059fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013060
Owen Anderson27fcfe12009-06-25 23:10:26 +000013061rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013062 conftest$ac_exeext
13063 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013064 break
13065fi
13066done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013067if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13068 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013069else
13070 ac_cv_search_pthread_getspecific=no
13071fi
13072rm conftest.$ac_ext
13073LIBS=$ac_func_search_save_LIBS
13074fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013075{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13076echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013077ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013078if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013081cat >>confdefs.h <<\_ACEOF
13082#define HAVE_PTHREAD_GETSPECIFIC 1
13083_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013084
13085fi
13086
Reid Spencer0a262ba2005-08-24 10:07:20 +000013087fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013088
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013089
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013090# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013091if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013092 withval=$with_udis86;
13093 USE_UDIS86=1
13094
13095 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013096 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013097 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13098 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013099
13100{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13101echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13102if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013104else
13105 ac_check_lib_save_LIBS=$LIBS
13106LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013107cat >conftest.$ac_ext <<_ACEOF
13108/* confdefs.h. */
13109_ACEOF
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013112/* end confdefs.h. */
13113
13114/* Override any GCC internal prototype to avoid an error.
13115 Use char because int might match the return type of a GCC
13116 builtin and then its argument prototype would still apply. */
13117#ifdef __cplusplus
13118extern "C"
13119#endif
13120char ud_init ();
13121int
13122main ()
13123{
13124return ud_init ();
13125 ;
13126 return 0;
13127}
13128_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013129rm -f conftest.$ac_objext conftest$ac_exeext
13130if { (ac_try="$ac_link"
13131case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13134esac
13135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_link") 2>conftest.er1
13137 ac_status=$?
13138 grep -v '^ *+' conftest.er1 >conftest.err
13139 rm -f conftest.er1
13140 cat conftest.err >&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } &&
13143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13144 { (case "(($ac_try" in
13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13147esac
13148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149 (eval "$ac_try") 2>&5
13150 ac_status=$?
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; } &&
13153 { ac_try='test -s conftest$ac_exeext'
13154 { (case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13157esac
13158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_try") 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013163 ac_cv_lib_udis86_ud_init=yes
13164else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013165 echo "$as_me: failed program was:" >&5
13166sed 's/^/| /' conftest.$ac_ext >&5
13167
13168 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013170
Bill Wendlingebcceee2009-04-18 11:20:33 +000013171rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013172 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013173LIBS=$ac_check_lib_save_LIBS
13174fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013175{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13176echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13177if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013178 cat >>confdefs.h <<_ACEOF
13179#define HAVE_LIBUDIS86 1
13180_ACEOF
13181
13182 LIBS="-ludis86 $LIBS"
13183
13184else
13185
13186 echo "Error! You need to have libudis86 around."
13187 exit -1
13188
13189fi
13190
13191
13192else
13193 USE_UDIS86=0
13194
13195fi
13196
13197
13198cat >>confdefs.h <<_ACEOF
13199#define USE_UDIS86 $USE_UDIS86
13200_ACEOF
13201
13202
13203
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013204# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013205if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013206 withval=$with_oprofile;
13207 USE_OPROFILE=1
13208
13209 case "$withval" in
13210 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013211 no) llvm_cv_oppath=
13212 USE_OPROFILE=0
13213 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013214 *) llvm_cv_oppath="${withval}/lib/oprofile"
13215 CPPFLAGS="-I${withval}/include";;
13216 esac
Eli Bendersky61b18512012-03-13 08:33:15 +000013217 case $llvm_cv_os_type in
13218 Linux)
13219 if test -n "$llvm_cv_oppath" ; then
13220 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13221 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013222echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13223if test "${ac_cv_search_bfd_init+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013225else
13226 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013227cat >conftest.$ac_ext <<_ACEOF
13228/* confdefs.h. */
13229_ACEOF
13230cat confdefs.h >>conftest.$ac_ext
13231cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013232/* end confdefs.h. */
13233
13234/* Override any GCC internal prototype to avoid an error.
13235 Use char because int might match the return type of a GCC
13236 builtin and then its argument prototype would still apply. */
13237#ifdef __cplusplus
13238extern "C"
13239#endif
13240char bfd_init ();
13241int
13242main ()
13243{
13244return bfd_init ();
13245 ;
13246 return 0;
13247}
13248_ACEOF
13249for ac_lib in '' bfd; do
13250 if test -z "$ac_lib"; then
13251 ac_res="none required"
13252 else
13253 ac_res=-l$ac_lib
13254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13255 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013256 rm -f conftest.$ac_objext conftest$ac_exeext
13257if { (ac_try="$ac_link"
13258case "(($ac_try" in
13259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260 *) ac_try_echo=$ac_try;;
13261esac
13262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263 (eval "$ac_link") 2>conftest.er1
13264 ac_status=$?
13265 grep -v '^ *+' conftest.er1 >conftest.err
13266 rm -f conftest.er1
13267 cat conftest.err >&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); } &&
13270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13271 { (case "(($ac_try" in
13272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13274esac
13275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276 (eval "$ac_try") 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; } &&
13280 { ac_try='test -s conftest$ac_exeext'
13281 { (case "(($ac_try" in
13282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283 *) ac_try_echo=$ac_try;;
13284esac
13285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13286 (eval "$ac_try") 2>&5
13287 ac_status=$?
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013290 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013291else
13292 echo "$as_me: failed program was:" >&5
13293sed 's/^/| /' conftest.$ac_ext >&5
13294
13295
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013297
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013298rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013299 conftest$ac_exeext
13300 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013301 break
13302fi
13303done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013304if test "${ac_cv_search_bfd_init+set}" = set; then
13305 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013306else
13307 ac_cv_search_bfd_init=no
13308fi
13309rm conftest.$ac_ext
13310LIBS=$ac_func_search_save_LIBS
13311fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013312{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13313echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013314ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013315if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13317
13318fi
13319
Eli Bendersky61b18512012-03-13 08:33:15 +000013320 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013321echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13322if test "${ac_cv_search_op_open_agent+set}" = set; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013324else
13325 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013326cat >conftest.$ac_ext <<_ACEOF
13327/* confdefs.h. */
13328_ACEOF
13329cat confdefs.h >>conftest.$ac_ext
13330cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013331/* end confdefs.h. */
13332
13333/* Override any GCC internal prototype to avoid an error.
13334 Use char because int might match the return type of a GCC
13335 builtin and then its argument prototype would still apply. */
13336#ifdef __cplusplus
13337extern "C"
13338#endif
13339char op_open_agent ();
13340int
13341main ()
13342{
13343return op_open_agent ();
13344 ;
13345 return 0;
13346}
13347_ACEOF
13348for ac_lib in '' opagent; do
13349 if test -z "$ac_lib"; then
13350 ac_res="none required"
13351 else
13352 ac_res=-l$ac_lib
13353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13354 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013355 rm -f conftest.$ac_objext conftest$ac_exeext
13356if { (ac_try="$ac_link"
13357case "(($ac_try" in
13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359 *) ac_try_echo=$ac_try;;
13360esac
13361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362 (eval "$ac_link") 2>conftest.er1
13363 ac_status=$?
13364 grep -v '^ *+' conftest.er1 >conftest.err
13365 rm -f conftest.er1
13366 cat conftest.err >&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } &&
13369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13370 { (case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13373esac
13374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375 (eval "$ac_try") 2>&5
13376 ac_status=$?
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; } &&
13379 { ac_try='test -s conftest$ac_exeext'
13380 { (case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13383esac
13384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_try") 2>&5
13386 ac_status=$?
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013389 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013390else
13391 echo "$as_me: failed program was:" >&5
13392sed 's/^/| /' conftest.$ac_ext >&5
13393
13394
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013395fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013396
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013397rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013398 conftest$ac_exeext
13399 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013400 break
13401fi
13402done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013403if test "${ac_cv_search_op_open_agent+set}" = set; then
13404 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013405else
13406 ac_cv_search_op_open_agent=no
13407fi
13408rm conftest.$ac_ext
13409LIBS=$ac_func_search_save_LIBS
13410fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013411{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13412echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013413ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013414if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13416
13417else
13418
Eli Bendersky61b18512012-03-13 08:33:15 +000013419 echo "Error! You need to have libopagent around."
13420 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013421
13422fi
13423
Eli Bendersky61b18512012-03-13 08:33:15 +000013424 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013425 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13426echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13427if test "${ac_cv_header_opagent_h+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13429fi
13430{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13431echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13432else
13433 # Is the header compilable?
13434{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13435echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13436cat >conftest.$ac_ext <<_ACEOF
13437/* confdefs.h. */
13438_ACEOF
13439cat confdefs.h >>conftest.$ac_ext
13440cat >>conftest.$ac_ext <<_ACEOF
13441/* end confdefs.h. */
13442$ac_includes_default
13443#include <opagent.h>
13444_ACEOF
13445rm -f conftest.$ac_objext
13446if { (ac_try="$ac_compile"
13447case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13450esac
13451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_compile") 2>conftest.er1
13453 ac_status=$?
13454 grep -v '^ *+' conftest.er1 >conftest.err
13455 rm -f conftest.er1
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } &&
13459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13460 { (case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13463esac
13464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_try") 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try='test -s conftest.$ac_objext'
13470 { (case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13473esac
13474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_try") 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; }; then
13479 ac_header_compiler=yes
13480else
13481 echo "$as_me: failed program was:" >&5
13482sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013484 ac_header_compiler=no
13485fi
13486
13487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13488{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13489echo "${ECHO_T}$ac_header_compiler" >&6; }
13490
13491# Is the header present?
13492{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13493echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13494cat >conftest.$ac_ext <<_ACEOF
13495/* confdefs.h. */
13496_ACEOF
13497cat confdefs.h >>conftest.$ac_ext
13498cat >>conftest.$ac_ext <<_ACEOF
13499/* end confdefs.h. */
13500#include <opagent.h>
13501_ACEOF
13502if { (ac_try="$ac_cpp conftest.$ac_ext"
13503case "(($ac_try" in
13504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13506esac
13507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13509 ac_status=$?
13510 grep -v '^ *+' conftest.er1 >conftest.err
13511 rm -f conftest.er1
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } >/dev/null; then
13515 if test -s conftest.err; then
13516 ac_cpp_err=$ac_c_preproc_warn_flag
13517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13518 else
13519 ac_cpp_err=
13520 fi
13521else
13522 ac_cpp_err=yes
13523fi
13524if test -z "$ac_cpp_err"; then
13525 ac_header_preproc=yes
13526else
13527 echo "$as_me: failed program was:" >&5
13528sed 's/^/| /' conftest.$ac_ext >&5
13529
13530 ac_header_preproc=no
13531fi
13532
13533rm -f conftest.err conftest.$ac_ext
13534{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13535echo "${ECHO_T}$ac_header_preproc" >&6; }
13536
13537# So? What about this header?
13538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13539 yes:no: )
13540 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13541echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13542 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13543echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13544 ac_header_preproc=yes
13545 ;;
13546 no:yes:* )
13547 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13548echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13550echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13551 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13552echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13553 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13554echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13556echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13557 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13558echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13559 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000013560## ------------------------------------ ##
13561## Report this to http://llvm.org/bugs/ ##
13562## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013563_ASBOX
13564 ) | sed "s/^/$as_me: WARNING: /" >&2
13565 ;;
13566esac
13567{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13568echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13569if test "${ac_cv_header_opagent_h+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571else
13572 ac_cv_header_opagent_h=$ac_header_preproc
13573fi
13574{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13575echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13576
13577fi
13578if test $ac_cv_header_opagent_h = yes; then
13579 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013580else
13581
Eli Bendersky61b18512012-03-13 08:33:15 +000013582 echo "Error! You need to have opagent.h around."
13583 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013584
13585fi
13586
13587
Eli Bendersky61b18512012-03-13 08:33:15 +000013588 fi ;;
13589 *)
13590 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13591echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13592 { (exit 1); exit 1; }; } ;;
13593 esac
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013594
13595else
13596
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000013597 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013598
13599
13600fi
13601
13602
13603cat >>confdefs.h <<_ACEOF
Eli Bendersky61b18512012-03-13 08:33:15 +000013604#define LLVM_USE_OPROFILE $USE_OPROFILE
13605_ACEOF
13606
13607
13608
13609# Check whether --with-intel-jitevents was given.
13610if test "${with_intel_jitevents+set}" = set; then
13611 withval=$with_intel_jitevents;
13612 case $llvm_cv_os_type in
13613 Linux|Win32|Cygwin|MingW) ;;
13614 *)
13615 { { echo "$as_me:$LINENO: error:
13616 Intel JIT API support is available on Linux and Windows only.\"" >&5
13617echo "$as_me: error:
13618 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13619 { (exit 1); exit 1; }; } ;;
13620 esac
13621
13622 USE_INTEL_JITEVENTS=1
13623
13624 case "$llvm_cv_target_arch" in
13625 x86) llvm_intel_jitevents_archdir="lib32";;
13626 x86_64) llvm_intel_jitevents_archdir="lib64";;
13627 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13628 exit -1;;
13629 esac
13630 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13631 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13632 case "$withval" in
13633 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13634 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13635 *) ;;
Eli Bendersky61b18512012-03-13 08:33:15 +000013636 esac
13637
13638
13639
13640
13641 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13642 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13643
13644 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13645echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13646if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13648else
13649 ac_func_search_save_LIBS=$LIBS
13650cat >conftest.$ac_ext <<_ACEOF
13651/* confdefs.h. */
13652_ACEOF
13653cat confdefs.h >>conftest.$ac_ext
13654cat >>conftest.$ac_ext <<_ACEOF
13655/* end confdefs.h. */
13656
13657/* Override any GCC internal prototype to avoid an error.
13658 Use char because int might match the return type of a GCC
13659 builtin and then its argument prototype would still apply. */
13660#ifdef __cplusplus
13661extern "C"
13662#endif
13663char iJIT_IsProfilingActive ();
13664int
13665main ()
13666{
13667return iJIT_IsProfilingActive ();
13668 ;
13669 return 0;
13670}
13671_ACEOF
13672for ac_lib in '' jitprofiling; do
13673 if test -z "$ac_lib"; then
13674 ac_res="none required"
13675 else
13676 ac_res=-l$ac_lib
13677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13678 fi
13679 rm -f conftest.$ac_objext conftest$ac_exeext
13680if { (ac_try="$ac_link"
13681case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13684esac
13685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_link") 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13694 { (case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13697esac
13698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_try") 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try='test -s conftest$ac_exeext'
13704 { (case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13707esac
13708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_try") 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13713 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13714else
13715 echo "$as_me: failed program was:" >&5
13716sed 's/^/| /' conftest.$ac_ext >&5
13717
13718
13719fi
13720
13721rm -f core conftest.err conftest.$ac_objext \
13722 conftest$ac_exeext
13723 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13724 break
13725fi
13726done
13727if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13728 :
13729else
13730 ac_cv_search_iJIT_IsProfilingActive=no
13731fi
13732rm conftest.$ac_ext
13733LIBS=$ac_func_search_save_LIBS
13734fi
13735{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13736echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13737ac_res=$ac_cv_search_iJIT_IsProfilingActive
13738if test "$ac_res" != no; then
13739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13740
13741else
13742
13743 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13744 exit -1
13745
13746fi
13747
13748 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13749 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13750echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13751if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13753fi
13754{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13755echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13756else
13757 # Is the header compilable?
13758{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13759echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13760cat >conftest.$ac_ext <<_ACEOF
13761/* confdefs.h. */
13762_ACEOF
13763cat confdefs.h >>conftest.$ac_ext
13764cat >>conftest.$ac_ext <<_ACEOF
13765/* end confdefs.h. */
13766$ac_includes_default
13767#include <jitprofiling.h>
13768_ACEOF
13769rm -f conftest.$ac_objext
13770if { (ac_try="$ac_compile"
13771case "(($ac_try" in
13772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13774esac
13775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776 (eval "$ac_compile") 2>conftest.er1
13777 ac_status=$?
13778 grep -v '^ *+' conftest.er1 >conftest.err
13779 rm -f conftest.er1
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13784 { (case "(($ac_try" in
13785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13787esac
13788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789 (eval "$ac_try") 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try='test -s conftest.$ac_objext'
13794 { (case "(($ac_try" in
13795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796 *) ac_try_echo=$ac_try;;
13797esac
13798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799 (eval "$ac_try") 2>&5
13800 ac_status=$?
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; }; then
13803 ac_header_compiler=yes
13804else
13805 echo "$as_me: failed program was:" >&5
13806sed 's/^/| /' conftest.$ac_ext >&5
13807
13808 ac_header_compiler=no
13809fi
13810
13811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13813echo "${ECHO_T}$ac_header_compiler" >&6; }
13814
13815# Is the header present?
13816{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13817echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13818cat >conftest.$ac_ext <<_ACEOF
13819/* confdefs.h. */
13820_ACEOF
13821cat confdefs.h >>conftest.$ac_ext
13822cat >>conftest.$ac_ext <<_ACEOF
13823/* end confdefs.h. */
13824#include <jitprofiling.h>
13825_ACEOF
13826if { (ac_try="$ac_cpp conftest.$ac_ext"
13827case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13830esac
13831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13833 ac_status=$?
13834 grep -v '^ *+' conftest.er1 >conftest.err
13835 rm -f conftest.er1
13836 cat conftest.err >&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } >/dev/null; then
13839 if test -s conftest.err; then
13840 ac_cpp_err=$ac_c_preproc_warn_flag
13841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13842 else
13843 ac_cpp_err=
13844 fi
13845else
13846 ac_cpp_err=yes
13847fi
13848if test -z "$ac_cpp_err"; then
13849 ac_header_preproc=yes
13850else
13851 echo "$as_me: failed program was:" >&5
13852sed 's/^/| /' conftest.$ac_ext >&5
13853
13854 ac_header_preproc=no
13855fi
13856
13857rm -f conftest.err conftest.$ac_ext
13858{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13859echo "${ECHO_T}$ac_header_preproc" >&6; }
13860
13861# So? What about this header?
13862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13863 yes:no: )
13864 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13865echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13866 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13867echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13868 ac_header_preproc=yes
13869 ;;
13870 no:yes:* )
13871 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13872echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13874echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13876echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13878echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13880echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13882echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13883 ( cat <<\_ASBOX
13884## ------------------------------------ ##
13885## Report this to http://llvm.org/bugs/ ##
13886## ------------------------------------ ##
13887_ASBOX
13888 ) | sed "s/^/$as_me: WARNING: /" >&2
13889 ;;
13890esac
13891{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13892echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13893if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895else
13896 ac_cv_header_jitprofiling_h=$ac_header_preproc
13897fi
13898{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13899echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13900
13901fi
13902if test $ac_cv_header_jitprofiling_h = yes; then
13903 :
13904else
13905
13906 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13907 exit -1
13908
13909fi
13910
13911
13912
13913
13914else
13915
13916 USE_INTEL_JITEVENTS=0
13917
13918
13919fi
13920
13921
13922cat >>confdefs.h <<_ACEOF
13923#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013924_ACEOF
13925
13926
13927
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013928
13929
13930
13931
13932
Reid Spencer59473af2004-12-25 07:31:29 +000013933ac_header_dirent=no
13934for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013935 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13936{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13937echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013940else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013941 cat >conftest.$ac_ext <<_ACEOF
13942/* confdefs.h. */
13943_ACEOF
13944cat confdefs.h >>conftest.$ac_ext
13945cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000013946/* end confdefs.h. */
13947#include <sys/types.h>
13948#include <$ac_hdr>
13949
13950int
13951main ()
13952{
13953if ((DIR *) 0)
13954return 0;
13955 ;
13956 return 0;
13957}
13958_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013959rm -f conftest.$ac_objext
13960if { (ac_try="$ac_compile"
13961case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13964esac
13965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_compile") 2>conftest.er1
13967 ac_status=$?
13968 grep -v '^ *+' conftest.er1 >conftest.err
13969 rm -f conftest.er1
13970 cat conftest.err >&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } &&
13973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13974 { (case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13977esac
13978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_try") 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; } &&
13983 { ac_try='test -s conftest.$ac_objext'
13984 { (case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13987esac
13988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13989 (eval "$ac_try") 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000013993 eval "$as_ac_Header=yes"
13994else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013995 echo "$as_me: failed program was:" >&5
13996sed 's/^/| /' conftest.$ac_ext >&5
13997
13998 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000013999fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014000
Reid Spencera773bd52006-08-04 18:18:08 +000014001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014003ac_res=`eval echo '${'$as_ac_Header'}'`
14004 { echo "$as_me:$LINENO: result: $ac_res" >&5
14005echo "${ECHO_T}$ac_res" >&6; }
14006if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014007 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014008#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014009_ACEOF
14010
14011ac_header_dirent=$ac_hdr; break
14012fi
14013
14014done
14015# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14016if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014017 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14018echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14019if test "${ac_cv_search_opendir+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014021else
14022 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014023cat >conftest.$ac_ext <<_ACEOF
14024/* confdefs.h. */
14025_ACEOF
14026cat confdefs.h >>conftest.$ac_ext
14027cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014028/* end confdefs.h. */
14029
Reid Spencera773bd52006-08-04 18:18:08 +000014030/* Override any GCC internal prototype to avoid an error.
14031 Use char because int might match the return type of a GCC
14032 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014033#ifdef __cplusplus
14034extern "C"
14035#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014036char opendir ();
14037int
14038main ()
14039{
Reid Spencera773bd52006-08-04 18:18:08 +000014040return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014041 ;
14042 return 0;
14043}
14044_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014045for ac_lib in '' dir; do
14046 if test -z "$ac_lib"; then
14047 ac_res="none required"
14048 else
14049 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014050 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014051 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014052 rm -f conftest.$ac_objext conftest$ac_exeext
14053if { (ac_try="$ac_link"
14054case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14057esac
14058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059 (eval "$ac_link") 2>conftest.er1
14060 ac_status=$?
14061 grep -v '^ *+' conftest.er1 >conftest.err
14062 rm -f conftest.er1
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14067 { (case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14070esac
14071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072 (eval "$ac_try") 2>&5
14073 ac_status=$?
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; } &&
14076 { ac_try='test -s conftest$ac_exeext'
14077 { (case "(($ac_try" in
14078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 *) ac_try_echo=$ac_try;;
14080esac
14081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082 (eval "$ac_try") 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014086 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014087else
14088 echo "$as_me: failed program was:" >&5
14089sed 's/^/| /' conftest.$ac_ext >&5
14090
14091
Reid Spencer59473af2004-12-25 07:31:29 +000014092fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014093
Bill Wendlingebcceee2009-04-18 11:20:33 +000014094rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014095 conftest$ac_exeext
14096 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014097 break
Reid Spencer59473af2004-12-25 07:31:29 +000014098fi
Reid Spencera773bd52006-08-04 18:18:08 +000014099done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014100if test "${ac_cv_search_opendir+set}" = set; then
14101 :
Reid Spencera773bd52006-08-04 18:18:08 +000014102else
14103 ac_cv_search_opendir=no
14104fi
14105rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014106LIBS=$ac_func_search_save_LIBS
14107fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014108{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14109echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014110ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014111if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014113
14114fi
14115
14116else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14118echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14119if test "${ac_cv_search_opendir+set}" = set; then
14120 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014121else
14122 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014123cat >conftest.$ac_ext <<_ACEOF
14124/* confdefs.h. */
14125_ACEOF
14126cat confdefs.h >>conftest.$ac_ext
14127cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014128/* end confdefs.h. */
14129
Reid Spencera773bd52006-08-04 18:18:08 +000014130/* Override any GCC internal prototype to avoid an error.
14131 Use char because int might match the return type of a GCC
14132 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014133#ifdef __cplusplus
14134extern "C"
14135#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014136char opendir ();
14137int
14138main ()
14139{
Reid Spencera773bd52006-08-04 18:18:08 +000014140return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014141 ;
14142 return 0;
14143}
14144_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014145for ac_lib in '' x; do
14146 if test -z "$ac_lib"; then
14147 ac_res="none required"
14148 else
14149 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014151 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014152 rm -f conftest.$ac_objext conftest$ac_exeext
14153if { (ac_try="$ac_link"
14154case "(($ac_try" in
14155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14156 *) ac_try_echo=$ac_try;;
14157esac
14158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14159 (eval "$ac_link") 2>conftest.er1
14160 ac_status=$?
14161 grep -v '^ *+' conftest.er1 >conftest.err
14162 rm -f conftest.er1
14163 cat conftest.err >&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14167 { (case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14170esac
14171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_try") 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; } &&
14176 { ac_try='test -s conftest$ac_exeext'
14177 { (case "(($ac_try" in
14178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179 *) ac_try_echo=$ac_try;;
14180esac
14181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 (eval "$ac_try") 2>&5
14183 ac_status=$?
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014186 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014187else
14188 echo "$as_me: failed program was:" >&5
14189sed 's/^/| /' conftest.$ac_ext >&5
14190
14191
Reid Spencer59473af2004-12-25 07:31:29 +000014192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014193
Bill Wendlingebcceee2009-04-18 11:20:33 +000014194rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014195 conftest$ac_exeext
14196 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014197 break
Reid Spencer59473af2004-12-25 07:31:29 +000014198fi
Reid Spencera773bd52006-08-04 18:18:08 +000014199done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014200if test "${ac_cv_search_opendir+set}" = set; then
14201 :
Reid Spencera773bd52006-08-04 18:18:08 +000014202else
14203 ac_cv_search_opendir=no
14204fi
14205rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014206LIBS=$ac_func_search_save_LIBS
14207fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014208{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14209echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014210ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014211if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014213
14214fi
14215
14216fi
14217
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014218{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14219echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14220if test "${ac_cv_header_mmap_anon+set}" = set; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014222else
14223 ac_ext=c
14224ac_cpp='$CPP $CPPFLAGS'
14225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14227ac_compiler_gnu=$ac_cv_c_compiler_gnu
14228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014229 cat >conftest.$ac_ext <<_ACEOF
14230/* confdefs.h. */
14231_ACEOF
14232cat confdefs.h >>conftest.$ac_ext
14233cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014234/* end confdefs.h. */
14235#include <sys/mman.h>
14236#include <unistd.h>
14237#include <fcntl.h>
14238int
14239main ()
14240{
14241mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14242 ;
14243 return 0;
14244}
14245_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014246rm -f conftest.$ac_objext
14247if { (ac_try="$ac_compile"
14248case "(($ac_try" in
14249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250 *) ac_try_echo=$ac_try;;
14251esac
14252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14253 (eval "$ac_compile") 2>conftest.er1
14254 ac_status=$?
14255 grep -v '^ *+' conftest.er1 >conftest.err
14256 rm -f conftest.er1
14257 cat conftest.err >&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } &&
14260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14261 { (case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14264esac
14265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_try") 2>&5
14267 ac_status=$?
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; } &&
14270 { ac_try='test -s conftest.$ac_objext'
14271 { (case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14274esac
14275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_try") 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014280 ac_cv_header_mmap_anon=yes
14281else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014282 echo "$as_me: failed program was:" >&5
14283sed 's/^/| /' conftest.$ac_ext >&5
14284
14285 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014287
Reid Spencera773bd52006-08-04 18:18:08 +000014288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014289 ac_ext=c
14290ac_cpp='$CPP $CPPFLAGS'
14291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14293ac_compiler_gnu=$ac_cv_c_compiler_gnu
14294
14295
14296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014297{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14298echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014299if test "$ac_cv_header_mmap_anon" = yes; then
14300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014301cat >>confdefs.h <<\_ACEOF
14302#define HAVE_MMAP_ANONYMOUS 1
14303_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014304
14305fi
14306
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014307{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14308echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14309if test "${ac_cv_header_stat_broken+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014311else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014312 cat >conftest.$ac_ext <<_ACEOF
14313/* confdefs.h. */
14314_ACEOF
14315cat confdefs.h >>conftest.$ac_ext
14316cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014317/* end confdefs.h. */
14318#include <sys/types.h>
14319#include <sys/stat.h>
14320
Reid Spencera773bd52006-08-04 18:18:08 +000014321#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014322# if S_ISBLK (S_IFDIR)
14323You lose.
14324# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014325#endif
14326
Reid Spencera773bd52006-08-04 18:18:08 +000014327#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014328# if S_ISBLK (S_IFCHR)
14329You lose.
14330# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014331#endif
14332
Reid Spencera773bd52006-08-04 18:18:08 +000014333#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334# if S_ISLNK (S_IFREG)
14335You lose.
14336# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014337#endif
14338
Reid Spencera773bd52006-08-04 18:18:08 +000014339#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014340# if S_ISSOCK (S_IFREG)
14341You lose.
14342# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014343#endif
14344
14345_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14347 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014348 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014349else
14350 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014351fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014352rm -f conftest*
14353
Reid Spencer59473af2004-12-25 07:31:29 +000014354fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014355{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14356echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014357if test $ac_cv_header_stat_broken = yes; then
14358
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014359cat >>confdefs.h <<\_ACEOF
14360#define STAT_MACROS_BROKEN 1
14361_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014362
14363fi
14364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014365{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14366echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14367if test "${ac_cv_header_sys_wait_h+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014369else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014370 cat >conftest.$ac_ext <<_ACEOF
14371/* confdefs.h. */
14372_ACEOF
14373cat confdefs.h >>conftest.$ac_ext
14374cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014375/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014376#include <sys/types.h>
14377#include <sys/wait.h>
14378#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000014379# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000014380#endif
14381#ifndef WIFEXITED
14382# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14383#endif
14384
John Criswell7a73b802003-06-30 21:59:07 +000014385int
14386main ()
14387{
14388 int s;
14389 wait (&s);
14390 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14391 ;
14392 return 0;
14393}
14394_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014395rm -f conftest.$ac_objext
14396if { (ac_try="$ac_compile"
14397case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14400esac
14401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_compile") 2>conftest.er1
14403 ac_status=$?
14404 grep -v '^ *+' conftest.er1 >conftest.err
14405 rm -f conftest.er1
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
14409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14410 { (case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14413esac
14414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_try") 2>&5
14416 ac_status=$?
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest.$ac_objext'
14420 { (case "(($ac_try" in
14421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422 *) ac_try_echo=$ac_try;;
14423esac
14424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14425 (eval "$ac_try") 2>&5
14426 ac_status=$?
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014429 ac_cv_header_sys_wait_h=yes
14430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014431 echo "$as_me: failed program was:" >&5
14432sed 's/^/| /' conftest.$ac_ext >&5
14433
14434 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000014435fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014436
Reid Spencera773bd52006-08-04 18:18:08 +000014437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014438fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014439{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14440echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014441if test $ac_cv_header_sys_wait_h = yes; then
14442
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014443cat >>confdefs.h <<\_ACEOF
14444#define HAVE_SYS_WAIT_H 1
14445_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000014446
14447fi
14448
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014449{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14450echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14451if test "${ac_cv_header_time+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014453else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014454 cat >conftest.$ac_ext <<_ACEOF
14455/* confdefs.h. */
14456_ACEOF
14457cat confdefs.h >>conftest.$ac_ext
14458cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014459/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014460#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014461#include <sys/time.h>
14462#include <time.h>
14463
14464int
14465main ()
14466{
14467if ((struct tm *) 0)
14468return 0;
14469 ;
14470 return 0;
14471}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014472_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014473rm -f conftest.$ac_objext
14474if { (ac_try="$ac_compile"
14475case "(($ac_try" in
14476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477 *) ac_try_echo=$ac_try;;
14478esac
14479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480 (eval "$ac_compile") 2>conftest.er1
14481 ac_status=$?
14482 grep -v '^ *+' conftest.er1 >conftest.err
14483 rm -f conftest.er1
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } &&
14487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14488 { (case "(($ac_try" in
14489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490 *) ac_try_echo=$ac_try;;
14491esac
14492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493 (eval "$ac_try") 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; } &&
14497 { ac_try='test -s conftest.$ac_objext'
14498 { (case "(($ac_try" in
14499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500 *) ac_try_echo=$ac_try;;
14501esac
14502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14503 (eval "$ac_try") 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014507 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014508else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014509 echo "$as_me: failed program was:" >&5
14510sed 's/^/| /' conftest.$ac_ext >&5
14511
14512 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014513fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014514
Reid Spencera773bd52006-08-04 18:18:08 +000014515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014516fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014517{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14518echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014519if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014521cat >>confdefs.h <<\_ACEOF
14522#define TIME_WITH_SYS_TIME 1
14523_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014524
14525fi
14526
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014528
14529
14530
14531
14532
14533
Reid Spencer59473af2004-12-25 07:31:29 +000014534for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014535do
14536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14542fi
14543ac_res=`eval echo '${'$as_ac_Header'}'`
14544 { echo "$as_me:$LINENO: result: $ac_res" >&5
14545echo "${ECHO_T}$ac_res" >&6; }
14546else
14547 # Is the header compilable?
14548{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14549echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14550cat >conftest.$ac_ext <<_ACEOF
14551/* confdefs.h. */
14552_ACEOF
14553cat confdefs.h >>conftest.$ac_ext
14554cat >>conftest.$ac_ext <<_ACEOF
14555/* end confdefs.h. */
14556$ac_includes_default
14557#include <$ac_header>
14558_ACEOF
14559rm -f conftest.$ac_objext
14560if { (ac_try="$ac_compile"
14561case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14564esac
14565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_compile") 2>conftest.er1
14567 ac_status=$?
14568 grep -v '^ *+' conftest.er1 >conftest.err
14569 rm -f conftest.er1
14570 cat conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } &&
14573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14574 { (case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14577esac
14578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_try") 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; } &&
14583 { ac_try='test -s conftest.$ac_objext'
14584 { (case "(($ac_try" in
14585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14586 *) ac_try_echo=$ac_try;;
14587esac
14588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_try") 2>&5
14590 ac_status=$?
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; }; then
14593 ac_header_compiler=yes
14594else
14595 echo "$as_me: failed program was:" >&5
14596sed 's/^/| /' conftest.$ac_ext >&5
14597
14598 ac_header_compiler=no
14599fi
14600
14601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14603echo "${ECHO_T}$ac_header_compiler" >&6; }
14604
14605# Is the header present?
14606{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14608cat >conftest.$ac_ext <<_ACEOF
14609/* confdefs.h. */
14610_ACEOF
14611cat confdefs.h >>conftest.$ac_ext
14612cat >>conftest.$ac_ext <<_ACEOF
14613/* end confdefs.h. */
14614#include <$ac_header>
14615_ACEOF
14616if { (ac_try="$ac_cpp conftest.$ac_ext"
14617case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14620esac
14621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14623 ac_status=$?
14624 grep -v '^ *+' conftest.er1 >conftest.err
14625 rm -f conftest.er1
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } >/dev/null; then
14629 if test -s conftest.err; then
14630 ac_cpp_err=$ac_c_preproc_warn_flag
14631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14632 else
14633 ac_cpp_err=
14634 fi
14635else
14636 ac_cpp_err=yes
14637fi
14638if test -z "$ac_cpp_err"; then
14639 ac_header_preproc=yes
14640else
14641 echo "$as_me: failed program was:" >&5
14642sed 's/^/| /' conftest.$ac_ext >&5
14643
14644 ac_header_preproc=no
14645fi
14646
14647rm -f conftest.err conftest.$ac_ext
14648{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14649echo "${ECHO_T}$ac_header_preproc" >&6; }
14650
14651# So? What about this header?
14652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14653 yes:no: )
14654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14655echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14657echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14658 ac_header_preproc=yes
14659 ;;
14660 no:yes:* )
14661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14664echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14666echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14668echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14672echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14673 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014674## ------------------------------------ ##
14675## Report this to http://llvm.org/bugs/ ##
14676## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014677_ASBOX
14678 ) | sed "s/^/$as_me: WARNING: /" >&2
14679 ;;
14680esac
14681{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14685else
14686 eval "$as_ac_Header=\$ac_header_preproc"
14687fi
14688ac_res=`eval echo '${'$as_ac_Header'}'`
14689 { echo "$as_me:$LINENO: result: $ac_res" >&5
14690echo "${ECHO_T}$ac_res" >&6; }
14691
14692fi
14693if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014694 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014696_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014697
14698fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014699
Reid Spencer59473af2004-12-25 07:31:29 +000014700done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000014701
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014702
14703
14704
14705
14706
14707
Douglas Gregor071d73d2009-05-18 17:21:34 +000014708for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014709do
14710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14716fi
14717ac_res=`eval echo '${'$as_ac_Header'}'`
14718 { echo "$as_me:$LINENO: result: $ac_res" >&5
14719echo "${ECHO_T}$ac_res" >&6; }
14720else
14721 # Is the header compilable?
14722{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14723echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14724cat >conftest.$ac_ext <<_ACEOF
14725/* confdefs.h. */
14726_ACEOF
14727cat confdefs.h >>conftest.$ac_ext
14728cat >>conftest.$ac_ext <<_ACEOF
14729/* end confdefs.h. */
14730$ac_includes_default
14731#include <$ac_header>
14732_ACEOF
14733rm -f conftest.$ac_objext
14734if { (ac_try="$ac_compile"
14735case "(($ac_try" in
14736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737 *) ac_try_echo=$ac_try;;
14738esac
14739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740 (eval "$ac_compile") 2>conftest.er1
14741 ac_status=$?
14742 grep -v '^ *+' conftest.er1 >conftest.err
14743 rm -f conftest.er1
14744 cat conftest.err >&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } &&
14747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14748 { (case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14751esac
14752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_try") 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest.$ac_objext'
14758 { (case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14761esac
14762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_try") 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 ac_header_compiler=yes
14768else
14769 echo "$as_me: failed program was:" >&5
14770sed 's/^/| /' conftest.$ac_ext >&5
14771
14772 ac_header_compiler=no
14773fi
14774
14775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14777echo "${ECHO_T}$ac_header_compiler" >&6; }
14778
14779# Is the header present?
14780{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14781echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14782cat >conftest.$ac_ext <<_ACEOF
14783/* confdefs.h. */
14784_ACEOF
14785cat confdefs.h >>conftest.$ac_ext
14786cat >>conftest.$ac_ext <<_ACEOF
14787/* end confdefs.h. */
14788#include <$ac_header>
14789_ACEOF
14790if { (ac_try="$ac_cpp conftest.$ac_ext"
14791case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14794esac
14795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14797 ac_status=$?
14798 grep -v '^ *+' conftest.er1 >conftest.err
14799 rm -f conftest.er1
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } >/dev/null; then
14803 if test -s conftest.err; then
14804 ac_cpp_err=$ac_c_preproc_warn_flag
14805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14806 else
14807 ac_cpp_err=
14808 fi
14809else
14810 ac_cpp_err=yes
14811fi
14812if test -z "$ac_cpp_err"; then
14813 ac_header_preproc=yes
14814else
14815 echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
14818 ac_header_preproc=no
14819fi
14820
14821rm -f conftest.err conftest.$ac_ext
14822{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823echo "${ECHO_T}$ac_header_preproc" >&6; }
14824
14825# So? What about this header?
14826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14827 yes:no: )
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14829echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14831echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14832 ac_header_preproc=yes
14833 ;;
14834 no:yes:* )
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14836echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14838echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14840echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14842echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14844echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14846echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14847 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000014848## ------------------------------------ ##
14849## Report this to http://llvm.org/bugs/ ##
14850## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014851_ASBOX
14852 ) | sed "s/^/$as_me: WARNING: /" >&2
14853 ;;
14854esac
14855{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14859else
14860 eval "$as_ac_Header=\$ac_header_preproc"
14861fi
14862ac_res=`eval echo '${'$as_ac_Header'}'`
14863 { echo "$as_me:$LINENO: result: $ac_res" >&5
14864echo "${ECHO_T}$ac_res" >&6; }
14865
14866fi
14867if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014868 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014870_ACEOF
14871
14872fi
14873
14874done
14875
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014876
14877
Douglas Gregor071d73d2009-05-18 17:21:34 +000014878for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014879do
14880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14886fi
14887ac_res=`eval echo '${'$as_ac_Header'}'`
14888 { echo "$as_me:$LINENO: result: $ac_res" >&5
14889echo "${ECHO_T}$ac_res" >&6; }
14890else
14891 # Is the header compilable?
14892{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14894cat >conftest.$ac_ext <<_ACEOF
14895/* confdefs.h. */
14896_ACEOF
14897cat confdefs.h >>conftest.$ac_ext
14898cat >>conftest.$ac_ext <<_ACEOF
14899/* end confdefs.h. */
14900$ac_includes_default
14901#include <$ac_header>
14902_ACEOF
14903rm -f conftest.$ac_objext
14904if { (ac_try="$ac_compile"
14905case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14908esac
14909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_compile") 2>conftest.er1
14911 ac_status=$?
14912 grep -v '^ *+' conftest.er1 >conftest.err
14913 rm -f conftest.er1
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } &&
14917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14918 { (case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14921esac
14922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_try") 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; } &&
14927 { ac_try='test -s conftest.$ac_objext'
14928 { (case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14931esac
14932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933 (eval "$ac_try") 2>&5
14934 ac_status=$?
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); }; }; then
14937 ac_header_compiler=yes
14938else
14939 echo "$as_me: failed program was:" >&5
14940sed 's/^/| /' conftest.$ac_ext >&5
14941
14942 ac_header_compiler=no
14943fi
14944
14945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14947echo "${ECHO_T}$ac_header_compiler" >&6; }
14948
14949# Is the header present?
14950{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14951echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14952cat >conftest.$ac_ext <<_ACEOF
14953/* confdefs.h. */
14954_ACEOF
14955cat confdefs.h >>conftest.$ac_ext
14956cat >>conftest.$ac_ext <<_ACEOF
14957/* end confdefs.h. */
14958#include <$ac_header>
14959_ACEOF
14960if { (ac_try="$ac_cpp conftest.$ac_ext"
14961case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14964esac
14965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14967 ac_status=$?
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } >/dev/null; then
14973 if test -s conftest.err; then
14974 ac_cpp_err=$ac_c_preproc_warn_flag
14975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14976 else
14977 ac_cpp_err=
14978 fi
14979else
14980 ac_cpp_err=yes
14981fi
14982if test -z "$ac_cpp_err"; then
14983 ac_header_preproc=yes
14984else
14985 echo "$as_me: failed program was:" >&5
14986sed 's/^/| /' conftest.$ac_ext >&5
14987
14988 ac_header_preproc=no
14989fi
14990
14991rm -f conftest.err conftest.$ac_ext
14992{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14993echo "${ECHO_T}$ac_header_preproc" >&6; }
14994
14995# So? What about this header?
14996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14997 yes:no: )
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15002 ac_header_preproc=yes
15003 ;;
15004 no:yes:* )
15005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15008echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15012echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15017 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015018## ------------------------------------ ##
15019## Report this to http://llvm.org/bugs/ ##
15020## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015021_ASBOX
15022 ) | sed "s/^/$as_me: WARNING: /" >&2
15023 ;;
15024esac
15025{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15029else
15030 eval "$as_ac_Header=\$ac_header_preproc"
15031fi
15032ac_res=`eval echo '${'$as_ac_Header'}'`
15033 { echo "$as_me:$LINENO: result: $ac_res" >&5
15034echo "${ECHO_T}$ac_res" >&6; }
15035
15036fi
15037if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015038 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015040_ACEOF
15041
15042fi
15043
15044done
Reid Spencer59473af2004-12-25 07:31:29 +000015045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015046
15047
15048
15049
Daniel Dunbar3e462932011-02-03 02:40:02 +000015050
15051for 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 +000015052do
15053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15059fi
15060ac_res=`eval echo '${'$as_ac_Header'}'`
15061 { echo "$as_me:$LINENO: result: $ac_res" >&5
15062echo "${ECHO_T}$ac_res" >&6; }
15063else
15064 # Is the header compilable?
15065{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15067cat >conftest.$ac_ext <<_ACEOF
15068/* confdefs.h. */
15069_ACEOF
15070cat confdefs.h >>conftest.$ac_ext
15071cat >>conftest.$ac_ext <<_ACEOF
15072/* end confdefs.h. */
15073$ac_includes_default
15074#include <$ac_header>
15075_ACEOF
15076rm -f conftest.$ac_objext
15077if { (ac_try="$ac_compile"
15078case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15081esac
15082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_compile") 2>conftest.er1
15084 ac_status=$?
15085 grep -v '^ *+' conftest.er1 >conftest.err
15086 rm -f conftest.er1
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094esac
15095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; } &&
15100 { ac_try='test -s conftest.$ac_objext'
15101 { (case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104esac
15105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_try") 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 ac_header_compiler=yes
15111else
15112 echo "$as_me: failed program was:" >&5
15113sed 's/^/| /' conftest.$ac_ext >&5
15114
15115 ac_header_compiler=no
15116fi
15117
15118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15120echo "${ECHO_T}$ac_header_compiler" >&6; }
15121
15122# Is the header present?
15123{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15125cat >conftest.$ac_ext <<_ACEOF
15126/* confdefs.h. */
15127_ACEOF
15128cat confdefs.h >>conftest.$ac_ext
15129cat >>conftest.$ac_ext <<_ACEOF
15130/* end confdefs.h. */
15131#include <$ac_header>
15132_ACEOF
15133if { (ac_try="$ac_cpp conftest.$ac_ext"
15134case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15137esac
15138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15140 ac_status=$?
15141 grep -v '^ *+' conftest.er1 >conftest.err
15142 rm -f conftest.er1
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } >/dev/null; then
15146 if test -s conftest.err; then
15147 ac_cpp_err=$ac_c_preproc_warn_flag
15148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15149 else
15150 ac_cpp_err=
15151 fi
15152else
15153 ac_cpp_err=yes
15154fi
15155if test -z "$ac_cpp_err"; then
15156 ac_header_preproc=yes
15157else
15158 echo "$as_me: failed program was:" >&5
15159sed 's/^/| /' conftest.$ac_ext >&5
15160
15161 ac_header_preproc=no
15162fi
15163
15164rm -f conftest.err conftest.$ac_ext
15165{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15166echo "${ECHO_T}$ac_header_preproc" >&6; }
15167
15168# So? What about this header?
15169case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15170 yes:no: )
15171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15172echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15174echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15175 ac_header_preproc=yes
15176 ;;
15177 no:yes:* )
15178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15181echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15183echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15185echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15189echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15190 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015191## ------------------------------------ ##
15192## Report this to http://llvm.org/bugs/ ##
15193## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015194_ASBOX
15195 ) | sed "s/^/$as_me: WARNING: /" >&2
15196 ;;
15197esac
15198{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15202else
15203 eval "$as_ac_Header=\$ac_header_preproc"
15204fi
15205ac_res=`eval echo '${'$as_ac_Header'}'`
15206 { echo "$as_me:$LINENO: result: $ac_res" >&5
15207echo "${ECHO_T}$ac_res" >&6; }
15208
15209fi
15210if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015211 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015212#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015213_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015214
15215fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015216
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015217done
15218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015219
15220
15221
15222
Douglas Gregor01746742009-05-11 18:05:52 +000015223for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015224do
15225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15231fi
15232ac_res=`eval echo '${'$as_ac_Header'}'`
15233 { echo "$as_me:$LINENO: result: $ac_res" >&5
15234echo "${ECHO_T}$ac_res" >&6; }
15235else
15236 # Is the header compilable?
15237{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15238echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15239cat >conftest.$ac_ext <<_ACEOF
15240/* confdefs.h. */
15241_ACEOF
15242cat confdefs.h >>conftest.$ac_ext
15243cat >>conftest.$ac_ext <<_ACEOF
15244/* end confdefs.h. */
15245$ac_includes_default
15246#include <$ac_header>
15247_ACEOF
15248rm -f conftest.$ac_objext
15249if { (ac_try="$ac_compile"
15250case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15253esac
15254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_compile") 2>conftest.er1
15256 ac_status=$?
15257 grep -v '^ *+' conftest.er1 >conftest.err
15258 rm -f conftest.er1
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15263 { (case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266esac
15267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_try") 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; } &&
15272 { ac_try='test -s conftest.$ac_objext'
15273 { (case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15276esac
15277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_try") 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 ac_header_compiler=yes
15283else
15284 echo "$as_me: failed program was:" >&5
15285sed 's/^/| /' conftest.$ac_ext >&5
15286
15287 ac_header_compiler=no
15288fi
15289
15290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15292echo "${ECHO_T}$ac_header_compiler" >&6; }
15293
15294# Is the header present?
15295{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15296echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15297cat >conftest.$ac_ext <<_ACEOF
15298/* confdefs.h. */
15299_ACEOF
15300cat confdefs.h >>conftest.$ac_ext
15301cat >>conftest.$ac_ext <<_ACEOF
15302/* end confdefs.h. */
15303#include <$ac_header>
15304_ACEOF
15305if { (ac_try="$ac_cpp conftest.$ac_ext"
15306case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15309esac
15310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15312 ac_status=$?
15313 grep -v '^ *+' conftest.er1 >conftest.err
15314 rm -f conftest.er1
15315 cat conftest.err >&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } >/dev/null; then
15318 if test -s conftest.err; then
15319 ac_cpp_err=$ac_c_preproc_warn_flag
15320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15321 else
15322 ac_cpp_err=
15323 fi
15324else
15325 ac_cpp_err=yes
15326fi
15327if test -z "$ac_cpp_err"; then
15328 ac_header_preproc=yes
15329else
15330 echo "$as_me: failed program was:" >&5
15331sed 's/^/| /' conftest.$ac_ext >&5
15332
15333 ac_header_preproc=no
15334fi
15335
15336rm -f conftest.err conftest.$ac_ext
15337{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15338echo "${ECHO_T}$ac_header_preproc" >&6; }
15339
15340# So? What about this header?
15341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15342 yes:no: )
15343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15347 ac_header_preproc=yes
15348 ;;
15349 no:yes:* )
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15353echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15357echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15362 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015363## ------------------------------------ ##
15364## Report this to http://llvm.org/bugs/ ##
15365## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015366_ASBOX
15367 ) | sed "s/^/$as_me: WARNING: /" >&2
15368 ;;
15369esac
15370{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15374else
15375 eval "$as_ac_Header=\$ac_header_preproc"
15376fi
15377ac_res=`eval echo '${'$as_ac_Header'}'`
15378 { echo "$as_me:$LINENO: result: $ac_res" >&5
15379echo "${ECHO_T}$ac_res" >&6; }
15380
15381fi
15382if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000015383 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000015385_ACEOF
15386
15387fi
15388
15389done
15390
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015391
15392for ac_header in valgrind/valgrind.h
15393do
15394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
15400fi
15401ac_res=`eval echo '${'$as_ac_Header'}'`
15402 { echo "$as_me:$LINENO: result: $ac_res" >&5
15403echo "${ECHO_T}$ac_res" >&6; }
15404else
15405 # Is the header compilable?
15406{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15407echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15408cat >conftest.$ac_ext <<_ACEOF
15409/* confdefs.h. */
15410_ACEOF
15411cat confdefs.h >>conftest.$ac_ext
15412cat >>conftest.$ac_ext <<_ACEOF
15413/* end confdefs.h. */
15414$ac_includes_default
15415#include <$ac_header>
15416_ACEOF
15417rm -f conftest.$ac_objext
15418if { (ac_try="$ac_compile"
15419case "(($ac_try" in
15420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421 *) ac_try_echo=$ac_try;;
15422esac
15423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424 (eval "$ac_compile") 2>conftest.er1
15425 ac_status=$?
15426 grep -v '^ *+' conftest.er1 >conftest.err
15427 rm -f conftest.er1
15428 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } &&
15431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15432 { (case "(($ac_try" in
15433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434 *) ac_try_echo=$ac_try;;
15435esac
15436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437 (eval "$ac_try") 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } &&
15441 { ac_try='test -s conftest.$ac_objext'
15442 { (case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15445esac
15446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_try") 2>&5
15448 ac_status=$?
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }; then
15451 ac_header_compiler=yes
15452else
15453 echo "$as_me: failed program was:" >&5
15454sed 's/^/| /' conftest.$ac_ext >&5
15455
15456 ac_header_compiler=no
15457fi
15458
15459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15461echo "${ECHO_T}$ac_header_compiler" >&6; }
15462
15463# Is the header present?
15464{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15465echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15466cat >conftest.$ac_ext <<_ACEOF
15467/* confdefs.h. */
15468_ACEOF
15469cat confdefs.h >>conftest.$ac_ext
15470cat >>conftest.$ac_ext <<_ACEOF
15471/* end confdefs.h. */
15472#include <$ac_header>
15473_ACEOF
15474if { (ac_try="$ac_cpp conftest.$ac_ext"
15475case "(($ac_try" in
15476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477 *) ac_try_echo=$ac_try;;
15478esac
15479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15481 ac_status=$?
15482 grep -v '^ *+' conftest.er1 >conftest.err
15483 rm -f conftest.er1
15484 cat conftest.err >&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } >/dev/null; then
15487 if test -s conftest.err; then
15488 ac_cpp_err=$ac_c_preproc_warn_flag
15489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15490 else
15491 ac_cpp_err=
15492 fi
15493else
15494 ac_cpp_err=yes
15495fi
15496if test -z "$ac_cpp_err"; then
15497 ac_header_preproc=yes
15498else
15499 echo "$as_me: failed program was:" >&5
15500sed 's/^/| /' conftest.$ac_ext >&5
15501
15502 ac_header_preproc=no
15503fi
15504
15505rm -f conftest.err conftest.$ac_ext
15506{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15507echo "${ECHO_T}$ac_header_preproc" >&6; }
15508
15509# So? What about this header?
15510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15511 yes:no: )
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15515echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15516 ac_header_preproc=yes
15517 ;;
15518 no:yes:* )
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15522echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15524echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15526echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15531 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015532## ------------------------------------ ##
15533## Report this to http://llvm.org/bugs/ ##
15534## ------------------------------------ ##
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000015535_ASBOX
15536 ) | sed "s/^/$as_me: WARNING: /" >&2
15537 ;;
15538esac
15539{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15543else
15544 eval "$as_ac_Header=\$ac_header_preproc"
15545fi
15546ac_res=`eval echo '${'$as_ac_Header'}'`
15547 { echo "$as_me:$LINENO: result: $ac_res" >&5
15548echo "${ECHO_T}$ac_res" >&6; }
15549
15550fi
15551if test `eval echo '${'$as_ac_Header'}'` = yes; then
15552 cat >>confdefs.h <<_ACEOF
15553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15554_ACEOF
15555
15556fi
15557
15558done
15559
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015560
15561for ac_header in fenv.h
15562do
15563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15569fi
15570ac_res=`eval echo '${'$as_ac_Header'}'`
15571 { echo "$as_me:$LINENO: result: $ac_res" >&5
15572echo "${ECHO_T}$ac_res" >&6; }
15573else
15574 # Is the header compilable?
15575{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15577cat >conftest.$ac_ext <<_ACEOF
15578/* confdefs.h. */
15579_ACEOF
15580cat confdefs.h >>conftest.$ac_ext
15581cat >>conftest.$ac_ext <<_ACEOF
15582/* end confdefs.h. */
15583$ac_includes_default
15584#include <$ac_header>
15585_ACEOF
15586rm -f conftest.$ac_objext
15587if { (ac_try="$ac_compile"
15588case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15591esac
15592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_compile") 2>conftest.er1
15594 ac_status=$?
15595 grep -v '^ *+' conftest.er1 >conftest.err
15596 rm -f conftest.er1
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } &&
15600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15601 { (case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15604esac
15605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_try") 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; } &&
15610 { ac_try='test -s conftest.$ac_objext'
15611 { (case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15614esac
15615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_try") 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }; then
15620 ac_header_compiler=yes
15621else
15622 echo "$as_me: failed program was:" >&5
15623sed 's/^/| /' conftest.$ac_ext >&5
15624
15625 ac_header_compiler=no
15626fi
15627
15628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15629{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15630echo "${ECHO_T}$ac_header_compiler" >&6; }
15631
15632# Is the header present?
15633{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15634echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15635cat >conftest.$ac_ext <<_ACEOF
15636/* confdefs.h. */
15637_ACEOF
15638cat confdefs.h >>conftest.$ac_ext
15639cat >>conftest.$ac_ext <<_ACEOF
15640/* end confdefs.h. */
15641#include <$ac_header>
15642_ACEOF
15643if { (ac_try="$ac_cpp conftest.$ac_ext"
15644case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15647esac
15648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15650 ac_status=$?
15651 grep -v '^ *+' conftest.er1 >conftest.err
15652 rm -f conftest.er1
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } >/dev/null; then
15656 if test -s conftest.err; then
15657 ac_cpp_err=$ac_c_preproc_warn_flag
15658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15659 else
15660 ac_cpp_err=
15661 fi
15662else
15663 ac_cpp_err=yes
15664fi
15665if test -z "$ac_cpp_err"; then
15666 ac_header_preproc=yes
15667else
15668 echo "$as_me: failed program was:" >&5
15669sed 's/^/| /' conftest.$ac_ext >&5
15670
15671 ac_header_preproc=no
15672fi
15673
15674rm -f conftest.err conftest.$ac_ext
15675{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15676echo "${ECHO_T}$ac_header_preproc" >&6; }
15677
15678# So? What about this header?
15679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15680 yes:no: )
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15685 ac_header_preproc=yes
15686 ;;
15687 no:yes:* )
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15691echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15695echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15700 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015701## ------------------------------------ ##
15702## Report this to http://llvm.org/bugs/ ##
15703## ------------------------------------ ##
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000015704_ASBOX
15705 ) | sed "s/^/$as_me: WARNING: /" >&2
15706 ;;
15707esac
15708{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711 echo $ECHO_N "(cached) $ECHO_C" >&6
15712else
15713 eval "$as_ac_Header=\$ac_header_preproc"
15714fi
15715ac_res=`eval echo '${'$as_ac_Header'}'`
15716 { echo "$as_me:$LINENO: result: $ac_res" >&5
15717echo "${ECHO_T}$ac_res" >&6; }
15718
15719fi
15720if test `eval echo '${'$as_ac_Header'}'` = yes; then
15721 cat >>confdefs.h <<_ACEOF
15722#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15723_ACEOF
15724
15725fi
15726
15727done
15728
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000015729if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015730
15731for ac_header in pthread.h
15732do
15733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15739fi
15740ac_res=`eval echo '${'$as_ac_Header'}'`
15741 { echo "$as_me:$LINENO: result: $ac_res" >&5
15742echo "${ECHO_T}$ac_res" >&6; }
15743else
15744 # Is the header compilable?
15745{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15747cat >conftest.$ac_ext <<_ACEOF
15748/* confdefs.h. */
15749_ACEOF
15750cat confdefs.h >>conftest.$ac_ext
15751cat >>conftest.$ac_ext <<_ACEOF
15752/* end confdefs.h. */
15753$ac_includes_default
15754#include <$ac_header>
15755_ACEOF
15756rm -f conftest.$ac_objext
15757if { (ac_try="$ac_compile"
15758case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15761esac
15762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_compile") 2>conftest.er1
15764 ac_status=$?
15765 grep -v '^ *+' conftest.er1 >conftest.err
15766 rm -f conftest.er1
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15771 { (case "(($ac_try" in
15772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773 *) ac_try_echo=$ac_try;;
15774esac
15775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776 (eval "$ac_try") 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; } &&
15780 { ac_try='test -s conftest.$ac_objext'
15781 { (case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15784esac
15785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_try") 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 ac_header_compiler=yes
15791else
15792 echo "$as_me: failed program was:" >&5
15793sed 's/^/| /' conftest.$ac_ext >&5
15794
15795 ac_header_compiler=no
15796fi
15797
15798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15800echo "${ECHO_T}$ac_header_compiler" >&6; }
15801
15802# Is the header present?
15803{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15804echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15805cat >conftest.$ac_ext <<_ACEOF
15806/* confdefs.h. */
15807_ACEOF
15808cat confdefs.h >>conftest.$ac_ext
15809cat >>conftest.$ac_ext <<_ACEOF
15810/* end confdefs.h. */
15811#include <$ac_header>
15812_ACEOF
15813if { (ac_try="$ac_cpp conftest.$ac_ext"
15814case "(($ac_try" in
15815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816 *) ac_try_echo=$ac_try;;
15817esac
15818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15820 ac_status=$?
15821 grep -v '^ *+' conftest.er1 >conftest.err
15822 rm -f conftest.er1
15823 cat conftest.err >&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } >/dev/null; then
15826 if test -s conftest.err; then
15827 ac_cpp_err=$ac_c_preproc_warn_flag
15828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15829 else
15830 ac_cpp_err=
15831 fi
15832else
15833 ac_cpp_err=yes
15834fi
15835if test -z "$ac_cpp_err"; then
15836 ac_header_preproc=yes
15837else
15838 echo "$as_me: failed program was:" >&5
15839sed 's/^/| /' conftest.$ac_ext >&5
15840
15841 ac_header_preproc=no
15842fi
15843
15844rm -f conftest.err conftest.$ac_ext
15845{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15846echo "${ECHO_T}$ac_header_preproc" >&6; }
15847
15848# So? What about this header?
15849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15850 yes:no: )
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15854echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15855 ac_header_preproc=yes
15856 ;;
15857 no:yes:* )
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15859echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15861echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15863echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15865echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15869echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15870 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000015871## ------------------------------------ ##
15872## Report this to http://llvm.org/bugs/ ##
15873## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015874_ASBOX
15875 ) | sed "s/^/$as_me: WARNING: /" >&2
15876 ;;
15877esac
15878{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15880if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15882else
15883 eval "$as_ac_Header=\$ac_header_preproc"
15884fi
15885ac_res=`eval echo '${'$as_ac_Header'}'`
15886 { echo "$as_me:$LINENO: result: $ac_res" >&5
15887echo "${ECHO_T}$ac_res" >&6; }
15888
15889fi
15890if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015891 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015893_ACEOF
15894 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000015895
15896else
15897 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015898
15899fi
15900
Reid Spencerbe3e4192007-08-17 05:45:26 +000015901done
Reid Spencer1000b732006-12-01 00:37:14 +000015902
15903else
15904 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000015905
15906fi
Reid Spencer8085cff2005-01-16 02:58:39 +000015907
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000015908if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015909
15910
15911for ac_header in ffi.h ffi/ffi.h
15912do
15913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15919fi
15920ac_res=`eval echo '${'$as_ac_Header'}'`
15921 { echo "$as_me:$LINENO: result: $ac_res" >&5
15922echo "${ECHO_T}$ac_res" >&6; }
15923else
15924 # Is the header compilable?
15925{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15927cat >conftest.$ac_ext <<_ACEOF
15928/* confdefs.h. */
15929_ACEOF
15930cat confdefs.h >>conftest.$ac_ext
15931cat >>conftest.$ac_ext <<_ACEOF
15932/* end confdefs.h. */
15933$ac_includes_default
15934#include <$ac_header>
15935_ACEOF
15936rm -f conftest.$ac_objext
15937if { (ac_try="$ac_compile"
15938case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15941esac
15942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943 (eval "$ac_compile") 2>conftest.er1
15944 ac_status=$?
15945 grep -v '^ *+' conftest.er1 >conftest.err
15946 rm -f conftest.er1
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } &&
15950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15951 { (case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15954esac
15955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_try") 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; } &&
15960 { ac_try='test -s conftest.$ac_objext'
15961 { (case "(($ac_try" in
15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15964esac
15965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_try") 2>&5
15967 ac_status=$?
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; }; then
15970 ac_header_compiler=yes
15971else
15972 echo "$as_me: failed program was:" >&5
15973sed 's/^/| /' conftest.$ac_ext >&5
15974
15975 ac_header_compiler=no
15976fi
15977
15978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15980echo "${ECHO_T}$ac_header_compiler" >&6; }
15981
15982# Is the header present?
15983{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15985cat >conftest.$ac_ext <<_ACEOF
15986/* confdefs.h. */
15987_ACEOF
15988cat confdefs.h >>conftest.$ac_ext
15989cat >>conftest.$ac_ext <<_ACEOF
15990/* end confdefs.h. */
15991#include <$ac_header>
15992_ACEOF
15993if { (ac_try="$ac_cpp conftest.$ac_ext"
15994case "(($ac_try" in
15995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15997esac
15998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16000 ac_status=$?
16001 grep -v '^ *+' conftest.er1 >conftest.err
16002 rm -f conftest.er1
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } >/dev/null; then
16006 if test -s conftest.err; then
16007 ac_cpp_err=$ac_c_preproc_warn_flag
16008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16009 else
16010 ac_cpp_err=
16011 fi
16012else
16013 ac_cpp_err=yes
16014fi
16015if test -z "$ac_cpp_err"; then
16016 ac_header_preproc=yes
16017else
16018 echo "$as_me: failed program was:" >&5
16019sed 's/^/| /' conftest.$ac_ext >&5
16020
16021 ac_header_preproc=no
16022fi
16023
16024rm -f conftest.err conftest.$ac_ext
16025{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16026echo "${ECHO_T}$ac_header_preproc" >&6; }
16027
16028# So? What about this header?
16029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16030 yes:no: )
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16035 ac_header_preproc=yes
16036 ;;
16037 no:yes:* )
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16045echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16050 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016051## ------------------------------------ ##
16052## Report this to http://llvm.org/bugs/ ##
16053## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016054_ASBOX
16055 ) | sed "s/^/$as_me: WARNING: /" >&2
16056 ;;
16057esac
16058{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16062else
16063 eval "$as_ac_Header=\$ac_header_preproc"
16064fi
16065ac_res=`eval echo '${'$as_ac_Header'}'`
16066 { echo "$as_me:$LINENO: result: $ac_res" >&5
16067echo "${ECHO_T}$ac_res" >&6; }
16068
16069fi
16070if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016071 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016073_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016074
16075fi
16076
16077done
16078
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016079fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016080
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016081
Eric Christopher654dee42010-06-22 21:01:04 +000016082for ac_header in CrashReporterClient.h
16083do
16084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090fi
16091ac_res=`eval echo '${'$as_ac_Header'}'`
16092 { echo "$as_me:$LINENO: result: $ac_res" >&5
16093echo "${ECHO_T}$ac_res" >&6; }
16094else
16095 # Is the header compilable?
16096{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16098cat >conftest.$ac_ext <<_ACEOF
16099/* confdefs.h. */
16100_ACEOF
16101cat confdefs.h >>conftest.$ac_ext
16102cat >>conftest.$ac_ext <<_ACEOF
16103/* end confdefs.h. */
16104$ac_includes_default
16105#include <$ac_header>
16106_ACEOF
16107rm -f conftest.$ac_objext
16108if { (ac_try="$ac_compile"
16109case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16112esac
16113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_compile") 2>conftest.er1
16115 ac_status=$?
16116 grep -v '^ *+' conftest.er1 >conftest.err
16117 rm -f conftest.er1
16118 cat conftest.err >&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16122 { (case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16125esac
16126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_try") 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest.$ac_objext'
16132 { (case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16135esac
16136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_try") 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 ac_header_compiler=yes
16142else
16143 echo "$as_me: failed program was:" >&5
16144sed 's/^/| /' conftest.$ac_ext >&5
16145
16146 ac_header_compiler=no
16147fi
16148
16149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16151echo "${ECHO_T}$ac_header_compiler" >&6; }
16152
16153# Is the header present?
16154{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16156cat >conftest.$ac_ext <<_ACEOF
16157/* confdefs.h. */
16158_ACEOF
16159cat confdefs.h >>conftest.$ac_ext
16160cat >>conftest.$ac_ext <<_ACEOF
16161/* end confdefs.h. */
16162#include <$ac_header>
16163_ACEOF
16164if { (ac_try="$ac_cpp conftest.$ac_ext"
16165case "(($ac_try" in
16166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167 *) ac_try_echo=$ac_try;;
16168esac
16169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16171 ac_status=$?
16172 grep -v '^ *+' conftest.er1 >conftest.err
16173 rm -f conftest.er1
16174 cat conftest.err >&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } >/dev/null; then
16177 if test -s conftest.err; then
16178 ac_cpp_err=$ac_c_preproc_warn_flag
16179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16180 else
16181 ac_cpp_err=
16182 fi
16183else
16184 ac_cpp_err=yes
16185fi
16186if test -z "$ac_cpp_err"; then
16187 ac_header_preproc=yes
16188else
16189 echo "$as_me: failed program was:" >&5
16190sed 's/^/| /' conftest.$ac_ext >&5
16191
16192 ac_header_preproc=no
16193fi
16194
16195rm -f conftest.err conftest.$ac_ext
16196{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16197echo "${ECHO_T}$ac_header_preproc" >&6; }
16198
16199# So? What about this header?
16200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16201 yes:no: )
16202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16206 ac_header_preproc=yes
16207 ;;
16208 no:yes:* )
16209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16212echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16216echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16221 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000016222## ------------------------------------ ##
16223## Report this to http://llvm.org/bugs/ ##
16224## ------------------------------------ ##
Eric Christopher654dee42010-06-22 21:01:04 +000016225_ASBOX
16226 ) | sed "s/^/$as_me: WARNING: /" >&2
16227 ;;
16228esac
16229{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16232 echo $ECHO_N "(cached) $ECHO_C" >&6
16233else
16234 eval "$as_ac_Header=\$ac_header_preproc"
16235fi
16236ac_res=`eval echo '${'$as_ac_Header'}'`
16237 { echo "$as_me:$LINENO: result: $ac_res" >&5
16238echo "${ECHO_T}$ac_res" >&6; }
16239
16240fi
16241if test `eval echo '${'$as_ac_Header'}'` = yes; then
16242 cat >>confdefs.h <<_ACEOF
16243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16244_ACEOF
16245
16246fi
16247
16248done
16249
16250
Eric Christopher51e57132010-12-07 02:05:42 +000016251{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16252echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016253cat >conftest.$ac_ext <<_ACEOF
16254/* confdefs.h. */
16255_ACEOF
16256cat confdefs.h >>conftest.$ac_ext
16257cat >>conftest.$ac_ext <<_ACEOF
16258/* end confdefs.h. */
Eric Christopher51e57132010-12-07 02:05:42 +000016259extern const char *__crashreporter_info__;
16260 int main() {
16261 __crashreporter_info__ = "test";
16262 return 0;
16263 }
Eric Christopher481d4022010-12-03 07:45:22 +000016264
Eric Christopher481d4022010-12-03 07:45:22 +000016265_ACEOF
16266rm -f conftest.$ac_objext conftest$ac_exeext
16267if { (ac_try="$ac_link"
16268case "(($ac_try" in
16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270 *) ac_try_echo=$ac_try;;
16271esac
16272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273 (eval "$ac_link") 2>conftest.er1
16274 ac_status=$?
16275 grep -v '^ *+' conftest.er1 >conftest.err
16276 rm -f conftest.er1
16277 cat conftest.err >&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } &&
16280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16281 { (case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16284esac
16285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_try") 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; } &&
16290 { ac_try='test -s conftest$ac_exeext'
16291 { (case "(($ac_try" in
16292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293 *) ac_try_echo=$ac_try;;
16294esac
16295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16296 (eval "$ac_try") 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); }; }; then
Eric Christopher51e57132010-12-07 02:05:42 +000016300 { echo "$as_me:$LINENO: result: yes" >&5
16301echo "${ECHO_T}yes" >&6; }
Eric Christopher481d4022010-12-03 07:45:22 +000016302
16303cat >>confdefs.h <<\_ACEOF
16304#define HAVE_CRASHREPORTER_INFO 1
16305_ACEOF
16306
Eric Christopher51e57132010-12-07 02:05:42 +000016307else
16308 echo "$as_me: failed program was:" >&5
16309sed 's/^/| /' conftest.$ac_ext >&5
16310
16311 { echo "$as_me:$LINENO: result: no" >&5
16312echo "${ECHO_T}no" >&6; }
16313
16314cat >>confdefs.h <<\_ACEOF
16315#define HAVE_CRASHREPORTER_INFO 0
16316_ACEOF
16317
Eric Christopher481d4022010-12-03 07:45:22 +000016318fi
Eric Christopher654dee42010-06-22 21:01:04 +000016319
Eric Christopher51e57132010-12-07 02:05:42 +000016320rm -f core conftest.err conftest.$ac_objext \
16321 conftest$ac_exeext conftest.$ac_ext
16322
16323
Reid Spencer8085cff2005-01-16 02:58:39 +000016324
Torok Edwin871384f2010-01-26 08:50:50 +000016325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016326 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16327echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16328if test "${ac_cv_huge_val_sanity+set}" = set; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016330else
16331
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016332 ac_ext=cpp
16333ac_cpp='$CXXCPP $CPPFLAGS'
16334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016337
Eric Christopherc7718502010-03-02 05:06:54 +000016338 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher79e22d82012-04-02 06:54:01 +000016339 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016340 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016341 ac_cv_huge_val_sanity=yes
16342else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016343 cat >conftest.$ac_ext <<_ACEOF
16344/* confdefs.h. */
16345_ACEOF
16346cat confdefs.h >>conftest.$ac_ext
16347cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016348/* end confdefs.h. */
16349#include <math.h>
16350int
16351main ()
16352{
16353double x = HUGE_VAL; return x != x;
16354 ;
16355 return 0;
16356}
16357_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016358rm -f conftest$ac_exeext
16359if { (ac_try="$ac_link"
16360case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16363esac
16364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_link") 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16369 { (case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16372esac
16373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_try") 2>&5
16375 ac_status=$?
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016378 ac_cv_huge_val_sanity=yes
16379else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016380 echo "$as_me: program exited with status $ac_status" >&5
16381echo "$as_me: failed program was:" >&5
16382sed 's/^/| /' conftest.$ac_ext >&5
16383
16384( exit $ac_status )
16385ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016386fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016387rm -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 +000016388fi
16389
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016390
Eric Christopherc7718502010-03-02 05:06:54 +000016391 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016392 ac_ext=c
16393ac_cpp='$CPP $CPPFLAGS'
16394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16396ac_compiler_gnu=$ac_cv_c_compiler_gnu
16397
16398
16399fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016400{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16401echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016402 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16403
16404
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016405{ echo "$as_me:$LINENO: checking for pid_t" >&5
16406echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16407if test "${ac_cv_type_pid_t+set}" = set; then
16408 echo $ECHO_N "(cached) $ECHO_C" >&6
16409else
16410 cat >conftest.$ac_ext <<_ACEOF
16411/* confdefs.h. */
16412_ACEOF
16413cat confdefs.h >>conftest.$ac_ext
16414cat >>conftest.$ac_ext <<_ACEOF
16415/* end confdefs.h. */
16416$ac_includes_default
16417typedef pid_t ac__type_new_;
16418int
16419main ()
16420{
16421if ((ac__type_new_ *) 0)
16422 return 0;
16423if (sizeof (ac__type_new_))
16424 return 0;
16425 ;
16426 return 0;
16427}
16428_ACEOF
16429rm -f conftest.$ac_objext
16430if { (ac_try="$ac_compile"
16431case "(($ac_try" in
16432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16433 *) ac_try_echo=$ac_try;;
16434esac
16435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16436 (eval "$ac_compile") 2>conftest.er1
16437 ac_status=$?
16438 grep -v '^ *+' conftest.er1 >conftest.err
16439 rm -f conftest.er1
16440 cat conftest.err >&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } &&
16443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16444 { (case "(($ac_try" in
16445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446 *) ac_try_echo=$ac_try;;
16447esac
16448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16449 (eval "$ac_try") 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; } &&
16453 { ac_try='test -s conftest.$ac_objext'
16454 { (case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16457esac
16458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_try") 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; }; then
16463 ac_cv_type_pid_t=yes
16464else
16465 echo "$as_me: failed program was:" >&5
16466sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016467
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016468 ac_cv_type_pid_t=no
16469fi
16470
16471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16472fi
16473{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16474echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16475if test $ac_cv_type_pid_t = yes; then
16476 :
John Criswell7a73b802003-06-30 21:59:07 +000016477else
16478
16479cat >>confdefs.h <<_ACEOF
16480#define pid_t int
16481_ACEOF
16482
16483fi
16484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016485{ echo "$as_me:$LINENO: checking for size_t" >&5
16486echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16487if test "${ac_cv_type_size_t+set}" = set; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16489else
16490 cat >conftest.$ac_ext <<_ACEOF
16491/* confdefs.h. */
16492_ACEOF
16493cat confdefs.h >>conftest.$ac_ext
16494cat >>conftest.$ac_ext <<_ACEOF
16495/* end confdefs.h. */
16496$ac_includes_default
16497typedef size_t ac__type_new_;
16498int
16499main ()
16500{
16501if ((ac__type_new_ *) 0)
16502 return 0;
16503if (sizeof (ac__type_new_))
16504 return 0;
16505 ;
16506 return 0;
16507}
16508_ACEOF
16509rm -f conftest.$ac_objext
16510if { (ac_try="$ac_compile"
16511case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16514esac
16515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516 (eval "$ac_compile") 2>conftest.er1
16517 ac_status=$?
16518 grep -v '^ *+' conftest.er1 >conftest.err
16519 rm -f conftest.er1
16520 cat conftest.err >&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); } &&
16523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16524 { (case "(($ac_try" in
16525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526 *) ac_try_echo=$ac_try;;
16527esac
16528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529 (eval "$ac_try") 2>&5
16530 ac_status=$?
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; } &&
16533 { ac_try='test -s conftest.$ac_objext'
16534 { (case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16537esac
16538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_try") 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543 ac_cv_type_size_t=yes
16544else
16545 echo "$as_me: failed program was:" >&5
16546sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016548 ac_cv_type_size_t=no
16549fi
16550
16551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16552fi
16553{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16554echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16555if test $ac_cv_type_size_t = yes; then
16556 :
John Criswell7a73b802003-06-30 21:59:07 +000016557else
16558
16559cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016560#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016561_ACEOF
16562
16563fi
16564
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016565
16566cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016567#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016568_ACEOF
16569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016570{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16571echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16572if test "${ac_cv_struct_tm+set}" = set; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016574else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016575 cat >conftest.$ac_ext <<_ACEOF
16576/* confdefs.h. */
16577_ACEOF
16578cat confdefs.h >>conftest.$ac_ext
16579cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016580/* end confdefs.h. */
16581#include <sys/types.h>
16582#include <time.h>
16583
16584int
16585main ()
16586{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016587struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016588 ;
16589 return 0;
16590}
16591_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016592rm -f conftest.$ac_objext
16593if { (ac_try="$ac_compile"
16594case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16597esac
16598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_compile") 2>conftest.er1
16600 ac_status=$?
16601 grep -v '^ *+' conftest.er1 >conftest.err
16602 rm -f conftest.er1
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
16606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16607 { (case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16610esac
16611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_try") 2>&5
16613 ac_status=$?
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; } &&
16616 { ac_try='test -s conftest.$ac_objext'
16617 { (case "(($ac_try" in
16618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16620esac
16621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_try") 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016626 ac_cv_struct_tm=time.h
16627else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016628 echo "$as_me: failed program was:" >&5
16629sed 's/^/| /' conftest.$ac_ext >&5
16630
16631 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016632fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016633
Reid Spencera773bd52006-08-04 18:18:08 +000016634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016635fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016636{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16637echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016638if test $ac_cv_struct_tm = sys/time.h; then
16639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016640cat >>confdefs.h <<\_ACEOF
16641#define TM_IN_SYS_TIME 1
16642_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016643
16644fi
16645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016646{ echo "$as_me:$LINENO: checking for int64_t" >&5
16647echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16648if test "${ac_cv_type_int64_t+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16650else
16651 cat >conftest.$ac_ext <<_ACEOF
16652/* confdefs.h. */
16653_ACEOF
16654cat confdefs.h >>conftest.$ac_ext
16655cat >>conftest.$ac_ext <<_ACEOF
16656/* end confdefs.h. */
16657$ac_includes_default
16658typedef int64_t ac__type_new_;
16659int
16660main ()
16661{
16662if ((ac__type_new_ *) 0)
16663 return 0;
16664if (sizeof (ac__type_new_))
16665 return 0;
16666 ;
16667 return 0;
16668}
16669_ACEOF
16670rm -f conftest.$ac_objext
16671if { (ac_try="$ac_compile"
16672case "(($ac_try" in
16673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674 *) ac_try_echo=$ac_try;;
16675esac
16676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677 (eval "$ac_compile") 2>conftest.er1
16678 ac_status=$?
16679 grep -v '^ *+' conftest.er1 >conftest.err
16680 rm -f conftest.er1
16681 cat conftest.err >&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } &&
16684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16685 { (case "(($ac_try" in
16686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687 *) ac_try_echo=$ac_try;;
16688esac
16689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690 (eval "$ac_try") 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; } &&
16694 { ac_try='test -s conftest.$ac_objext'
16695 { (case "(($ac_try" in
16696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697 *) ac_try_echo=$ac_try;;
16698esac
16699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700 (eval "$ac_try") 2>&5
16701 ac_status=$?
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; }; then
16704 ac_cv_type_int64_t=yes
16705else
16706 echo "$as_me: failed program was:" >&5
16707sed 's/^/| /' conftest.$ac_ext >&5
16708
16709 ac_cv_type_int64_t=no
16710fi
16711
16712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16713fi
16714{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16715echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16716if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016717
16718cat >>confdefs.h <<_ACEOF
16719#define HAVE_INT64_T 1
16720_ACEOF
16721
16722
16723else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016724 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16725echo "$as_me: error: Type int64_t required but not found" >&2;}
16726 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016727fi
16728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016729{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16730echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16731if test "${ac_cv_type_uint64_t+set}" = set; then
16732 echo $ECHO_N "(cached) $ECHO_C" >&6
16733else
16734 cat >conftest.$ac_ext <<_ACEOF
16735/* confdefs.h. */
16736_ACEOF
16737cat confdefs.h >>conftest.$ac_ext
16738cat >>conftest.$ac_ext <<_ACEOF
16739/* end confdefs.h. */
16740$ac_includes_default
16741typedef uint64_t ac__type_new_;
16742int
16743main ()
16744{
16745if ((ac__type_new_ *) 0)
16746 return 0;
16747if (sizeof (ac__type_new_))
16748 return 0;
16749 ;
16750 return 0;
16751}
16752_ACEOF
16753rm -f conftest.$ac_objext
16754if { (ac_try="$ac_compile"
16755case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16758esac
16759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_compile") 2>conftest.er1
16761 ac_status=$?
16762 grep -v '^ *+' conftest.er1 >conftest.err
16763 rm -f conftest.er1
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
16767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16768 { (case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16771esac
16772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_try") 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest.$ac_objext'
16778 { (case "(($ac_try" in
16779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780 *) ac_try_echo=$ac_try;;
16781esac
16782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16783 (eval "$ac_try") 2>&5
16784 ac_status=$?
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; }; then
16787 ac_cv_type_uint64_t=yes
16788else
16789 echo "$as_me: failed program was:" >&5
16790sed 's/^/| /' conftest.$ac_ext >&5
16791
16792 ac_cv_type_uint64_t=no
16793fi
16794
16795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16796fi
16797{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16798echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16799if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016800
16801cat >>confdefs.h <<_ACEOF
16802#define HAVE_UINT64_T 1
16803_ACEOF
16804
16805
16806else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016807 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16808echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16809if test "${ac_cv_type_u_int64_t+set}" = set; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
16811else
16812 cat >conftest.$ac_ext <<_ACEOF
16813/* confdefs.h. */
16814_ACEOF
16815cat confdefs.h >>conftest.$ac_ext
16816cat >>conftest.$ac_ext <<_ACEOF
16817/* end confdefs.h. */
16818$ac_includes_default
16819typedef u_int64_t ac__type_new_;
16820int
16821main ()
16822{
16823if ((ac__type_new_ *) 0)
16824 return 0;
16825if (sizeof (ac__type_new_))
16826 return 0;
16827 ;
16828 return 0;
16829}
16830_ACEOF
16831rm -f conftest.$ac_objext
16832if { (ac_try="$ac_compile"
16833case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16836esac
16837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_compile") 2>conftest.er1
16839 ac_status=$?
16840 grep -v '^ *+' conftest.er1 >conftest.err
16841 rm -f conftest.er1
16842 cat conftest.err >&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } &&
16845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16846 { (case "(($ac_try" in
16847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848 *) ac_try_echo=$ac_try;;
16849esac
16850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851 (eval "$ac_try") 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; } &&
16855 { ac_try='test -s conftest.$ac_objext'
16856 { (case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16859esac
16860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_try") 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; }; then
16865 ac_cv_type_u_int64_t=yes
16866else
16867 echo "$as_me: failed program was:" >&5
16868sed 's/^/| /' conftest.$ac_ext >&5
16869
16870 ac_cv_type_u_int64_t=no
16871fi
16872
16873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874fi
16875{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16876echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16877if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016878
16879cat >>confdefs.h <<_ACEOF
16880#define HAVE_U_INT64_T 1
16881_ACEOF
16882
16883
Misha Brukmanceca9042004-09-02 23:02:30 +000016884else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016885 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16886echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16887 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016888fi
16889
John Criswell679ff312004-09-02 18:44:44 +000016890fi
16891
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016892
16893
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016894
16895
16896
16897
16898
16899
16900
Reid Spencerdf3be822006-01-23 08:15:53 +000016901for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016902do
16903as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16904{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16905echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16906if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16908else
16909 cat >conftest.$ac_ext <<_ACEOF
16910/* confdefs.h. */
16911_ACEOF
16912cat confdefs.h >>conftest.$ac_ext
16913cat >>conftest.$ac_ext <<_ACEOF
16914/* end confdefs.h. */
16915/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16917#define $ac_func innocuous_$ac_func
16918
16919/* System header to define __stub macros and hopefully few prototypes,
16920 which can conflict with char $ac_func (); below.
16921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16922 <limits.h> exists even on freestanding compilers. */
16923
16924#ifdef __STDC__
16925# include <limits.h>
16926#else
16927# include <assert.h>
16928#endif
16929
16930#undef $ac_func
16931
16932/* Override any GCC internal prototype to avoid an error.
16933 Use char because int might match the return type of a GCC
16934 builtin and then its argument prototype would still apply. */
16935#ifdef __cplusplus
16936extern "C"
16937#endif
16938char $ac_func ();
16939/* The GNU C library defines this for functions which it implements
16940 to always fail with ENOSYS. Some functions are actually named
16941 something starting with __ and the normal name is an alias. */
16942#if defined __stub_$ac_func || defined __stub___$ac_func
16943choke me
16944#endif
16945
16946int
16947main ()
16948{
16949return $ac_func ();
16950 ;
16951 return 0;
16952}
16953_ACEOF
16954rm -f conftest.$ac_objext conftest$ac_exeext
16955if { (ac_try="$ac_link"
16956case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16959esac
16960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_link") 2>conftest.er1
16962 ac_status=$?
16963 grep -v '^ *+' conftest.er1 >conftest.err
16964 rm -f conftest.er1
16965 cat conftest.err >&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } &&
16968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16969 { (case "(($ac_try" in
16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971 *) ac_try_echo=$ac_try;;
16972esac
16973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_try") 2>&5
16975 ac_status=$?
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; } &&
16978 { ac_try='test -s conftest$ac_exeext'
16979 { (case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16982esac
16983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984 (eval "$ac_try") 2>&5
16985 ac_status=$?
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; }; then
16988 eval "$as_ac_var=yes"
16989else
16990 echo "$as_me: failed program was:" >&5
16991sed 's/^/| /' conftest.$ac_ext >&5
16992
16993 eval "$as_ac_var=no"
16994fi
16995
16996rm -f core conftest.err conftest.$ac_objext \
16997 conftest$ac_exeext conftest.$ac_ext
16998fi
16999ac_res=`eval echo '${'$as_ac_var'}'`
17000 { echo "$as_me:$LINENO: result: $ac_res" >&5
17001echo "${ECHO_T}$ac_res" >&6; }
17002if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017003 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017005_ACEOF
17006
17007fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017008done
John Criswell7a73b802003-06-30 21:59:07 +000017009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017010
17011
17012
17013
Reid Spencer96cf5872007-07-13 10:05:30 +000017014for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017015do
17016as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17017{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17018echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17019if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17021else
17022 cat >conftest.$ac_ext <<_ACEOF
17023/* confdefs.h. */
17024_ACEOF
17025cat confdefs.h >>conftest.$ac_ext
17026cat >>conftest.$ac_ext <<_ACEOF
17027/* end confdefs.h. */
17028/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17030#define $ac_func innocuous_$ac_func
17031
17032/* System header to define __stub macros and hopefully few prototypes,
17033 which can conflict with char $ac_func (); below.
17034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17035 <limits.h> exists even on freestanding compilers. */
17036
17037#ifdef __STDC__
17038# include <limits.h>
17039#else
17040# include <assert.h>
17041#endif
17042
17043#undef $ac_func
17044
17045/* Override any GCC internal prototype to avoid an error.
17046 Use char because int might match the return type of a GCC
17047 builtin and then its argument prototype would still apply. */
17048#ifdef __cplusplus
17049extern "C"
17050#endif
17051char $ac_func ();
17052/* The GNU C library defines this for functions which it implements
17053 to always fail with ENOSYS. Some functions are actually named
17054 something starting with __ and the normal name is an alias. */
17055#if defined __stub_$ac_func || defined __stub___$ac_func
17056choke me
17057#endif
17058
17059int
17060main ()
17061{
17062return $ac_func ();
17063 ;
17064 return 0;
17065}
17066_ACEOF
17067rm -f conftest.$ac_objext conftest$ac_exeext
17068if { (ac_try="$ac_link"
17069case "(($ac_try" in
17070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071 *) ac_try_echo=$ac_try;;
17072esac
17073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074 (eval "$ac_link") 2>conftest.er1
17075 ac_status=$?
17076 grep -v '^ *+' conftest.er1 >conftest.err
17077 rm -f conftest.er1
17078 cat conftest.err >&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } &&
17081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17082 { (case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17085esac
17086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087 (eval "$ac_try") 2>&5
17088 ac_status=$?
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } &&
17091 { ac_try='test -s conftest$ac_exeext'
17092 { (case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095esac
17096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_try") 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; }; then
17101 eval "$as_ac_var=yes"
17102else
17103 echo "$as_me: failed program was:" >&5
17104sed 's/^/| /' conftest.$ac_ext >&5
17105
17106 eval "$as_ac_var=no"
17107fi
17108
17109rm -f core conftest.err conftest.$ac_objext \
17110 conftest$ac_exeext conftest.$ac_ext
17111fi
17112ac_res=`eval echo '${'$as_ac_var'}'`
17113 { echo "$as_me:$LINENO: result: $ac_res" >&5
17114echo "${ECHO_T}$ac_res" >&6; }
17115if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017116 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017118_ACEOF
17119
17120fi
17121done
17122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017123
17124
17125
17126
17127
Reid Spencerb90645c2007-02-16 19:17:20 +000017128for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017129do
17130as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17131{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17132echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17133if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17135else
17136 cat >conftest.$ac_ext <<_ACEOF
17137/* confdefs.h. */
17138_ACEOF
17139cat confdefs.h >>conftest.$ac_ext
17140cat >>conftest.$ac_ext <<_ACEOF
17141/* end confdefs.h. */
17142/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17144#define $ac_func innocuous_$ac_func
17145
17146/* System header to define __stub macros and hopefully few prototypes,
17147 which can conflict with char $ac_func (); below.
17148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17149 <limits.h> exists even on freestanding compilers. */
17150
17151#ifdef __STDC__
17152# include <limits.h>
17153#else
17154# include <assert.h>
17155#endif
17156
17157#undef $ac_func
17158
17159/* Override any GCC internal prototype to avoid an error.
17160 Use char because int might match the return type of a GCC
17161 builtin and then its argument prototype would still apply. */
17162#ifdef __cplusplus
17163extern "C"
17164#endif
17165char $ac_func ();
17166/* The GNU C library defines this for functions which it implements
17167 to always fail with ENOSYS. Some functions are actually named
17168 something starting with __ and the normal name is an alias. */
17169#if defined __stub_$ac_func || defined __stub___$ac_func
17170choke me
17171#endif
17172
17173int
17174main ()
17175{
17176return $ac_func ();
17177 ;
17178 return 0;
17179}
17180_ACEOF
17181rm -f conftest.$ac_objext conftest$ac_exeext
17182if { (ac_try="$ac_link"
17183case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186esac
17187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_link") 2>conftest.er1
17189 ac_status=$?
17190 grep -v '^ *+' conftest.er1 >conftest.err
17191 rm -f conftest.er1
17192 cat conftest.err >&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } &&
17195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17196 { (case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17199esac
17200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_try") 2>&5
17202 ac_status=$?
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; } &&
17205 { ac_try='test -s conftest$ac_exeext'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17209esac
17210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 eval "$as_ac_var=yes"
17216else
17217 echo "$as_me: failed program was:" >&5
17218sed 's/^/| /' conftest.$ac_ext >&5
17219
17220 eval "$as_ac_var=no"
17221fi
17222
17223rm -f core conftest.err conftest.$ac_objext \
17224 conftest$ac_exeext conftest.$ac_ext
17225fi
17226ac_res=`eval echo '${'$as_ac_var'}'`
17227 { echo "$as_me:$LINENO: result: $ac_res" >&5
17228echo "${ECHO_T}$ac_res" >&6; }
17229if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017230 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017232_ACEOF
17233
17234fi
17235done
17236
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017237
17238
17239
Reid Spencerb90645c2007-02-16 19:17:20 +000017240for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017241do
17242as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17243{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17244echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17245if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17247else
17248 cat >conftest.$ac_ext <<_ACEOF
17249/* confdefs.h. */
17250_ACEOF
17251cat confdefs.h >>conftest.$ac_ext
17252cat >>conftest.$ac_ext <<_ACEOF
17253/* end confdefs.h. */
17254/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17256#define $ac_func innocuous_$ac_func
17257
17258/* System header to define __stub macros and hopefully few prototypes,
17259 which can conflict with char $ac_func (); below.
17260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17261 <limits.h> exists even on freestanding compilers. */
17262
17263#ifdef __STDC__
17264# include <limits.h>
17265#else
17266# include <assert.h>
17267#endif
17268
17269#undef $ac_func
17270
17271/* Override any GCC internal prototype to avoid an error.
17272 Use char because int might match the return type of a GCC
17273 builtin and then its argument prototype would still apply. */
17274#ifdef __cplusplus
17275extern "C"
17276#endif
17277char $ac_func ();
17278/* The GNU C library defines this for functions which it implements
17279 to always fail with ENOSYS. Some functions are actually named
17280 something starting with __ and the normal name is an alias. */
17281#if defined __stub_$ac_func || defined __stub___$ac_func
17282choke me
17283#endif
17284
17285int
17286main ()
17287{
17288return $ac_func ();
17289 ;
17290 return 0;
17291}
17292_ACEOF
17293rm -f conftest.$ac_objext conftest$ac_exeext
17294if { (ac_try="$ac_link"
17295case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17298esac
17299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_link") 2>conftest.er1
17301 ac_status=$?
17302 grep -v '^ *+' conftest.er1 >conftest.err
17303 rm -f conftest.er1
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } &&
17307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17308 { (case "(($ac_try" in
17309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310 *) ac_try_echo=$ac_try;;
17311esac
17312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313 (eval "$ac_try") 2>&5
17314 ac_status=$?
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; } &&
17317 { ac_try='test -s conftest$ac_exeext'
17318 { (case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17321esac
17322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_try") 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 eval "$as_ac_var=yes"
17328else
17329 echo "$as_me: failed program was:" >&5
17330sed 's/^/| /' conftest.$ac_ext >&5
17331
17332 eval "$as_ac_var=no"
17333fi
17334
17335rm -f core conftest.err conftest.$ac_objext \
17336 conftest$ac_exeext conftest.$ac_ext
17337fi
17338ac_res=`eval echo '${'$as_ac_var'}'`
17339 { echo "$as_me:$LINENO: result: $ac_res" >&5
17340echo "${ECHO_T}$ac_res" >&6; }
17341if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017342 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017344_ACEOF
17345
17346fi
17347done
17348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017349
17350
17351
17352
17353
Eric Christophere4291822010-04-16 05:14:21 +000017354
Benjamin Kramer5745fbc2011-11-22 12:31:53 +000017355
17356for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017357do
17358as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17359{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17360echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17361if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17363else
17364 cat >conftest.$ac_ext <<_ACEOF
17365/* confdefs.h. */
17366_ACEOF
17367cat confdefs.h >>conftest.$ac_ext
17368cat >>conftest.$ac_ext <<_ACEOF
17369/* end confdefs.h. */
17370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17372#define $ac_func innocuous_$ac_func
17373
17374/* System header to define __stub macros and hopefully few prototypes,
17375 which can conflict with char $ac_func (); below.
17376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17377 <limits.h> exists even on freestanding compilers. */
17378
17379#ifdef __STDC__
17380# include <limits.h>
17381#else
17382# include <assert.h>
17383#endif
17384
17385#undef $ac_func
17386
17387/* Override any GCC internal prototype to avoid an error.
17388 Use char because int might match the return type of a GCC
17389 builtin and then its argument prototype would still apply. */
17390#ifdef __cplusplus
17391extern "C"
17392#endif
17393char $ac_func ();
17394/* The GNU C library defines this for functions which it implements
17395 to always fail with ENOSYS. Some functions are actually named
17396 something starting with __ and the normal name is an alias. */
17397#if defined __stub_$ac_func || defined __stub___$ac_func
17398choke me
17399#endif
17400
17401int
17402main ()
17403{
17404return $ac_func ();
17405 ;
17406 return 0;
17407}
17408_ACEOF
17409rm -f conftest.$ac_objext conftest$ac_exeext
17410if { (ac_try="$ac_link"
17411case "(($ac_try" in
17412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413 *) ac_try_echo=$ac_try;;
17414esac
17415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416 (eval "$ac_link") 2>conftest.er1
17417 ac_status=$?
17418 grep -v '^ *+' conftest.er1 >conftest.err
17419 rm -f conftest.er1
17420 cat conftest.err >&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } &&
17423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17424 { (case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17427esac
17428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_try") 2>&5
17430 ac_status=$?
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; } &&
17433 { ac_try='test -s conftest$ac_exeext'
17434 { (case "(($ac_try" in
17435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436 *) ac_try_echo=$ac_try;;
17437esac
17438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_try") 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; }; then
17443 eval "$as_ac_var=yes"
17444else
17445 echo "$as_me: failed program was:" >&5
17446sed 's/^/| /' conftest.$ac_ext >&5
17447
17448 eval "$as_ac_var=no"
17449fi
17450
17451rm -f core conftest.err conftest.$ac_objext \
17452 conftest$ac_exeext conftest.$ac_ext
17453fi
17454ac_res=`eval echo '${'$as_ac_var'}'`
17455 { echo "$as_me:$LINENO: result: $ac_res" >&5
17456echo "${ECHO_T}$ac_res" >&6; }
17457if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017458 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017460_ACEOF
17461
17462fi
17463done
Reid Spencerdf3be822006-01-23 08:15:53 +000017464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017465
17466
17467
Daniel Dunbare0b0e7b2012-05-05 16:36:16 +000017468
17469for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017470do
17471as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17472{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17473echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17474if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17475 echo $ECHO_N "(cached) $ECHO_C" >&6
17476else
17477 cat >conftest.$ac_ext <<_ACEOF
17478/* confdefs.h. */
17479_ACEOF
17480cat confdefs.h >>conftest.$ac_ext
17481cat >>conftest.$ac_ext <<_ACEOF
17482/* end confdefs.h. */
17483/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17485#define $ac_func innocuous_$ac_func
17486
17487/* System header to define __stub macros and hopefully few prototypes,
17488 which can conflict with char $ac_func (); below.
17489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17490 <limits.h> exists even on freestanding compilers. */
17491
17492#ifdef __STDC__
17493# include <limits.h>
17494#else
17495# include <assert.h>
17496#endif
17497
17498#undef $ac_func
17499
17500/* Override any GCC internal prototype to avoid an error.
17501 Use char because int might match the return type of a GCC
17502 builtin and then its argument prototype would still apply. */
17503#ifdef __cplusplus
17504extern "C"
17505#endif
17506char $ac_func ();
17507/* The GNU C library defines this for functions which it implements
17508 to always fail with ENOSYS. Some functions are actually named
17509 something starting with __ and the normal name is an alias. */
17510#if defined __stub_$ac_func || defined __stub___$ac_func
17511choke me
17512#endif
17513
17514int
17515main ()
17516{
17517return $ac_func ();
17518 ;
17519 return 0;
17520}
17521_ACEOF
17522rm -f conftest.$ac_objext conftest$ac_exeext
17523if { (ac_try="$ac_link"
17524case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17527esac
17528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_link") 2>conftest.er1
17530 ac_status=$?
17531 grep -v '^ *+' conftest.er1 >conftest.err
17532 rm -f conftest.er1
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17537 { (case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17540esac
17541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_try") 2>&5
17543 ac_status=$?
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; } &&
17546 { ac_try='test -s conftest$ac_exeext'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550esac
17551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556 eval "$as_ac_var=yes"
17557else
17558 echo "$as_me: failed program was:" >&5
17559sed 's/^/| /' conftest.$ac_ext >&5
17560
17561 eval "$as_ac_var=no"
17562fi
17563
17564rm -f core conftest.err conftest.$ac_objext \
17565 conftest$ac_exeext conftest.$ac_ext
17566fi
17567ac_res=`eval echo '${'$as_ac_var'}'`
17568 { echo "$as_me:$LINENO: result: $ac_res" >&5
17569echo "${ECHO_T}$ac_res" >&6; }
17570if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017571 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017572#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017573_ACEOF
17574
17575fi
17576done
17577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017578
17579
17580
17581
Chris Lattner511f11d2005-11-14 07:25:50 +000017582for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017583do
17584as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17585{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17586echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17587if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17589else
17590 cat >conftest.$ac_ext <<_ACEOF
17591/* confdefs.h. */
17592_ACEOF
17593cat confdefs.h >>conftest.$ac_ext
17594cat >>conftest.$ac_ext <<_ACEOF
17595/* end confdefs.h. */
17596/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17598#define $ac_func innocuous_$ac_func
17599
17600/* System header to define __stub macros and hopefully few prototypes,
17601 which can conflict with char $ac_func (); below.
17602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17603 <limits.h> exists even on freestanding compilers. */
17604
17605#ifdef __STDC__
17606# include <limits.h>
17607#else
17608# include <assert.h>
17609#endif
17610
17611#undef $ac_func
17612
17613/* Override any GCC internal prototype to avoid an error.
17614 Use char because int might match the return type of a GCC
17615 builtin and then its argument prototype would still apply. */
17616#ifdef __cplusplus
17617extern "C"
17618#endif
17619char $ac_func ();
17620/* The GNU C library defines this for functions which it implements
17621 to always fail with ENOSYS. Some functions are actually named
17622 something starting with __ and the normal name is an alias. */
17623#if defined __stub_$ac_func || defined __stub___$ac_func
17624choke me
17625#endif
17626
17627int
17628main ()
17629{
17630return $ac_func ();
17631 ;
17632 return 0;
17633}
17634_ACEOF
17635rm -f conftest.$ac_objext conftest$ac_exeext
17636if { (ac_try="$ac_link"
17637case "(($ac_try" in
17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639 *) ac_try_echo=$ac_try;;
17640esac
17641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642 (eval "$ac_link") 2>conftest.er1
17643 ac_status=$?
17644 grep -v '^ *+' conftest.er1 >conftest.err
17645 rm -f conftest.er1
17646 cat conftest.err >&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } &&
17649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17650 { (case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17653esac
17654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_try") 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try='test -s conftest$ac_exeext'
17660 { (case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17663esac
17664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_try") 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; }; then
17669 eval "$as_ac_var=yes"
17670else
17671 echo "$as_me: failed program was:" >&5
17672sed 's/^/| /' conftest.$ac_ext >&5
17673
17674 eval "$as_ac_var=no"
17675fi
17676
17677rm -f core conftest.err conftest.$ac_objext \
17678 conftest$ac_exeext conftest.$ac_ext
17679fi
17680ac_res=`eval echo '${'$as_ac_var'}'`
17681 { echo "$as_me:$LINENO: result: $ac_res" >&5
17682echo "${ECHO_T}$ac_res" >&6; }
17683if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017684 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017685#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017686_ACEOF
17687
17688fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017689done
John Criswell7a73b802003-06-30 21:59:07 +000017690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017691
17692
17693
17694
Daniel Dunbar3e462932011-02-03 02:40:02 +000017695
17696for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017697do
17698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17699{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17701if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17703else
17704 cat >conftest.$ac_ext <<_ACEOF
17705/* confdefs.h. */
17706_ACEOF
17707cat confdefs.h >>conftest.$ac_ext
17708cat >>conftest.$ac_ext <<_ACEOF
17709/* end confdefs.h. */
17710/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17712#define $ac_func innocuous_$ac_func
17713
17714/* System header to define __stub macros and hopefully few prototypes,
17715 which can conflict with char $ac_func (); below.
17716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17717 <limits.h> exists even on freestanding compilers. */
17718
17719#ifdef __STDC__
17720# include <limits.h>
17721#else
17722# include <assert.h>
17723#endif
17724
17725#undef $ac_func
17726
17727/* Override any GCC internal prototype to avoid an error.
17728 Use char because int might match the return type of a GCC
17729 builtin and then its argument prototype would still apply. */
17730#ifdef __cplusplus
17731extern "C"
17732#endif
17733char $ac_func ();
17734/* The GNU C library defines this for functions which it implements
17735 to always fail with ENOSYS. Some functions are actually named
17736 something starting with __ and the normal name is an alias. */
17737#if defined __stub_$ac_func || defined __stub___$ac_func
17738choke me
17739#endif
17740
17741int
17742main ()
17743{
17744return $ac_func ();
17745 ;
17746 return 0;
17747}
17748_ACEOF
17749rm -f conftest.$ac_objext conftest$ac_exeext
17750if { (ac_try="$ac_link"
17751case "(($ac_try" in
17752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753 *) ac_try_echo=$ac_try;;
17754esac
17755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756 (eval "$ac_link") 2>conftest.er1
17757 ac_status=$?
17758 grep -v '^ *+' conftest.er1 >conftest.err
17759 rm -f conftest.er1
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17764 { (case "(($ac_try" in
17765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17767esac
17768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17769 (eval "$ac_try") 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; } &&
17773 { ac_try='test -s conftest$ac_exeext'
17774 { (case "(($ac_try" in
17775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776 *) ac_try_echo=$ac_try;;
17777esac
17778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779 (eval "$ac_try") 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 eval "$as_ac_var=yes"
17784else
17785 echo "$as_me: failed program was:" >&5
17786sed 's/^/| /' conftest.$ac_ext >&5
17787
17788 eval "$as_ac_var=no"
17789fi
17790
17791rm -f core conftest.err conftest.$ac_objext \
17792 conftest$ac_exeext conftest.$ac_ext
17793fi
17794ac_res=`eval echo '${'$as_ac_var'}'`
17795 { echo "$as_me:$LINENO: result: $ac_res" >&5
17796echo "${ECHO_T}$ac_res" >&6; }
17797if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017798 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017799#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017800_ACEOF
17801
17802fi
17803done
17804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017805{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17806echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17807if test "${llvm_cv_c_printf_a+set}" = set; then
17808 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017809else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017810 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017811ac_cpp='$CPP $CPPFLAGS'
17812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17814ac_compiler_gnu=$ac_cv_c_compiler_gnu
17815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017816 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017817 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017818else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017819 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017820
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017821 /* confdefs.h. */
17822_ACEOF
17823cat confdefs.h >>conftest.$ac_ext
17824cat >>conftest.$ac_ext <<_ACEOF
17825/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017826
John Criswella0137d32003-10-13 16:22:01 +000017827#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017828#include <stdlib.h>
17829
John Criswella0137d32003-10-13 16:22:01 +000017830int
17831main ()
17832{
17833
Reid Spencer2706f8c2004-09-19 23:53:36 +000017834volatile double A, B;
17835char Buffer[100];
17836A = 1;
17837A /= 10.0;
17838sprintf(Buffer, "%a", A);
17839B = atof(Buffer);
17840if (A != B)
17841 return (1);
17842if (A != 0x1.999999999999ap-4)
17843 return (1);
17844return (0);
John Criswella0137d32003-10-13 16:22:01 +000017845 ;
17846 return 0;
17847}
17848_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017849rm -f conftest$ac_exeext
17850if { (ac_try="$ac_link"
17851case "(($ac_try" in
17852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17854esac
17855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_link") 2>&5
17857 ac_status=$?
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17860 { (case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17863esac
17864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_try") 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017869 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017870else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017871 echo "$as_me: program exited with status $ac_status" >&5
17872echo "$as_me: failed program was:" >&5
17873sed 's/^/| /' conftest.$ac_ext >&5
17874
17875( exit $ac_status )
17876llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017877fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017878rm -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 +000017879fi
Reid Spencera773bd52006-08-04 18:18:08 +000017880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017881
Reid Spencer2706f8c2004-09-19 23:53:36 +000017882 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017883ac_cpp='$CPP $CPPFLAGS'
17884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17886ac_compiler_gnu=$ac_cv_c_compiler_gnu
17887
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017888fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017889{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17890echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017891 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017893cat >>confdefs.h <<\_ACEOF
17894#define HAVE_PRINTF_A 1
17895_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017896
Reid Spencer2706f8c2004-09-19 23:53:36 +000017897 fi
John Criswella0137d32003-10-13 16:22:01 +000017898
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017900{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17901echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17902if test "${ac_cv_func_rand48+set}" = set; then
17903 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017904else
Reid Spencera773bd52006-08-04 18:18:08 +000017905 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017906ac_cpp='$CXXCPP $CPPFLAGS'
17907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017911 cat >conftest.$ac_ext <<_ACEOF
17912/* confdefs.h. */
17913_ACEOF
17914cat confdefs.h >>conftest.$ac_ext
17915cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017916/* end confdefs.h. */
17917#include <stdlib.h>
17918int
17919main ()
17920{
17921srand48(0);lrand48();drand48();
17922 ;
17923 return 0;
17924}
17925_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017926rm -f conftest.$ac_objext
17927if { (ac_try="$ac_compile"
17928case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17931esac
17932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_compile") 2>conftest.er1
17934 ac_status=$?
17935 grep -v '^ *+' conftest.er1 >conftest.err
17936 rm -f conftest.er1
17937 cat conftest.err >&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } &&
17940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17941 { (case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17944esac
17945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_try") 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest.$ac_objext'
17951 { (case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17954esac
17955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_try") 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017960 ac_cv_func_rand48=yes
17961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017962 echo "$as_me: failed program was:" >&5
17963sed 's/^/| /' conftest.$ac_ext >&5
17964
17965 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017967
Reid Spencera773bd52006-08-04 18:18:08 +000017968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017969 ac_ext=c
17970ac_cpp='$CPP $CPPFLAGS'
17971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17973ac_compiler_gnu=$ac_cv_c_compiler_gnu
17974
17975fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017976{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17977echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017978
17979if test "$ac_cv_func_rand48" = "yes" ; then
17980
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017981cat >>confdefs.h <<\_ACEOF
17982#define HAVE_RAND48 1
17983_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017984
17985fi
John Criswell0021c312004-02-13 21:57:29 +000017986
17987
NAKAMURA Takumie29b0ac2011-02-09 04:18:48 +000017988{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17989echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17990if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
17992else
17993 cat >conftest.$ac_ext <<_ACEOF
17994/* confdefs.h. */
17995_ACEOF
17996cat confdefs.h >>conftest.$ac_ext
17997cat >>conftest.$ac_ext <<_ACEOF
17998/* end confdefs.h. */
17999$ac_includes_default
18000int
18001main ()
18002{
18003#ifndef strerror_s
18004 char *p = (char *) strerror_s;
18005 return !p;
18006#endif
18007
18008 ;
18009 return 0;
18010}
18011_ACEOF
18012rm -f conftest.$ac_objext
18013if { (ac_try="$ac_compile"
18014case "(($ac_try" in
18015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016 *) ac_try_echo=$ac_try;;
18017esac
18018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019 (eval "$ac_compile") 2>conftest.er1
18020 ac_status=$?
18021 grep -v '^ *+' conftest.er1 >conftest.err
18022 rm -f conftest.er1
18023 cat conftest.err >&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } &&
18026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18027 { (case "(($ac_try" in
18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18030esac
18031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_try") 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; } &&
18036 { ac_try='test -s conftest.$ac_objext'
18037 { (case "(($ac_try" in
18038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039 *) ac_try_echo=$ac_try;;
18040esac
18041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042 (eval "$ac_try") 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; }; then
18046 ac_cv_have_decl_strerror_s=yes
18047else
18048 echo "$as_me: failed program was:" >&5
18049sed 's/^/| /' conftest.$ac_ext >&5
18050
18051 ac_cv_have_decl_strerror_s=no
18052fi
18053
18054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18055fi
18056{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18057echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18058if test $ac_cv_have_decl_strerror_s = yes; then
18059
18060cat >>confdefs.h <<_ACEOF
18061#define HAVE_DECL_STRERROR_S 1
18062_ACEOF
18063
18064
18065else
18066 cat >>confdefs.h <<_ACEOF
18067#define HAVE_DECL_STRERROR_S 0
18068_ACEOF
18069
18070
18071fi
18072
18073
18074
NAKAMURA Takumi1f6832a2011-02-05 15:11:53 +000018075if test "$llvm_cv_os_type" = "MingW" ; then
18076 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18077echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18078if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
18080else
18081 ac_check_lib_save_LIBS=$LIBS
18082LIBS="-lgcc $LIBS"
18083cat >conftest.$ac_ext <<_ACEOF
18084/* confdefs.h. */
18085_ACEOF
18086cat confdefs.h >>conftest.$ac_ext
18087cat >>conftest.$ac_ext <<_ACEOF
18088/* end confdefs.h. */
18089
18090/* Override any GCC internal prototype to avoid an error.
18091 Use char because int might match the return type of a GCC
18092 builtin and then its argument prototype would still apply. */
18093#ifdef __cplusplus
18094extern "C"
18095#endif
18096char _alloca ();
18097int
18098main ()
18099{
18100return _alloca ();
18101 ;
18102 return 0;
18103}
18104_ACEOF
18105rm -f conftest.$ac_objext conftest$ac_exeext
18106if { (ac_try="$ac_link"
18107case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18110esac
18111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_link") 2>conftest.er1
18113 ac_status=$?
18114 grep -v '^ *+' conftest.er1 >conftest.err
18115 rm -f conftest.er1
18116 cat conftest.err >&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
18119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18120 { (case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18123esac
18124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_try") 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest$ac_exeext'
18130 { (case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18133esac
18134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_try") 2>&5
18136 ac_status=$?
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; }; then
18139 ac_cv_lib_gcc__alloca=yes
18140else
18141 echo "$as_me: failed program was:" >&5
18142sed 's/^/| /' conftest.$ac_ext >&5
18143
18144 ac_cv_lib_gcc__alloca=no
18145fi
18146
18147rm -f core conftest.err conftest.$ac_objext \
18148 conftest$ac_exeext conftest.$ac_ext
18149LIBS=$ac_check_lib_save_LIBS
18150fi
18151{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18152echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18153if test $ac_cv_lib_gcc__alloca = yes; then
18154
18155cat >>confdefs.h <<\_ACEOF
18156#define HAVE__ALLOCA 1
18157_ACEOF
18158
18159fi
18160
18161 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18162echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18163if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18165else
18166 ac_check_lib_save_LIBS=$LIBS
18167LIBS="-lgcc $LIBS"
18168cat >conftest.$ac_ext <<_ACEOF
18169/* confdefs.h. */
18170_ACEOF
18171cat confdefs.h >>conftest.$ac_ext
18172cat >>conftest.$ac_ext <<_ACEOF
18173/* end confdefs.h. */
18174
18175/* Override any GCC internal prototype to avoid an error.
18176 Use char because int might match the return type of a GCC
18177 builtin and then its argument prototype would still apply. */
18178#ifdef __cplusplus
18179extern "C"
18180#endif
18181char __alloca ();
18182int
18183main ()
18184{
18185return __alloca ();
18186 ;
18187 return 0;
18188}
18189_ACEOF
18190rm -f conftest.$ac_objext conftest$ac_exeext
18191if { (ac_try="$ac_link"
18192case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18195esac
18196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_link") 2>conftest.er1
18198 ac_status=$?
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
18204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18205 { (case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18208esac
18209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_try") 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; } &&
18214 { ac_try='test -s conftest$ac_exeext'
18215 { (case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18218esac
18219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_try") 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_cv_lib_gcc___alloca=yes
18225else
18226 echo "$as_me: failed program was:" >&5
18227sed 's/^/| /' conftest.$ac_ext >&5
18228
18229 ac_cv_lib_gcc___alloca=no
18230fi
18231
18232rm -f core conftest.err conftest.$ac_objext \
18233 conftest$ac_exeext conftest.$ac_ext
18234LIBS=$ac_check_lib_save_LIBS
18235fi
18236{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18237echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18238if test $ac_cv_lib_gcc___alloca = yes; then
18239
18240cat >>confdefs.h <<\_ACEOF
18241#define HAVE___ALLOCA 1
18242_ACEOF
18243
18244fi
18245
18246 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18247echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18248if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18250else
18251 ac_check_lib_save_LIBS=$LIBS
18252LIBS="-lgcc $LIBS"
18253cat >conftest.$ac_ext <<_ACEOF
18254/* confdefs.h. */
18255_ACEOF
18256cat confdefs.h >>conftest.$ac_ext
18257cat >>conftest.$ac_ext <<_ACEOF
18258/* end confdefs.h. */
18259
18260/* Override any GCC internal prototype to avoid an error.
18261 Use char because int might match the return type of a GCC
18262 builtin and then its argument prototype would still apply. */
18263#ifdef __cplusplus
18264extern "C"
18265#endif
18266char __chkstk ();
18267int
18268main ()
18269{
18270return __chkstk ();
18271 ;
18272 return 0;
18273}
18274_ACEOF
18275rm -f conftest.$ac_objext conftest$ac_exeext
18276if { (ac_try="$ac_link"
18277case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18280esac
18281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_link") 2>conftest.er1
18283 ac_status=$?
18284 grep -v '^ *+' conftest.er1 >conftest.err
18285 rm -f conftest.er1
18286 cat conftest.err >&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } &&
18289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18290 { (case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18293esac
18294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_try") 2>&5
18296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; } &&
18299 { ac_try='test -s conftest$ac_exeext'
18300 { (case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18303esac
18304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_try") 2>&5
18306 ac_status=$?
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; }; then
18309 ac_cv_lib_gcc___chkstk=yes
18310else
18311 echo "$as_me: failed program was:" >&5
18312sed 's/^/| /' conftest.$ac_ext >&5
18313
18314 ac_cv_lib_gcc___chkstk=no
18315fi
18316
18317rm -f core conftest.err conftest.$ac_objext \
18318 conftest$ac_exeext conftest.$ac_ext
18319LIBS=$ac_check_lib_save_LIBS
18320fi
18321{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18322echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18323if test $ac_cv_lib_gcc___chkstk = yes; then
18324
18325cat >>confdefs.h <<\_ACEOF
18326#define HAVE___CHKSTK 1
18327_ACEOF
18328
18329fi
18330
18331 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18332echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18333if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18335else
18336 ac_check_lib_save_LIBS=$LIBS
18337LIBS="-lgcc $LIBS"
18338cat >conftest.$ac_ext <<_ACEOF
18339/* confdefs.h. */
18340_ACEOF
18341cat confdefs.h >>conftest.$ac_ext
18342cat >>conftest.$ac_ext <<_ACEOF
18343/* end confdefs.h. */
18344
18345/* Override any GCC internal prototype to avoid an error.
18346 Use char because int might match the return type of a GCC
18347 builtin and then its argument prototype would still apply. */
18348#ifdef __cplusplus
18349extern "C"
18350#endif
18351char ___chkstk ();
18352int
18353main ()
18354{
18355return ___chkstk ();
18356 ;
18357 return 0;
18358}
18359_ACEOF
18360rm -f conftest.$ac_objext conftest$ac_exeext
18361if { (ac_try="$ac_link"
18362case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18365esac
18366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367 (eval "$ac_link") 2>conftest.er1
18368 ac_status=$?
18369 grep -v '^ *+' conftest.er1 >conftest.err
18370 rm -f conftest.er1
18371 cat conftest.err >&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } &&
18374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18375 { (case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18378esac
18379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_try") 2>&5
18381 ac_status=$?
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; } &&
18384 { ac_try='test -s conftest$ac_exeext'
18385 { (case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18388esac
18389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18390 (eval "$ac_try") 2>&5
18391 ac_status=$?
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; }; then
18394 ac_cv_lib_gcc____chkstk=yes
18395else
18396 echo "$as_me: failed program was:" >&5
18397sed 's/^/| /' conftest.$ac_ext >&5
18398
18399 ac_cv_lib_gcc____chkstk=no
18400fi
18401
18402rm -f core conftest.err conftest.$ac_objext \
18403 conftest$ac_exeext conftest.$ac_ext
18404LIBS=$ac_check_lib_save_LIBS
18405fi
18406{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18407echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18408if test $ac_cv_lib_gcc____chkstk = yes; then
18409
18410cat >>confdefs.h <<\_ACEOF
18411#define HAVE____CHKSTK 1
18412_ACEOF
18413
18414fi
18415
18416
18417 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18418echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18419if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18420 echo $ECHO_N "(cached) $ECHO_C" >&6
18421else
18422 ac_check_lib_save_LIBS=$LIBS
18423LIBS="-lgcc $LIBS"
18424cat >conftest.$ac_ext <<_ACEOF
18425/* confdefs.h. */
18426_ACEOF
18427cat confdefs.h >>conftest.$ac_ext
18428cat >>conftest.$ac_ext <<_ACEOF
18429/* end confdefs.h. */
18430
18431/* Override any GCC internal prototype to avoid an error.
18432 Use char because int might match the return type of a GCC
18433 builtin and then its argument prototype would still apply. */
18434#ifdef __cplusplus
18435extern "C"
18436#endif
18437char __ashldi3 ();
18438int
18439main ()
18440{
18441return __ashldi3 ();
18442 ;
18443 return 0;
18444}
18445_ACEOF
18446rm -f conftest.$ac_objext conftest$ac_exeext
18447if { (ac_try="$ac_link"
18448case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18451esac
18452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_link") 2>conftest.er1
18454 ac_status=$?
18455 grep -v '^ *+' conftest.er1 >conftest.err
18456 rm -f conftest.er1
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18461 { (case "(($ac_try" in
18462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463 *) ac_try_echo=$ac_try;;
18464esac
18465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466 (eval "$ac_try") 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; } &&
18470 { ac_try='test -s conftest$ac_exeext'
18471 { (case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18474esac
18475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_try") 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 ac_cv_lib_gcc___ashldi3=yes
18481else
18482 echo "$as_me: failed program was:" >&5
18483sed 's/^/| /' conftest.$ac_ext >&5
18484
18485 ac_cv_lib_gcc___ashldi3=no
18486fi
18487
18488rm -f core conftest.err conftest.$ac_objext \
18489 conftest$ac_exeext conftest.$ac_ext
18490LIBS=$ac_check_lib_save_LIBS
18491fi
18492{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18493echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18494if test $ac_cv_lib_gcc___ashldi3 = yes; then
18495
18496cat >>confdefs.h <<\_ACEOF
18497#define HAVE___ASHLDI3 1
18498_ACEOF
18499
18500fi
18501
18502 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18503echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18504if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18506else
18507 ac_check_lib_save_LIBS=$LIBS
18508LIBS="-lgcc $LIBS"
18509cat >conftest.$ac_ext <<_ACEOF
18510/* confdefs.h. */
18511_ACEOF
18512cat confdefs.h >>conftest.$ac_ext
18513cat >>conftest.$ac_ext <<_ACEOF
18514/* end confdefs.h. */
18515
18516/* Override any GCC internal prototype to avoid an error.
18517 Use char because int might match the return type of a GCC
18518 builtin and then its argument prototype would still apply. */
18519#ifdef __cplusplus
18520extern "C"
18521#endif
18522char __ashrdi3 ();
18523int
18524main ()
18525{
18526return __ashrdi3 ();
18527 ;
18528 return 0;
18529}
18530_ACEOF
18531rm -f conftest.$ac_objext conftest$ac_exeext
18532if { (ac_try="$ac_link"
18533case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18536esac
18537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_link") 2>conftest.er1
18539 ac_status=$?
18540 grep -v '^ *+' conftest.er1 >conftest.err
18541 rm -f conftest.er1
18542 cat conftest.err >&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } &&
18545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18546 { (case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18549esac
18550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_try") 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest$ac_exeext'
18556 { (case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18559esac
18560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561 (eval "$ac_try") 2>&5
18562 ac_status=$?
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; }; then
18565 ac_cv_lib_gcc___ashrdi3=yes
18566else
18567 echo "$as_me: failed program was:" >&5
18568sed 's/^/| /' conftest.$ac_ext >&5
18569
18570 ac_cv_lib_gcc___ashrdi3=no
18571fi
18572
18573rm -f core conftest.err conftest.$ac_objext \
18574 conftest$ac_exeext conftest.$ac_ext
18575LIBS=$ac_check_lib_save_LIBS
18576fi
18577{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18578echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18579if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18580
18581cat >>confdefs.h <<\_ACEOF
18582#define HAVE___ASHRDI3 1
18583_ACEOF
18584
18585fi
18586
18587 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18588echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18589if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18591else
18592 ac_check_lib_save_LIBS=$LIBS
18593LIBS="-lgcc $LIBS"
18594cat >conftest.$ac_ext <<_ACEOF
18595/* confdefs.h. */
18596_ACEOF
18597cat confdefs.h >>conftest.$ac_ext
18598cat >>conftest.$ac_ext <<_ACEOF
18599/* end confdefs.h. */
18600
18601/* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18604#ifdef __cplusplus
18605extern "C"
18606#endif
18607char __divdi3 ();
18608int
18609main ()
18610{
18611return __divdi3 ();
18612 ;
18613 return 0;
18614}
18615_ACEOF
18616rm -f conftest.$ac_objext conftest$ac_exeext
18617if { (ac_try="$ac_link"
18618case "(($ac_try" in
18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18621esac
18622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623 (eval "$ac_link") 2>conftest.er1
18624 ac_status=$?
18625 grep -v '^ *+' conftest.er1 >conftest.err
18626 rm -f conftest.er1
18627 cat conftest.err >&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } &&
18630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18631 { (case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18634esac
18635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636 (eval "$ac_try") 2>&5
18637 ac_status=$?
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; } &&
18640 { ac_try='test -s conftest$ac_exeext'
18641 { (case "(($ac_try" in
18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643 *) ac_try_echo=$ac_try;;
18644esac
18645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646 (eval "$ac_try") 2>&5
18647 ac_status=$?
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; }; then
18650 ac_cv_lib_gcc___divdi3=yes
18651else
18652 echo "$as_me: failed program was:" >&5
18653sed 's/^/| /' conftest.$ac_ext >&5
18654
18655 ac_cv_lib_gcc___divdi3=no
18656fi
18657
18658rm -f core conftest.err conftest.$ac_objext \
18659 conftest$ac_exeext conftest.$ac_ext
18660LIBS=$ac_check_lib_save_LIBS
18661fi
18662{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18663echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18664if test $ac_cv_lib_gcc___divdi3 = yes; then
18665
18666cat >>confdefs.h <<\_ACEOF
18667#define HAVE___DIVDI3 1
18668_ACEOF
18669
18670fi
18671
18672 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18673echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18674if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18676else
18677 ac_check_lib_save_LIBS=$LIBS
18678LIBS="-lgcc $LIBS"
18679cat >conftest.$ac_ext <<_ACEOF
18680/* confdefs.h. */
18681_ACEOF
18682cat confdefs.h >>conftest.$ac_ext
18683cat >>conftest.$ac_ext <<_ACEOF
18684/* end confdefs.h. */
18685
18686/* Override any GCC internal prototype to avoid an error.
18687 Use char because int might match the return type of a GCC
18688 builtin and then its argument prototype would still apply. */
18689#ifdef __cplusplus
18690extern "C"
18691#endif
18692char __fixdfdi ();
18693int
18694main ()
18695{
18696return __fixdfdi ();
18697 ;
18698 return 0;
18699}
18700_ACEOF
18701rm -f conftest.$ac_objext conftest$ac_exeext
18702if { (ac_try="$ac_link"
18703case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18706esac
18707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708 (eval "$ac_link") 2>conftest.er1
18709 ac_status=$?
18710 grep -v '^ *+' conftest.er1 >conftest.err
18711 rm -f conftest.er1
18712 cat conftest.err >&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18716 { (case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18719esac
18720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_try") 2>&5
18722 ac_status=$?
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; } &&
18725 { ac_try='test -s conftest$ac_exeext'
18726 { (case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18729esac
18730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_try") 2>&5
18732 ac_status=$?
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; }; then
18735 ac_cv_lib_gcc___fixdfdi=yes
18736else
18737 echo "$as_me: failed program was:" >&5
18738sed 's/^/| /' conftest.$ac_ext >&5
18739
18740 ac_cv_lib_gcc___fixdfdi=no
18741fi
18742
18743rm -f core conftest.err conftest.$ac_objext \
18744 conftest$ac_exeext conftest.$ac_ext
18745LIBS=$ac_check_lib_save_LIBS
18746fi
18747{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18748echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18749if test $ac_cv_lib_gcc___fixdfdi = yes; then
18750
18751cat >>confdefs.h <<\_ACEOF
18752#define HAVE___FIXDFDI 1
18753_ACEOF
18754
18755fi
18756
18757 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18758echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18759if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18761else
18762 ac_check_lib_save_LIBS=$LIBS
18763LIBS="-lgcc $LIBS"
18764cat >conftest.$ac_ext <<_ACEOF
18765/* confdefs.h. */
18766_ACEOF
18767cat confdefs.h >>conftest.$ac_ext
18768cat >>conftest.$ac_ext <<_ACEOF
18769/* end confdefs.h. */
18770
18771/* Override any GCC internal prototype to avoid an error.
18772 Use char because int might match the return type of a GCC
18773 builtin and then its argument prototype would still apply. */
18774#ifdef __cplusplus
18775extern "C"
18776#endif
18777char __fixsfdi ();
18778int
18779main ()
18780{
18781return __fixsfdi ();
18782 ;
18783 return 0;
18784}
18785_ACEOF
18786rm -f conftest.$ac_objext conftest$ac_exeext
18787if { (ac_try="$ac_link"
18788case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18791esac
18792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793 (eval "$ac_link") 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
18800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18801 { (case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18804esac
18805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_try") 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; } &&
18810 { ac_try='test -s conftest$ac_exeext'
18811 { (case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18814esac
18815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_try") 2>&5
18817 ac_status=$?
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820 ac_cv_lib_gcc___fixsfdi=yes
18821else
18822 echo "$as_me: failed program was:" >&5
18823sed 's/^/| /' conftest.$ac_ext >&5
18824
18825 ac_cv_lib_gcc___fixsfdi=no
18826fi
18827
18828rm -f core conftest.err conftest.$ac_objext \
18829 conftest$ac_exeext conftest.$ac_ext
18830LIBS=$ac_check_lib_save_LIBS
18831fi
18832{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18833echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18834if test $ac_cv_lib_gcc___fixsfdi = yes; then
18835
18836cat >>confdefs.h <<\_ACEOF
18837#define HAVE___FIXSFDI 1
18838_ACEOF
18839
18840fi
18841
18842 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18843echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18844if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18846else
18847 ac_check_lib_save_LIBS=$LIBS
18848LIBS="-lgcc $LIBS"
18849cat >conftest.$ac_ext <<_ACEOF
18850/* confdefs.h. */
18851_ACEOF
18852cat confdefs.h >>conftest.$ac_ext
18853cat >>conftest.$ac_ext <<_ACEOF
18854/* end confdefs.h. */
18855
18856/* Override any GCC internal prototype to avoid an error.
18857 Use char because int might match the return type of a GCC
18858 builtin and then its argument prototype would still apply. */
18859#ifdef __cplusplus
18860extern "C"
18861#endif
18862char __floatdidf ();
18863int
18864main ()
18865{
18866return __floatdidf ();
18867 ;
18868 return 0;
18869}
18870_ACEOF
18871rm -f conftest.$ac_objext conftest$ac_exeext
18872if { (ac_try="$ac_link"
18873case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18876esac
18877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_link") 2>conftest.er1
18879 ac_status=$?
18880 grep -v '^ *+' conftest.er1 >conftest.err
18881 rm -f conftest.er1
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } &&
18885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18886 { (case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18889esac
18890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_try") 2>&5
18892 ac_status=$?
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; } &&
18895 { ac_try='test -s conftest$ac_exeext'
18896 { (case "(($ac_try" in
18897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898 *) ac_try_echo=$ac_try;;
18899esac
18900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901 (eval "$ac_try") 2>&5
18902 ac_status=$?
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; }; then
18905 ac_cv_lib_gcc___floatdidf=yes
18906else
18907 echo "$as_me: failed program was:" >&5
18908sed 's/^/| /' conftest.$ac_ext >&5
18909
18910 ac_cv_lib_gcc___floatdidf=no
18911fi
18912
18913rm -f core conftest.err conftest.$ac_objext \
18914 conftest$ac_exeext conftest.$ac_ext
18915LIBS=$ac_check_lib_save_LIBS
18916fi
18917{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18918echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18919if test $ac_cv_lib_gcc___floatdidf = yes; then
18920
18921cat >>confdefs.h <<\_ACEOF
18922#define HAVE___FLOATDIDF 1
18923_ACEOF
18924
18925fi
18926
18927 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18928echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18929if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18931else
18932 ac_check_lib_save_LIBS=$LIBS
18933LIBS="-lgcc $LIBS"
18934cat >conftest.$ac_ext <<_ACEOF
18935/* confdefs.h. */
18936_ACEOF
18937cat confdefs.h >>conftest.$ac_ext
18938cat >>conftest.$ac_ext <<_ACEOF
18939/* end confdefs.h. */
18940
18941/* Override any GCC internal prototype to avoid an error.
18942 Use char because int might match the return type of a GCC
18943 builtin and then its argument prototype would still apply. */
18944#ifdef __cplusplus
18945extern "C"
18946#endif
18947char __lshrdi3 ();
18948int
18949main ()
18950{
18951return __lshrdi3 ();
18952 ;
18953 return 0;
18954}
18955_ACEOF
18956rm -f conftest.$ac_objext conftest$ac_exeext
18957if { (ac_try="$ac_link"
18958case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18961esac
18962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_link") 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
18970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18971 { (case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18974esac
18975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_try") 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try='test -s conftest$ac_exeext'
18981 { (case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18984esac
18985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_try") 2>&5
18987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
18990 ac_cv_lib_gcc___lshrdi3=yes
18991else
18992 echo "$as_me: failed program was:" >&5
18993sed 's/^/| /' conftest.$ac_ext >&5
18994
18995 ac_cv_lib_gcc___lshrdi3=no
18996fi
18997
18998rm -f core conftest.err conftest.$ac_objext \
18999 conftest$ac_exeext conftest.$ac_ext
19000LIBS=$ac_check_lib_save_LIBS
19001fi
19002{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19003echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19004if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19005
19006cat >>confdefs.h <<\_ACEOF
19007#define HAVE___LSHRDI3 1
19008_ACEOF
19009
19010fi
19011
19012 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19013echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19014if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19016else
19017 ac_check_lib_save_LIBS=$LIBS
19018LIBS="-lgcc $LIBS"
19019cat >conftest.$ac_ext <<_ACEOF
19020/* confdefs.h. */
19021_ACEOF
19022cat confdefs.h >>conftest.$ac_ext
19023cat >>conftest.$ac_ext <<_ACEOF
19024/* end confdefs.h. */
19025
19026/* Override any GCC internal prototype to avoid an error.
19027 Use char because int might match the return type of a GCC
19028 builtin and then its argument prototype would still apply. */
19029#ifdef __cplusplus
19030extern "C"
19031#endif
19032char __moddi3 ();
19033int
19034main ()
19035{
19036return __moddi3 ();
19037 ;
19038 return 0;
19039}
19040_ACEOF
19041rm -f conftest.$ac_objext conftest$ac_exeext
19042if { (ac_try="$ac_link"
19043case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19046esac
19047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_link") 2>conftest.er1
19049 ac_status=$?
19050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19056 { (case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19059esac
19060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_try") 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; } &&
19065 { ac_try='test -s conftest$ac_exeext'
19066 { (case "(($ac_try" in
19067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19068 *) ac_try_echo=$ac_try;;
19069esac
19070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19071 (eval "$ac_try") 2>&5
19072 ac_status=$?
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; }; then
19075 ac_cv_lib_gcc___moddi3=yes
19076else
19077 echo "$as_me: failed program was:" >&5
19078sed 's/^/| /' conftest.$ac_ext >&5
19079
19080 ac_cv_lib_gcc___moddi3=no
19081fi
19082
19083rm -f core conftest.err conftest.$ac_objext \
19084 conftest$ac_exeext conftest.$ac_ext
19085LIBS=$ac_check_lib_save_LIBS
19086fi
19087{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19088echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19089if test $ac_cv_lib_gcc___moddi3 = yes; then
19090
19091cat >>confdefs.h <<\_ACEOF
19092#define HAVE___MODDI3 1
19093_ACEOF
19094
19095fi
19096
19097 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19098echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19099if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19101else
19102 ac_check_lib_save_LIBS=$LIBS
19103LIBS="-lgcc $LIBS"
19104cat >conftest.$ac_ext <<_ACEOF
19105/* confdefs.h. */
19106_ACEOF
19107cat confdefs.h >>conftest.$ac_ext
19108cat >>conftest.$ac_ext <<_ACEOF
19109/* end confdefs.h. */
19110
19111/* Override any GCC internal prototype to avoid an error.
19112 Use char because int might match the return type of a GCC
19113 builtin and then its argument prototype would still apply. */
19114#ifdef __cplusplus
19115extern "C"
19116#endif
19117char __udivdi3 ();
19118int
19119main ()
19120{
19121return __udivdi3 ();
19122 ;
19123 return 0;
19124}
19125_ACEOF
19126rm -f conftest.$ac_objext conftest$ac_exeext
19127if { (ac_try="$ac_link"
19128case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19131esac
19132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_link") 2>conftest.er1
19134 ac_status=$?
19135 grep -v '^ *+' conftest.er1 >conftest.err
19136 rm -f conftest.er1
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
19140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19141 { (case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19144esac
19145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_try") 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest$ac_exeext'
19151 { (case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19154esac
19155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_try") 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 ac_cv_lib_gcc___udivdi3=yes
19161else
19162 echo "$as_me: failed program was:" >&5
19163sed 's/^/| /' conftest.$ac_ext >&5
19164
19165 ac_cv_lib_gcc___udivdi3=no
19166fi
19167
19168rm -f core conftest.err conftest.$ac_objext \
19169 conftest$ac_exeext conftest.$ac_ext
19170LIBS=$ac_check_lib_save_LIBS
19171fi
19172{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19173echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19174if test $ac_cv_lib_gcc___udivdi3 = yes; then
19175
19176cat >>confdefs.h <<\_ACEOF
19177#define HAVE___UDIVDI3 1
19178_ACEOF
19179
19180fi
19181
19182 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19183echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19184if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19186else
19187 ac_check_lib_save_LIBS=$LIBS
19188LIBS="-lgcc $LIBS"
19189cat >conftest.$ac_ext <<_ACEOF
19190/* confdefs.h. */
19191_ACEOF
19192cat confdefs.h >>conftest.$ac_ext
19193cat >>conftest.$ac_ext <<_ACEOF
19194/* end confdefs.h. */
19195
19196/* Override any GCC internal prototype to avoid an error.
19197 Use char because int might match the return type of a GCC
19198 builtin and then its argument prototype would still apply. */
19199#ifdef __cplusplus
19200extern "C"
19201#endif
19202char __umoddi3 ();
19203int
19204main ()
19205{
19206return __umoddi3 ();
19207 ;
19208 return 0;
19209}
19210_ACEOF
19211rm -f conftest.$ac_objext conftest$ac_exeext
19212if { (ac_try="$ac_link"
19213case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19216esac
19217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218 (eval "$ac_link") 2>conftest.er1
19219 ac_status=$?
19220 grep -v '^ *+' conftest.er1 >conftest.err
19221 rm -f conftest.er1
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } &&
19225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19226 { (case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19229esac
19230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_try") 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; } &&
19235 { ac_try='test -s conftest$ac_exeext'
19236 { (case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19239esac
19240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_try") 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; }; then
19245 ac_cv_lib_gcc___umoddi3=yes
19246else
19247 echo "$as_me: failed program was:" >&5
19248sed 's/^/| /' conftest.$ac_ext >&5
19249
19250 ac_cv_lib_gcc___umoddi3=no
19251fi
19252
19253rm -f core conftest.err conftest.$ac_objext \
19254 conftest$ac_exeext conftest.$ac_ext
19255LIBS=$ac_check_lib_save_LIBS
19256fi
19257{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19258echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19259if test $ac_cv_lib_gcc___umoddi3 = yes; then
19260
19261cat >>confdefs.h <<\_ACEOF
19262#define HAVE___UMODDI3 1
19263_ACEOF
19264
19265fi
19266
19267
19268 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19269echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19270if test "${ac_cv_lib_gcc___main+set}" = set; then
19271 echo $ECHO_N "(cached) $ECHO_C" >&6
19272else
19273 ac_check_lib_save_LIBS=$LIBS
19274LIBS="-lgcc $LIBS"
19275cat >conftest.$ac_ext <<_ACEOF
19276/* confdefs.h. */
19277_ACEOF
19278cat confdefs.h >>conftest.$ac_ext
19279cat >>conftest.$ac_ext <<_ACEOF
19280/* end confdefs.h. */
19281
19282/* Override any GCC internal prototype to avoid an error.
19283 Use char because int might match the return type of a GCC
19284 builtin and then its argument prototype would still apply. */
19285#ifdef __cplusplus
19286extern "C"
19287#endif
19288char __main ();
19289int
19290main ()
19291{
19292return __main ();
19293 ;
19294 return 0;
19295}
19296_ACEOF
19297rm -f conftest.$ac_objext conftest$ac_exeext
19298if { (ac_try="$ac_link"
19299case "(($ac_try" in
19300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301 *) ac_try_echo=$ac_try;;
19302esac
19303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304 (eval "$ac_link") 2>conftest.er1
19305 ac_status=$?
19306 grep -v '^ *+' conftest.er1 >conftest.err
19307 rm -f conftest.er1
19308 cat conftest.err >&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } &&
19311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19312 { (case "(($ac_try" in
19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314 *) ac_try_echo=$ac_try;;
19315esac
19316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317 (eval "$ac_try") 2>&5
19318 ac_status=$?
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); }; } &&
19321 { ac_try='test -s conftest$ac_exeext'
19322 { (case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19325esac
19326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_try") 2>&5
19328 ac_status=$?
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
19331 ac_cv_lib_gcc___main=yes
19332else
19333 echo "$as_me: failed program was:" >&5
19334sed 's/^/| /' conftest.$ac_ext >&5
19335
19336 ac_cv_lib_gcc___main=no
19337fi
19338
19339rm -f core conftest.err conftest.$ac_objext \
19340 conftest$ac_exeext conftest.$ac_ext
19341LIBS=$ac_check_lib_save_LIBS
19342fi
19343{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19344echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19345if test $ac_cv_lib_gcc___main = yes; then
19346
19347cat >>confdefs.h <<\_ACEOF
19348#define HAVE___MAIN 1
19349_ACEOF
19350
19351fi
19352
19353 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19354echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19355if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19356 echo $ECHO_N "(cached) $ECHO_C" >&6
19357else
19358 ac_check_lib_save_LIBS=$LIBS
19359LIBS="-lgcc $LIBS"
19360cat >conftest.$ac_ext <<_ACEOF
19361/* confdefs.h. */
19362_ACEOF
19363cat confdefs.h >>conftest.$ac_ext
19364cat >>conftest.$ac_ext <<_ACEOF
19365/* end confdefs.h. */
19366
19367/* Override any GCC internal prototype to avoid an error.
19368 Use char because int might match the return type of a GCC
19369 builtin and then its argument prototype would still apply. */
19370#ifdef __cplusplus
19371extern "C"
19372#endif
19373char __cmpdi2 ();
19374int
19375main ()
19376{
19377return __cmpdi2 ();
19378 ;
19379 return 0;
19380}
19381_ACEOF
19382rm -f conftest.$ac_objext conftest$ac_exeext
19383if { (ac_try="$ac_link"
19384case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19387esac
19388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_link") 2>conftest.er1
19390 ac_status=$?
19391 grep -v '^ *+' conftest.er1 >conftest.err
19392 rm -f conftest.er1
19393 cat conftest.err >&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } &&
19396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19397 { (case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19400esac
19401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_try") 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest$ac_exeext'
19407 { (case "(($ac_try" in
19408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409 *) ac_try_echo=$ac_try;;
19410esac
19411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412 (eval "$ac_try") 2>&5
19413 ac_status=$?
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; }; then
19416 ac_cv_lib_gcc___cmpdi2=yes
19417else
19418 echo "$as_me: failed program was:" >&5
19419sed 's/^/| /' conftest.$ac_ext >&5
19420
19421 ac_cv_lib_gcc___cmpdi2=no
19422fi
19423
19424rm -f core conftest.err conftest.$ac_objext \
19425 conftest$ac_exeext conftest.$ac_ext
19426LIBS=$ac_check_lib_save_LIBS
19427fi
19428{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19429echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19430if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19431
19432cat >>confdefs.h <<\_ACEOF
19433#define HAVE___CMPDI2 1
19434_ACEOF
19435
19436fi
19437
19438fi
19439
NAKAMURA Takumi6073a052011-05-01 13:29:49 +000019440if test "$llvm_cv_os_type" = "MingW" ; then
19441 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19442echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19443 cat >conftest.$ac_ext <<_ACEOF
19444#include <windows.h>
19445#include <imagehlp.h>
19446extern void foo(PENUMLOADED_MODULES_CALLBACK);
19447extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19448_ACEOF
19449rm -f conftest.$ac_objext
19450if { (ac_try="$ac_compile"
19451case "(($ac_try" in
19452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453 *) ac_try_echo=$ac_try;;
19454esac
19455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456 (eval "$ac_compile") 2>conftest.er1
19457 ac_status=$?
19458 grep -v '^ *+' conftest.er1 >conftest.err
19459 rm -f conftest.er1
19460 cat conftest.err >&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); } &&
19463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19464 { (case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19467esac
19468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469 (eval "$ac_try") 2>&5
19470 ac_status=$?
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; } &&
19473 { ac_try='test -s conftest.$ac_objext'
19474 { (case "(($ac_try" in
19475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476 *) ac_try_echo=$ac_try;;
19477esac
19478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479 (eval "$ac_try") 2>&5
19480 ac_status=$?
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; }; then
19483
19484 { echo "$as_me:$LINENO: result: yes" >&5
19485echo "${ECHO_T}yes" >&6; }
19486 llvm_cv_win32_elmcb_pcstr="PCSTR"
19487
19488else
19489 echo "$as_me: failed program was:" >&5
19490sed 's/^/| /' conftest.$ac_ext >&5
19491
19492
19493 { echo "$as_me:$LINENO: result: no" >&5
19494echo "${ECHO_T}no" >&6; }
19495 llvm_cv_win32_elmcb_pcstr="PSTR"
19496
19497fi
19498
19499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19500
19501cat >>confdefs.h <<_ACEOF
19502#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19503_ACEOF
19504
19505fi
19506
Torok Edwin871384f2010-01-26 08:50:50 +000019507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019508{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19509echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19510if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019512else
Reid Spencera773bd52006-08-04 18:18:08 +000019513 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019514ac_cpp='$CXXCPP $CPPFLAGS'
19515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019519 cat >conftest.$ac_ext <<_ACEOF
19520/* confdefs.h. */
19521_ACEOF
19522cat confdefs.h >>conftest.$ac_ext
19523cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019524/* end confdefs.h. */
19525#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019526int
19527main ()
19528{
19529float f; isnan(f);
19530 ;
19531 return 0;
19532}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019533_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019534rm -f conftest.$ac_objext
19535if { (ac_try="$ac_compile"
19536case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19539esac
19540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_compile") 2>conftest.er1
19542 ac_status=$?
19543 grep -v '^ *+' conftest.er1 >conftest.err
19544 rm -f conftest.er1
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } &&
19548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19549 { (case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19552esac
19553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_try") 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest.$ac_objext'
19559 { (case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19562esac
19563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_try") 2>&5
19565 ac_status=$?
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019568 ac_cv_func_isnan_in_math_h=yes
19569else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019570 echo "$as_me: failed program was:" >&5
19571sed 's/^/| /' conftest.$ac_ext >&5
19572
19573 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019574fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019575
Reid Spencera773bd52006-08-04 18:18:08 +000019576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019577 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019578ac_cpp='$CPP $CPPFLAGS'
19579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19581ac_compiler_gnu=$ac_cv_c_compiler_gnu
19582
19583fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019584{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19585echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019586
19587
19588if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019590cat >>confdefs.h <<\_ACEOF
19591#define HAVE_ISNAN_IN_MATH_H 1
19592_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019593
Reid Spencerabec8f92004-10-27 23:03:44 +000019594fi
19595
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019596{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19597echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19598if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019600else
Reid Spencera773bd52006-08-04 18:18:08 +000019601 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019602ac_cpp='$CXXCPP $CPPFLAGS'
19603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019607 cat >conftest.$ac_ext <<_ACEOF
19608/* confdefs.h. */
19609_ACEOF
19610cat confdefs.h >>conftest.$ac_ext
19611cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019612/* end confdefs.h. */
19613#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019614int
19615main ()
19616{
19617float f; isnan(f);
19618 ;
19619 return 0;
19620}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019621_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019622rm -f conftest.$ac_objext
19623if { (ac_try="$ac_compile"
19624case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19627esac
19628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_compile") 2>conftest.er1
19630 ac_status=$?
19631 grep -v '^ *+' conftest.er1 >conftest.err
19632 rm -f conftest.er1
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } &&
19636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19637 { (case "(($ac_try" in
19638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639 *) ac_try_echo=$ac_try;;
19640esac
19641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19642 (eval "$ac_try") 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; } &&
19646 { ac_try='test -s conftest.$ac_objext'
19647 { (case "(($ac_try" in
19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649 *) ac_try_echo=$ac_try;;
19650esac
19651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652 (eval "$ac_try") 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019656 ac_cv_func_isnan_in_cmath=yes
19657else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019658 echo "$as_me: failed program was:" >&5
19659sed 's/^/| /' conftest.$ac_ext >&5
19660
19661 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019662fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019663
Reid Spencera773bd52006-08-04 18:18:08 +000019664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019665 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019666ac_cpp='$CPP $CPPFLAGS'
19667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19669ac_compiler_gnu=$ac_cv_c_compiler_gnu
19670
19671fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019672{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19673echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019674
19675if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019677cat >>confdefs.h <<\_ACEOF
19678#define HAVE_ISNAN_IN_CMATH 1
19679_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019680
Reid Spencerabec8f92004-10-27 23:03:44 +000019681fi
19682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019683{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19684echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19685if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019687else
Reid Spencera773bd52006-08-04 18:18:08 +000019688 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019689ac_cpp='$CXXCPP $CPPFLAGS'
19690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019694 cat >conftest.$ac_ext <<_ACEOF
19695/* confdefs.h. */
19696_ACEOF
19697cat confdefs.h >>conftest.$ac_ext
19698cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019699/* end confdefs.h. */
19700#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019701int
19702main ()
19703{
19704float f; std::isnan(f);
19705 ;
19706 return 0;
19707}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019708_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019709rm -f conftest.$ac_objext
19710if { (ac_try="$ac_compile"
19711case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19714esac
19715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_compile") 2>conftest.er1
19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
19723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19724 { (case "(($ac_try" in
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726 *) ac_try_echo=$ac_try;;
19727esac
19728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729 (eval "$ac_try") 2>&5
19730 ac_status=$?
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); }; } &&
19733 { ac_try='test -s conftest.$ac_objext'
19734 { (case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19737esac
19738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_try") 2>&5
19740 ac_status=$?
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019743 ac_cv_func_std_isnan_in_cmath=yes
19744else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019745 echo "$as_me: failed program was:" >&5
19746sed 's/^/| /' conftest.$ac_ext >&5
19747
19748 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019749fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019750
Reid Spencera773bd52006-08-04 18:18:08 +000019751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019752 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019753ac_cpp='$CPP $CPPFLAGS'
19754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19756ac_compiler_gnu=$ac_cv_c_compiler_gnu
19757
19758fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019759{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19760echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019761
19762if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019764cat >>confdefs.h <<\_ACEOF
19765#define HAVE_STD_ISNAN_IN_CMATH 1
19766_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019767
Reid Spencerabec8f92004-10-27 23:03:44 +000019768fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019769
19770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019771{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19772echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19773if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19774 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019775else
Reid Spencera773bd52006-08-04 18:18:08 +000019776 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019777ac_cpp='$CXXCPP $CPPFLAGS'
19778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019782 cat >conftest.$ac_ext <<_ACEOF
19783/* confdefs.h. */
19784_ACEOF
19785cat confdefs.h >>conftest.$ac_ext
19786cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019787/* end confdefs.h. */
19788#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019789int
19790main ()
19791{
19792float f; isinf(f);
19793 ;
19794 return 0;
19795}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019796_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019797rm -f conftest.$ac_objext
19798if { (ac_try="$ac_compile"
19799case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19802esac
19803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_compile") 2>conftest.er1
19805 ac_status=$?
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } &&
19811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19812 { (case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19815esac
19816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_try") 2>&5
19818 ac_status=$?
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; } &&
19821 { ac_try='test -s conftest.$ac_objext'
19822 { (case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19825esac
19826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_try") 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019831 ac_cv_func_isinf_in_math_h=yes
19832else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019833 echo "$as_me: failed program was:" >&5
19834sed 's/^/| /' conftest.$ac_ext >&5
19835
19836 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019837fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019838
Reid Spencera773bd52006-08-04 18:18:08 +000019839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019840 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019841ac_cpp='$CPP $CPPFLAGS'
19842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19844ac_compiler_gnu=$ac_cv_c_compiler_gnu
19845
19846fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019847{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19848echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019849
19850if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019851
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019852cat >>confdefs.h <<\_ACEOF
19853#define HAVE_ISINF_IN_MATH_H 1
19854_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019855
Reid Spencerabec8f92004-10-27 23:03:44 +000019856fi
19857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019858{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19859echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19860if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019862else
Reid Spencera773bd52006-08-04 18:18:08 +000019863 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019864ac_cpp='$CXXCPP $CPPFLAGS'
19865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019869 cat >conftest.$ac_ext <<_ACEOF
19870/* confdefs.h. */
19871_ACEOF
19872cat confdefs.h >>conftest.$ac_ext
19873cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019874/* end confdefs.h. */
19875#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019876int
19877main ()
19878{
19879float f; isinf(f);
19880 ;
19881 return 0;
19882}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019883_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019884rm -f conftest.$ac_objext
19885if { (ac_try="$ac_compile"
19886case "(($ac_try" in
19887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19888 *) ac_try_echo=$ac_try;;
19889esac
19890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19891 (eval "$ac_compile") 2>conftest.er1
19892 ac_status=$?
19893 grep -v '^ *+' conftest.er1 >conftest.err
19894 rm -f conftest.er1
19895 cat conftest.err >&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); } &&
19898 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19899 { (case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19902esac
19903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_try") 2>&5
19905 ac_status=$?
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; } &&
19908 { ac_try='test -s conftest.$ac_objext'
19909 { (case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19912esac
19913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_try") 2>&5
19915 ac_status=$?
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019918 ac_cv_func_isinf_in_cmath=yes
19919else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019920 echo "$as_me: failed program was:" >&5
19921sed 's/^/| /' conftest.$ac_ext >&5
19922
19923 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019924fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019925
Reid Spencera773bd52006-08-04 18:18:08 +000019926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019927 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019928ac_cpp='$CPP $CPPFLAGS'
19929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19931ac_compiler_gnu=$ac_cv_c_compiler_gnu
19932
19933fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019934{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19935echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019936
19937if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019939cat >>confdefs.h <<\_ACEOF
19940#define HAVE_ISINF_IN_CMATH 1
19941_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019942
Reid Spencerabec8f92004-10-27 23:03:44 +000019943fi
19944
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019945{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19946echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19947if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19948 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019949else
Reid Spencera773bd52006-08-04 18:18:08 +000019950 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019951ac_cpp='$CXXCPP $CPPFLAGS'
19952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019956 cat >conftest.$ac_ext <<_ACEOF
19957/* confdefs.h. */
19958_ACEOF
19959cat confdefs.h >>conftest.$ac_ext
19960cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019961/* end confdefs.h. */
19962#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019963int
19964main ()
19965{
Eric Christopherb2bc6e42012-03-26 02:09:01 +000019966float f; std::isinf(f);
Reid Spencerabec8f92004-10-27 23:03:44 +000019967 ;
19968 return 0;
19969}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019970_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019971rm -f conftest.$ac_objext
19972if { (ac_try="$ac_compile"
19973case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19976esac
19977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_compile") 2>conftest.er1
19979 ac_status=$?
19980 grep -v '^ *+' conftest.er1 >conftest.err
19981 rm -f conftest.er1
19982 cat conftest.err >&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
19985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19986 { (case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19989esac
19990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_try") 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; } &&
19995 { ac_try='test -s conftest.$ac_objext'
19996 { (case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
19999esac
20000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_try") 2>&5
20002 ac_status=$?
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020005 ac_cv_func_std_isinf_in_cmath=yes
20006else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020007 echo "$as_me: failed program was:" >&5
20008sed 's/^/| /' conftest.$ac_ext >&5
20009
20010 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000020011fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020012
Reid Spencera773bd52006-08-04 18:18:08 +000020013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020014 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000020015ac_cpp='$CPP $CPPFLAGS'
20016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20018ac_compiler_gnu=$ac_cv_c_compiler_gnu
20019
20020fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020021{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20022echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020023
20024if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000020025
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020026cat >>confdefs.h <<\_ACEOF
20027#define HAVE_STD_ISINF_IN_CMATH 1
20028_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000020029
Reid Spencerabec8f92004-10-27 23:03:44 +000020030fi
20031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020032{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20033echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20034if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20035 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000020036else
Reid Spencera773bd52006-08-04 18:18:08 +000020037 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000020038ac_cpp='$CXXCPP $CPPFLAGS'
20039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020043 cat >conftest.$ac_ext <<_ACEOF
20044/* confdefs.h. */
20045_ACEOF
20046cat confdefs.h >>conftest.$ac_ext
20047cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020048/* end confdefs.h. */
20049#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000020050int
20051main ()
20052{
20053float f; finite(f);
20054 ;
20055 return 0;
20056}
Brian Gaeked59a6472004-07-21 03:33:58 +000020057_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020058rm -f conftest.$ac_objext
20059if { (ac_try="$ac_compile"
20060case "(($ac_try" in
20061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20063esac
20064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_compile") 2>conftest.er1
20066 ac_status=$?
20067 grep -v '^ *+' conftest.er1 >conftest.err
20068 rm -f conftest.er1
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
20072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20073 { (case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20076esac
20077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_try") 2>&5
20079 ac_status=$?
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; } &&
20082 { ac_try='test -s conftest.$ac_objext'
20083 { (case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20086esac
20087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_try") 2>&5
20089 ac_status=$?
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020092 ac_cv_func_finite_in_ieeefp_h=yes
20093else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020094 echo "$as_me: failed program was:" >&5
20095sed 's/^/| /' conftest.$ac_ext >&5
20096
20097 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000020098fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020099
Reid Spencera773bd52006-08-04 18:18:08 +000020100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000020101 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000020102ac_cpp='$CPP $CPPFLAGS'
20103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20105ac_compiler_gnu=$ac_cv_c_compiler_gnu
20106
20107fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020108{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20109echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000020110
Brian Gaeke6802b552004-10-28 05:06:45 +000020111if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000020112
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020113cat >>confdefs.h <<\_ACEOF
20114#define HAVE_FINITE_IN_IEEEFP_H 1
20115_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000020116
Reid Spencerabec8f92004-10-27 23:03:44 +000020117fi
20118
20119
20120
Reid Spencer30fe5262007-01-20 07:48:49 +000020121if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000020122
20123
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020124for ac_header in stdlib.h unistd.h
20125do
20126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20127if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20132fi
20133ac_res=`eval echo '${'$as_ac_Header'}'`
20134 { echo "$as_me:$LINENO: result: $ac_res" >&5
20135echo "${ECHO_T}$ac_res" >&6; }
20136else
20137 # Is the header compilable?
20138{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20139echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20140cat >conftest.$ac_ext <<_ACEOF
20141/* confdefs.h. */
20142_ACEOF
20143cat confdefs.h >>conftest.$ac_ext
20144cat >>conftest.$ac_ext <<_ACEOF
20145/* end confdefs.h. */
20146$ac_includes_default
20147#include <$ac_header>
20148_ACEOF
20149rm -f conftest.$ac_objext
20150if { (ac_try="$ac_compile"
20151case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20154esac
20155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_compile") 2>conftest.er1
20157 ac_status=$?
20158 grep -v '^ *+' conftest.er1 >conftest.err
20159 rm -f conftest.er1
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } &&
20163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20164 { (case "(($ac_try" in
20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166 *) ac_try_echo=$ac_try;;
20167esac
20168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169 (eval "$ac_try") 2>&5
20170 ac_status=$?
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; } &&
20173 { ac_try='test -s conftest.$ac_objext'
20174 { (case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20177esac
20178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_try") 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20183 ac_header_compiler=yes
20184else
20185 echo "$as_me: failed program was:" >&5
20186sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020187
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020188 ac_header_compiler=no
20189fi
20190
20191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20192{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20193echo "${ECHO_T}$ac_header_compiler" >&6; }
20194
20195# Is the header present?
20196{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20197echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20198cat >conftest.$ac_ext <<_ACEOF
20199/* confdefs.h. */
20200_ACEOF
20201cat confdefs.h >>conftest.$ac_ext
20202cat >>conftest.$ac_ext <<_ACEOF
20203/* end confdefs.h. */
20204#include <$ac_header>
20205_ACEOF
20206if { (ac_try="$ac_cpp conftest.$ac_ext"
20207case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20210esac
20211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20213 ac_status=$?
20214 grep -v '^ *+' conftest.er1 >conftest.err
20215 rm -f conftest.er1
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } >/dev/null; then
20219 if test -s conftest.err; then
20220 ac_cpp_err=$ac_c_preproc_warn_flag
20221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20222 else
20223 ac_cpp_err=
20224 fi
20225else
20226 ac_cpp_err=yes
20227fi
20228if test -z "$ac_cpp_err"; then
20229 ac_header_preproc=yes
20230else
20231 echo "$as_me: failed program was:" >&5
20232sed 's/^/| /' conftest.$ac_ext >&5
20233
20234 ac_header_preproc=no
20235fi
20236
20237rm -f conftest.err conftest.$ac_ext
20238{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20239echo "${ECHO_T}$ac_header_preproc" >&6; }
20240
20241# So? What about this header?
20242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20243 yes:no: )
20244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20245echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20247echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20248 ac_header_preproc=yes
20249 ;;
20250 no:yes:* )
20251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20254echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20256echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20258echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20260echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20262echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20263 ( cat <<\_ASBOX
Eric Christopherf33ab862011-12-21 00:52:44 +000020264## ------------------------------------ ##
20265## Report this to http://llvm.org/bugs/ ##
20266## ------------------------------------ ##
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020267_ASBOX
20268 ) | sed "s/^/$as_me: WARNING: /" >&2
20269 ;;
20270esac
20271{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20275else
20276 eval "$as_ac_Header=\$ac_header_preproc"
20277fi
20278ac_res=`eval echo '${'$as_ac_Header'}'`
20279 { echo "$as_me:$LINENO: result: $ac_res" >&5
20280echo "${ECHO_T}$ac_res" >&6; }
20281
20282fi
20283if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020284 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020286_ACEOF
20287
20288fi
20289
20290done
20291
20292
20293for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020294do
20295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20296{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20298if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20300else
20301 cat >conftest.$ac_ext <<_ACEOF
20302/* confdefs.h. */
20303_ACEOF
20304cat confdefs.h >>conftest.$ac_ext
20305cat >>conftest.$ac_ext <<_ACEOF
20306/* end confdefs.h. */
20307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20309#define $ac_func innocuous_$ac_func
20310
20311/* System header to define __stub macros and hopefully few prototypes,
20312 which can conflict with char $ac_func (); below.
20313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20314 <limits.h> exists even on freestanding compilers. */
20315
20316#ifdef __STDC__
20317# include <limits.h>
20318#else
20319# include <assert.h>
20320#endif
20321
20322#undef $ac_func
20323
20324/* Override any GCC internal prototype to avoid an error.
20325 Use char because int might match the return type of a GCC
20326 builtin and then its argument prototype would still apply. */
20327#ifdef __cplusplus
20328extern "C"
20329#endif
20330char $ac_func ();
20331/* The GNU C library defines this for functions which it implements
20332 to always fail with ENOSYS. Some functions are actually named
20333 something starting with __ and the normal name is an alias. */
20334#if defined __stub_$ac_func || defined __stub___$ac_func
20335choke me
20336#endif
20337
20338int
20339main ()
20340{
20341return $ac_func ();
20342 ;
20343 return 0;
20344}
20345_ACEOF
20346rm -f conftest.$ac_objext conftest$ac_exeext
20347if { (ac_try="$ac_link"
20348case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20351esac
20352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_link") 2>conftest.er1
20354 ac_status=$?
20355 grep -v '^ *+' conftest.er1 >conftest.err
20356 rm -f conftest.er1
20357 cat conftest.err >&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } &&
20360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20361 { (case "(($ac_try" in
20362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363 *) ac_try_echo=$ac_try;;
20364esac
20365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366 (eval "$ac_try") 2>&5
20367 ac_status=$?
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; } &&
20370 { ac_try='test -s conftest$ac_exeext'
20371 { (case "(($ac_try" in
20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373 *) ac_try_echo=$ac_try;;
20374esac
20375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376 (eval "$ac_try") 2>&5
20377 ac_status=$?
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; }; then
20380 eval "$as_ac_var=yes"
20381else
20382 echo "$as_me: failed program was:" >&5
20383sed 's/^/| /' conftest.$ac_ext >&5
20384
20385 eval "$as_ac_var=no"
20386fi
20387
20388rm -f core conftest.err conftest.$ac_objext \
20389 conftest$ac_exeext conftest.$ac_ext
20390fi
20391ac_res=`eval echo '${'$as_ac_var'}'`
20392 { echo "$as_me:$LINENO: result: $ac_res" >&5
20393echo "${ECHO_T}$ac_res" >&6; }
20394if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020395 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000020397_ACEOF
20398
20399fi
20400done
20401
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020402{ echo "$as_me:$LINENO: checking for working mmap" >&5
20403echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20404if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020406else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020407 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020408 ac_cv_func_mmap_fixed_mapped=no
20409else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020410 cat >conftest.$ac_ext <<_ACEOF
20411/* confdefs.h. */
20412_ACEOF
20413cat confdefs.h >>conftest.$ac_ext
20414cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020415/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020416$ac_includes_default
20417/* malloc might have been renamed as rpl_malloc. */
20418#undef malloc
20419
20420/* Thanks to Mike Haertel and Jim Avera for this test.
20421 Here is a matrix of mmap possibilities:
20422 mmap private not fixed
20423 mmap private fixed at somewhere currently unmapped
20424 mmap private fixed at somewhere already mapped
20425 mmap shared not fixed
20426 mmap shared fixed at somewhere currently unmapped
20427 mmap shared fixed at somewhere already mapped
20428 For private mappings, we should verify that changes cannot be read()
20429 back from the file, nor mmap's back from the file at a different
20430 address. (There have been systems where private was not correctly
20431 implemented like the infamous i386 svr4.0, and systems where the
20432 VM page cache was not coherent with the file system buffer cache
20433 like early versions of FreeBSD and possibly contemporary NetBSD.)
20434 For shared mappings, we should conversely verify that changes get
20435 propagated back to all the places they're supposed to be.
20436
20437 Grep wants private fixed already mapped.
20438 The main things grep needs to know about mmap are:
20439 * does it exist and is it safe to write into the mmap'd area
20440 * how to use it (BSD variants) */
20441
20442#include <fcntl.h>
20443#include <sys/mman.h>
20444
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020445#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020446char *malloc ();
20447#endif
20448
20449/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020450#if !HAVE_GETPAGESIZE
20451/* Assume that all systems that can run configure have sys/param.h. */
20452# if !HAVE_SYS_PARAM_H
20453# define HAVE_SYS_PARAM_H 1
20454# endif
20455
John Criswell7a73b802003-06-30 21:59:07 +000020456# ifdef _SC_PAGESIZE
20457# define getpagesize() sysconf(_SC_PAGESIZE)
20458# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020459# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020460# include <sys/param.h>
20461# ifdef EXEC_PAGESIZE
20462# define getpagesize() EXEC_PAGESIZE
20463# else /* no EXEC_PAGESIZE */
20464# ifdef NBPG
20465# define getpagesize() NBPG * CLSIZE
20466# ifndef CLSIZE
20467# define CLSIZE 1
20468# endif /* no CLSIZE */
20469# else /* no NBPG */
20470# ifdef NBPC
20471# define getpagesize() NBPC
20472# else /* no NBPC */
20473# ifdef PAGESIZE
20474# define getpagesize() PAGESIZE
20475# endif /* PAGESIZE */
20476# endif /* no NBPC */
20477# endif /* no NBPG */
20478# endif /* no EXEC_PAGESIZE */
20479# else /* no HAVE_SYS_PARAM_H */
20480# define getpagesize() 8192 /* punt totally */
20481# endif /* no HAVE_SYS_PARAM_H */
20482# endif /* no _SC_PAGESIZE */
20483
20484#endif /* no HAVE_GETPAGESIZE */
20485
20486int
20487main ()
20488{
20489 char *data, *data2, *data3;
20490 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020491 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020492
20493 pagesize = getpagesize ();
20494
20495 /* First, make a file with some known garbage in it. */
20496 data = (char *) malloc (pagesize);
20497 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020498 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020499 for (i = 0; i < pagesize; ++i)
20500 *(data + i) = rand ();
20501 umask (0);
20502 fd = creat ("conftest.mmap", 0600);
20503 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020504 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020505 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020506 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020507 close (fd);
20508
20509 /* Next, try to mmap the file at a fixed address which already has
20510 something else allocated at it. If we can, also make sure that
20511 we see the same garbage. */
20512 fd = open ("conftest.mmap", O_RDWR);
20513 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020514 return 1;
20515 data2 = (char *) malloc (2 * pagesize);
20516 if (!data2)
20517 return 1;
20518 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020519 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020520 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020521 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020522 for (i = 0; i < pagesize; ++i)
20523 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020524 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020525
20526 /* Finally, make sure that changes to the mapped area do not
20527 percolate back to the file as seen by read(). (This is a bug on
20528 some variants of i386 svr4.0.) */
20529 for (i = 0; i < pagesize; ++i)
20530 *(data2 + i) = *(data2 + i) + 1;
20531 data3 = (char *) malloc (pagesize);
20532 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020533 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020534 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020535 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020536 for (i = 0; i < pagesize; ++i)
20537 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020538 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020539 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020540 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020541}
20542_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020543rm -f conftest$ac_exeext
20544if { (ac_try="$ac_link"
20545case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20548esac
20549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_link") 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20554 { (case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20557esac
20558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_try") 2>&5
20560 ac_status=$?
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020563 ac_cv_func_mmap_fixed_mapped=yes
20564else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020565 echo "$as_me: program exited with status $ac_status" >&5
20566echo "$as_me: failed program was:" >&5
20567sed 's/^/| /' conftest.$ac_ext >&5
20568
20569( exit $ac_status )
20570ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020571fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020572rm -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 +000020573fi
Reid Spencera773bd52006-08-04 18:18:08 +000020574
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020575
John Criswell7a73b802003-06-30 21:59:07 +000020576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020577{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20578echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020579if test $ac_cv_func_mmap_fixed_mapped = yes; then
20580
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020581cat >>confdefs.h <<\_ACEOF
20582#define HAVE_MMAP 1
20583_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020584
20585fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020586rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020587
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020588 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20589echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20590if test "${ac_cv_func_mmap_file+set}" = set; then
20591 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020592else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020593 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020594ac_cpp='$CPP $CPPFLAGS'
20595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20597ac_compiler_gnu=$ac_cv_c_compiler_gnu
20598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020599 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020600 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020601else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020602 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020604 /* confdefs.h. */
20605_ACEOF
20606cat confdefs.h >>conftest.$ac_ext
20607cat >>conftest.$ac_ext <<_ACEOF
20608/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020609
John Criswell7a73b802003-06-30 21:59:07 +000020610#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020611#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020612#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020613
20614int
20615main ()
20616{
John Criswell7a73b802003-06-30 21:59:07 +000020617
20618 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020619 fd = creat ("foo",0777);
20620 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20621 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020622 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020623 ;
20624 return 0;
20625}
John Criswell7a73b802003-06-30 21:59:07 +000020626_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020627rm -f conftest$ac_exeext
20628if { (ac_try="$ac_link"
20629case "(($ac_try" in
20630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631 *) ac_try_echo=$ac_try;;
20632esac
20633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634 (eval "$ac_link") 2>&5
20635 ac_status=$?
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20638 { (case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20641esac
20642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_try") 2>&5
20644 ac_status=$?
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020647 ac_cv_func_mmap_file=yes
20648else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020649 echo "$as_me: program exited with status $ac_status" >&5
20650echo "$as_me: failed program was:" >&5
20651sed 's/^/| /' conftest.$ac_ext >&5
20652
20653( exit $ac_status )
20654ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020655fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020656rm -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 +000020657fi
Reid Spencera773bd52006-08-04 18:18:08 +000020658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020659
John Criswell7a73b802003-06-30 21:59:07 +000020660 ac_ext=c
20661ac_cpp='$CPP $CPPFLAGS'
20662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20664ac_compiler_gnu=$ac_cv_c_compiler_gnu
20665
20666
20667fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020668{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20669echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020670if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020672cat >>confdefs.h <<\_ACEOF
20673#define HAVE_MMAP_FILE
20674_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020675
20676 MMAP_FILE=yes
20677
20678fi
20679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020680 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20681echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20682if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20683 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020684else
Reid Spencer582a23c2004-12-29 07:07:57 +000020685 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020686 ac_cv_need_dev_zero_for_mmap=yes
20687 else
20688 ac_cv_need_dev_zero_for_mmap=no
20689 fi
20690
20691fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020692{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20693echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020694if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020696cat >>confdefs.h <<\_ACEOF
20697#define NEED_DEV_ZERO_FOR_MMAP 1
20698_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020699
20700fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020701
Reid Spencer30fe5262007-01-20 07:48:49 +000020702 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20703 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020704 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20705echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020706 fi
20707 if test "$ac_cv_func_mmap_file" = "no"
20708 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020709 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20710echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020711 fi
John Criswellb13092b2003-07-22 21:00:24 +000020712fi
John Criswell7a73b802003-06-30 21:59:07 +000020713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020714{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20715echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020716ac_ext=cpp
20717ac_cpp='$CXXCPP $CPPFLAGS'
20718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020722cat >conftest.$ac_ext <<_ACEOF
20723/* confdefs.h. */
20724_ACEOF
20725cat confdefs.h >>conftest.$ac_ext
20726cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020727/* end confdefs.h. */
20728int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020729 volatile unsigned long val = 1;
20730 __sync_synchronize();
20731 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020732 __sync_add_and_fetch(&val, 1);
20733 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020734 return 0;
20735 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020736
20737_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020738rm -f conftest.$ac_objext conftest$ac_exeext
20739if { (ac_try="$ac_link"
20740case "(($ac_try" in
20741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742 *) ac_try_echo=$ac_try;;
20743esac
20744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745 (eval "$ac_link") 2>conftest.er1
20746 ac_status=$?
20747 grep -v '^ *+' conftest.er1 >conftest.err
20748 rm -f conftest.er1
20749 cat conftest.err >&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } &&
20752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20753 { (case "(($ac_try" in
20754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755 *) ac_try_echo=$ac_try;;
20756esac
20757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758 (eval "$ac_try") 2>&5
20759 ac_status=$?
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; } &&
20762 { ac_try='test -s conftest$ac_exeext'
20763 { (case "(($ac_try" in
20764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765 *) ac_try_echo=$ac_try;;
20766esac
20767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768 (eval "$ac_try") 2>&5
20769 ac_status=$?
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020772 ac_ext=c
20773ac_cpp='$CPP $CPPFLAGS'
20774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20776ac_compiler_gnu=$ac_cv_c_compiler_gnu
20777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020778 { echo "$as_me:$LINENO: result: yes" >&5
20779echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020781cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020782#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020783_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020784
Owen Andersond4b272b2009-05-18 23:58:51 +000020785else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020786 echo "$as_me: failed program was:" >&5
20787sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020789 { echo "$as_me:$LINENO: result: no" >&5
20790echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020792cat >>confdefs.h <<\_ACEOF
Eric Christopher627445f2011-09-19 20:43:23 +000020793#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020794_ACEOF
20795
20796 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20797echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020798fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020799
Owen Andersond4b272b2009-05-18 23:58:51 +000020800rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020801 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020802
John Criswell7a73b802003-06-30 21:59:07 +000020803
Nick Lewycky4372e692009-09-29 06:18:23 +000020804if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020805 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20806echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20807if test "${llvm_cv_linux_mixed+set}" = set; then
20808 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020809else
20810 ac_ext=c
20811ac_cpp='$CPP $CPPFLAGS'
20812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20814ac_compiler_gnu=$ac_cv_c_compiler_gnu
20815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020816 cat >conftest.$ac_ext <<_ACEOF
20817/* confdefs.h. */
20818_ACEOF
20819cat confdefs.h >>conftest.$ac_ext
20820cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020821/* end confdefs.h. */
20822#ifndef __x86_64__
20823 error: Not x86-64 even if uname says so!
20824 #endif
20825
20826int
20827main ()
20828{
20829
20830 ;
20831 return 0;
20832}
20833_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020834rm -f conftest.$ac_objext
20835if { (ac_try="$ac_compile"
20836case "(($ac_try" in
20837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20838 *) ac_try_echo=$ac_try;;
20839esac
20840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20841 (eval "$ac_compile") 2>conftest.er1
20842 ac_status=$?
20843 grep -v '^ *+' conftest.er1 >conftest.err
20844 rm -f conftest.er1
20845 cat conftest.err >&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); } &&
20848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20849 { (case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20852esac
20853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_try") 2>&5
20855 ac_status=$?
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; } &&
20858 { ac_try='test -s conftest.$ac_objext'
20859 { (case "(($ac_try" in
20860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861 *) ac_try_echo=$ac_try;;
20862esac
20863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20864 (eval "$ac_try") 2>&5
20865 ac_status=$?
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020868 llvm_cv_linux_mixed=no
20869else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020870 echo "$as_me: failed program was:" >&5
20871sed 's/^/| /' conftest.$ac_ext >&5
20872
20873 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020874fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020875
Nick Lewycky4372e692009-09-29 06:18:23 +000020876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20877 ac_ext=c
20878ac_cpp='$CPP $CPPFLAGS'
20879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20881ac_compiler_gnu=$ac_cv_c_compiler_gnu
20882
20883
20884fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020885{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20886echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020887
20888 if test "$llvm_cv_linux_mixed" = "yes"; then
20889 llvm_cv_target_arch="x86"
20890 ARCH="x86"
20891 fi
20892fi
20893
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020894
Reid Spencer9372f152007-07-30 20:13:24 +000020895for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020896do
20897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20898{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20900if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20901 echo $ECHO_N "(cached) $ECHO_C" >&6
20902else
20903 cat >conftest.$ac_ext <<_ACEOF
20904/* confdefs.h. */
20905_ACEOF
20906cat confdefs.h >>conftest.$ac_ext
20907cat >>conftest.$ac_ext <<_ACEOF
20908/* end confdefs.h. */
20909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20911#define $ac_func innocuous_$ac_func
20912
20913/* System header to define __stub macros and hopefully few prototypes,
20914 which can conflict with char $ac_func (); below.
20915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20916 <limits.h> exists even on freestanding compilers. */
20917
20918#ifdef __STDC__
20919# include <limits.h>
20920#else
20921# include <assert.h>
20922#endif
20923
20924#undef $ac_func
20925
20926/* Override any GCC internal prototype to avoid an error.
20927 Use char because int might match the return type of a GCC
20928 builtin and then its argument prototype would still apply. */
20929#ifdef __cplusplus
20930extern "C"
20931#endif
20932char $ac_func ();
20933/* The GNU C library defines this for functions which it implements
20934 to always fail with ENOSYS. Some functions are actually named
20935 something starting with __ and the normal name is an alias. */
20936#if defined __stub_$ac_func || defined __stub___$ac_func
20937choke me
20938#endif
20939
20940int
20941main ()
20942{
20943return $ac_func ();
20944 ;
20945 return 0;
20946}
20947_ACEOF
20948rm -f conftest.$ac_objext conftest$ac_exeext
20949if { (ac_try="$ac_link"
20950case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20953esac
20954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955 (eval "$ac_link") 2>conftest.er1
20956 ac_status=$?
20957 grep -v '^ *+' conftest.er1 >conftest.err
20958 rm -f conftest.er1
20959 cat conftest.err >&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } &&
20962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20963 { (case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20966esac
20967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_try") 2>&5
20969 ac_status=$?
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; } &&
20972 { ac_try='test -s conftest$ac_exeext'
20973 { (case "(($ac_try" in
20974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20975 *) ac_try_echo=$ac_try;;
20976esac
20977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20978 (eval "$ac_try") 2>&5
20979 ac_status=$?
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); }; }; then
20982 eval "$as_ac_var=yes"
20983else
20984 echo "$as_me: failed program was:" >&5
20985sed 's/^/| /' conftest.$ac_ext >&5
20986
20987 eval "$as_ac_var=no"
20988fi
20989
20990rm -f core conftest.err conftest.$ac_objext \
20991 conftest$ac_exeext conftest.$ac_ext
20992fi
20993ac_res=`eval echo '${'$as_ac_var'}'`
20994 { echo "$as_me:$LINENO: result: $ac_res" >&5
20995echo "${ECHO_T}$ac_res" >&6; }
20996if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020997 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020998#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020999_ACEOF
21000
21001fi
21002done
21003
21004
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021005SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000021006
21007
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021008SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21009
21010
Jeff Cohen28783c32007-01-12 18:22:38 +000021011if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000021012 prefix="/usr/local"
21013fi
Reid Spencere9de0912004-08-20 09:03:57 +000021014eval LLVM_PREFIX="${prefix}";
21015eval LLVM_BINDIR="${prefix}/bin";
21016eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000021017eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000021018eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000021019eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000021020eval LLVM_INCLUDEDIR="${prefix}/include";
21021eval LLVM_INFODIR="${prefix}/info";
21022eval LLVM_MANDIR="${prefix}/man";
21023LLVM_CONFIGTIME=`date`
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
Daniel Dunbarc70b79e2012-03-02 16:24:21 +000021035if test "${ENABLE_TIMESTAMPS}" = "0"; then
21036 LLVM_CONFIGTIME="(timestamp not enabled)"
21037fi
21038
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021039
Reid Spencere9de0912004-08-20 09:03:57 +000021040cat >>confdefs.h <<_ACEOF
21041#define LLVM_PREFIX "$LLVM_PREFIX"
21042_ACEOF
21043
21044
21045cat >>confdefs.h <<_ACEOF
21046#define LLVM_BINDIR "$LLVM_BINDIR"
21047_ACEOF
21048
21049
21050cat >>confdefs.h <<_ACEOF
21051#define LLVM_LIBDIR "$LLVM_LIBDIR"
21052_ACEOF
21053
21054
21055cat >>confdefs.h <<_ACEOF
21056#define LLVM_DATADIR "$LLVM_DATADIR"
21057_ACEOF
21058
21059
21060cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000021061#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021062_ACEOF
21063
21064
21065cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000021066#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000021067_ACEOF
21068
21069
21070cat >>confdefs.h <<_ACEOF
21071#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21072_ACEOF
21073
21074
21075cat >>confdefs.h <<_ACEOF
21076#define LLVM_INFODIR "$LLVM_INFODIR"
21077_ACEOF
21078
21079
21080cat >>confdefs.h <<_ACEOF
21081#define LLVM_MANDIR "$LLVM_MANDIR"
21082_ACEOF
21083
21084
21085cat >>confdefs.h <<_ACEOF
21086#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21087_ACEOF
21088
21089
Eric Christopher790e11c2007-12-01 00:34:39 +000021090cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000021091#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christopher790e11c2007-12-01 00:34:39 +000021092_ACEOF
21093
21094
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021095if test "$BINDINGS_TO_BUILD" = auto ; then
21096 BINDINGS_TO_BUILD=""
21097 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21098 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21099 fi
21100fi
21101BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21102
21103
Gordon Henriksenc0efff82007-10-02 09:50:32 +000021104ALL_BINDINGS=ocaml
21105
21106
Gordon Henriksenf0915682007-10-02 16:42:22 +000021107binding_prereqs_failed=0
21108for a_binding in $BINDINGS_TO_BUILD ; do
21109 case "$a_binding" in
21110 ocaml)
21111 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021112 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21113echo "$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 +000021114 binding_prereqs_failed=1
21115 fi
21116 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021117 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21118echo "$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 +000021119 binding_prereqs_failed=1
21120 fi
21121 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021122 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21123echo "$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 +000021124 fi
21125 if test "x$with_ocaml_libdir" != xauto ; then
21126 OCAML_LIBDIR=$with_ocaml_libdir
21127
21128 else
21129 ocaml_stdlib="`"$OCAMLC" -where`"
21130 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21131 then
21132 # ocaml stdlib is beneath our prefix; use stdlib
21133 OCAML_LIBDIR=$ocaml_stdlib
21134
21135 else
21136 # ocaml stdlib is outside our prefix; use libdir/ocaml
21137 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21138
21139 fi
21140 fi
21141 ;;
21142 esac
21143done
21144if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021145 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21146echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21147 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000021148fi
21149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021150{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21151echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21152if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21153 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021154else
21155 ac_ext=cpp
21156ac_cpp='$CXXCPP $CPPFLAGS'
21157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21160
21161 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi273df0b2012-02-19 12:05:12 +000021162 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021163 cat >conftest.$ac_ext <<_ACEOF
21164/* confdefs.h. */
21165_ACEOF
21166cat confdefs.h >>conftest.$ac_ext
21167cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021168/* end confdefs.h. */
Benjamin Kramerb8c20b82011-12-22 22:50:44 +000021169template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021170int
21171main ()
21172{
Benjamin Kramercfe96c82011-12-22 22:25:26 +000021173X<int>().f();
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021174 ;
21175 return 0;
21176}
21177_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021178rm -f conftest.$ac_objext
21179if { (ac_try="$ac_compile"
21180case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21183esac
21184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_compile") 2>conftest.er1
21186 ac_status=$?
21187 grep -v '^ *+' conftest.er1 >conftest.err
21188 rm -f conftest.er1
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } &&
21192 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21193 { (case "(($ac_try" in
21194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21196esac
21197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_try") 2>&5
21199 ac_status=$?
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; } &&
21202 { ac_try='test -s conftest.$ac_objext'
21203 { (case "(($ac_try" in
21204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205 *) ac_try_echo=$ac_try;;
21206esac
21207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208 (eval "$ac_try") 2>&5
21209 ac_status=$?
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021212 llvm_cv_cxx_visibility_inlines_hidden=yes
21213else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021214 echo "$as_me: failed program was:" >&5
21215sed 's/^/| /' conftest.$ac_ext >&5
21216
21217 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021218fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021219
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21221 CXXFLAGS="$oldcxxflags"
21222 ac_ext=c
21223ac_cpp='$CPP $CPPFLAGS'
21224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21226ac_compiler_gnu=$ac_cv_c_compiler_gnu
21227
21228
21229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021230{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21231echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000021232if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21233 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21234
21235else
21236 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21237
21238fi
21239
Gordon Henriksenf0915682007-10-02 16:42:22 +000021240
Nick Lewycky731c6ab2009-03-05 08:20:44 +000021241if test "$llvm_cv_link_use_r" = "yes" ; then
21242 RPATH="-Wl,-R"
21243else
21244 RPATH="-Wl,-rpath"
21245fi
21246
21247
21248if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21249 RDYNAMIC="-Wl,-export-dynamic"
21250else
21251 RDYNAMIC=""
21252fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021253
21254
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021255
Eric Christophera1cba682010-08-08 02:44:25 +000021256ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021257
Eric Christopher21d3eeb2010-08-08 09:20:39 +000021258
21259
21260
21261
21262
Douglas Gregor1555a232009-06-16 20:12:29 +000021263ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21264
21265ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21266
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021267ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21268
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021269ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21270
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021271ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021272
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021273
Reid Spencera773bd52006-08-04 18:18:08 +000021274ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021275
Eric Christopher360fa9a2011-10-26 00:42:12 +000021276
Reid Spencerea949cf2006-08-16 00:45:38 +000021277ac_config_files="$ac_config_files llvm.spec"
21278
21279
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021280ac_config_files="$ac_config_files docs/doxygen.cfg"
21281
Eric Christopher63c09512012-02-02 00:16:55 +000021282
Dylan Noblesmith3e82b4a2012-02-04 02:41:36 +000021283if test "${clang_src_root}" = ""; then
Eric Christopher9b3cd482012-02-02 01:11:30 +000021284 clang_src_root="$srcdir/tools/clang"
Eric Christopherac898652012-02-02 00:19:05 +000021285fi
Eric Christopher63c09512012-02-02 00:16:55 +000021286if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021287 configh="include/clang/Config/config.h"
21288 doxy="docs/doxygen.cfg"
21289 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopher63c09512012-02-02 00:16:55 +000021290
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021291 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021292
21293fi
21294
Torok Edwin4c4b71c2011-10-14 20:38:02 +000021295ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencerf2722ca2006-03-22 15:59:55 +000021296
Eric Christopher360fa9a2011-10-26 00:42:12 +000021297
Reid Spencera773bd52006-08-04 18:18:08 +000021298ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000021299
Reid Spencera773bd52006-08-04 18:18:08 +000021300ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021301
21302
Reid Spencera773bd52006-08-04 18:18:08 +000021303ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021304
21305
Reid Spencera773bd52006-08-04 18:18:08 +000021306ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021307
21308
Reid Spencera773bd52006-08-04 18:18:08 +000021309ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021310
21311
Reid Spencer8b2e1412006-11-17 03:32:33 +000021312ac_config_commands="$ac_config_commands runtime/Makefile"
21313
21314
Reid Spencera773bd52006-08-04 18:18:08 +000021315ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021316
21317
Reid Spencera773bd52006-08-04 18:18:08 +000021318ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021319
21320
Bill Wendlingf24eb392009-01-04 23:12:30 +000021321ac_config_commands="$ac_config_commands unittests/Makefile"
21322
21323
Reid Spencera773bd52006-08-04 18:18:08 +000021324ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021325
21326
Reid Spencera773bd52006-08-04 18:18:08 +000021327ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021328
21329
Reid Spencera773bd52006-08-04 18:18:08 +000021330ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021331
21332
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021333ac_config_commands="$ac_config_commands bindings/Makefile"
21334
21335
21336ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21337
21338
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021339
John Criswell7a73b802003-06-30 21:59:07 +000021340cat >confcache <<\_ACEOF
21341# This file is a shell script that caches the results of configure
21342# tests run on this system so they can be shared between configure
21343# scripts and configure runs, see configure's option --config-cache.
21344# It is not useful on other systems. If it contains results you don't
21345# want to keep, you may remove or edit it.
21346#
21347# config.status only pays attention to the cache file if you give it
21348# the --recheck option to rerun configure.
21349#
John Criswell0c38eaf2003-09-10 15:17:25 +000021350# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021351# loading this file, other *unset* `ac_cv_foo' will be assigned the
21352# following values.
21353
21354_ACEOF
21355
21356# The following way of writing the cache mishandles newlines in values,
21357# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000021358# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000021359# Ultrix sh set writes to stderr and can't be redirected directly,
21360# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000021361(
21362 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21363 eval ac_val=\$$ac_var
21364 case $ac_val in #(
21365 *${as_nl}*)
21366 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021367 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21368echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021369 esac
21370 case $ac_var in #(
21371 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021372 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021373 esac ;;
21374 esac
21375 done
21376
John Criswell7a73b802003-06-30 21:59:07 +000021377 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021378 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21379 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021380 # `set' does not quote correctly, so add quotes (double-quote
21381 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021382 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021383 "s/'/'\\\\''/g;
21384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021385 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021386 *)
21387 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021389 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021390 esac |
21391 sort
21392) |
John Criswell7a73b802003-06-30 21:59:07 +000021393 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021394 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021395 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021396 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21398 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21400 :end' >>confcache
21401if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21402 if test -w "$cache_file"; then
21403 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021404 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21405echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021406 cat confcache >$cache_file
21407 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021408 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21409echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021410 fi
21411fi
21412rm -f confcache
21413
21414test "x$prefix" = xNONE && prefix=$ac_default_prefix
21415# Let make expand exec_prefix.
21416test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21417
John Criswell7a73b802003-06-30 21:59:07 +000021418DEFS=-DHAVE_CONFIG_H
21419
John Criswell0c38eaf2003-09-10 15:17:25 +000021420ac_libobjs=
21421ac_ltlibobjs=
21422for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21423 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021424 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021425 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021426 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21427 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021428 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21429 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021430done
21431LIBOBJS=$ac_libobjs
21432
21433LTLIBOBJS=$ac_ltlibobjs
21434
21435
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021436if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021437 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21438Usually this means the macro was only invoked conditionally." >&5
21439echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21440Usually this means the macro was only invoked conditionally." >&2;}
21441 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021442fi
21443if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021444 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21445Usually this means the macro was only invoked conditionally." >&5
21446echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21447Usually this means the macro was only invoked conditionally." >&2;}
21448 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021449fi
John Criswell7a73b802003-06-30 21:59:07 +000021450
21451: ${CONFIG_STATUS=./config.status}
21452ac_clean_files_save=$ac_clean_files
21453ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021454{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21455echo "$as_me: creating $CONFIG_STATUS" >&6;}
21456cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021457#! $SHELL
21458# Generated by $as_me.
21459# Run this file to recreate the current configuration.
21460# Compiler output produced by configure, useful for debugging
21461# configure, is in config.log if it exists.
21462
21463debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021464ac_cs_recheck=false
21465ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021466SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021467_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021469cat >>$CONFIG_STATUS <<\_ACEOF
21470## --------------------- ##
21471## M4sh Initialization. ##
21472## --------------------- ##
21473
21474# Be Bourne compatible
21475if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021476 emulate sh
21477 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021478 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021479 # is contrary to our usage. Disable this feature.
21480 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021481 setopt NO_GLOB_SUBST
21482else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021483 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021484fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021485BIN_SH=xpg4; export BIN_SH # for Tru64
21486DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021487
John Criswell7a73b802003-06-30 21:59:07 +000021488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021489# PATH needs CR
21490# Avoid depending upon Character Ranges.
21491as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21492as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21493as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21494as_cr_digits='0123456789'
21495as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021496
21497# The user is always right.
21498if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021499 echo "#! /bin/sh" >conf$$.sh
21500 echo "exit 0" >>conf$$.sh
21501 chmod +x conf$$.sh
21502 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21503 PATH_SEPARATOR=';'
21504 else
21505 PATH_SEPARATOR=:
21506 fi
21507 rm -f conf$$.sh
21508fi
21509
21510# Support unset when possible.
21511if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21512 as_unset=unset
21513else
21514 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021515fi
John Criswell7a73b802003-06-30 21:59:07 +000021516
Reid Spencera773bd52006-08-04 18:18:08 +000021517
21518# IFS
21519# We need space, tab and new line, in precisely that order. Quoting is
21520# there to prevent editors from complaining about space-tab.
21521# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21522# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021523as_nl='
21524'
Reid Spencera773bd52006-08-04 18:18:08 +000021525IFS=" "" $as_nl"
21526
21527# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021528case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021529 *[\\/]* ) as_myself=$0 ;;
21530 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021531for as_dir in $PATH
21532do
21533 IFS=$as_save_IFS
21534 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021535 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21536done
Reid Spencera773bd52006-08-04 18:18:08 +000021537IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021538
Reid Spencera773bd52006-08-04 18:18:08 +000021539 ;;
21540esac
21541# We did not find ourselves, most probably we were run as `sh COMMAND'
21542# in which case we are not to be found in the path.
21543if test "x$as_myself" = x; then
21544 as_myself=$0
21545fi
21546if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021547 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21548 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021549fi
21550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021551# Work around bugs in pre-3.0 UWIN ksh.
21552for as_var in ENV MAIL MAILPATH
21553do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021554done
21555PS1='$ '
21556PS2='> '
21557PS4='+ '
21558
21559# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021560for as_var in \
21561 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21562 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21563 LC_TELEPHONE LC_TIME
21564do
21565 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21566 eval $as_var=C; export $as_var
21567 else
21568 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021569 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021570done
Torok Edwin871384f2010-01-26 08:50:50 +000021571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021572# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021573if expr a : '\(a\)' >/dev/null 2>&1 &&
21574 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21575 as_expr=expr
21576else
21577 as_expr=false
21578fi
21579
21580if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21581 as_basename=basename
21582else
21583 as_basename=false
21584fi
21585
21586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021587# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021588as_me=`$as_basename -- "$0" ||
21589$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21590 X"$0" : 'X\(//\)$' \| \
21591 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021592echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021593 sed '/^.*\/\([^/][^/]*\)\/*$/{
21594 s//\1/
21595 q
21596 }
21597 /^X\/\(\/\/\)$/{
21598 s//\1/
21599 q
21600 }
21601 /^X\/\(\/\).*/{
21602 s//\1/
21603 q
21604 }
21605 s/.*/./; q'`
21606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021607# CDPATH.
21608$as_unset CDPATH
21609
21610
21611
21612 as_lineno_1=$LINENO
21613 as_lineno_2=$LINENO
21614 test "x$as_lineno_1" != "x$as_lineno_2" &&
21615 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21616
21617 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21618 # uniformly replaced by the line number. The first 'sed' inserts a
21619 # line-number line after each line using $LINENO; the second 'sed'
21620 # does the real work. The second script uses 'N' to pair each
21621 # line-number line with the line containing $LINENO, and appends
21622 # trailing '-' during substitution so that $LINENO is not a special
21623 # case at line end.
21624 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21625 # scripts with optimization help from Paolo Bonzini. Blame Lee
21626 # E. McMahon (1931-1989) for sed's syntax. :-)
21627 sed -n '
21628 p
21629 /[$]LINENO/=
21630 ' <$as_myself |
21631 sed '
21632 s/[$]LINENO.*/&-/
21633 t lineno
21634 b
21635 :lineno
21636 N
21637 :loop
21638 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21639 t loop
21640 s/-\n.*//
21641 ' >$as_me.lineno &&
21642 chmod +x "$as_me.lineno" ||
21643 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21644 { (exit 1); exit 1; }; }
21645
21646 # Don't try to exec as it changes $[0], causing all sort of problems
21647 # (the dirname of $[0] is not the place where we might find the
21648 # original and so on. Autoconf is especially sensitive to this).
21649 . "./$as_me.lineno"
21650 # Exit status is that of the last command.
21651 exit
21652}
21653
21654
21655if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21656 as_dirname=dirname
21657else
21658 as_dirname=false
21659fi
Reid Spencera773bd52006-08-04 18:18:08 +000021660
21661ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021662case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021663-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021664 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021665 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021666 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021667 esac;;
21668*)
21669 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021670esac
21671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021672if expr a : '\(a\)' >/dev/null 2>&1 &&
21673 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21674 as_expr=expr
21675else
21676 as_expr=false
21677fi
21678
John Criswell7a73b802003-06-30 21:59:07 +000021679rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021680if test -d conf$$.dir; then
21681 rm -f conf$$.dir/conf$$.file
21682else
21683 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021684 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021685fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021686echo >conf$$.file
21687if ln -s conf$$.file conf$$ 2>/dev/null; then
21688 as_ln_s='ln -s'
21689 # ... but there are two gotchas:
21690 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21691 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21692 # In both cases, we have to default to `cp -p'.
21693 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021694 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021695elif ln conf$$.file conf$$ 2>/dev/null; then
21696 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021697else
21698 as_ln_s='cp -p'
21699fi
Reid Spencera773bd52006-08-04 18:18:08 +000021700rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21701rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021702
John Criswell0c38eaf2003-09-10 15:17:25 +000021703if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021704 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021705else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021706 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021707 as_mkdir_p=false
21708fi
21709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021710# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21711# systems may use methods other than mode bits to determine executability.
21712cat >conf$$.file <<_ASEOF
21713#! /bin/sh
21714exit 0
21715_ASEOF
21716chmod +x conf$$.file
21717if test -x conf$$.file >/dev/null 2>&1; then
21718 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021719else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021720 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021721fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021722rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021723
21724# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021725as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021726
21727# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021728as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021729
21730
John Criswell7a73b802003-06-30 21:59:07 +000021731exec 6>&1
21732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021733# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021734# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021735# values after options handling.
21736ac_log="
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021737This file was extended by LLVM $as_me 3.2svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021738generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021739
21740 CONFIG_FILES = $CONFIG_FILES
21741 CONFIG_HEADERS = $CONFIG_HEADERS
21742 CONFIG_LINKS = $CONFIG_LINKS
21743 CONFIG_COMMANDS = $CONFIG_COMMANDS
21744 $ $0 $@
21745
Reid Spencera773bd52006-08-04 18:18:08 +000021746on `(hostname || uname -n) 2>/dev/null | sed 1q`
21747"
21748
John Criswell7a73b802003-06-30 21:59:07 +000021749_ACEOF
21750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021751cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021752# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021753config_files="$ac_config_files"
21754config_headers="$ac_config_headers"
21755config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021756
Reid Spencera773bd52006-08-04 18:18:08 +000021757_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021759cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021760ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021761\`$as_me' instantiates files from templates according to the
21762current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021764Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021765
21766 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021767 -V, --version print version number, then exit
21768 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021769 -d, --debug don't remove temporary files
21770 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021771 --file=FILE[:TEMPLATE]
21772 instantiate the configuration file FILE
21773 --header=FILE[:TEMPLATE]
21774 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021775
21776Configuration files:
21777$config_files
21778
21779Configuration headers:
21780$config_headers
21781
John Criswellc764fbc2003-09-06 15:17:13 +000021782Configuration commands:
21783$config_commands
21784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021785Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021786
Reid Spencera773bd52006-08-04 18:18:08 +000021787_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021788cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021789ac_cs_version="\\
Benjamin Kramerb85b2d52012-04-20 18:15:07 +000021790LLVM config.status 3.2svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021791configured by $0, generated by GNU Autoconf 2.60,
21792 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021794Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021795This config.status script is free software; the Free Software Foundation
21796gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021797
21798ac_pwd='$ac_pwd'
21799srcdir='$srcdir'
21800INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021801_ACEOF
21802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021803cat >>$CONFIG_STATUS <<\_ACEOF
21804# If no file are specified by the user, then we need to provide default
21805# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021806ac_need_defaults=:
21807while test $# != 0
21808do
21809 case $1 in
21810 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021811 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21812 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021813 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021814 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021815 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021816 ac_option=$1
21817 ac_optarg=$2
21818 ac_shift=shift
21819 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021820 esac
21821
John Criswell0c38eaf2003-09-10 15:17:25 +000021822 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021823 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021824 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21825 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021826 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021827 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021828 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021829 debug=: ;;
21830 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021831 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021832 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021833 ac_need_defaults=false;;
21834 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021835 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021836 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021837 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021838 --he | --h)
21839 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021840 { echo "$as_me: error: ambiguous option: $1
21841Try \`$0 --help' for more information." >&2
21842 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021843 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021844 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021845 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21846 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21847 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021848
21849 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021850 -*) { echo "$as_me: error: unrecognized option: $1
21851Try \`$0 --help' for more information." >&2
21852 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021853
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021854 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021855 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021856
21857 esac
21858 shift
21859done
21860
John Criswell0c38eaf2003-09-10 15:17:25 +000021861ac_configure_extra_args=
21862
21863if $ac_cs_silent; then
21864 exec 6>/dev/null
21865 ac_configure_extra_args="$ac_configure_extra_args --silent"
21866fi
21867
21868_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021869cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021870if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021871 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21872 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021873 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021874 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021875fi
21876
John Criswell7a73b802003-06-30 21:59:07 +000021877_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021878cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021879exec 5>>config.log
21880{
21881 echo
21882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21883## Running $as_me. ##
21884_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021885 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021886} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021887
Reid Spencera773bd52006-08-04 18:18:08 +000021888_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021889cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021890#
Reid Spencera773bd52006-08-04 18:18:08 +000021891# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021892#
Reid Spencerc0682832005-02-24 19:05:19 +000021893llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021894
21895_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021896
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021897cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021898
21899# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021900for ac_config_target in $ac_config_targets
21901do
Reid Spencera773bd52006-08-04 18:18:08 +000021902 case $ac_config_target in
21903 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021904 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021905 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21906 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021907 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021908 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer1f6efa32010-11-29 18:16:10 +000021909 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021910 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021911 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne7be3a602011-05-13 03:27:56 +000021912 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmith965a1662012-02-04 03:00:50 +000021913 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21914 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher360fa9a2011-10-26 00:42:12 +000021915 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021916 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21917 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21918 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21919 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21920 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021921 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021922 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21923 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021924 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021925 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21926 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21927 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021928 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21929 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021930
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021931 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21932echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21933 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021934 esac
21935done
21936
Reid Spencera773bd52006-08-04 18:18:08 +000021937
John Criswell7a73b802003-06-30 21:59:07 +000021938# If the user did not use the arguments to specify the items to instantiate,
21939# then the envvar interface is used. Set only those that are not.
21940# We use the long form for the default assignment because of an extremely
21941# bizarre bug on SunOS 4.1.3.
21942if $ac_need_defaults; then
21943 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21944 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021945 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021946fi
21947
John Criswell0c38eaf2003-09-10 15:17:25 +000021948# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021949# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021950# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021951# Hook for its removal unless debugging.
21952# Note that there is a small window in which the directory will not be cleaned:
21953# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021954$debug ||
21955{
Reid Spencera773bd52006-08-04 18:18:08 +000021956 tmp=
21957 trap 'exit_status=$?
21958 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21959' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021960 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021961}
John Criswell7a73b802003-06-30 21:59:07 +000021962# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021963
John Criswell7a73b802003-06-30 21:59:07 +000021964{
Reid Spencera773bd52006-08-04 18:18:08 +000021965 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021966 test -n "$tmp" && test -d "$tmp"
21967} ||
21968{
Reid Spencera773bd52006-08-04 18:18:08 +000021969 tmp=./conf$$-$RANDOM
21970 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021971} ||
21972{
21973 echo "$me: cannot create a temporary directory in ." >&2
21974 { (exit 1); exit 1; }
21975}
John Criswell7a73b802003-06-30 21:59:07 +000021976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021977#
21978# Set up the sed scripts for CONFIG_FILES section.
21979#
21980
21981# No need to generate the scripts if there are no CONFIG_FILES.
21982# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021983if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021984
21985_ACEOF
21986
Reid Spencera773bd52006-08-04 18:18:08 +000021987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021988
Reid Spencera773bd52006-08-04 18:18:08 +000021989ac_delim='%!_!# '
21990for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021991 cat >conf$$subs.sed <<_ACEOF
21992SHELL!$SHELL$ac_delim
21993PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21994PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21995PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21996PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21997PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21998PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21999exec_prefix!$exec_prefix$ac_delim
22000prefix!$prefix$ac_delim
22001program_transform_name!$program_transform_name$ac_delim
22002bindir!$bindir$ac_delim
22003sbindir!$sbindir$ac_delim
22004libexecdir!$libexecdir$ac_delim
22005datarootdir!$datarootdir$ac_delim
22006datadir!$datadir$ac_delim
22007sysconfdir!$sysconfdir$ac_delim
22008sharedstatedir!$sharedstatedir$ac_delim
22009localstatedir!$localstatedir$ac_delim
22010includedir!$includedir$ac_delim
22011oldincludedir!$oldincludedir$ac_delim
22012docdir!$docdir$ac_delim
22013infodir!$infodir$ac_delim
22014htmldir!$htmldir$ac_delim
22015dvidir!$dvidir$ac_delim
22016pdfdir!$pdfdir$ac_delim
22017psdir!$psdir$ac_delim
22018libdir!$libdir$ac_delim
22019localedir!$localedir$ac_delim
22020mandir!$mandir$ac_delim
22021DEFS!$DEFS$ac_delim
22022ECHO_C!$ECHO_C$ac_delim
22023ECHO_N!$ECHO_N$ac_delim
22024ECHO_T!$ECHO_T$ac_delim
22025LIBS!$LIBS$ac_delim
22026build_alias!$build_alias$ac_delim
22027host_alias!$host_alias$ac_delim
22028target_alias!$target_alias$ac_delim
22029LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022030CC!$CC$ac_delim
22031CFLAGS!$CFLAGS$ac_delim
22032LDFLAGS!$LDFLAGS$ac_delim
22033CPPFLAGS!$CPPFLAGS$ac_delim
22034ac_ct_CC!$ac_ct_CC$ac_delim
22035EXEEXT!$EXEEXT$ac_delim
22036OBJEXT!$OBJEXT$ac_delim
22037CXX!$CXX$ac_delim
22038CXXFLAGS!$CXXFLAGS$ac_delim
22039ac_ct_CXX!$ac_ct_CXX$ac_delim
22040CPP!$CPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022041subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000022042ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22043LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022044build!$build$ac_delim
22045build_cpu!$build_cpu$ac_delim
22046build_vendor!$build_vendor$ac_delim
22047build_os!$build_os$ac_delim
22048host!$host$ac_delim
22049host_cpu!$host_cpu$ac_delim
22050host_vendor!$host_vendor$ac_delim
22051host_os!$host_os$ac_delim
22052target!$target$ac_delim
22053target_cpu!$target_cpu$ac_delim
22054target_vendor!$target_vendor$ac_delim
22055target_os!$target_os$ac_delim
22056OS!$OS$ac_delim
22057HOST_OS!$HOST_OS$ac_delim
22058TARGET_OS!$TARGET_OS$ac_delim
22059LINKALL!$LINKALL$ac_delim
22060NOLINKALL!$NOLINKALL$ac_delim
22061LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22062LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22063ARCH!$ARCH$ac_delim
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022064HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022065ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022066GREP!$GREP$ac_delim
22067EGREP!$EGREP$ac_delim
22068LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22069BUILD_CC!$BUILD_CC$ac_delim
22070BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22071BUILD_CXX!$BUILD_CXX$ac_delim
22072CVSBUILD!$CVSBUILD$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022073ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022074ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22075ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22076DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22077ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22078EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22079DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22080DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22081JIT!$JIT$ac_delim
22082TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Rafael Espindola9d9ae9f2010-11-12 19:24:06 +000022083ENABLE_DOCS!$ENABLE_DOCS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022084ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
NAKAMURA Takumic73f3d12011-11-28 01:07:19 +000022085LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022086ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022087ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022088ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022089_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022090
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022091 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000022092 break
22093 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022094 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22095echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22096 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000022097 else
22098 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000022099 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022100done
22101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022102ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22103if test -n "$ac_eof"; then
22104 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22105 ac_eof=`expr $ac_eof + 1`
22106fi
22107
22108cat >>$CONFIG_STATUS <<_ACEOF
22109cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22110/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000022111_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022112sed '
22113s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22114s/^/s,@/; s/!/@,|#_!!_#|/
22115:n
22116t n
22117s/'"$ac_delim"'$/,g/; t
22118s/$/\\/; p
22119N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22120' >>$CONFIG_STATUS <conf$$subs.sed
22121rm -f conf$$subs.sed
22122cat >>$CONFIG_STATUS <<_ACEOF
22123CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000022124_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022125
22126
22127ac_delim='%!_!# '
22128for ac_last_try in false false false false false :; do
22129 cat >conf$$subs.sed <<_ACEOF
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022130ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopherbee515f2011-11-11 22:51:42 +000022131ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherffee5722011-09-16 20:36:25 +000022132TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22133LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22134LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi8eac8862010-12-29 03:59:14 +000022135LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumi0dc84392010-12-29 03:59:03 +000022136LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022137OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022138EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbared344d22011-06-16 22:30:41 +000022139EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumie5ab51d2011-10-16 02:54:26 +000022140CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000022141BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilsonae7e2a42011-11-28 07:59:52 +000022142INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022143NM!$NM$ac_delim
22144ifGNUmake!$ifGNUmake$ac_delim
22145LN_S!$LN_S$ac_delim
22146CMP!$CMP$ac_delim
22147CP!$CP$ac_delim
22148DATE!$DATE$ac_delim
22149FIND!$FIND$ac_delim
22150MKDIR!$MKDIR$ac_delim
22151MV!$MV$ac_delim
22152RANLIB!$RANLIB$ac_delim
22153AR!$AR$ac_delim
22154RM!$RM$ac_delim
22155SED!$SED$ac_delim
22156TAR!$TAR$ac_delim
22157BINPWD!$BINPWD$ac_delim
22158GRAPHVIZ!$GRAPHVIZ$ac_delim
22159DOT!$DOT$ac_delim
22160FDP!$FDP$ac_delim
22161NEATO!$NEATO$ac_delim
22162TWOPI!$TWOPI$ac_delim
22163CIRCO!$CIRCO$ac_delim
22164GV!$GV$ac_delim
22165DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000022166XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022167INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22168INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22169INSTALL_DATA!$INSTALL_DATA$ac_delim
22170BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000022171CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022172DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022173GROFF!$GROFF$ac_delim
Eric Christopher031d3072010-12-10 01:31:51 +000022174GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022175PDFROFF!$PDFROFF$ac_delim
22176RUNTEST!$RUNTEST$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022177TCLSH!$TCLSH$ac_delim
22178ZIP!$ZIP$ac_delim
22179OCAMLC!$OCAMLC$ac_delim
22180OCAMLOPT!$OCAMLOPT$ac_delim
22181OCAMLDEP!$OCAMLDEP$ac_delim
22182OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbarf468fd82012-05-08 18:26:07 +000022183GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000022184HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022185INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22186INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22187CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22188CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22189LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022190NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22191NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000022192COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022193USE_UDIS86!$USE_UDIS86$ac_delim
22194USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky61b18512012-03-13 08:33:15 +000022195USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22196INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22197INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022198HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22199HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22200MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022201SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000022202SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022203LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22204LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22205LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22206LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22207LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22208LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22209LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22210LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22211LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22212LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22213BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22214ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Eric Christophereeef9e82011-09-20 23:58:15 +000022215OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22216ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22217RPATH!$RPATH$ac_delim
22218RDYNAMIC!$RDYNAMIC$ac_delim
22219LIBOBJS!$LIBOBJS$ac_delim
22220LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000022221_ACEOF
22222
Danil Malyshevbb8cef52012-05-17 21:07:47 +000022223 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022224 break
22225 elif $ac_last_try; then
22226 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22227echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22228 { (exit 1); exit 1; }; }
22229 else
22230 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22231 fi
22232done
22233
22234ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22235if test -n "$ac_eof"; then
22236 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22237 ac_eof=`expr $ac_eof + 1`
22238fi
22239
22240cat >>$CONFIG_STATUS <<_ACEOF
22241cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grossera84b5672010-11-10 16:31:34 +000022242/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22243_ACEOF
22244sed '
22245s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22246s/^/s,@/; s/!/@,|#_!!_#|/
22247:n
22248t n
22249s/'"$ac_delim"'$/,g/; t
22250s/$/\\/; p
22251N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22252' >>$CONFIG_STATUS <conf$$subs.sed
22253rm -f conf$$subs.sed
22254cat >>$CONFIG_STATUS <<_ACEOF
22255:end
22256s/|#_!!_#|//g
22257CEOF$ac_eof
22258_ACEOF
22259
22260
Reid Spencera773bd52006-08-04 18:18:08 +000022261# VPATH may cause trouble with some makes, so we remove $(srcdir),
22262# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22263# trailing colons and then remove the whole line if VPATH becomes empty
22264# (actually we leave an empty line to preserve line numbers).
22265if test "x$srcdir" = x.; then
22266 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22267s/:*\$(srcdir):*/:/
22268s/:*\${srcdir}:*/:/
22269s/:*@srcdir@:*/:/
22270s/^\([^=]*=[ ]*\):*/\1/
22271s/:*$//
22272s/^[^=]*=[ ]*$//
22273}'
22274fi
22275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022276cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022277fi # test -n "$CONFIG_FILES"
22278
Reid Spencera773bd52006-08-04 18:18:08 +000022279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022280for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000022281do
22282 case $ac_tag in
22283 :[FHLC]) ac_mode=$ac_tag; continue;;
22284 esac
22285 case $ac_mode$ac_tag in
22286 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022287 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22288echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22289 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022290 :[FH]-) ac_tag=-:-;;
22291 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22292 esac
22293 ac_save_IFS=$IFS
22294 IFS=:
22295 set x $ac_tag
22296 IFS=$ac_save_IFS
22297 shift
22298 ac_file=$1
22299 shift
22300
22301 case $ac_mode in
22302 :L) ac_source=$1;;
22303 :[FH])
22304 ac_file_inputs=
22305 for ac_f
22306 do
22307 case $ac_f in
22308 -) ac_f="$tmp/stdin";;
22309 *) # Look for the file first in the build tree, then in the source tree
22310 # (if the path is not absolute). The absolute path cannot be DOS-style,
22311 # because $ac_f cannot contain `:'.
22312 test -f "$ac_f" ||
22313 case $ac_f in
22314 [\\/$]*) false;;
22315 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22316 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022317 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22318echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22319 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000022320 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022321 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000022322 done
22323
22324 # Let's still pretend it is `configure' which instantiates (i.e., don't
22325 # use $as_me), people would be surprised to read:
22326 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022327 configure_input="Generated from "`IFS=:
22328 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022329 if test x"$ac_file" != x-; then
22330 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022331 { echo "$as_me:$LINENO: creating $ac_file" >&5
22332echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022333 fi
22334
22335 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022336 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022337 esac
22338 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022339 esac
22340
Reid Spencera773bd52006-08-04 18:18:08 +000022341 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022342$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022343 X"$ac_file" : 'X\(//\)[^/]' \| \
22344 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022345 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022346echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22348 s//\1/
22349 q
22350 }
22351 /^X\(\/\/\)[^/].*/{
22352 s//\1/
22353 q
22354 }
22355 /^X\(\/\/\)$/{
22356 s//\1/
22357 q
22358 }
22359 /^X\(\/\).*/{
22360 s//\1/
22361 q
22362 }
22363 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022364 { as_dir="$ac_dir"
22365 case $as_dir in #(
22366 -*) as_dir=./$as_dir;;
22367 esac
22368 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22369 as_dirs=
22370 while :; do
22371 case $as_dir in #(
22372 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22373 *) as_qdir=$as_dir;;
22374 esac
22375 as_dirs="'$as_qdir' $as_dirs"
22376 as_dir=`$as_dirname -- "$as_dir" ||
22377$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22378 X"$as_dir" : 'X\(//\)[^/]' \| \
22379 X"$as_dir" : 'X\(//\)$' \| \
22380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22381echo X"$as_dir" |
22382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22383 s//\1/
22384 q
22385 }
22386 /^X\(\/\/\)[^/].*/{
22387 s//\1/
22388 q
22389 }
22390 /^X\(\/\/\)$/{
22391 s//\1/
22392 q
22393 }
22394 /^X\(\/\).*/{
22395 s//\1/
22396 q
22397 }
22398 s/.*/./; q'`
22399 test -d "$as_dir" && break
22400 done
22401 test -z "$as_dirs" || eval "mkdir $as_dirs"
22402 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22403echo "$as_me: error: cannot create directory $as_dir" >&2;}
22404 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022405 ac_builddir=.
22406
Reid Spencera773bd52006-08-04 18:18:08 +000022407case "$ac_dir" in
22408.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22409*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022410 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022411 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022412 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022413 case $ac_top_builddir_sub in
22414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22416 esac ;;
22417esac
22418ac_abs_top_builddir=$ac_pwd
22419ac_abs_builddir=$ac_pwd$ac_dir_suffix
22420# for backward compatibility:
22421ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022422
22423case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022424 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022425 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022426 ac_top_srcdir=$ac_top_builddir_sub
22427 ac_abs_top_srcdir=$ac_pwd ;;
22428 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022429 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022430 ac_top_srcdir=$srcdir
22431 ac_abs_top_srcdir=$srcdir ;;
22432 *) # Relative name.
22433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22434 ac_top_srcdir=$ac_top_build_prefix$srcdir
22435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022436esac
Reid Spencera773bd52006-08-04 18:18:08 +000022437ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022438
John Criswell7a73b802003-06-30 21:59:07 +000022439
Reid Spencera773bd52006-08-04 18:18:08 +000022440 case $ac_mode in
22441 :F)
22442 #
22443 # CONFIG_FILE
22444 #
John Criswell7a73b802003-06-30 21:59:07 +000022445
22446 case $INSTALL in
22447 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022448 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022449 esac
John Criswell7a73b802003-06-30 21:59:07 +000022450_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022452cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022453# If the template does not know about datarootdir, expand it.
22454# FIXME: This hack should be removed a few years after 2.60.
22455ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022456
22457case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022458 p
22459 q
22460}
22461/@datadir@/p
22462/@docdir@/p
22463/@infodir@/p
22464/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022465/@mandir@/p
22466' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022467*datarootdir*) ac_datarootdir_seen=yes;;
22468*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022469 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22470echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022471_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022472cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022473 ac_datarootdir_hack='
22474 s&@datadir@&$datadir&g
22475 s&@docdir@&$docdir&g
22476 s&@infodir@&$infodir&g
22477 s&@localedir@&$localedir&g
22478 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022479 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022480esac
22481_ACEOF
22482
22483# Neutralize VPATH when `$srcdir' = `.'.
22484# Shell code in configure.ac might set extrasub.
22485# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022486cat >>$CONFIG_STATUS <<_ACEOF
22487 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022488$extrasub
22489_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022490cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022491:t
22492/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022493s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022494s&@top_builddir@&$ac_top_builddir_sub&;t t
22495s&@srcdir@&$ac_srcdir&;t t
22496s&@abs_srcdir@&$ac_abs_srcdir&;t t
22497s&@top_srcdir@&$ac_top_srcdir&;t t
22498s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22499s&@builddir@&$ac_builddir&;t t
22500s&@abs_builddir@&$ac_abs_builddir&;t t
22501s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22502s&@INSTALL@&$ac_INSTALL&;t t
22503$ac_datarootdir_hack
Eric Christophereeef9e82011-09-20 23:58:15 +000022504" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022505
Reid Spencera773bd52006-08-04 18:18:08 +000022506test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22507 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022509 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022510which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022511echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022512which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022513
Reid Spencera773bd52006-08-04 18:18:08 +000022514 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022515 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022516 -) cat "$tmp/out"; rm -f "$tmp/out";;
22517 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22518 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022519 ;;
22520 :H)
22521 #
22522 # CONFIG_HEADER
22523 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022524_ACEOF
22525
22526# Transform confdefs.h into a sed script `conftest.defines', that
22527# substitutes the proper values into config.h.in to produce config.h.
22528rm -f conftest.defines conftest.tail
22529# First, append a space to every undef/define line, to ease matching.
22530echo 's/$/ /' >conftest.defines
22531# Then, protect against being on the right side of a sed subst, or in
22532# an unquoted here document, in config.status. If some macros were
22533# called several times there might be several #defines for the same
22534# symbol, which is useless. But do not sort them, since the last
22535# AC_DEFINE must be honored.
22536ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22537# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22538# NAME is the cpp macro being defined, VALUE is the value it is being given.
22539# PARAMS is the parameter list in the macro definition--in most cases, it's
22540# just an empty string.
22541ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22542ac_dB='\\)[ (].*,\\1define\\2'
22543ac_dC=' '
22544ac_dD=' ,'
22545
22546uniq confdefs.h |
22547 sed -n '
22548 t rset
22549 :rset
22550 s/^[ ]*#[ ]*define[ ][ ]*//
22551 t ok
22552 d
22553 :ok
22554 s/[\\&,]/\\&/g
22555 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22556 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22557 ' >>conftest.defines
22558
22559# Remove the space that was appended to ease matching.
22560# Then replace #undef with comments. This is necessary, for
22561# example, in the case of _POSIX_SOURCE, which is predefined and required
22562# on some systems where configure will not decide to define it.
22563# (The regexp can be short, since the line contains either #define or #undef.)
22564echo 's/ $//
22565s,^[ #]*u.*,/* & */,' >>conftest.defines
22566
22567# Break up conftest.defines:
22568ac_max_sed_lines=50
22569
22570# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22571# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22572# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22573# et cetera.
22574ac_in='$ac_file_inputs'
22575ac_out='"$tmp/out1"'
22576ac_nxt='"$tmp/out2"'
22577
22578while :
22579do
22580 # Write a here document:
22581 cat >>$CONFIG_STATUS <<_ACEOF
22582 # First, check the format of the line:
22583 cat >"\$tmp/defines.sed" <<\\CEOF
22584/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22585/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22586b
22587:def
22588_ACEOF
22589 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22590 echo 'CEOF
22591 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22592 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22593 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22594 grep . conftest.tail >/dev/null || break
22595 rm -f conftest.defines
22596 mv conftest.tail conftest.defines
22597done
22598rm -f conftest.defines conftest.tail
22599
22600echo "ac_result=$ac_in" >>$CONFIG_STATUS
22601cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022602 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022603 echo "/* $configure_input */" >"$tmp/config.h"
22604 cat "$ac_result" >>"$tmp/config.h"
22605 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22606 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22607echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022608 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022609 rm -f $ac_file
22610 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022611 fi
22612 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022613 echo "/* $configure_input */"
22614 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022615 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022616 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022617 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022619 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22620echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022621 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022622 esac
John Criswell7a73b802003-06-30 21:59:07 +000022623
Reid Spencera773bd52006-08-04 18:18:08 +000022624
22625 case $ac_file$ac_mode in
22626 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022627 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022628 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022629 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022630 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022631 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022632 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022633 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022634 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022635 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022636 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022637 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022638 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022639 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022640 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022641 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022642 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022643 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022644 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022645 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022646 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022647 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022648 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022649 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022650 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022651 ${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 +000022652
22653 esac
22654done # for ac_tag
22655
John Criswell7a73b802003-06-30 21:59:07 +000022656
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022657{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022658_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022659chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022660ac_clean_files=$ac_clean_files_save
22661
22662
22663# configure is writing to config.log, and then calls config.status.
22664# config.status does its own redirection, appending to config.log.
22665# Unfortunately, on DOS this fails, as config.log is still kept open
22666# by configure, so config.status won't be able to write to it; its
22667# output is simply discarded. So we exec the FD to /dev/null,
22668# effectively closing config.log, so it can be properly (re)opened and
22669# appended to by config.status. When coming back to configure, we
22670# need to make the FD available again.
22671if test "$no_create" != yes; then
22672 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022673 ac_config_status_args=
22674 test "$silent" = yes &&
22675 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022676 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022677 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022678 exec 5>>config.log
22679 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22680 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022681 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022682fi
22683
John Criswell12399a12003-09-30 15:55:44 +000022684#
22685# CONFIG_SUBDIRS section.
22686#
22687if test "$no_recursion" != yes; then
22688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022689 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022690 ac_sub_configure_args=
22691 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022692 eval "set x $ac_configure_args"
22693 shift
22694 for ac_arg
22695 do
John Criswell12399a12003-09-30 15:55:44 +000022696 if test -n "$ac_prev"; then
22697 ac_prev=
22698 continue
22699 fi
22700 case $ac_arg in
22701 -cache-file | --cache-file | --cache-fil | --cache-fi \
22702 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22703 ac_prev=cache_file ;;
22704 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22705 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22706 | --c=*)
22707 ;;
22708 --config-cache | -C)
22709 ;;
22710 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22711 ac_prev=srcdir ;;
22712 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22713 ;;
22714 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22715 ac_prev=prefix ;;
22716 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22717 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022718 *)
22719 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022720 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022721 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022722 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022723 esac
22724 done
22725
22726 # Always prepend --prefix to ensure using the same prefix
22727 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022728 ac_arg="--prefix=$prefix"
22729 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022730 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022731 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022732 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022733
22734 ac_popdir=`pwd`
22735 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22736
22737 # Do not complain, so a configure script can configure whichever
22738 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022739 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022740
Reid Spencera773bd52006-08-04 18:18:08 +000022741 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022742 echo "$as_me:$LINENO: $ac_msg" >&5
22743 echo "$ac_msg" >&6
22744 { as_dir="$ac_dir"
22745 case $as_dir in #(
22746 -*) as_dir=./$as_dir;;
22747 esac
22748 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22749 as_dirs=
22750 while :; do
22751 case $as_dir in #(
22752 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22753 *) as_qdir=$as_dir;;
22754 esac
22755 as_dirs="'$as_qdir' $as_dirs"
22756 as_dir=`$as_dirname -- "$as_dir" ||
22757$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22758 X"$as_dir" : 'X\(//\)[^/]' \| \
22759 X"$as_dir" : 'X\(//\)$' \| \
22760 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22761echo X"$as_dir" |
22762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22763 s//\1/
22764 q
22765 }
22766 /^X\(\/\/\)[^/].*/{
22767 s//\1/
22768 q
22769 }
22770 /^X\(\/\/\)$/{
22771 s//\1/
22772 q
22773 }
22774 /^X\(\/\).*/{
22775 s//\1/
22776 q
22777 }
22778 s/.*/./; q'`
22779 test -d "$as_dir" && break
22780 done
22781 test -z "$as_dirs" || eval "mkdir $as_dirs"
22782 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22783echo "$as_me: error: cannot create directory $as_dir" >&2;}
22784 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022785 ac_builddir=.
22786
Reid Spencera773bd52006-08-04 18:18:08 +000022787case "$ac_dir" in
22788.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22789*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022790 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022791 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022792 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022793 case $ac_top_builddir_sub in
22794 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22795 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22796 esac ;;
22797esac
22798ac_abs_top_builddir=$ac_pwd
22799ac_abs_builddir=$ac_pwd$ac_dir_suffix
22800# for backward compatibility:
22801ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022802
22803case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022804 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022805 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022806 ac_top_srcdir=$ac_top_builddir_sub
22807 ac_abs_top_srcdir=$ac_pwd ;;
22808 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022809 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022810 ac_top_srcdir=$srcdir
22811 ac_abs_top_srcdir=$srcdir ;;
22812 *) # Relative name.
22813 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22814 ac_top_srcdir=$ac_top_build_prefix$srcdir
22815 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022816esac
Reid Spencera773bd52006-08-04 18:18:08 +000022817ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022818
22819
Reid Spencera773bd52006-08-04 18:18:08 +000022820 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022821
22822 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022823 if test -f "$ac_srcdir/configure.gnu"; then
22824 ac_sub_configure=$ac_srcdir/configure.gnu
22825 elif test -f "$ac_srcdir/configure"; then
22826 ac_sub_configure=$ac_srcdir/configure
22827 elif test -f "$ac_srcdir/configure.in"; then
22828 # This should be Cygnus configure.
22829 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022830 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022831 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22832echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022833 ac_sub_configure=
22834 fi
22835
22836 # The recursion is here.
22837 if test -n "$ac_sub_configure"; then
22838 # Make the cache file name correct relative to the subdirectory.
22839 case $cache_file in
22840 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022841 *) # Relative name.
22842 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022843 esac
22844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022845 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22846echo "$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 +000022847 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022848 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22849 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022850 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22851echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22852 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022853 fi
22854
Reid Spencera773bd52006-08-04 18:18:08 +000022855 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022856 done
22857fi
22858