blob: b52ae4471d017e13e64952e1802b2ff2c37c600e [file] [log] [blame]
John Criswell3ef61af2003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00003# Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
John Criswell3ef61af2003-06-30 21:59:07 +00004#
Eric Christopherafbe7522011-12-21 00:52:44 +00005# Report bugs to <http://llvm.org/bugs/>.
John Criswell3ef61af2003-06-30 21:59:07 +00006#
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-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 Spencer0241e382004-11-25 04:51:04 +000011#
NAKAMURA Takumi43632a22013-01-01 10:00:19 +000012# Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell3eaf0b42003-09-10 15:17:25 +000016
Daniel Dunbar4e06a5b2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell3eaf0b42003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell3eaf0b42003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell3eaf0b42003-09-10 15:17:25 +000027fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell3eaf0b42003-09-10 15:17:25 +000030
John Criswell3eaf0b42003-09-10 15:17:25 +000031
Jeffrey Yasskinbf5ce0a2010-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 Criswell3eaf0b42003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinbf5ce0a2010-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 Spencer0b52e2f2006-08-04 18:18:08 +000058fi
John Criswell3eaf0b42003-09-10 15:17:25 +000059
Reid Spencer0b52e2f2006-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 Yasskinbf5ce0a2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencer0b52e2f2006-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 Yasskinbf5ce0a2010-02-03 02:11:49 +000071case $0 in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell3eaf0b42003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencer0b52e2f2006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell3eaf0b42003-09-10 15:17:25 +000081
Reid Spencer0b52e2f2006-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 Yasskinbf5ce0a2010-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 Spencer0b52e2f2006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskinbf5ce0a2010-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 Spencer0b52e2f2006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskinbf5ce0a2010-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 Edwinaec06332010-01-26 08:50:50 +0000107do
Jeffrey Yasskinbf5ce0a2010-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 Edwinaec06332010-01-26 08:50:50 +0000110 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwinaec06332010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000113done
Torok Edwinaec06332010-01-26 08:50:50 +0000114
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencer0b52e2f2006-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 Yasskinbf5ce0a2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencer0b52e2f2006-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 Yasskinbf5ce0a2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencer0b52e2f2006-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 Yasskinbf5ce0a2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000152
153
Jeffrey Yasskinbf5ce0a2010-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 Spencer0b52e2f2006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell3eaf0b42003-09-10 15:17:25 +0000440 sed '
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell3eaf0b42003-09-10 15:17:25 +0000445 N
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell3eaf0b42003-09-10 15:17:25 +0000448 t loop
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell3eaf0b42003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskinbf5ce0a2010-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 Criswell3eaf0b42003-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 Spencer0b52e2f2006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell3eaf0b42003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskinbf5ce0a2010-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 Spencer0b52e2f2006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell3eaf0b42003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskinbf5ce0a2010-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 Criswell3eaf0b42003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencer0b52e2f2006-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 Yasskinbf5ce0a2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000494fi
Jeffrey Yasskinbf5ce0a2010-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 Criswell3eaf0b42003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell3eaf0b42003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell3eaf0b42003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell3eaf0b42003-09-10 15:17:25 +0000514else
Reid Spencerf184a862004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell3eaf0b42003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskinbf5ce0a2010-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 Spencer0b52e2f2006-08-04 18:18:08 +0000528else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000530fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell3eaf0b42003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencerf184a862004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3eaf0b42003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencerf184a862004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3eaf0b42003-09-10 15:17:25 +0000538
539
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000542
John Criswell3ef61af2003-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 Criswell3ef61af2003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell3eaf0b42003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell3ef61af2003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell3ef61af2003-06-30 21:59:07 +0000560
John Criswell3ef61af2003-06-30 21:59:07 +0000561# Identity of this package.
Eric Christopherafbe7522011-12-21 00:52:44 +0000562PACKAGE_NAME='LLVM'
563PACKAGE_TARNAME='llvm'
Benjamin Kramer6900a4a2012-11-17 22:01:08 +0000564PACKAGE_VERSION='3.3svn'
565PACKAGE_STRING='LLVM 3.3svn'
Eric Christopherafbe7522011-12-21 00:52:44 +0000566PACKAGE_BUGREPORT='http://llvm.org/bugs/'
John Criswell3ef61af2003-06-30 21:59:07 +0000567
Chandler Carruthfbdae1f2013-01-02 09:22:59 +0000568ac_unique_file="lib/IR/Module.cpp"
John Criswell3ef61af2003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell3ef61af2003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell3ef61af2003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell3ef61af2003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell3ef61af2003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell3ef61af2003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell3ef61af2003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell3ef61af2003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell3ef61af2003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell3ef61af2003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwinaec06332010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskinbf5ce0a2010-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 Christopher58839712011-09-16 20:36:25 +0000643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000654subdirs
Tobias Grosserea9dca42010-10-30 00:54:26 +0000655ENABLE_POLLY
656LLVM_HAS_POLLY
Jeffrey Yasskinbf5ce0a2010-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 Malyshev7c5db452012-05-17 21:07:47 +0000677HOST_ARCH
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000678ENDIAN
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000679GREP
680EGREP
681LLVM_CROSS_COMPILING
682BUILD_CC
683BUILD_EXEEXT
684BUILD_CXX
685CVSBUILD
Eric Christopher1094ded2011-11-11 22:51:42 +0000686ENABLE_LIBCPP
Eric Christopher04e35972012-08-03 19:47:14 +0000687ENABLE_CXX11
Roman Divackyf2bb66b2012-12-13 16:07:19 +0000688ENABLE_CLANG_ARCMT
689ENABLE_CLANG_STATIC_ANALYZER
690ENABLE_CLANG_REWRITER
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000691ENABLE_OPTIMIZED
692ENABLE_PROFILING
693DISABLE_ASSERTIONS
Eric Christopher84864012012-08-03 19:58:20 +0000694ENABLE_WERROR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000695ENABLE_EXPENSIVE_CHECKS
696EXPENSIVE_CHECKS
697DEBUG_RUNTIME
698DEBUG_SYMBOLS
Daniel Dunbar39c04622012-08-14 18:14:22 +0000699KEEP_SYMBOLS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000700JIT
701TARGET_HAS_JIT
Rafael Espindola7ac506d2010-11-12 19:24:06 +0000702ENABLE_DOCS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000703ENABLE_DOXYGEN
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +0000704LLVM_ENABLE_THREADS
NAKAMURA Takumic6fce172010-12-29 03:59:03 +0000705ENABLE_PTHREADS
Alexey Samsonov2fb337e2013-04-23 08:28:39 +0000706LLVM_ENABLE_ZLIB
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000707ENABLE_PIC
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +0000708ENABLE_SHARED
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +0000709ENABLE_EMBED_STDCXX
Daniel Dunbardac18242010-05-10 20:11:56 +0000710ENABLE_TIMESTAMPS
Eric Christopherc6c2b9b2012-11-19 19:31:02 +0000711ENABLE_BACKTRACES
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000712TARGETS_TO_BUILD
713LLVM_ENUM_TARGETS
714LLVM_ENUM_ASM_PRINTERS
715LLVM_ENUM_ASM_PARSERS
716LLVM_ENUM_DISASSEMBLERS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000717OPTIMIZE_OPTION
718EXTRA_OPTIONS
Daniel Dunbar3b95df82011-06-16 22:30:41 +0000719EXTRA_LD_OPTIONS
NAKAMURA Takumi914f1922011-10-16 02:54:26 +0000720CLANG_SRC_ROOT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000721BINUTILS_INCDIR
Bob Wilson3f354702011-11-28 07:59:52 +0000722INTERNAL_PREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000723NM
724ifGNUmake
725LN_S
726CMP
727CP
728DATE
729FIND
730MKDIR
731MV
732RANLIB
733AR
734RM
735SED
736TAR
737BINPWD
738GRAPHVIZ
739DOT
740FDP
741NEATO
742TWOPI
743CIRCO
744GV
745DOTTY
Dan Gohmana0da8892010-09-27 16:28:34 +0000746XDOT_PY
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000747INSTALL_PROGRAM
748INSTALL_SCRIPT
749INSTALL_DATA
750BZIP2
mike-me08af302010-05-06 23:45:43 +0000751CAT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000752DOXYGEN
Daniel Dunbard1888822012-05-08 18:26:07 +0000753GROFF
Eric Christopher77560892010-12-10 01:31:51 +0000754GZIPBIN
Daniel Dunbard1888822012-05-08 18:26:07 +0000755PDFROFF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000756ZIP
757OCAMLC
758OCAMLOPT
759OCAMLDEP
760OCAMLDOC
Daniel Dunbard1888822012-05-08 18:26:07 +0000761GAS
Dan Gohmanb7edb422010-06-01 14:56:56 +0000762HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000763INSTALL_LTDL_TRUE
764INSTALL_LTDL_FALSE
765CONVENIENCE_LTDL_TRUE
766CONVENIENCE_LTDL_FALSE
767LIBADD_DL
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000768NO_VARIADIC_MACROS
769NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola42e94d12012-02-28 23:32:06 +0000770COVERED_SWITCH_DEFAULT
David Greene9ff8d472013-01-09 22:11:13 +0000771NO_MAYBE_UNINITIALIZED
772NO_UNINITIALIZED
Saleem Abdulrasoola1665742013-01-30 04:44:17 +0000773PYTHON
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000774USE_UDIS86
775USE_OPROFILE
Eli Bendersky5262ad22012-03-13 08:33:15 +0000776USE_INTEL_JITEVENTS
Eric Christopherc807c532012-08-03 19:47:19 +0000777XML2CONFIG
778LIBXML2_LIBS
779LIBXML2_INC
Benjamin Kramer00622f72013-05-03 15:55:06 +0000780CXXCPP
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000781HAVE_PTHREAD
Alexey Samsonov2fb337e2013-04-23 08:28:39 +0000782HAVE_LIBZ
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000783HUGE_VAL_SANITY
784MMAP_FILE
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000785SHLIBEXT
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +0000786SHLIBPATH_VAR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000787LLVM_PREFIX
788LLVM_BINDIR
789LLVM_LIBDIR
790LLVM_DATADIR
791LLVM_DOCSDIR
792LLVM_ETCDIR
793LLVM_INCLUDEDIR
794LLVM_INFODIR
795LLVM_MANDIR
796LLVM_CONFIGTIME
797BINDINGS_TO_BUILD
798ALL_BINDINGS
799OCAML_LIBDIR
800ENABLE_VISIBILITY_INLINES_HIDDEN
801RPATH
802RDYNAMIC
Jordan Rose3c837ab2012-10-01 18:40:32 +0000803program_prefix
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000804LIBOBJS
805LTLIBOBJS'
John Criswell3eaf0b42003-09-10 15:17:25 +0000806ac_subst_files=''
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000807 ac_precious_vars='build_alias
808host_alias
809target_alias
810CC
811CFLAGS
812LDFLAGS
813CPPFLAGS
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000814CXX
815CXXFLAGS
Eric Christopher58839712011-09-16 20:36:25 +0000816CCC
Benjamin Kramer00622f72013-05-03 15:55:06 +0000817CPP
818CXXCPP'
John Criswellf369e772010-03-19 21:31:39 +0000819ac_subdirs_all='projects/llvm-gcc
820projects/test-suite
821projects/llvm-test
822projects/poolalloc
823projects/llvm-poolalloc
824projects/sample
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000825projects/privbracket
Reid Spencerb4e0f9b2007-01-17 02:14:46 +0000826projects/llvm-stacker
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000827projects/llvm-reopt
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000828projects/llvm-java
829projects/llvm-tv
John Criswell4d377d82010-02-25 22:57:19 +0000830projects/safecode
Tobias Grosserea9dca42010-10-30 00:54:26 +0000831projects/llvm-kernel
832tools/polly'
John Criswell3ef61af2003-06-30 21:59:07 +0000833
834# Initialize some variables set by options.
835ac_init_help=
836ac_init_version=false
837# The variables have the same names as the options, with
838# dashes changed to underlines.
839cache_file=/dev/null
840exec_prefix=NONE
841no_create=
842no_recursion=
843prefix=NONE
844program_prefix=NONE
845program_suffix=NONE
846program_transform_name=s,x,x,
847silent=
848site=
849srcdir=
850verbose=
851x_includes=NONE
852x_libraries=NONE
853
854# Installation directory options.
855# These are left unexpanded so users can "make install exec_prefix=/foo"
856# and all the variables that are supposed to be based on exec_prefix
857# by default will actually change.
858# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000859# (The list follows the same order as the GNU Coding Standards.)
John Criswell3ef61af2003-06-30 21:59:07 +0000860bindir='${exec_prefix}/bin'
861sbindir='${exec_prefix}/sbin'
862libexecdir='${exec_prefix}/libexec'
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000863datarootdir='${prefix}/share'
864datadir='${datarootdir}'
John Criswell3ef61af2003-06-30 21:59:07 +0000865sysconfdir='${prefix}/etc'
866sharedstatedir='${prefix}/com'
867localstatedir='${prefix}/var'
John Criswell3ef61af2003-06-30 21:59:07 +0000868includedir='${prefix}/include'
869oldincludedir='/usr/include'
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000870docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871infodir='${datarootdir}/info'
872htmldir='${docdir}'
873dvidir='${docdir}'
874pdfdir='${docdir}'
875psdir='${docdir}'
876libdir='${exec_prefix}/lib'
877localedir='${datarootdir}/locale'
878mandir='${datarootdir}/man'
John Criswell3ef61af2003-06-30 21:59:07 +0000879
880ac_prev=
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000881ac_dashdash=
John Criswell3ef61af2003-06-30 21:59:07 +0000882for ac_option
883do
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000886 eval $ac_prev=\$ac_option
John Criswell3ef61af2003-06-30 21:59:07 +0000887 ac_prev=
888 continue
889 fi
890
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000891 case $ac_option in
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *) ac_optarg=yes ;;
894 esac
John Criswell3ef61af2003-06-30 21:59:07 +0000895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
906
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
921
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000922 -datadir | --datadir | --datadi | --datad)
John Criswell3ef61af2003-06-30 21:59:07 +0000923 ac_prev=datadir ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell3ef61af2003-06-30 21:59:07 +0000925 datadir=$ac_optarg ;;
926
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
John Criswell3ef61af2003-06-30 21:59:07 +0000934 -disable-* | --disable-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000935 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +0000936 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000937 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939 { (exit 1); exit 1; }; }
940 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941 eval enable_$ac_feature=no ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000942
943 -docdir | --docdir | --docdi | --doc | --do)
944 ac_prev=docdir ;;
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 docdir=$ac_optarg ;;
947
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 ac_prev=dvidir ;;
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 dvidir=$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000952
953 -enable-* | --enable-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000954 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +0000955 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +0000956 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
958 { (exit 1); exit 1; }; }
959 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
960 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +0000961
962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964 | --exec | --exe | --ex)
965 ac_prev=exec_prefix ;;
966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968 | --exec=* | --exe=* | --ex=*)
969 exec_prefix=$ac_optarg ;;
970
971 -gas | --gas | --ga | --g)
972 # Obsolete; use --with-gas.
973 with_gas=yes ;;
974
975 -help | --help | --hel | --he | -h)
976 ac_init_help=long ;;
977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978 ac_init_help=recursive ;;
979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980 ac_init_help=short ;;
981
982 -host | --host | --hos | --ho)
983 ac_prev=host_alias ;;
984 -host=* | --host=* | --hos=* | --ho=*)
985 host_alias=$ac_optarg ;;
986
Reid Spencer0b52e2f2006-08-04 18:18:08 +0000987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988 ac_prev=htmldir ;;
989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990 | --ht=*)
991 htmldir=$ac_optarg ;;
992
John Criswell3ef61af2003-06-30 21:59:07 +0000993 -includedir | --includedir | --includedi | --included | --include \
994 | --includ | --inclu | --incl | --inc)
995 ac_prev=includedir ;;
996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997 | --includ=* | --inclu=* | --incl=* | --inc=*)
998 includedir=$ac_optarg ;;
999
1000 -infodir | --infodir | --infodi | --infod | --info | --inf)
1001 ac_prev=infodir ;;
1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003 infodir=$ac_optarg ;;
1004
1005 -libdir | --libdir | --libdi | --libd)
1006 ac_prev=libdir ;;
1007 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008 libdir=$ac_optarg ;;
1009
1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011 | --libexe | --libex | --libe)
1012 ac_prev=libexecdir ;;
1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014 | --libexe=* | --libex=* | --libe=*)
1015 libexecdir=$ac_optarg ;;
1016
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001017 -localedir | --localedir | --localedi | --localed | --locale)
1018 ac_prev=localedir ;;
1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020 localedir=$ac_optarg ;;
1021
John Criswell3ef61af2003-06-30 21:59:07 +00001022 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001023 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell3ef61af2003-06-30 21:59:07 +00001024 ac_prev=localstatedir ;;
1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell3ef61af2003-06-30 21:59:07 +00001027 localstatedir=$ac_optarg ;;
1028
1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030 ac_prev=mandir ;;
1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032 mandir=$ac_optarg ;;
1033
1034 -nfp | --nfp | --nf)
1035 # Obsolete; use --without-fp.
1036 with_fp=no ;;
1037
1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039 | --no-cr | --no-c | -n)
1040 no_create=yes ;;
1041
1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 no_recursion=yes ;;
1045
1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048 | --oldin | --oldi | --old | --ol | --o)
1049 ac_prev=oldincludedir ;;
1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053 oldincludedir=$ac_optarg ;;
1054
1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056 ac_prev=prefix ;;
1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058 prefix=$ac_optarg ;;
1059
1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061 | --program-pre | --program-pr | --program-p)
1062 ac_prev=program_prefix ;;
1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065 program_prefix=$ac_optarg ;;
1066
1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068 | --program-suf | --program-su | --program-s)
1069 ac_prev=program_suffix ;;
1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072 program_suffix=$ac_optarg ;;
1073
1074 -program-transform-name | --program-transform-name \
1075 | --program-transform-nam | --program-transform-na \
1076 | --program-transform-n | --program-transform- \
1077 | --program-transform | --program-transfor \
1078 | --program-transfo | --program-transf \
1079 | --program-trans | --program-tran \
1080 | --progr-tra | --program-tr | --program-t)
1081 ac_prev=program_transform_name ;;
1082 -program-transform-name=* | --program-transform-name=* \
1083 | --program-transform-nam=* | --program-transform-na=* \
1084 | --program-transform-n=* | --program-transform-=* \
1085 | --program-transform=* | --program-transfor=* \
1086 | --program-transfo=* | --program-transf=* \
1087 | --program-trans=* | --program-tran=* \
1088 | --progr-tra=* | --program-tr=* | --program-t=*)
1089 program_transform_name=$ac_optarg ;;
1090
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092 ac_prev=pdfdir ;;
1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094 pdfdir=$ac_optarg ;;
1095
1096 -psdir | --psdir | --psdi | --psd | --ps)
1097 ac_prev=psdir ;;
1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 psdir=$ac_optarg ;;
1100
John Criswell3ef61af2003-06-30 21:59:07 +00001101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1103 silent=yes ;;
1104
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 ac_prev=sbindir ;;
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 | --sbi=* | --sb=*)
1109 sbindir=$ac_optarg ;;
1110
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1114 | --sha | --sh)
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 | --sha=* | --sh=*)
1120 sharedstatedir=$ac_optarg ;;
1121
1122 -site | --site | --sit)
1123 ac_prev=site ;;
1124 -site=* | --site=* | --sit=*)
1125 site=$ac_optarg ;;
1126
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 ac_prev=srcdir ;;
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1131
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1138
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1143
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 verbose=yes ;;
1146
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1149
1150 -with-* | --with-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001151 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +00001152 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid package name: $ac_package" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_package=`echo $ac_package| sed 's/-/_/g'`
1157 eval with_$ac_package=\$ac_optarg ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001158
1159 -without-* | --without-*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001160 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell3ef61af2003-06-30 21:59:07 +00001161 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001162 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1163 { echo "$as_me: error: invalid package name: $ac_package" >&2
1164 { (exit 1); exit 1; }; }
1165 ac_package=`echo $ac_package | sed 's/-/_/g'`
1166 eval with_$ac_package=no ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001167
1168 --x)
1169 # Obsolete; use --with-x.
1170 with_x=yes ;;
1171
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1178
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1185
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001186 -*) { echo "$as_me: error: unrecognized option: $ac_option
1187Try \`$0 --help' for more information." >&2
1188 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001189 ;;
1190
1191 *=*)
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001194 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1195 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1196 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001197 eval $ac_envvar=\$ac_optarg
John Criswell3ef61af2003-06-30 21:59:07 +00001198 export $ac_envvar ;;
1199
1200 *)
1201 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001202 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell3ef61af2003-06-30 21:59:07 +00001203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001204 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell3ef61af2003-06-30 21:59:07 +00001205 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206 ;;
1207
1208 esac
1209done
1210
1211if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001213 { echo "$as_me: error: missing argument to $ac_option" >&2
1214 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001215fi
1216
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001217# Be sure to have absolute directory names.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001218for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
John Criswell3ef61af2003-06-30 21:59:07 +00001222do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001223 eval ac_val=\$$ac_var
John Criswell3ef61af2003-06-30 21:59:07 +00001224 case $ac_val in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell3ef61af2003-06-30 21:59:07 +00001227 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001228 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1229 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001230done
1231
1232# There might be people who depend on the old broken behavior: `$host'
1233# used to hold the argument of --host etc.
1234# FIXME: To remove some day.
1235build=$build_alias
1236host=$host_alias
1237target=$target_alias
1238
1239# FIXME: To remove some day.
1240if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001243 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell3ef61af2003-06-30 21:59:07 +00001244 If a cross compiler is detected then cross compile mode will be used." >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248fi
1249
1250ac_tool_prefix=
1251test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253test "$silent" = yes && exec 6>/dev/null
1254
1255
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001256ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257ac_ls_di=`ls -di .` &&
1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001259 { echo "$as_me: error: Working directory cannot be determined" >&2
1260 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001262 { echo "$as_me: error: pwd does not report name of working directory" >&2
1263 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001264
1265
John Criswell3ef61af2003-06-30 21:59:07 +00001266# Find the source files, if location was not specified.
1267if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001269 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001270 ac_confdir=`$as_dirname -- "$0" ||
1271$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$0" : 'X\(//\)[^/]' \| \
1273 X"$0" : 'X\(//\)$' \| \
1274 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1275echo X"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\).*/{
1289 s//\1/
1290 q
1291 }
1292 s/.*/./; q'`
John Criswell3ef61af2003-06-30 21:59:07 +00001293 srcdir=$ac_confdir
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001294 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell3ef61af2003-06-30 21:59:07 +00001295 srcdir=..
1296 fi
1297else
1298 ac_srcdir_defaulted=no
1299fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001300if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001302 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1303 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001304fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001305ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306ac_abs_confdir=`(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001307 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1308 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001309 pwd)`
1310# When building in place, set srcdir=.
1311if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 srcdir=.
1313fi
1314# Remove unnecessary trailing slashes from srcdir.
1315# Double slashes in file names in object file debugging info
1316# mess up M-x gdb in Emacs.
1317case $srcdir in
1318*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319esac
1320for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325done
John Criswell3ef61af2003-06-30 21:59:07 +00001326
1327#
1328# Report the --help message.
1329#
1330if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1333 cat <<_ACEOF
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00001334\`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
John Criswell3ef61af2003-06-30 21:59:07 +00001335
1336Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339VAR=VALUE. See below for descriptions of some of the useful variables.
1340
1341Defaults for the options are specified in brackets.
1342
1343Configuration:
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353
John Criswell3ef61af2003-06-30 21:59:07 +00001354Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001356 [$ac_default_prefix]
John Criswell3ef61af2003-06-30 21:59:07 +00001357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001358 [PREFIX]
John Criswell3ef61af2003-06-30 21:59:07 +00001359
1360By default, \`make install' will install all the files in
1361\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363for instance \`--prefix=\$HOME'.
1364
1365For better control, use the options below.
1366
1367Fine tuning of the installation directories:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
Eric Christopherafbe7522011-12-21 00:52:44 +00001382 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
John Criswell3ef61af2003-06-30 21:59:07 +00001387_ACEOF
1388
1389 cat <<\_ACEOF
1390
1391System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 --target=TARGET configure for building compilers for TARGET [HOST]
1395_ACEOF
1396fi
1397
1398if test -n "$ac_init_help"; then
1399 case $ac_init_help in
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00001400 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
John Criswell3ef61af2003-06-30 21:59:07 +00001401 esac
1402 cat <<\_ACEOF
1403
1404Optional Features:
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserea9dca42010-10-30 00:54:26 +00001407 --enable-polly Use polly if available (default is YES)
Eric Christopher1094ded2011-11-11 22:51:42 +00001408 --enable-libcpp Use libc++ if available (default is NO)
Eric Christopher04e35972012-08-03 19:47:14 +00001409 --enable-cxx11 Use c++11 if available (default is NO)
Roman Divackyf2bb66b2012-12-13 16:07:19 +00001410 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1411 --enable-clang-static-analyzer
1412 Enable building of clang Static Analyzer (default is
1413 YES)
1414 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
Nick Lewycky86679902009-06-06 06:25:09 +00001415 --enable-optimized Compile with optimizations enabled (default is NO)
1416 --enable-profiling Compile with profiling enabled (default is NO)
1417 --enable-assertions Compile with assertion checks enabled (default is
1418 YES)
Eric Christopher84864012012-08-03 19:58:20 +00001419 --enable-werror Compile with -Werror enabled (default is NO)
David Greenecbc8ddf2007-06-28 19:36:08 +00001420 --enable-expensive-checks
Nick Lewycky86679902009-06-06 06:25:09 +00001421 Compile with expensive debug checks enabled (default
1422 is NO)
1423 --enable-debug-runtime Build runtime libs with debug symbols (default is
1424 NO)
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00001425 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1426 optimization is on and YES if it's off)
Daniel Dunbar39c04622012-08-14 18:14:22 +00001427 --enable-keep-symbols Do not strip installed executables)
Reid Spencer0241e382004-11-25 04:51:04 +00001428 --enable-jit Enable Just In Time Compiling (default is YES)
Rafael Espindola7ac506d2010-11-12 19:24:06 +00001429 --enable-docs Build documents (default is YES)
Reid Spencer0194c9a2004-11-29 04:56:35 +00001430 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencerf85fabeb2005-08-24 10:07:20 +00001431 --enable-threads Use threads if available (default is YES)
NAKAMURA Takumic6fce172010-12-29 03:59:03 +00001432 --enable-pthreads Use pthreads if available (default is YES)
Alexey Samsonov2fb337e2013-04-23 08:28:39 +00001433 --enable-zlib Use zlib for compression/decompression if available
1434 (default is YES)
Reid Spencer05a1fe52006-12-16 22:07:52 +00001435 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky38525192009-02-19 06:18:56 +00001436 is YES)
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +00001437 --enable-shared Build a shared library and link tools against it
1438 (default is NO)
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00001439 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
NAKAMURA Takumid5a9a3a2011-10-13 18:04:52 +00001440 Win32 DLL (default is NO)
Daniel Dunbardac18242010-05-10 20:11:56 +00001441 --enable-timestamps Enable embedding timestamp information in build
1442 (default is YES)
Eric Christopher9fafe072012-09-21 23:03:29 +00001443 --enable-backtraces Enable embedding backtraces on crash (default is
1444 YES)
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00001445 --enable-targets Build specific host targets: all or
1446 target1,target2,... Valid targets are: host, x86,
Tim Northovere0e3aef2013-01-31 12:12:40 +00001447 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1448 xcore, msp430, nvptx, and cpp (default=all)
Victor Oliveira9d4b8f52012-08-09 01:13:59 +00001449 --enable-experimental-targets
1450 Build experimental host targets: disable or
1451 target1,target2,... (default=disable)
Gordon Henriksene61dd672007-10-02 09:50:32 +00001452 --enable-bindings Build specific language bindings:
1453 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00001454 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencera40c6872004-11-29 12:29:58 +00001455 --enable-ltdl-install install libltdl
John Criswell3ef61af2003-06-30 21:59:07 +00001456
1457Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00001460 --with-optimize-option Select the compiler options to use for optimized
1461 builds
Duncan Sandsef8c8ec2009-05-13 13:13:18 +00001462 --with-extra-options Specify additional options to compile LLVM with
Daniel Dunbar3b95df82011-06-16 22:30:41 +00001463 --with-extra-ld-options Specify additional options to link LLVM with
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00001464 --with-ocaml-libdir Specify install location for ocaml bindings (default
1465 is stdlib)
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00001466 --with-clang-srcdir Directory to the out-of-tree Clang source
Chandler Carruthffae4a62010-10-19 08:21:25 +00001467 --with-clang-resource-dir
1468 Relative directory from the Clang binary for
1469 resource files
Rafael Espindolad95960b2009-11-12 05:46:09 +00001470 --with-c-include-dirs Colon separated list of directories clang will
1471 search for headers
Rafael Espindolaec217f62012-02-03 00:59:30 +00001472 --with-gcc-toolchain Directory where gcc is installed.
Sebastian Pop5c9e1842012-04-16 04:11:45 +00001473 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00001474 --with-binutils-include Specify path to binutils/include/ containing
1475 plugin-api.h file for gold plugin.
Eric Christopher65080cc2011-07-20 17:04:49 +00001476 --with-bug-report-url Specify the URL where bug reports should be
NAKAMURA Takumi818a22b2011-08-12 01:50:43 +00001477 submitted (default=http://llvm.org/bugs/)
Bob Wilson3f354702011-11-28 07:59:52 +00001478 --with-internal-prefix Installation directory for internal files
Saleem Abdulrasoola1665742013-01-30 04:44:17 +00001479 --with-python path to python
Reid Spencere5f3de32007-01-19 17:41:47 +00001480 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +00001481 --with-oprofile=<prefix>
1482 Tell OProfile >= 0.9.4 how to symbolize JIT output
Andrew Kaylor5808c7d2012-09-28 17:35:20 +00001483 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1484
John Criswell3ef61af2003-06-30 21:59:07 +00001485
1486Some influential environment variables:
Reid Spencer0241e382004-11-25 04:51:04 +00001487 CC C compiler command
1488 CFLAGS C compiler flags
John Criswell3ef61af2003-06-30 21:59:07 +00001489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001491 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001492 you have headers in a nonstandard directory <include dir>
Reid Spencer0241e382004-11-25 04:51:04 +00001493 CXX C++ compiler command
1494 CXXFLAGS C++ compiler flags
Eric Christopher58839712011-09-16 20:36:25 +00001495 CPP C preprocessor
Benjamin Kramer00622f72013-05-03 15:55:06 +00001496 CXXCPP C++ preprocessor
John Criswell3ef61af2003-06-30 21:59:07 +00001497
1498Use these variables to override the choices made by `configure' or to help
1499it to find libraries and programs with nonstandard names/locations.
1500
Eric Christopherafbe7522011-12-21 00:52:44 +00001501Report bugs to <http://llvm.org/bugs/>.
John Criswell3ef61af2003-06-30 21:59:07 +00001502_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001503ac_status=$?
John Criswell3ef61af2003-06-30 21:59:07 +00001504fi
1505
1506if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
John Criswell3ef61af2003-06-30 21:59:07 +00001508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001509 test -d "$ac_dir" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00001510 ac_builddir=.
1511
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001512case "$ac_dir" in
1513.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001516 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001517 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 esac ;;
1522esac
1523ac_abs_top_builddir=$ac_pwd
1524ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525# for backward compatibility:
1526ac_top_builddir=$ac_top_build_prefix
John Criswell3ef61af2003-06-30 21:59:07 +00001527
1528case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001529 .) # We are building in place.
John Criswell3ef61af2003-06-30 21:59:07 +00001530 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell3ef61af2003-06-30 21:59:07 +00001534 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1537 *) # Relative name.
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001541esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001542ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencerf184a862004-09-19 23:53:36 +00001543
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell3ef61af2003-06-30 21:59:07 +00001552 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001553 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001554 fi || ac_status=$?
1555 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell3ef61af2003-06-30 21:59:07 +00001556 done
1557fi
1558
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001559test -n "$ac_init_help" && exit $ac_status
John Criswell3ef61af2003-06-30 21:59:07 +00001560if $ac_init_version; then
1561 cat <<\_ACEOF
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00001562LLVM configure 3.3svn
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001563generated by GNU Autoconf 2.60
John Criswell3ef61af2003-06-30 21:59:07 +00001564
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001565Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15662002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +00001567This configure script is free software; the Free Software Foundation
1568gives unlimited permission to copy, distribute and modify it.
Reid Spencer0241e382004-11-25 04:51:04 +00001569
NAKAMURA Takumi43632a22013-01-01 10:00:19 +00001570Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
John Criswell3ef61af2003-06-30 21:59:07 +00001571_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001572 exit
John Criswell3ef61af2003-06-30 21:59:07 +00001573fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001574cat >config.log <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00001575This file contains any messages produced by compilers while
1576running configure, to aid debugging if configure makes a mistake.
1577
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00001578It was created by LLVM $as_me 3.3svn, which was
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001579generated by GNU Autoconf 2.60. Invocation command line was
John Criswell3ef61af2003-06-30 21:59:07 +00001580
1581 $ $0 $@
1582
1583_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001584exec 5>>config.log
John Criswell3ef61af2003-06-30 21:59:07 +00001585{
1586cat <<_ASUNAME
1587## --------- ##
1588## Platform. ##
1589## --------- ##
1590
1591hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596
1597/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1599
1600/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1601/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1602/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001603/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell3ef61af2003-06-30 21:59:07 +00001604/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1605/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1606/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1607
1608_ASUNAME
1609
1610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611for as_dir in $PATH
1612do
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001615 echo "PATH: $as_dir"
1616done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001617IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00001618
1619} >&5
1620
1621cat >&5 <<_ACEOF
1622
1623
1624## ----------- ##
1625## Core tests. ##
1626## ----------- ##
1627
1628_ACEOF
1629
1630
1631# Keep a trace of the command line.
1632# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell3eaf0b42003-09-10 15:17:25 +00001633# Strip out --silent because we don't want to record it for future runs.
John Criswell3ef61af2003-06-30 21:59:07 +00001634# Also quote any args containing shell meta-characters.
John Criswell3eaf0b42003-09-10 15:17:25 +00001635# Make two passes to allow for proper duplicate-argument suppression.
John Criswell3ef61af2003-06-30 21:59:07 +00001636ac_configure_args=
John Criswell3eaf0b42003-09-10 15:17:25 +00001637ac_configure_args0=
1638ac_configure_args1=
John Criswell3eaf0b42003-09-10 15:17:25 +00001639ac_must_keep_next=false
1640for ac_pass in 1 2
John Criswell3ef61af2003-06-30 21:59:07 +00001641do
John Criswell3eaf0b42003-09-10 15:17:25 +00001642 for ac_arg
1643 do
1644 case $ac_arg in
1645 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647 | -silent | --silent | --silen | --sile | --sil)
1648 continue ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001649 *\'*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001650 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00001651 esac
1652 case $ac_pass in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001653 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00001654 2)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001655 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell3eaf0b42003-09-10 15:17:25 +00001656 if test $ac_must_keep_next = true; then
Reid Spencerf184a862004-09-19 23:53:36 +00001657 ac_must_keep_next=false # Got value, back to normal.
John Criswell3eaf0b42003-09-10 15:17:25 +00001658 else
Reid Spencerf184a862004-09-19 23:53:36 +00001659 case $ac_arg in
1660 *=* | --config-cache | -C | -disable-* | --disable-* \
1661 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663 | -with-* | --with-* | -without-* | --without-* | --x)
1664 case "$ac_configure_args0 " in
1665 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666 esac
1667 ;;
1668 -* ) ac_must_keep_next=true ;;
1669 esac
John Criswell3eaf0b42003-09-10 15:17:25 +00001670 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001671 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell3eaf0b42003-09-10 15:17:25 +00001672 ;;
1673 esac
1674 done
John Criswell3ef61af2003-06-30 21:59:07 +00001675done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001676$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell3ef61af2003-06-30 21:59:07 +00001678
1679# When interrupted or exit'd, cleanup temporary files, and complete
1680# config.log. We remove comments because anyway the quotes in there
1681# would cause problems or look ugly.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001682# WARNING: Use '\'' to represent an apostrophe within the trap.
1683# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell3ef61af2003-06-30 21:59:07 +00001684trap 'exit_status=$?
1685 # Save into config.log some information that might help in debugging.
1686 {
1687 echo
John Criswell3eaf0b42003-09-10 15:17:25 +00001688
John Criswell3ef61af2003-06-30 21:59:07 +00001689 cat <<\_ASBOX
1690## ---------------- ##
1691## Cache variables. ##
1692## ---------------- ##
1693_ASBOX
1694 echo
1695 # The following way of writing the cache mishandles newlines in values,
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001696(
1697 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698 eval ac_val=\$$ac_var
1699 case $ac_val in #(
1700 *${as_nl}*)
1701 case $ac_var in #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001704 esac
1705 case $ac_var in #(
1706 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001707 *) $as_unset $ac_var ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001708 esac ;;
1709 esac
1710 done
John Criswell3ef61af2003-06-30 21:59:07 +00001711 (set) 2>&1 |
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001712 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713 *${as_nl}ac_space=\ *)
John Criswell3ef61af2003-06-30 21:59:07 +00001714 sed -n \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001715 "s/'\''/'\''\\\\'\'''\''/g;
1716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717 ;; #(
John Criswell3ef61af2003-06-30 21:59:07 +00001718 *)
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell3ef61af2003-06-30 21:59:07 +00001720 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001721 esac |
1722 sort
1723)
John Criswell3ef61af2003-06-30 21:59:07 +00001724 echo
John Criswell3eaf0b42003-09-10 15:17:25 +00001725
1726 cat <<\_ASBOX
1727## ----------------- ##
1728## Output variables. ##
1729## ----------------- ##
1730_ASBOX
1731 echo
1732 for ac_var in $ac_subst_vars
1733 do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001734 eval ac_val=\$$ac_var
1735 case $ac_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001736 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001737 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001738 echo "$ac_var='\''$ac_val'\''"
John Criswell3eaf0b42003-09-10 15:17:25 +00001739 done | sort
1740 echo
1741
1742 if test -n "$ac_subst_files"; then
1743 cat <<\_ASBOX
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001744## ------------------- ##
1745## File substitutions. ##
1746## ------------------- ##
John Criswell3eaf0b42003-09-10 15:17:25 +00001747_ASBOX
1748 echo
1749 for ac_var in $ac_subst_files
1750 do
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001751 eval ac_val=\$$ac_var
1752 case $ac_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001754 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001755 echo "$ac_var='\''$ac_val'\''"
John Criswell3eaf0b42003-09-10 15:17:25 +00001756 done | sort
1757 echo
1758 fi
1759
John Criswell3ef61af2003-06-30 21:59:07 +00001760 if test -s confdefs.h; then
1761 cat <<\_ASBOX
1762## ----------- ##
1763## confdefs.h. ##
1764## ----------- ##
1765_ASBOX
1766 echo
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001767 cat confdefs.h
John Criswell3ef61af2003-06-30 21:59:07 +00001768 echo
1769 fi
1770 test "$ac_signal" != 0 &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001771 echo "$as_me: caught signal $ac_signal"
1772 echo "$as_me: exit $exit_status"
John Criswell3ef61af2003-06-30 21:59:07 +00001773 } >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001774 rm -f core *.core core.conftest.* &&
1775 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell3ef61af2003-06-30 21:59:07 +00001776 exit $exit_status
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001777' 0
John Criswell3ef61af2003-06-30 21:59:07 +00001778for ac_signal in 1 2 13 15; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001779 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell3ef61af2003-06-30 21:59:07 +00001780done
1781ac_signal=0
1782
1783# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001784rm -f -r conftest* confdefs.h
John Criswell3ef61af2003-06-30 21:59:07 +00001785
1786# Predefined preprocessor variables.
1787
1788cat >>confdefs.h <<_ACEOF
1789#define PACKAGE_NAME "$PACKAGE_NAME"
1790_ACEOF
1791
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001792
John Criswell3ef61af2003-06-30 21:59:07 +00001793cat >>confdefs.h <<_ACEOF
1794#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795_ACEOF
1796
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001797
John Criswell3ef61af2003-06-30 21:59:07 +00001798cat >>confdefs.h <<_ACEOF
1799#define PACKAGE_VERSION "$PACKAGE_VERSION"
1800_ACEOF
1801
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001802
John Criswell3ef61af2003-06-30 21:59:07 +00001803cat >>confdefs.h <<_ACEOF
1804#define PACKAGE_STRING "$PACKAGE_STRING"
1805_ACEOF
1806
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001807
John Criswell3ef61af2003-06-30 21:59:07 +00001808cat >>confdefs.h <<_ACEOF
1809#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810_ACEOF
1811
1812
1813# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001814# Prefer explicitly selected file to automatically selected ones.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001815if test -n "$CONFIG_SITE"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001816 set x "$CONFIG_SITE"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001817elif test "x$prefix" != xNONE; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001818 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001819else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001820 set x "$ac_default_prefix/share/config.site" \
1821 "$ac_default_prefix/etc/config.site"
John Criswell3ef61af2003-06-30 21:59:07 +00001822fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001823shift
1824for ac_site_file
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001825do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001826 if test -r "$ac_site_file"; then
1827 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001829 sed 's/^/| /' "$ac_site_file" >&5
1830 . "$ac_site_file"
1831 fi
1832done
1833
1834if test -r "$cache_file"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001835 # Some versions of bash will fail to source /dev/null (special
1836 # files actually), so we avoid doing that.
1837 if test -f "$cache_file"; then
1838 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839echo "$as_me: loading cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001840 case $cache_file in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001841 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842 *) . "./$cache_file";;
John Criswell3ef61af2003-06-30 21:59:07 +00001843 esac
1844 fi
1845else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001846 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847echo "$as_me: creating cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +00001848 >$cache_file
1849fi
1850
1851# Check that the precious variables saved in the cache have kept the same
1852# value.
1853ac_cache_corrupted=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001854for ac_var in $ac_precious_vars; do
John Criswell3ef61af2003-06-30 21:59:07 +00001855 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001857 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell3ef61af2003-06-30 21:59:07 +00001859 case $ac_old_set,$ac_new_set in
1860 set,)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001861 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00001863 ac_cache_corrupted=: ;;
1864 ,set)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001865 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +00001867 ac_cache_corrupted=: ;;
1868 ,);;
1869 *)
1870 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001871 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1874echo "$as_me: former value: $ac_old_val" >&2;}
1875 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1876echo "$as_me: current value: $ac_new_val" >&2;}
1877 ac_cache_corrupted=:
John Criswell3ef61af2003-06-30 21:59:07 +00001878 fi;;
1879 esac
1880 # Pass precious variables to config.status.
1881 if test "$ac_new_set" = set; then
1882 case $ac_new_val in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001883 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001884 *) ac_arg=$ac_var=$ac_new_val ;;
1885 esac
1886 case " $ac_configure_args " in
1887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001888 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell3ef61af2003-06-30 21:59:07 +00001889 esac
1890 fi
1891done
1892if $ac_cache_corrupted; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001893 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001898fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001923
John Criswell3ef61af2003-06-30 21:59:07 +00001924ac_ext=c
1925ac_cpp='$CPP $CPPFLAGS'
1926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929
1930
1931
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001932cat >>confdefs.h <<\_ACEOF
1933#define LLVM_VERSION_MAJOR 3
1934_ACEOF
1935
1936
1937cat >>confdefs.h <<\_ACEOF
Benjamin Kramer6900a4a2012-11-17 22:01:08 +00001938#define LLVM_VERSION_MINOR 3
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00001939_ACEOF
1940
1941
NAKAMURA Takumi43632a22013-01-01 10:00:19 +00001942LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
Reid Spencer0241e382004-11-25 04:51:04 +00001943
1944
1945
1946
1947
1948
1949
John Criswell3ef61af2003-06-30 21:59:07 +00001950ac_aux_dir=
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001951for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001952 if test -f "$ac_dir/install-sh"; then
1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/install-sh -c"
1955 break
1956 elif test -f "$ac_dir/install.sh"; then
1957 ac_aux_dir=$ac_dir
1958 ac_install_sh="$ac_aux_dir/install.sh -c"
1959 break
1960 elif test -f "$ac_dir/shtool"; then
1961 ac_aux_dir=$ac_dir
1962 ac_install_sh="$ac_aux_dir/shtool install -c"
1963 break
1964 fi
John Criswell3ef61af2003-06-30 21:59:07 +00001965done
1966if test -z "$ac_aux_dir"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1968echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1969 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00001970fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00001971
1972# These three variables are undocumented and unsupported,
1973# and are intended to be withdrawn in a future Autoconf release.
1974# They can cause serious problems if a builder's source tree is in a directory
1975# whose full name contains unusual characters.
1976ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1977ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1978ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979
John Criswell3ef61af2003-06-30 21:59:07 +00001980
John Criswellc933eeb2003-07-22 19:18:09 +00001981
Reid Spencerf184a862004-09-19 23:53:36 +00001982if test ${srcdir} != "." ; then
Reid Spencer0241e382004-11-25 04:51:04 +00001983 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00001984 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1985echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1986 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00001987 fi
John Criswell22107a72003-09-15 17:04:06 +00001988fi
1989
Patrik Hagglundd91ae4d2013-02-04 08:15:53 +00001990${CFLAGS=}
1991${CXXFLAGS=}
1992
Nick Lewyckyc5975fc2009-09-29 05:48:51 +00001993ac_ext=c
Reid Spencer0241e382004-11-25 04:51:04 +00001994ac_cpp='$CPP $CPPFLAGS'
1995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell3ef61af2003-06-30 21:59:07 +00001998if test -n "$ac_tool_prefix"; then
Eric Christopher58839712011-09-16 20:36:25 +00001999 for ac_prog in clang llvm-gcc gcc
John Criswell3ef61af2003-06-30 21:59:07 +00002000 do
2001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2002set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005if test "${ac_cv_prog_CC+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002007else
Reid Spencer0241e382004-11-25 04:51:04 +00002008 if test -n "$CC"; then
2009 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell3ef61af2003-06-30 21:59:07 +00002010else
2011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012for as_dir in $PATH
2013do
2014 IFS=$as_save_IFS
2015 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0241e382004-11-25 04:51:04 +00002018 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell3ef61af2003-06-30 21:59:07 +00002020 break 2
2021 fi
2022done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002023done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002024IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00002025
2026fi
2027fi
Reid Spencer0241e382004-11-25 04:51:04 +00002028CC=$ac_cv_prog_CC
2029if test -n "$CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002030 { echo "$as_me:$LINENO: result: $CC" >&5
2031echo "${ECHO_T}$CC" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002032else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002033 { echo "$as_me:$LINENO: result: no" >&5
2034echo "${ECHO_T}no" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002035fi
2036
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002037
Reid Spencer0241e382004-11-25 04:51:04 +00002038 test -n "$CC" && break
John Criswell3ef61af2003-06-30 21:59:07 +00002039 done
2040fi
Reid Spencer0241e382004-11-25 04:51:04 +00002041if test -z "$CC"; then
2042 ac_ct_CC=$CC
Eric Christopher58839712011-09-16 20:36:25 +00002043 for ac_prog in clang llvm-gcc gcc
John Criswell3ef61af2003-06-30 21:59:07 +00002044do
2045 # Extract the first word of "$ac_prog", so it can be a program name with args.
2046set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002051else
Reid Spencer0241e382004-11-25 04:51:04 +00002052 if test -n "$ac_ct_CC"; then
2053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell3ef61af2003-06-30 21:59:07 +00002054else
2055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056for as_dir in $PATH
2057do
2058 IFS=$as_save_IFS
2059 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0241e382004-11-25 04:51:04 +00002062 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell3ef61af2003-06-30 21:59:07 +00002064 break 2
2065 fi
2066done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002067done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002068IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +00002069
2070fi
2071fi
Reid Spencer0241e382004-11-25 04:51:04 +00002072ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073if test -n "$ac_ct_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002074 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002076else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002077 { echo "$as_me:$LINENO: result: no" >&5
2078echo "${ECHO_T}no" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002079fi
2080
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002081
Reid Spencer0241e382004-11-25 04:51:04 +00002082 test -n "$ac_ct_CC" && break
John Criswell3ef61af2003-06-30 21:59:07 +00002083done
John Criswell3ef61af2003-06-30 21:59:07 +00002084
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002085 if test "x$ac_ct_CC" = x; then
2086 CC=""
2087 else
2088 case $cross_compiling:$ac_tool_warned in
2089yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002090{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2091whose name does not start with the host triplet. If you think this
2092configuration is useful to you, please write to autoconf@gnu.org." >&5
2093echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2094whose name does not start with the host triplet. If you think this
2095configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002096ac_tool_warned=yes ;;
2097esac
2098 CC=$ac_ct_CC
2099 fi
Reid Spencer0241e382004-11-25 04:51:04 +00002100fi
2101
John Criswell3ef61af2003-06-30 21:59:07 +00002102
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002103test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2104See \`config.log' for more details." >&5
2105echo "$as_me: error: no acceptable C compiler found in \$PATH
2106See \`config.log' for more details." >&2;}
2107 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00002108
John Criswell3ef61af2003-06-30 21:59:07 +00002109# Provide some information about the compiler.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002110echo "$as_me:$LINENO: checking for C compiler version" >&5
2111ac_compiler=`set X $ac_compile; echo $2`
2112{ (ac_try="$ac_compiler --version >&5"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002113case "(($ac_try" in
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2116esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118 (eval "$ac_compiler --version >&5") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002119 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2122{ (ac_try="$ac_compiler -v >&5"
2123case "(($ac_try" in
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2126esac
2127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128 (eval "$ac_compiler -v >&5") 2>&5
2129 ac_status=$?
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132{ (ac_try="$ac_compiler -V >&5"
2133case "(($ac_try" in
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2136esac
2137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138 (eval "$ac_compiler -V >&5") 2>&5
2139 ac_status=$?
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }
John Criswell3ef61af2003-06-30 21:59:07 +00002142
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002143cat >conftest.$ac_ext <<_ACEOF
2144/* confdefs.h. */
2145_ACEOF
2146cat confdefs.h >>conftest.$ac_ext
2147cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002148/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002149
John Criswell3ef61af2003-06-30 21:59:07 +00002150int
2151main ()
2152{
2153
2154 ;
2155 return 0;
2156}
2157_ACEOF
2158ac_clean_files_save=$ac_clean_files
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002159ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell3ef61af2003-06-30 21:59:07 +00002160# Try to create an executable without -o first, disregard a.out.
2161# It will help us diagnose broken compilers, and finding out an intuition
2162# of exeext.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002163{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2165ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2166#
2167# List of possible output files, starting from the most likely.
2168# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2169# only as a last resort. b.out is created by i960 compilers.
2170ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2171#
2172# The IRIX 6 linker writes into existing files which may not be
2173# executable, retaining their permissions. Remove them first so a
2174# subsequent execution test works.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002175ac_rmfiles=
2176for ac_file in $ac_files
2177do
2178 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002180 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2181 esac
2182done
2183rm -f $ac_rmfiles
2184
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002185if { (ac_try="$ac_link_default"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002186case "(($ac_try" in
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2189esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002191 (eval "$ac_link_default") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002192 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002195 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2196# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2197# in a Makefile. We should not override ac_cv_exeext if it was cached,
2198# so that the user can short-circuit this test for compilers unknown to
2199# Autoconf.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002200for ac_file in $ac_files
John Criswell3eaf0b42003-09-10 15:17:25 +00002201do
2202 test -f "$ac_file" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00002203 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencerf184a862004-09-19 23:53:36 +00002205 ;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002206 [ab].out )
Reid Spencerf184a862004-09-19 23:53:36 +00002207 # We found the default executable, but exeext='' is most
2208 # certainly right.
2209 break;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002210 *.* )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002211 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002212 then :; else
2213 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2214 fi
2215 # We set ac_cv_exeext here because the later test for it is not
2216 # safe: cross compilers may not add the suffix if given an `-o'
2217 # argument, so we may need to know it at that point already.
2218 # Even if this section looks crufty: it has the advantage of
2219 # actually working.
Reid Spencerf184a862004-09-19 23:53:36 +00002220 break;;
John Criswell3eaf0b42003-09-10 15:17:25 +00002221 * )
Reid Spencerf184a862004-09-19 23:53:36 +00002222 break;;
John Criswell3ef61af2003-06-30 21:59:07 +00002223 esac
2224done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002225test "$ac_cv_exeext" = no && ac_cv_exeext=
2226
John Criswell3ef61af2003-06-30 21:59:07 +00002227else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002228 echo "$as_me: failed program was:" >&5
John Criswell3eaf0b42003-09-10 15:17:25 +00002229sed 's/^/| /' conftest.$ac_ext >&5
2230
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002231{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2232See \`config.log' for more details." >&5
2233echo "$as_me: error: C compiler cannot create executables
2234See \`config.log' for more details." >&2;}
2235 { (exit 77); exit 77; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002236fi
John Criswell3ef61af2003-06-30 21:59:07 +00002237
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002238ac_exeext=$ac_cv_exeext
2239{ echo "$as_me:$LINENO: result: $ac_file" >&5
2240echo "${ECHO_T}$ac_file" >&6; }
2241
2242# Check that the compiler produces executables we can run. If not, either
2243# the compiler is broken, or we cross compile.
2244{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2245echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2246# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2247# If not cross compiling, check that we can run a simple program.
2248if test "$cross_compiling" != yes; then
2249 if { ac_try='./$ac_file'
2250 { (case "(($ac_try" in
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2253esac
2254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255 (eval "$ac_try") 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 cross_compiling=no
2260 else
2261 if test "$cross_compiling" = maybe; then
2262 cross_compiling=yes
2263 else
2264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265If you meant to cross compile, use \`--host'.
2266See \`config.log' for more details." >&5
2267echo "$as_me: error: cannot run C compiled programs.
2268If you meant to cross compile, use \`--host'.
2269See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2271 fi
2272 fi
2273fi
2274{ echo "$as_me:$LINENO: result: yes" >&5
2275echo "${ECHO_T}yes" >&6; }
2276
2277rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell3ef61af2003-06-30 21:59:07 +00002278ac_clean_files=$ac_clean_files_save
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002279# Check that the compiler produces executables we can run. If not, either
2280# the compiler is broken, or we cross compile.
2281{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2283{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284echo "${ECHO_T}$cross_compiling" >&6; }
2285
2286{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2288if { (ac_try="$ac_link"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002289case "(($ac_try" in
2290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291 *) ac_try_echo=$ac_try;;
2292esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002294 (eval "$ac_link") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002295 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
John Criswell3ef61af2003-06-30 21:59:07 +00002298 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2300# work properly (i.e., refer to `conftest.exe'), while it won't with
2301# `rm'.
John Criswell3eaf0b42003-09-10 15:17:25 +00002302for ac_file in conftest.exe conftest conftest.*; do
2303 test -f "$ac_file" || continue
John Criswell3ef61af2003-06-30 21:59:07 +00002304 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell3ef61af2003-06-30 21:59:07 +00002306 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencerf184a862004-09-19 23:53:36 +00002307 break;;
John Criswell3ef61af2003-06-30 21:59:07 +00002308 * ) break;;
2309 esac
2310done
2311else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002312 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313See \`config.log' for more details." >&5
2314echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002317fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002318
2319rm -f conftest$ac_cv_exeext
2320{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002322
2323rm -f conftest.$ac_ext
2324EXEEXT=$ac_cv_exeext
2325ac_exeext=$EXEEXT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002326{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2328if test "${ac_cv_objext+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00002330else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002331 cat >conftest.$ac_ext <<_ACEOF
2332/* confdefs.h. */
2333_ACEOF
2334cat confdefs.h >>conftest.$ac_ext
2335cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002336/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002337
John Criswell3ef61af2003-06-30 21:59:07 +00002338int
2339main ()
2340{
2341
2342 ;
2343 return 0;
2344}
2345_ACEOF
2346rm -f conftest.o conftest.obj
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002347if { (ac_try="$ac_compile"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002348case "(($ac_try" in
2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2351esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002353 (eval "$ac_compile") 2>&5
John Criswell3ef61af2003-06-30 21:59:07 +00002354 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002357 for ac_file in conftest.o conftest.obj conftest.*; do
2358 test -f "$ac_file" || continue;
John Criswell3ef61af2003-06-30 21:59:07 +00002359 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell3ef61af2003-06-30 21:59:07 +00002361 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2362 break;;
2363 esac
2364done
2365else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002366 echo "$as_me: failed program was:" >&5
John Criswell3eaf0b42003-09-10 15:17:25 +00002367sed 's/^/| /' conftest.$ac_ext >&5
2368
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002369{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2370See \`config.log' for more details." >&5
2371echo "$as_me: error: cannot compute suffix of object files: cannot compile
2372See \`config.log' for more details." >&2;}
2373 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +00002374fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002375
John Criswell3ef61af2003-06-30 21:59:07 +00002376rm -f conftest.$ac_cv_objext conftest.$ac_ext
2377fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002378{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2379echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00002380OBJEXT=$ac_cv_objext
2381ac_objext=$OBJEXT
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002382{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2383echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2384if test "${ac_cv_c_compiler_gnu+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002386else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002387 cat >conftest.$ac_ext <<_ACEOF
2388/* confdefs.h. */
2389_ACEOF
2390cat confdefs.h >>conftest.$ac_ext
2391cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002392/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002393
John Criswell3ef61af2003-06-30 21:59:07 +00002394int
2395main ()
2396{
2397#ifndef __GNUC__
2398 choke me
2399#endif
2400
2401 ;
2402 return 0;
2403}
2404_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002405rm -f conftest.$ac_objext
2406if { (ac_try="$ac_compile"
2407case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2410esac
2411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_compile") 2>conftest.er1
2413 ac_status=$?
2414 grep -v '^ *+' conftest.er1 >conftest.err
2415 rm -f conftest.er1
2416 cat conftest.err >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420 { (case "(($ac_try" in
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2423esac
2424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_try") 2>&5
2426 ac_status=$?
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2433esac
2434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_try") 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +00002439 ac_compiler_gnu=yes
2440else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002441 echo "$as_me: failed program was:" >&5
2442sed 's/^/| /' conftest.$ac_ext >&5
2443
2444 ac_compiler_gnu=no
John Criswell3ef61af2003-06-30 21:59:07 +00002445fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002446
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00002448ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell3ef61af2003-06-30 21:59:07 +00002449
2450fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002451{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2452echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2453GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer0241e382004-11-25 04:51:04 +00002454ac_test_CFLAGS=${CFLAGS+set}
2455ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002456{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2458if test "${ac_cv_prog_cc_g+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00002460else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002461 ac_save_c_werror_flag=$ac_c_werror_flag
2462 ac_c_werror_flag=yes
2463 ac_cv_prog_cc_g=no
2464 CFLAGS="-g"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002465 cat >conftest.$ac_ext <<_ACEOF
2466/* confdefs.h. */
2467_ACEOF
2468cat confdefs.h >>conftest.$ac_ext
2469cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00002470/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00002471
John Criswell3ef61af2003-06-30 21:59:07 +00002472int
2473main ()
2474{
2475
2476 ;
2477 return 0;
2478}
2479_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002480rm -f conftest.$ac_objext
2481if { (ac_try="$ac_compile"
2482case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2485esac
2486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_compile") 2>conftest.er1
2488 ac_status=$?
2489 grep -v '^ *+' conftest.er1 >conftest.err
2490 rm -f conftest.er1
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2495 { (case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2498esac
2499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_try") 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2508esac
2509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_try") 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +00002514 ac_cv_prog_cc_g=yes
John Criswell3ef61af2003-06-30 21:59:07 +00002515else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002516 echo "$as_me: failed program was:" >&5
2517sed 's/^/| /' conftest.$ac_ext >&5
2518
2519 CFLAGS=""
2520 cat >conftest.$ac_ext <<_ACEOF
2521/* confdefs.h. */
2522_ACEOF
2523cat confdefs.h >>conftest.$ac_ext
2524cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002525/* end confdefs.h. */
2526
2527int
2528main ()
2529{
2530
2531 ;
2532 return 0;
2533}
2534_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002535rm -f conftest.$ac_objext
2536if { (ac_try="$ac_compile"
2537case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2540esac
2541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_compile") 2>conftest.er1
2543 ac_status=$?
2544 grep -v '^ *+' conftest.er1 >conftest.err
2545 rm -f conftest.er1
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550 { (case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2553esac
2554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_try") 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest.$ac_objext'
2560 { (case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2563esac
2564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_try") 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2569 :
Torok Edwinaec06332010-01-26 08:50:50 +00002570else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002571 echo "$as_me: failed program was:" >&5
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
2574 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002575 CFLAGS="-g"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002576 cat >conftest.$ac_ext <<_ACEOF
2577/* confdefs.h. */
2578_ACEOF
2579cat confdefs.h >>conftest.$ac_ext
2580cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002581/* end confdefs.h. */
2582
2583int
2584main ()
2585{
2586
2587 ;
2588 return 0;
2589}
2590_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002591rm -f conftest.$ac_objext
2592if { (ac_try="$ac_compile"
2593case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2596esac
2597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_compile") 2>conftest.er1
2599 ac_status=$?
2600 grep -v '^ *+' conftest.er1 >conftest.err
2601 rm -f conftest.er1
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606 { (case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2609esac
2610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_try") 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619esac
2620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_try") 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002625 ac_cv_prog_cc_g=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002626else
2627 echo "$as_me: failed program was:" >&5
2628sed 's/^/| /' conftest.$ac_ext >&5
2629
2630
John Criswell3ef61af2003-06-30 21:59:07 +00002631fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002632
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00002634fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002635
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002638
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 ac_c_werror_flag=$ac_save_c_werror_flag
2641fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002642{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2643echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00002644if test "$ac_test_CFLAGS" = set; then
2645 CFLAGS=$ac_save_CFLAGS
2646elif test $ac_cv_prog_cc_g = yes; then
2647 if test "$GCC" = yes; then
2648 CFLAGS="-g -O2"
John Criswell3ef61af2003-06-30 21:59:07 +00002649 else
Reid Spencer0241e382004-11-25 04:51:04 +00002650 CFLAGS="-g"
John Criswell3ef61af2003-06-30 21:59:07 +00002651 fi
2652else
Reid Spencer0241e382004-11-25 04:51:04 +00002653 if test "$GCC" = yes; then
2654 CFLAGS="-O2"
John Criswell3ef61af2003-06-30 21:59:07 +00002655 else
Reid Spencer0241e382004-11-25 04:51:04 +00002656 CFLAGS=
John Criswell3ef61af2003-06-30 21:59:07 +00002657 fi
2658fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002659{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2660echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2661if test "${ac_cv_prog_cc_c89+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +00002663else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002664 ac_cv_prog_cc_c89=no
Reid Spencer0241e382004-11-25 04:51:04 +00002665ac_save_CC=$CC
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002666cat >conftest.$ac_ext <<_ACEOF
2667/* confdefs.h. */
2668_ACEOF
2669cat confdefs.h >>conftest.$ac_ext
2670cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00002671/* end confdefs.h. */
2672#include <stdarg.h>
2673#include <stdio.h>
2674#include <sys/types.h>
2675#include <sys/stat.h>
2676/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2677struct buf { int x; };
2678FILE * (*rcsopen) (struct buf *, struct stat *, int);
2679static char *e (p, i)
2680 char **p;
2681 int i;
2682{
2683 return p[i];
2684}
2685static char *f (char * (*g) (char **, int), char **p, ...)
2686{
2687 char *s;
2688 va_list v;
2689 va_start (v,p);
2690 s = g (p, va_arg (v,int));
2691 va_end (v);
2692 return s;
2693}
2694
2695/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2696 function prototypes and stuff, but not '\xHH' hex character constants.
2697 These don't provoke an error unfortunately, instead are silently treated
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002698 as 'x'. The following induces an error, until -std is added to get
Reid Spencer0241e382004-11-25 04:51:04 +00002699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2700 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002701 that's true only with -std. */
Reid Spencer0241e382004-11-25 04:51:04 +00002702int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2703
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002704/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2705 inside strings and character constants. */
2706#define FOO(x) 'x'
2707int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2708
Reid Spencer0241e382004-11-25 04:51:04 +00002709int test (int i, double x);
2710struct s1 {int (*f) (int a);};
2711struct s2 {int (*f) (double a);};
2712int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2713int argc;
2714char **argv;
2715int
2716main ()
2717{
2718return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2719 ;
2720 return 0;
2721}
2722_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002723for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2724 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer0241e382004-11-25 04:51:04 +00002725do
2726 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002727 rm -f conftest.$ac_objext
2728if { (ac_try="$ac_compile"
2729case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732esac
2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compile") 2>conftest.er1
2735 ac_status=$?
2736 grep -v '^ *+' conftest.er1 >conftest.err
2737 rm -f conftest.er1
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742 { (case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_try") 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755esac
2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_try") 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002761 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002762else
2763 echo "$as_me: failed program was:" >&5
2764sed 's/^/| /' conftest.$ac_ext >&5
2765
2766
Reid Spencer0241e382004-11-25 04:51:04 +00002767fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002768
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002769rm -f core conftest.err conftest.$ac_objext
2770 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer0241e382004-11-25 04:51:04 +00002771done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002772rm -f conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +00002773CC=$ac_save_CC
2774
2775fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002776# AC_CACHE_VAL
2777case "x$ac_cv_prog_cc_c89" in
2778 x)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002779 { echo "$as_me:$LINENO: result: none needed" >&5
2780echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002781 xno)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002782 { echo "$as_me:$LINENO: result: unsupported" >&5
2783echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer0241e382004-11-25 04:51:04 +00002784 *)
Reid Spencer0b52e2f2006-08-04 18:18:08 +00002785 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00002786 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2787echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer0241e382004-11-25 04:51:04 +00002788esac
2789
John Criswell3eaf0b42003-09-10 15:17:25 +00002790
Reid Spencer0241e382004-11-25 04:51:04 +00002791ac_ext=c
2792ac_cpp='$CPP $CPPFLAGS'
2793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796
Eric Christopher58839712011-09-16 20:36:25 +00002797ac_ext=cpp
2798ac_cpp='$CXXCPP $CPPFLAGS'
2799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2802if test -z "$CXX"; then
2803 if test -n "$CCC"; then
2804 CXX=$CCC
2805 else
2806 if test -n "$ac_tool_prefix"; then
2807 for ac_prog in clang++ llvm-g++ g++
2808 do
2809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813if test "${ac_cv_prog_CXX+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815else
2816 if test -n "$CXX"; then
2817 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2818else
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830done
2831done
2832IFS=$as_save_IFS
2833
2834fi
2835fi
2836CXX=$ac_cv_prog_CXX
2837if test -n "$CXX"; then
2838 { echo "$as_me:$LINENO: result: $CXX" >&5
2839echo "${ECHO_T}$CXX" >&6; }
2840else
2841 { echo "$as_me:$LINENO: result: no" >&5
2842echo "${ECHO_T}no" >&6; }
2843fi
2844
2845
2846 test -n "$CXX" && break
2847 done
2848fi
2849if test -z "$CXX"; then
2850 ac_ct_CXX=$CXX
2851 for ac_prog in clang++ llvm-g++ g++
2852do
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854set dummy $ac_prog; ac_word=$2
2855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859else
2860 if test -n "$ac_ct_CXX"; then
2861 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2862else
2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_ac_ct_CXX="$ac_prog"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 break 2
2873 fi
2874done
2875done
2876IFS=$as_save_IFS
2877
2878fi
2879fi
2880ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2881if test -n "$ac_ct_CXX"; then
2882 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2883echo "${ECHO_T}$ac_ct_CXX" >&6; }
2884else
2885 { echo "$as_me:$LINENO: result: no" >&5
2886echo "${ECHO_T}no" >&6; }
2887fi
2888
2889
2890 test -n "$ac_ct_CXX" && break
2891done
2892
2893 if test "x$ac_ct_CXX" = x; then
2894 CXX="g++"
2895 else
2896 case $cross_compiling:$ac_tool_warned in
2897yes:)
2898{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899whose name does not start with the host triplet. If you think this
2900configuration is useful to you, please write to autoconf@gnu.org." >&5
2901echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902whose name does not start with the host triplet. If you think this
2903configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904ac_tool_warned=yes ;;
2905esac
2906 CXX=$ac_ct_CXX
2907 fi
2908fi
2909
2910 fi
2911fi
2912# Provide some information about the compiler.
2913echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2914ac_compiler=`set X $ac_compile; echo $2`
2915{ (ac_try="$ac_compiler --version >&5"
2916case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919esac
2920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_compiler --version >&5") 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }
2925{ (ac_try="$ac_compiler -v >&5"
2926case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929esac
2930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compiler -v >&5") 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2935{ (ac_try="$ac_compiler -V >&5"
2936case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939esac
2940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compiler -V >&5") 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }
2945
2946{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2947echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2948if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2950else
2951 cat >conftest.$ac_ext <<_ACEOF
2952/* confdefs.h. */
2953_ACEOF
2954cat confdefs.h >>conftest.$ac_ext
2955cat >>conftest.$ac_ext <<_ACEOF
2956/* end confdefs.h. */
2957
2958int
2959main ()
2960{
2961#ifndef __GNUC__
2962 choke me
2963#endif
2964
2965 ;
2966 return 0;
2967}
2968_ACEOF
2969rm -f conftest.$ac_objext
2970if { (ac_try="$ac_compile"
2971case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974esac
2975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compile") 2>conftest.er1
2977 ac_status=$?
2978 grep -v '^ *+' conftest.er1 >conftest.err
2979 rm -f conftest.er1
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2984 { (case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987esac
2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_try") 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997esac
2998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_try") 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 ac_compiler_gnu=yes
3004else
3005 echo "$as_me: failed program was:" >&5
3006sed 's/^/| /' conftest.$ac_ext >&5
3007
3008 ac_compiler_gnu=no
3009fi
3010
3011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3013
3014fi
3015{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3016echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3017GXX=`test $ac_compiler_gnu = yes && echo yes`
3018ac_test_CXXFLAGS=${CXXFLAGS+set}
3019ac_save_CXXFLAGS=$CXXFLAGS
3020{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3021echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3022if test "${ac_cv_prog_cxx_g+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024else
3025 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3026 ac_cxx_werror_flag=yes
3027 ac_cv_prog_cxx_g=no
3028 CXXFLAGS="-g"
3029 cat >conftest.$ac_ext <<_ACEOF
3030/* confdefs.h. */
3031_ACEOF
3032cat confdefs.h >>conftest.$ac_ext
3033cat >>conftest.$ac_ext <<_ACEOF
3034/* end confdefs.h. */
3035
3036int
3037main ()
3038{
3039
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044rm -f conftest.$ac_objext
3045if { (ac_try="$ac_compile"
3046case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049esac
3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3052 ac_status=$?
3053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062esac
3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072esac
3073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 ac_cv_prog_cxx_g=yes
3079else
3080 echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
3082
3083 CXXFLAGS=""
3084 cat >conftest.$ac_ext <<_ACEOF
3085/* confdefs.h. */
3086_ACEOF
3087cat confdefs.h >>conftest.$ac_ext
3088cat >>conftest.$ac_ext <<_ACEOF
3089/* end confdefs.h. */
3090
3091int
3092main ()
3093{
3094
3095 ;
3096 return 0;
3097}
3098_ACEOF
3099rm -f conftest.$ac_objext
3100if { (ac_try="$ac_compile"
3101case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3107 ac_status=$?
3108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127esac
3128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3133 :
3134else
3135 echo "$as_me: failed program was:" >&5
3136sed 's/^/| /' conftest.$ac_ext >&5
3137
3138 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3139 CXXFLAGS="-g"
3140 cat >conftest.$ac_ext <<_ACEOF
3141/* confdefs.h. */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>conftest.$ac_ext <<_ACEOF
3145/* end confdefs.h. */
3146
3147int
3148main ()
3149{
3150
3151 ;
3152 return 0;
3153}
3154_ACEOF
3155rm -f conftest.$ac_objext
3156if { (ac_try="$ac_compile"
3157case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compile") 2>conftest.er1
3163 ac_status=$?
3164 grep -v '^ *+' conftest.er1 >conftest.err
3165 rm -f conftest.er1
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; } &&
3179 { ac_try='test -s conftest.$ac_objext'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183esac
3184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3189 ac_cv_prog_cxx_g=yes
3190else
3191 echo "$as_me: failed program was:" >&5
3192sed 's/^/| /' conftest.$ac_ext >&5
3193
3194
3195fi
3196
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198fi
3199
3200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201fi
3202
3203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3205fi
3206{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3207echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3208if test "$ac_test_CXXFLAGS" = set; then
3209 CXXFLAGS=$ac_save_CXXFLAGS
3210elif test $ac_cv_prog_cxx_g = yes; then
3211 if test "$GXX" = yes; then
3212 CXXFLAGS="-g -O2"
3213 else
3214 CXXFLAGS="-g"
3215 fi
3216else
3217 if test "$GXX" = yes; then
3218 CXXFLAGS="-O2"
3219 else
3220 CXXFLAGS=
3221 fi
3222fi
3223ac_ext=c
3224ac_cpp='$CPP $CPPFLAGS'
3225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencer0241e382004-11-25 04:51:04 +00003228
Reid Spencer0241e382004-11-25 04:51:04 +00003229ac_ext=c
3230ac_cpp='$CPP $CPPFLAGS'
3231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003234{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00003236# On Suns, sometimes $CPP names a directory.
3237if test -n "$CPP" && test -d "$CPP"; then
3238 CPP=
3239fi
3240if test -z "$CPP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003241 if test "${ac_cv_prog_CPP+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +00003243else
3244 # Double quotes because CPP needs to be expanded
3245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3246 do
3247 ac_preproc_ok=false
3248for ac_c_preproc_warn_flag in '' yes
3249do
3250 # Use a header file that comes with gcc, so configuring glibc
3251 # with a fresh cross-compiler works.
3252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253 # <limits.h> exists even on freestanding compilers.
3254 # On the NeXT, cc -E runs the code through the compiler's parser,
3255 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003256 cat >conftest.$ac_ext <<_ACEOF
3257/* confdefs.h. */
3258_ACEOF
3259cat confdefs.h >>conftest.$ac_ext
3260cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003261/* end confdefs.h. */
3262#ifdef __STDC__
3263# include <limits.h>
3264#else
3265# include <assert.h>
3266#endif
3267 Syntax error
3268_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003269if { (ac_try="$ac_cpp conftest.$ac_ext"
3270case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273esac
3274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null; then
3282 if test -s conftest.err; then
3283 ac_cpp_err=$ac_c_preproc_warn_flag
3284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3285 else
3286 ac_cpp_err=
3287 fi
Torok Edwinaec06332010-01-26 08:50:50 +00003288else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003289 ac_cpp_err=yes
3290fi
3291if test -z "$ac_cpp_err"; then
3292 :
3293else
3294 echo "$as_me: failed program was:" >&5
3295sed 's/^/| /' conftest.$ac_ext >&5
3296
Reid Spencer0241e382004-11-25 04:51:04 +00003297 # Broken: fails on valid input.
3298continue
3299fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003300
Reid Spencer0241e382004-11-25 04:51:04 +00003301rm -f conftest.err conftest.$ac_ext
3302
Reid Spencer0b52e2f2006-08-04 18:18:08 +00003303 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer0241e382004-11-25 04:51:04 +00003304 # can be detected and how.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003305 cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003310/* end confdefs.h. */
3311#include <ac_nonexistent.h>
3312_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003313if { (ac_try="$ac_cpp conftest.$ac_ext"
3314case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317esac
3318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3320 ac_status=$?
3321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } >/dev/null; then
3326 if test -s conftest.err; then
3327 ac_cpp_err=$ac_c_preproc_warn_flag
3328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329 else
3330 ac_cpp_err=
3331 fi
3332else
3333 ac_cpp_err=yes
3334fi
3335if test -z "$ac_cpp_err"; then
Reid Spencer0241e382004-11-25 04:51:04 +00003336 # Broken: success on invalid input.
3337continue
3338else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003339 echo "$as_me: failed program was:" >&5
3340sed 's/^/| /' conftest.$ac_ext >&5
3341
Reid Spencer0241e382004-11-25 04:51:04 +00003342 # Passes both tests.
3343ac_preproc_ok=:
3344break
3345fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003346
Reid Spencer0241e382004-11-25 04:51:04 +00003347rm -f conftest.err conftest.$ac_ext
3348
3349done
3350# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3351rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003352if $ac_preproc_ok; then
Reid Spencer0241e382004-11-25 04:51:04 +00003353 break
3354fi
3355
3356 done
3357 ac_cv_prog_CPP=$CPP
3358
3359fi
3360 CPP=$ac_cv_prog_CPP
3361else
3362 ac_cv_prog_CPP=$CPP
3363fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003364{ echo "$as_me:$LINENO: result: $CPP" >&5
3365echo "${ECHO_T}$CPP" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +00003366ac_preproc_ok=false
3367for ac_c_preproc_warn_flag in '' yes
3368do
3369 # Use a header file that comes with gcc, so configuring glibc
3370 # with a fresh cross-compiler works.
3371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372 # <limits.h> exists even on freestanding compilers.
3373 # On the NeXT, cc -E runs the code through the compiler's parser,
3374 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003375 cat >conftest.$ac_ext <<_ACEOF
3376/* confdefs.h. */
3377_ACEOF
3378cat confdefs.h >>conftest.$ac_ext
3379cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003380/* end confdefs.h. */
3381#ifdef __STDC__
3382# include <limits.h>
3383#else
3384# include <assert.h>
3385#endif
3386 Syntax error
3387_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003388if { (ac_try="$ac_cpp conftest.$ac_ext"
3389case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392esac
3393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395 ac_status=$?
3396 grep -v '^ *+' conftest.er1 >conftest.err
3397 rm -f conftest.er1
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev/null; then
3401 if test -s conftest.err; then
3402 ac_cpp_err=$ac_c_preproc_warn_flag
3403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3404 else
3405 ac_cpp_err=
3406 fi
Torok Edwinaec06332010-01-26 08:50:50 +00003407else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003408 ac_cpp_err=yes
3409fi
3410if test -z "$ac_cpp_err"; then
3411 :
3412else
3413 echo "$as_me: failed program was:" >&5
3414sed 's/^/| /' conftest.$ac_ext >&5
3415
Reid Spencer0241e382004-11-25 04:51:04 +00003416 # Broken: fails on valid input.
3417continue
3418fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003419
Reid Spencer0241e382004-11-25 04:51:04 +00003420rm -f conftest.err conftest.$ac_ext
3421
Reid Spencer0b52e2f2006-08-04 18:18:08 +00003422 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer0241e382004-11-25 04:51:04 +00003423 # can be detected and how.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003424 cat >conftest.$ac_ext <<_ACEOF
3425/* confdefs.h. */
3426_ACEOF
3427cat confdefs.h >>conftest.$ac_ext
3428cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +00003429/* end confdefs.h. */
3430#include <ac_nonexistent.h>
3431_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003432if { (ac_try="$ac_cpp conftest.$ac_ext"
3433case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
3437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448 else
3449 ac_cpp_err=
3450 fi
3451else
3452 ac_cpp_err=yes
3453fi
3454if test -z "$ac_cpp_err"; then
Reid Spencer0241e382004-11-25 04:51:04 +00003455 # Broken: success on invalid input.
3456continue
3457else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003458 echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
Reid Spencer0241e382004-11-25 04:51:04 +00003461 # Passes both tests.
3462ac_preproc_ok=:
3463break
3464fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003465
Reid Spencer0241e382004-11-25 04:51:04 +00003466rm -f conftest.err conftest.$ac_ext
3467
3468done
3469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003471if $ac_preproc_ok; then
3472 :
Reid Spencer0241e382004-11-25 04:51:04 +00003473else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00003474 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475See \`config.log' for more details." >&5
3476echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477See \`config.log' for more details." >&2;}
3478 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +00003479fi
3480
John Criswell3ef61af2003-06-30 21:59:07 +00003481ac_ext=c
3482ac_cpp='$CPP $CPPFLAGS'
3483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
John Criswell3ef61af2003-06-30 21:59:07 +00003487
Dmitri Gribenko06358bd2013-01-09 15:25:30 +00003488if test "$CXX" = "clang++" ; then
3489 { echo "$as_me:$LINENO: checking whether clang works" >&5
3490echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3491 ac_ext=cpp
3492ac_cpp='$CXXCPP $CPPFLAGS'
3493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3496
3497
3498cat >conftest.$ac_ext <<_ACEOF
3499/* confdefs.h. */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h. */
3504#include <limits>
3505#if __has_include (<cxxabi.h>)
3506#include <cxxabi.h>
3507#endif
3508#if __has_include (<unwind.h>)
3509#include <unwind.h>
3510#endif
3511
3512int
3513main ()
3514{
3515
3516 ;
3517 return 0;
3518}
3519_ACEOF
3520rm -f conftest.$ac_objext
3521if { (ac_try="$ac_compile"
3522case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525esac
3526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_compile") 2>conftest.er1
3528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } &&
3534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3535 { (case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538esac
3539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_try") 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; } &&
3544 { ac_try='test -s conftest.$ac_objext'
3545 { (case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3548esac
3549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_try") 2>&5
3551 ac_status=$?
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; }; then
3554
3555 { echo "$as_me:$LINENO: result: yes" >&5
3556echo "${ECHO_T}yes" >&6; }
3557
3558else
3559 echo "$as_me: failed program was:" >&5
3560sed 's/^/| /' conftest.$ac_ext >&5
3561
3562
3563 { echo "$as_me:$LINENO: result: no" >&5
3564echo "${ECHO_T}no" >&6; }
3565 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3566echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3567 { (exit 1); exit 1; }; }
3568
3569fi
3570
3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 ac_ext=c
3573ac_cpp='$CPP $CPPFLAGS'
3574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578fi
3579
Eric Christopher58839712011-09-16 20:36:25 +00003580
3581
3582if test -d ${srcdir}/projects/llvm-gcc ; then
3583 subdirs="$subdirs projects/llvm-gcc"
3584
3585fi
3586
3587if test -d ${srcdir}/projects/test-suite ; then
3588 subdirs="$subdirs projects/test-suite"
3589
3590fi
3591
3592if test -d ${srcdir}/projects/llvm-test ; then
3593 subdirs="$subdirs projects/llvm-test"
3594
3595fi
3596
3597if test -d ${srcdir}/projects/poolalloc ; then
3598 subdirs="$subdirs projects/poolalloc"
3599
3600fi
3601
3602if test -d ${srcdir}/projects/llvm-poolalloc ; then
3603 subdirs="$subdirs projects/llvm-poolalloc"
3604
3605fi
3606
3607for i in `ls ${srcdir}/projects`
3608do
3609 if test -d ${srcdir}/projects/${i} ; then
3610 case ${i} in
3611 sample) subdirs="$subdirs projects/sample"
3612 ;;
3613 privbracket) subdirs="$subdirs projects/privbracket"
3614 ;;
3615 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3616 ;;
3617 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3618;;
3619 llvm-java) subdirs="$subdirs projects/llvm-java"
3620 ;;
3621 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3622 ;;
3623 safecode) subdirs="$subdirs projects/safecode"
3624 ;;
3625 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3626 ;;
Daniel Dunbar7ce849d2011-12-07 22:07:03 +00003627 compiler-rt) ;;
Eric Christopher58839712011-09-16 20:36:25 +00003628 llvm-gcc) ;;
3629 test-suite) ;;
3630 llvm-test) ;;
3631 poolalloc) ;;
3632 llvm-poolalloc) ;;
3633 *)
3634 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3635echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3636 ;;
3637 esac
3638 fi
3639done
3640
3641# Check whether --enable-polly was given.
3642if test "${enable_polly+set}" = set; then
3643 enableval=$enable_polly;
3644else
3645 enableval=default
3646fi
3647
3648case "$enableval" in
3649 yes) ENABLE_POLLY=1
3650 ;;
3651 no) ENABLE_POLLY=0
3652 ;;
3653 default) ENABLE_POLLY=1
3654 ;;
3655 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3656echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3657 { (exit 1); exit 1; }; } ;;
3658esac
3659
3660
3661if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3662 LLVM_HAS_POLLY=1
3663
3664 subdirs="$subdirs tools/polly"
3665
3666fi
3667
3668
3669# Make sure we can run config.sub.
3670$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3671 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3672echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3673 { (exit 1); exit 1; }; }
3674
3675{ echo "$as_me:$LINENO: checking build system type" >&5
3676echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3677if test "${ac_cv_build+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679else
3680 ac_build_alias=$build_alias
3681test "x$ac_build_alias" = x &&
3682 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3683test "x$ac_build_alias" = x &&
3684 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3685echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3686 { (exit 1); exit 1; }; }
3687ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3688 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3689echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3690 { (exit 1); exit 1; }; }
3691
3692fi
3693{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3694echo "${ECHO_T}$ac_cv_build" >&6; }
3695case $ac_cv_build in
3696*-*-*) ;;
3697*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3698echo "$as_me: error: invalid value of canonical build" >&2;}
3699 { (exit 1); exit 1; }; };;
3700esac
3701build=$ac_cv_build
3702ac_save_IFS=$IFS; IFS='-'
3703set x $ac_cv_build
3704shift
3705build_cpu=$1
3706build_vendor=$2
3707shift; shift
3708# Remember, the first character of IFS is used to create $*,
3709# except with old shells:
3710build_os=$*
3711IFS=$ac_save_IFS
3712case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3713
3714
3715{ echo "$as_me:$LINENO: checking host system type" >&5
3716echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3717if test "${ac_cv_host+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3719else
3720 if test "x$host_alias" = x; then
3721 ac_cv_host=$ac_cv_build
3722else
3723 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3724 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3725echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3726 { (exit 1); exit 1; }; }
3727fi
3728
3729fi
3730{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3731echo "${ECHO_T}$ac_cv_host" >&6; }
3732case $ac_cv_host in
3733*-*-*) ;;
3734*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3735echo "$as_me: error: invalid value of canonical host" >&2;}
3736 { (exit 1); exit 1; }; };;
3737esac
3738host=$ac_cv_host
3739ac_save_IFS=$IFS; IFS='-'
3740set x $ac_cv_host
3741shift
3742host_cpu=$1
3743host_vendor=$2
3744shift; shift
3745# Remember, the first character of IFS is used to create $*,
3746# except with old shells:
3747host_os=$*
3748IFS=$ac_save_IFS
3749case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3750
3751
3752{ echo "$as_me:$LINENO: checking target system type" >&5
3753echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3754if test "${ac_cv_target+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756else
3757 if test "x$target_alias" = x; then
3758 ac_cv_target=$ac_cv_host
3759else
3760 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3761 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3762echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3763 { (exit 1); exit 1; }; }
3764fi
3765
3766fi
3767{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3768echo "${ECHO_T}$ac_cv_target" >&6; }
3769case $ac_cv_target in
3770*-*-*) ;;
3771*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3772echo "$as_me: error: invalid value of canonical target" >&2;}
3773 { (exit 1); exit 1; }; };;
3774esac
3775target=$ac_cv_target
3776ac_save_IFS=$IFS; IFS='-'
3777set x $ac_cv_target
3778shift
3779target_cpu=$1
3780target_vendor=$2
3781shift; shift
3782# Remember, the first character of IFS is used to create $*,
3783# except with old shells:
3784target_os=$*
3785IFS=$ac_save_IFS
3786case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3787
3788
3789# The aliases save the names the user supplied, while $host etc.
3790# will get canonicalized.
3791test -n "$target_alias" &&
3792 test "$program_prefix$program_suffix$program_transform_name" = \
3793 NONENONEs,x,x, &&
3794 program_prefix=${target_alias}-
3795
3796{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3797echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3798if test "${llvm_cv_os_type+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800else
3801 case $host in
3802 *-*-aix*)
3803 llvm_cv_link_all_option="-Wl,--whole-archive"
3804 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3805 llvm_cv_os_type="AIX"
3806 llvm_cv_platform_type="Unix" ;;
3807 *-*-irix*)
3808 llvm_cv_link_all_option="-Wl,--whole-archive"
3809 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3810 llvm_cv_os_type="IRIX"
3811 llvm_cv_platform_type="Unix" ;;
3812 *-*-cygwin*)
3813 llvm_cv_link_all_option="-Wl,--whole-archive"
3814 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3815 llvm_cv_os_type="Cygwin"
3816 llvm_cv_platform_type="Unix" ;;
3817 *-*-darwin*)
3818 llvm_cv_link_all_option="-Wl,-all_load"
3819 llvm_cv_no_link_all_option="-Wl,-noall_load"
3820 llvm_cv_os_type="Darwin"
3821 llvm_cv_platform_type="Unix" ;;
3822 *-*-minix*)
3823 llvm_cv_link_all_option="-Wl,-all_load"
3824 llvm_cv_no_link_all_option="-Wl,-noall_load"
3825 llvm_cv_os_type="Minix"
3826 llvm_cv_platform_type="Unix" ;;
Rafael Espindola4977edd2011-12-22 14:01:18 +00003827 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopher58839712011-09-16 20:36:25 +00003828 llvm_cv_link_all_option="-Wl,--whole-archive"
3829 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3830 llvm_cv_os_type="FreeBSD"
3831 llvm_cv_platform_type="Unix" ;;
3832 *-*-openbsd*)
3833 llvm_cv_link_all_option="-Wl,--whole-archive"
3834 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835 llvm_cv_os_type="OpenBSD"
3836 llvm_cv_platform_type="Unix" ;;
3837 *-*-netbsd*)
3838 llvm_cv_link_all_option="-Wl,--whole-archive"
3839 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840 llvm_cv_os_type="NetBSD"
3841 llvm_cv_platform_type="Unix" ;;
3842 *-*-dragonfly*)
3843 llvm_cv_link_all_option="-Wl,--whole-archive"
3844 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845 llvm_cv_os_type="DragonFly"
3846 llvm_cv_platform_type="Unix" ;;
3847 *-*-hpux*)
3848 llvm_cv_link_all_option="-Wl,--whole-archive"
3849 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850 llvm_cv_os_type="HP-UX"
3851 llvm_cv_platform_type="Unix" ;;
3852 *-*-interix*)
3853 llvm_cv_link_all_option="-Wl,--whole-archive"
3854 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855 llvm_cv_os_type="Interix"
3856 llvm_cv_platform_type="Unix" ;;
3857 *-*-linux*)
3858 llvm_cv_link_all_option="-Wl,--whole-archive"
3859 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3860 llvm_cv_os_type="Linux"
3861 llvm_cv_platform_type="Unix" ;;
Rafael Espindola4977edd2011-12-22 14:01:18 +00003862 *-*-gnu*)
3863 llvm_cv_link_all_option="-Wl,--whole-archive"
3864 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3865 llvm_cv_os_type="GNU"
3866 llvm_cv_platform_type="Unix" ;;
Eric Christopher58839712011-09-16 20:36:25 +00003867 *-*-solaris*)
3868 llvm_cv_link_all_option="-Wl,-z,allextract"
3869 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3870 llvm_cv_os_type="SunOS"
3871 llvm_cv_platform_type="Unix" ;;
3872 *-*-auroraux*)
3873 llvm_cv_link_all_option="-Wl,-z,allextract"
3874 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3875 llvm_cv_os_type="AuroraUX"
3876 llvm_cv_platform_type="Unix" ;;
3877 *-*-win32*)
3878 llvm_cv_link_all_option="-Wl,--whole-archive"
3879 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3880 llvm_cv_os_type="Win32"
3881 llvm_cv_platform_type="Win32" ;;
3882 *-*-mingw*)
3883 llvm_cv_link_all_option="-Wl,--whole-archive"
3884 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3885 llvm_cv_os_type="MingW"
3886 llvm_cv_platform_type="Win32" ;;
3887 *-*-haiku*)
3888 llvm_cv_link_all_option="-Wl,--whole-archive"
3889 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890 llvm_cv_os_type="Haiku"
3891 llvm_cv_platform_type="Unix" ;;
3892 *-unknown-eabi*)
3893 llvm_cv_link_all_option="-Wl,--whole-archive"
3894 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3895 llvm_cv_os_type="Freestanding"
3896 llvm_cv_platform_type="Unix" ;;
3897 *-unknown-elf*)
3898 llvm_cv_link_all_option="-Wl,--whole-archive"
3899 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3900 llvm_cv_os_type="Freestanding"
3901 llvm_cv_platform_type="Unix" ;;
3902 *)
3903 llvm_cv_link_all_option=""
3904 llvm_cv_no_link_all_option=""
3905 llvm_cv_os_type="Unknown"
3906 llvm_cv_platform_type="Unknown" ;;
3907esac
3908fi
3909{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3910echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3911
3912{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3913echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3914if test "${llvm_cv_target_os_type+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917 case $target in
3918 *-*-aix*)
3919 llvm_cv_target_os_type="AIX" ;;
3920 *-*-irix*)
3921 llvm_cv_target_os_type="IRIX" ;;
3922 *-*-cygwin*)
3923 llvm_cv_target_os_type="Cygwin" ;;
3924 *-*-darwin*)
3925 llvm_cv_target_os_type="Darwin" ;;
3926 *-*-minix*)
3927 llvm_cv_target_os_type="Minix" ;;
Sebastian Pop5c9e1842012-04-16 04:11:45 +00003928 *-*-freebsd* | *-*-kfreebsd-gnu)
Eric Christopher58839712011-09-16 20:36:25 +00003929 llvm_cv_target_os_type="FreeBSD" ;;
3930 *-*-openbsd*)
3931 llvm_cv_target_os_type="OpenBSD" ;;
3932 *-*-netbsd*)
3933 llvm_cv_target_os_type="NetBSD" ;;
3934 *-*-dragonfly*)
3935 llvm_cv_target_os_type="DragonFly" ;;
3936 *-*-hpux*)
3937 llvm_cv_target_os_type="HP-UX" ;;
3938 *-*-interix*)
3939 llvm_cv_target_os_type="Interix" ;;
3940 *-*-linux*)
3941 llvm_cv_target_os_type="Linux" ;;
Sylvestre Ledrue8235fe2012-04-05 19:34:15 +00003942 *-*-gnu*)
3943 llvm_cv_target_os_type="GNU" ;;
Eric Christopher58839712011-09-16 20:36:25 +00003944 *-*-solaris*)
3945 llvm_cv_target_os_type="SunOS" ;;
3946 *-*-auroraux*)
3947 llvm_cv_target_os_type="AuroraUX" ;;
3948 *-*-win32*)
3949 llvm_cv_target_os_type="Win32" ;;
3950 *-*-mingw*)
3951 llvm_cv_target_os_type="MingW" ;;
3952 *-*-haiku*)
3953 llvm_cv_target_os_type="Haiku" ;;
3954 *-*-rtems*)
3955 llvm_cv_target_os_type="RTEMS" ;;
3956 *-*-nacl*)
3957 llvm_cv_target_os_type="NativeClient" ;;
3958 *-unknown-eabi*)
3959 llvm_cv_target_os_type="Freestanding" ;;
3960 *)
3961 llvm_cv_target_os_type="Unknown" ;;
3962esac
3963fi
3964{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3965echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3966
3967if test "$llvm_cv_os_type" = "Unknown" ; then
3968 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3969echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3970 { (exit 1); exit 1; }; }
3971fi
3972
3973OS=$llvm_cv_os_type
3974
3975HOST_OS=$llvm_cv_os_type
3976
3977TARGET_OS=$llvm_cv_target_os_type
3978
3979
3980LINKALL=$llvm_cv_link_all_option
3981
3982NOLINKALL=$llvm_cv_no_link_all_option
3983
3984
3985case $llvm_cv_platform_type in
3986 Unix)
3987
3988cat >>confdefs.h <<\_ACEOF
3989#define LLVM_ON_UNIX 1
3990_ACEOF
3991
3992 LLVM_ON_UNIX=1
3993
3994 LLVM_ON_WIN32=0
3995
3996 ;;
3997 Win32)
3998
3999cat >>confdefs.h <<\_ACEOF
4000#define LLVM_ON_WIN32 1
4001_ACEOF
4002
4003 LLVM_ON_UNIX=0
4004
4005 LLVM_ON_WIN32=1
4006
4007 ;;
4008esac
4009
4010{ echo "$as_me:$LINENO: checking target architecture" >&5
4011echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4012if test "${llvm_cv_target_arch+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014else
4015 case $target in
4016 i?86-*) llvm_cv_target_arch="x86" ;;
4017 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4018 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4019 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004020 arm*-*) llvm_cv_target_arch="ARM" ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00004021 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00004022 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4023 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004024 xcore-*) llvm_cv_target_arch="XCore" ;;
4025 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00004026 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004027 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00004028 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
Eric Christopher58839712011-09-16 20:36:25 +00004029 *) llvm_cv_target_arch="Unknown" ;;
4030esac
4031fi
4032{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4033echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4034
4035if test "$llvm_cv_target_arch" = "Unknown" ; then
4036 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4037echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4038fi
4039
Eric Christopher58839712011-09-16 20:36:25 +00004040case "$llvm_cv_target_arch" in
4041 x86) LLVM_NATIVE_ARCH="X86" ;;
4042 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4043 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4044esac
4045
4046ARCH=$llvm_cv_target_arch
4047
4048
Danil Malyshev7c5db452012-05-17 21:07:47 +00004049case $host in
4050 i?86-*) host_arch="x86" ;;
4051 amd64-* | x86_64-*) host_arch="x86_64" ;;
4052 sparc*-*) host_arch="Sparc" ;;
4053 powerpc*-*) host_arch="PowerPC" ;;
4054 arm*-*) host_arch="ARM" ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00004055 aarch64*-*) host_arch="AArch64" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00004056 mips-* | mips64-*) host_arch="Mips" ;;
4057 mipsel-* | mips64el-*) host_arch="Mips" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004058 xcore-*) host_arch="XCore" ;;
4059 msp430-*) host_arch="MSP430" ;;
4060 hexagon-*) host_arch="Hexagon" ;;
4061 mblaze-*) host_arch="MBlaze" ;;
Danil Malyshev7c5db452012-05-17 21:07:47 +00004062 *) host_arch="Unknown" ;;
4063esac
4064
4065if test "$host_arch" = "Unknown" ; then
4066 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4067echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4068fi
4069
4070HOST_ARCH=$host_arch
4071
4072
Eric Christopher58839712011-09-16 20:36:25 +00004073
4074
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004075{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4076echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4077if test "${ac_cv_path_GREP+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00004079else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004080 # Extract the first word of "grep ggrep" to use in msg output
4081if test -z "$GREP"; then
4082set dummy grep ggrep; ac_prog_name=$2
4083if test "${ac_cv_path_GREP+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004086 ac_path_GREP_found=false
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004087# Loop through the user's path and test for each of PROGNAME-LIST
4088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004089for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencera40c6872004-11-29 12:29:58 +00004090do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004093 for ac_prog in grep ggrep; do
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4096 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4097 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004098 # Check for GNU $ac_path_GREP
4099case `"$ac_path_GREP" --version 2>&1` in
4100*GNU*)
4101 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4102*)
4103 ac_count=0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004104 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004105 while :
4106 do
4107 cat "conftest.in" "conftest.in" >"conftest.tmp"
4108 mv "conftest.tmp" "conftest.in"
4109 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004110 echo 'GREP' >> "conftest.nl"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004111 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004113 ac_count=`expr $ac_count + 1`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004114 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4115 # Best one so far, save it but keep looking for a better one
4116 ac_cv_path_GREP="$ac_path_GREP"
4117 ac_path_GREP_max=$ac_count
Reid Spencera40c6872004-11-29 12:29:58 +00004118 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004119 # 10*(2^10) chars as input seems more than enough
4120 test $ac_count -gt 10 && break
4121 done
4122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123esac
4124
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004125
4126 $ac_path_GREP_found && break 3
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004127 done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004128done
4129
4130done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004131IFS=$as_save_IFS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004132
4133
4134fi
4135
4136GREP="$ac_cv_path_GREP"
4137if test -z "$GREP"; then
4138 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4139echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4140 { (exit 1); exit 1; }; }
4141fi
4142
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004143else
4144 ac_cv_path_GREP=$GREP
4145fi
Reid Spencera40c6872004-11-29 12:29:58 +00004146
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004147
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004148fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004149{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4150echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004151 GREP="$ac_cv_path_GREP"
4152
4153
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004154{ echo "$as_me:$LINENO: checking for egrep" >&5
4155echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4156if test "${ac_cv_path_EGREP+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004158else
4159 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4160 then ac_cv_path_EGREP="$GREP -E"
4161 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004162 # Extract the first word of "egrep" to use in msg output
4163if test -z "$EGREP"; then
4164set dummy egrep; ac_prog_name=$2
4165if test "${ac_cv_path_EGREP+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167else
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004168 ac_path_EGREP_found=false
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004169# Loop through the user's path and test for each of PROGNAME-LIST
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004171for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4172do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004175 for ac_prog in egrep; do
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4178 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4179 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004180 # Check for GNU $ac_path_EGREP
4181case `"$ac_path_EGREP" --version 2>&1` in
4182*GNU*)
4183 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4184*)
4185 ac_count=0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004186 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004187 while :
4188 do
4189 cat "conftest.in" "conftest.in" >"conftest.tmp"
4190 mv "conftest.tmp" "conftest.in"
4191 cp "conftest.in" "conftest.nl"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004192 echo 'EGREP' >> "conftest.nl"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004193 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004195 ac_count=`expr $ac_count + 1`
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004196 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4197 # Best one so far, save it but keep looking for a better one
4198 ac_cv_path_EGREP="$ac_path_EGREP"
4199 ac_path_EGREP_max=$ac_count
4200 fi
4201 # 10*(2^10) chars as input seems more than enough
4202 test $ac_count -gt 10 && break
4203 done
4204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205esac
4206
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004207
4208 $ac_path_EGREP_found && break 3
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004209 done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004210done
4211
4212done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004213IFS=$as_save_IFS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004214
4215
4216fi
4217
4218EGREP="$ac_cv_path_EGREP"
4219if test -z "$EGREP"; then
4220 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4221echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4222 { (exit 1); exit 1; }; }
4223fi
4224
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004225else
4226 ac_cv_path_EGREP=$EGREP
4227fi
4228
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004229
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004230 fi
4231fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004232{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4233echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004234 EGREP="$ac_cv_path_EGREP"
4235
4236
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004237{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4238echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4239if test "${ac_cv_header_stdc+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +00004241else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004242 cat >conftest.$ac_ext <<_ACEOF
4243/* confdefs.h. */
4244_ACEOF
4245cat confdefs.h >>conftest.$ac_ext
4246cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00004247/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00004248#include <stdlib.h>
4249#include <stdarg.h>
4250#include <string.h>
4251#include <float.h>
4252
John Criswell3eaf0b42003-09-10 15:17:25 +00004253int
4254main ()
4255{
4256
4257 ;
4258 return 0;
4259}
John Criswell3ef61af2003-06-30 21:59:07 +00004260_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004261rm -f conftest.$ac_objext
4262if { (ac_try="$ac_compile"
4263case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266esac
4267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_compile") 2>conftest.er1
4269 ac_status=$?
4270 grep -v '^ *+' conftest.er1 >conftest.err
4271 rm -f conftest.er1
4272 cat conftest.err >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4276 { (case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279esac
4280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_try") 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; } &&
4285 { ac_try='test -s conftest.$ac_objext'
4286 { (case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289esac
4290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_try") 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +00004295 ac_cv_header_stdc=yes
4296else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004297 echo "$as_me: failed program was:" >&5
4298sed 's/^/| /' conftest.$ac_ext >&5
4299
4300 ac_cv_header_stdc=no
John Criswell3ef61af2003-06-30 21:59:07 +00004301fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004302
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +00004304
4305if test $ac_cv_header_stdc = yes; then
4306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004307 cat >conftest.$ac_ext <<_ACEOF
4308/* confdefs.h. */
4309_ACEOF
4310cat confdefs.h >>conftest.$ac_ext
4311cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00004312/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00004313#include <string.h>
4314
4315_ACEOF
4316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004317 $EGREP "memchr" >/dev/null 2>&1; then
4318 :
John Criswell3ef61af2003-06-30 21:59:07 +00004319else
4320 ac_cv_header_stdc=no
4321fi
4322rm -f conftest*
4323
4324fi
4325
4326if test $ac_cv_header_stdc = yes; then
4327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004328 cat >conftest.$ac_ext <<_ACEOF
4329/* confdefs.h. */
4330_ACEOF
4331cat confdefs.h >>conftest.$ac_ext
4332cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00004333/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00004334#include <stdlib.h>
4335
4336_ACEOF
4337if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004338 $EGREP "free" >/dev/null 2>&1; then
4339 :
John Criswell3ef61af2003-06-30 21:59:07 +00004340else
4341 ac_cv_header_stdc=no
4342fi
4343rm -f conftest*
4344
4345fi
4346
4347if test $ac_cv_header_stdc = yes; then
4348 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004349 if test "$cross_compiling" = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +00004350 :
4351else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004352 cat >conftest.$ac_ext <<_ACEOF
4353/* confdefs.h. */
4354_ACEOF
4355cat confdefs.h >>conftest.$ac_ext
4356cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +00004357/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +00004358#include <ctype.h>
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004359#include <stdlib.h>
John Criswell3ef61af2003-06-30 21:59:07 +00004360#if ((' ' & 0x0FF) == 0x020)
4361# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4362# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4363#else
John Criswell3eaf0b42003-09-10 15:17:25 +00004364# define ISLOWER(c) \
Reid Spencerf184a862004-09-19 23:53:36 +00004365 (('a' <= (c) && (c) <= 'i') \
4366 || ('j' <= (c) && (c) <= 'r') \
4367 || ('s' <= (c) && (c) <= 'z'))
John Criswell3ef61af2003-06-30 21:59:07 +00004368# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4369#endif
4370
4371#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4372int
4373main ()
4374{
4375 int i;
4376 for (i = 0; i < 256; i++)
4377 if (XOR (islower (i), ISLOWER (i))
Reid Spencerf184a862004-09-19 23:53:36 +00004378 || toupper (i) != TOUPPER (i))
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004379 return 2;
4380 return 0;
John Criswell3ef61af2003-06-30 21:59:07 +00004381}
4382_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004383rm -f conftest$ac_exeext
4384if { (ac_try="$ac_link"
4385case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388esac
4389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_link") 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4394 { (case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397esac
4398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_try") 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4403 :
John Criswell3ef61af2003-06-30 21:59:07 +00004404else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004405 echo "$as_me: program exited with status $ac_status" >&5
4406echo "$as_me: failed program was:" >&5
4407sed 's/^/| /' conftest.$ac_ext >&5
4408
4409( exit $ac_status )
4410ac_cv_header_stdc=no
John Criswell3ef61af2003-06-30 21:59:07 +00004411fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004413fi
4414
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004415
John Criswell3ef61af2003-06-30 21:59:07 +00004416fi
4417fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004418{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4419echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +00004420if test $ac_cv_header_stdc = yes; then
4421
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004422cat >>confdefs.h <<\_ACEOF
4423#define STDC_HEADERS 1
4424_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +00004425
4426fi
4427
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004428# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004429
4430
4431
4432
4433
4434
4435
4436
4437
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004438for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4439 inttypes.h stdint.h unistd.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004440do
4441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4442{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447 cat >conftest.$ac_ext <<_ACEOF
4448/* confdefs.h. */
4449_ACEOF
4450cat confdefs.h >>conftest.$ac_ext
4451cat >>conftest.$ac_ext <<_ACEOF
4452/* end confdefs.h. */
4453$ac_includes_default
4454
4455#include <$ac_header>
4456_ACEOF
4457rm -f conftest.$ac_objext
4458if { (ac_try="$ac_compile"
4459case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462esac
4463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4464 (eval "$ac_compile") 2>conftest.er1
4465 ac_status=$?
4466 grep -v '^ *+' conftest.er1 >conftest.err
4467 rm -f conftest.er1
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4472 { (case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475esac
4476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_try") 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; } &&
4481 { ac_try='test -s conftest.$ac_objext'
4482 { (case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4485esac
4486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487 (eval "$ac_try") 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4491 eval "$as_ac_Header=yes"
4492else
4493 echo "$as_me: failed program was:" >&5
4494sed 's/^/| /' conftest.$ac_ext >&5
4495
4496 eval "$as_ac_Header=no"
4497fi
4498
4499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500fi
4501ac_res=`eval echo '${'$as_ac_Header'}'`
4502 { echo "$as_me:$LINENO: result: $ac_res" >&5
4503echo "${ECHO_T}$ac_res" >&6; }
4504if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004505 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004506#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004507_ACEOF
4508
4509fi
4510
4511done
4512
4513
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004514{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4515echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4516if test "${ac_cv_c_bigendian+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004518else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004519 # See if sys/param.h defines the BYTE_ORDER macro.
4520cat >conftest.$ac_ext <<_ACEOF
4521/* confdefs.h. */
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004522_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004523cat confdefs.h >>conftest.$ac_ext
4524cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004525/* end confdefs.h. */
4526#include <sys/types.h>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004527#include <sys/param.h>
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004528
4529int
4530main ()
4531{
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004532#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4533 bogus endian macros
4534#endif
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004535
4536 ;
4537 return 0;
4538}
4539_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004540rm -f conftest.$ac_objext
4541if { (ac_try="$ac_compile"
4542case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4545esac
4546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547 (eval "$ac_compile") 2>conftest.er1
4548 ac_status=$?
4549 grep -v '^ *+' conftest.er1 >conftest.err
4550 rm -f conftest.er1
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4555 { (case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4558esac
4559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560 (eval "$ac_try") 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest.$ac_objext'
4565 { (case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568esac
4569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_try") 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004574 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004575cat >conftest.$ac_ext <<_ACEOF
4576/* confdefs.h. */
4577_ACEOF
4578cat confdefs.h >>conftest.$ac_ext
4579cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004580/* end confdefs.h. */
4581#include <sys/types.h>
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004582#include <sys/param.h>
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004583
4584int
4585main ()
4586{
4587#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004588 not big endian
4589#endif
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004590
4591 ;
4592 return 0;
4593}
4594_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004595rm -f conftest.$ac_objext
4596if { (ac_try="$ac_compile"
4597case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600esac
4601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602 (eval "$ac_compile") 2>conftest.er1
4603 ac_status=$?
4604 grep -v '^ *+' conftest.er1 >conftest.err
4605 rm -f conftest.er1
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4610 { (case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613esac
4614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_try") 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; } &&
4619 { ac_try='test -s conftest.$ac_objext'
4620 { (case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623esac
4624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4625 (eval "$ac_try") 2>&5
4626 ac_status=$?
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004629 ac_cv_c_bigendian=yes
4630else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004631 echo "$as_me: failed program was:" >&5
4632sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwinaec06332010-01-26 08:50:50 +00004633
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004634 ac_cv_c_bigendian=no
4635fi
4636
4637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638else
4639 echo "$as_me: failed program was:" >&5
4640sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 # It does not; compile a test program.
4643if test "$cross_compiling" = yes; then
4644 # try to guess the endianness by grepping values into an object file
4645 ac_cv_c_bigendian=unknown
4646 cat >conftest.$ac_ext <<_ACEOF
4647/* confdefs.h. */
4648_ACEOF
4649cat confdefs.h >>conftest.$ac_ext
4650cat >>conftest.$ac_ext <<_ACEOF
4651/* end confdefs.h. */
4652short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4653short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4654void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4655short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4656short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4657void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004658int
4659main ()
4660{
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004661 _ascii (); _ebcdic ();
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004662 ;
4663 return 0;
4664}
4665_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004666rm -f conftest.$ac_objext
4667if { (ac_try="$ac_compile"
4668case "(($ac_try" in
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4671esac
4672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4673 (eval "$ac_compile") 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4681 { (case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4684esac
4685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686 (eval "$ac_try") 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; } &&
4690 { ac_try='test -s conftest.$ac_objext'
4691 { (case "(($ac_try" in
4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693 *) ac_try_echo=$ac_try;;
4694esac
4695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4696 (eval "$ac_try") 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4700 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004701 ac_cv_c_bigendian=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004702fi
4703if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4704 if test "$ac_cv_c_bigendian" = unknown; then
4705 ac_cv_c_bigendian=no
4706 else
4707 # finding both strings is unlikely to happen, but who knows?
4708 ac_cv_c_bigendian=unknown
4709 fi
4710fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004711else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004712 echo "$as_me: failed program was:" >&5
4713sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004714
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004715
Torok Edwinaec06332010-01-26 08:50:50 +00004716fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004717
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004720 cat >conftest.$ac_ext <<_ACEOF
4721/* confdefs.h. */
4722_ACEOF
4723cat confdefs.h >>conftest.$ac_ext
4724cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004725/* end confdefs.h. */
4726$ac_includes_default
4727int
4728main ()
4729{
4730
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004731 /* Are we little or big endian? From Harbison&Steele. */
4732 union
4733 {
4734 long int l;
4735 char c[sizeof (long int)];
4736 } u;
4737 u.l = 1;
4738 return u.c[sizeof (long int) - 1] == 1;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004739
4740 ;
4741 return 0;
4742}
4743_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004744rm -f conftest$ac_exeext
4745if { (ac_try="$ac_link"
4746case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4749esac
4750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751 (eval "$ac_link") 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4755 { (case "(($ac_try" in
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4758esac
4759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760 (eval "$ac_try") 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004764 ac_cv_c_bigendian=no
4765else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004766 echo "$as_me: program exited with status $ac_status" >&5
4767echo "$as_me: failed program was:" >&5
4768sed 's/^/| /' conftest.$ac_ext >&5
4769
4770( exit $ac_status )
4771ac_cv_c_bigendian=yes
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004772fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004774fi
4775
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004776
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004777fi
4778
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780fi
4781{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4782echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4783case $ac_cv_c_bigendian in
4784 yes)
4785 ENDIAN=big
4786 ;;
4787 no)
4788 ENDIAN=little
4789 ;;
4790 *)
4791 { { echo "$as_me:$LINENO: error: unknown endianness
4792presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4793echo "$as_me: error: unknown endianness
4794presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4795 { (exit 1); exit 1; }; } ;;
4796esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004797
4798
4799if test "$cross_compiling" = yes; then
4800 LLVM_CROSS_COMPILING=1
4801
4802
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004803{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4804echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4805if test "${ac_cv_build_exeext+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004807else
4808 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4809 ac_cv_build_exeext=.exe
4810else
4811 ac_build_prefix=${build_alias}-
4812
4813 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4814set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004819else
4820 if test -n "$BUILD_CC"; then
4821 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4822else
4823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH
4825do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004830 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004832 break 2
4833 fi
4834done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004835done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004836IFS=$as_save_IFS
4837
4838fi
4839fi
4840BUILD_CC=$ac_cv_prog_BUILD_CC
4841if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004842 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4843echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004844else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004845 { echo "$as_me:$LINENO: result: no" >&5
4846echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004847fi
4848
4849
4850 if test -z "$BUILD_CC"; then
4851 # Extract the first word of "gcc", so it can be a program name with args.
4852set dummy gcc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004857else
4858 if test -n "$BUILD_CC"; then
4859 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4860else
4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004868 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004870 break 2
4871 fi
4872done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004873done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004874IFS=$as_save_IFS
4875
4876fi
4877fi
4878BUILD_CC=$ac_cv_prog_BUILD_CC
4879if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004880 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4881echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004882else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004883 { echo "$as_me:$LINENO: result: no" >&5
4884echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004885fi
4886
4887
4888 if test -z "$BUILD_CC"; then
4889 # Extract the first word of "cc", so it can be a program name with args.
4890set dummy cc; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004895else
4896 if test -n "$BUILD_CC"; then
4897 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4898else
4899 ac_prog_rejected=no
4900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH
4902do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4908 ac_prog_rejected=yes
4909 continue
4910 fi
4911 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004913 break 2
4914 fi
4915done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004916done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004917IFS=$as_save_IFS
4918
4919if test $ac_prog_rejected = yes; then
4920 # We found a bogon in the path, so make sure we never use it.
4921 set dummy $ac_cv_prog_BUILD_CC
4922 shift
4923 if test $# != 0; then
4924 # We chose a different compiler from the bogus one.
4925 # However, it has the same basename, so the bogon will be chosen
4926 # first if we set BUILD_CC to just the basename; use the full file name.
4927 shift
4928 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4929 fi
4930fi
4931fi
4932fi
4933BUILD_CC=$ac_cv_prog_BUILD_CC
4934if test -n "$BUILD_CC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004935 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4936echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004937else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004938 { echo "$as_me:$LINENO: result: no" >&5
4939echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004940fi
4941
4942
4943 fi
4944 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004945 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4946echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4947 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004948 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4949 rm -f conftest*
4950 echo 'int main () { return 0; }' > conftest.$ac_ext
4951 ac_cv_build_exeext=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004952 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004953 (eval $ac_build_link) 2>&5
4954 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004957 for file in conftest.*; do
4958 case $file in
Jim Grosbachbfc70b02008-09-26 17:27:58 +00004959 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004960 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4961 esac
4962 done
4963 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004964 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4965echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4966 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004967 fi
4968 rm -f conftest*
4969 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4970fi
4971fi
4972
4973BUILD_EXEEXT=""
4974test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004975{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4976echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00004977ac_build_exeext=$BUILD_EXEEXT
4978
Jim Grosbach009db892008-10-02 22:56:44 +00004979 ac_build_prefix=${build_alias}-
4980 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4981set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4984if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00004986else
4987 if test -n "$BUILD_CXX"; then
4988 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4989else
4990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991for as_dir in $PATH
4992do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach009db892008-10-02 22:56:44 +00004997 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00004998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00004999 break 2
5000 fi
5001done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005002done
Jim Grosbach009db892008-10-02 22:56:44 +00005003IFS=$as_save_IFS
5004
5005fi
5006fi
5007BUILD_CXX=$ac_cv_prog_BUILD_CXX
5008if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005009 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5010echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005011else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005012 { echo "$as_me:$LINENO: result: no" >&5
5013echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005014fi
5015
5016
5017 if test -z "$BUILD_CXX"; then
5018 # Extract the first word of "g++", so it can be a program name with args.
5019set dummy g++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005020{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5022if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00005024else
5025 if test -n "$BUILD_CXX"; then
5026 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5027else
5028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029for as_dir in $PATH
5030do
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach009db892008-10-02 22:56:44 +00005035 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00005037 break 2
5038 fi
5039done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005040done
Jim Grosbach009db892008-10-02 22:56:44 +00005041IFS=$as_save_IFS
5042
5043fi
5044fi
5045BUILD_CXX=$ac_cv_prog_BUILD_CXX
5046if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005047 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5048echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005049else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005050 { echo "$as_me:$LINENO: result: no" >&5
5051echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005052fi
5053
5054
5055 if test -z "$BUILD_CXX"; then
5056 # Extract the first word of "c++", so it can be a program name with args.
5057set dummy c++; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5060if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach009db892008-10-02 22:56:44 +00005062else
5063 if test -n "$BUILD_CXX"; then
5064 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5065else
5066 ac_prog_rejected=no
5067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068for as_dir in $PATH
5069do
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach009db892008-10-02 22:56:44 +00005074 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5075 ac_prog_rejected=yes
5076 continue
5077 fi
5078 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach009db892008-10-02 22:56:44 +00005080 break 2
5081 fi
5082done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005083done
Jim Grosbach009db892008-10-02 22:56:44 +00005084IFS=$as_save_IFS
5085
5086if test $ac_prog_rejected = yes; then
5087 # We found a bogon in the path, so make sure we never use it.
5088 set dummy $ac_cv_prog_BUILD_CXX
5089 shift
5090 if test $# != 0; then
5091 # We chose a different compiler from the bogus one.
5092 # However, it has the same basename, so the bogon will be chosen
5093 # first if we set BUILD_CXX to just the basename; use the full file name.
5094 shift
5095 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5096 fi
5097fi
5098fi
5099fi
5100BUILD_CXX=$ac_cv_prog_BUILD_CXX
5101if test -n "$BUILD_CXX"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005102 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5103echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005104else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005105 { echo "$as_me:$LINENO: result: no" >&5
5106echo "${ECHO_T}no" >&6; }
Jim Grosbach009db892008-10-02 22:56:44 +00005107fi
5108
5109
5110 fi
5111 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005112else
5113 LLVM_CROSS_COMPILING=0
5114
5115fi
5116
Dan Gohmande75469c2010-08-04 16:25:01 +00005117if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005118 cvsbuild="yes"
5119 optimize="no"
5120 CVSBUILD=CVSBUILD=1
5121
5122else
5123 cvsbuild="no"
5124 optimize="yes"
5125fi
5126
5127
Eric Christopher1094ded2011-11-11 22:51:42 +00005128# Check whether --enable-libcpp was given.
5129if test "${enable_libcpp+set}" = set; then
5130 enableval=$enable_libcpp;
5131else
5132 enableval=default
5133fi
5134
5135case "$enableval" in
5136 yes) ENABLE_LIBCPP=1
5137 ;;
5138 no) ENABLE_LIBCPP=0
5139 ;;
5140 default) ENABLE_LIBCPP=0
5141;;
5142 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5143echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5144 { (exit 1); exit 1; }; } ;;
5145esac
5146
Eric Christopher04e35972012-08-03 19:47:14 +00005147# Check whether --enable-cxx11 was given.
5148if test "${enable_cxx11+set}" = set; then
5149 enableval=$enable_cxx11;
5150else
5151 enableval=default
5152fi
5153
5154case "$enableval" in
5155 yes) ENABLE_CXX11=1
5156 ;;
5157 no) ENABLE_CXX11=0
5158 ;;
5159 default) ENABLE_CXX11=0
5160;;
5161 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5162echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5163 { (exit 1); exit 1; }; } ;;
5164esac
5165
Roman Divackyf2bb66b2012-12-13 16:07:19 +00005166clang_arcmt="yes"
5167# Check whether --enable-clang-arcmt was given.
5168if test "${enable_clang_arcmt+set}" = set; then
5169 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5170else
5171 enableval="yes"
5172fi
5173
5174case "$enableval" in
5175 yes) ENABLE_CLANG_ARCMT=1
5176 ;;
5177 no) ENABLE_CLANG_ARCMT=0
5178 ;;
5179 default) ENABLE_CLANG_ARCMT=1
5180;;
5181 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5182echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5183 { (exit 1); exit 1; }; } ;;
5184esac
5185
5186clang_static_analyzer="yes"
5187# Check whether --enable-clang-static-analyzer was given.
5188if test "${enable_clang_static_analyzer+set}" = set; then
5189 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5190else
5191 enableval="yes"
5192fi
5193
5194case "$enableval" in
5195 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5196 ;;
5197 no) ENABLE_CLANG_STATIC_ANALYZER=0
5198 ;;
5199 default) ENABLE_CLANG_STATIC_ANALYZER=1
5200;;
5201 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5202echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5203 { (exit 1); exit 1; }; } ;;
5204esac
5205
5206# Check whether --enable-clang-rewriter was given.
5207if test "${enable_clang_rewriter+set}" = set; then
5208 enableval=$enable_clang_rewriter;
5209else
5210 enableval="yes"
5211fi
5212
5213case "$enableval" in
5214 yes) ENABLE_CLANG_REWRITER=1
5215 ;;
5216 no)
Benjamin Kramerd14720d2012-12-26 10:48:49 +00005217 if test ${clang_arcmt} != "no" ; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +00005218 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5219echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5220 { (exit 1); exit 1; }; }
5221 fi
Benjamin Kramerd14720d2012-12-26 10:48:49 +00005222 if test ${clang_static_analyzer} != "no" ; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +00005223 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5224echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5225 { (exit 1); exit 1; }; }
5226 fi
5227 ENABLE_CLANG_REWRITER=0
5228
5229 ;;
5230 default) ENABLE_CLANG_REWRITER=1
5231;;
5232 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5233echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5234 { (exit 1); exit 1; }; } ;;
5235esac
5236
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005237# Check whether --enable-optimized was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005238if test "${enable_optimized+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005239 enableval=$enable_optimized;
5240else
5241 enableval=$optimize
5242fi
5243
5244if test ${enableval} = "no" ; then
5245 ENABLE_OPTIMIZED=
5246
5247else
5248 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5249
5250fi
5251
David Greenec0a34a072009-04-17 14:50:39 +00005252# Check whether --enable-profiling was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005253if test "${enable_profiling+set}" = set; then
David Greenec0a34a072009-04-17 14:50:39 +00005254 enableval=$enable_profiling;
5255else
5256 enableval="no"
5257fi
5258
5259if test ${enableval} = "no" ; then
5260 ENABLE_PROFILING=
5261
5262else
5263 ENABLE_PROFILING=ENABLE_PROFILING=1
5264
5265fi
5266
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005267# Check whether --enable-assertions was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005268if test "${enable_assertions+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005269 enableval=$enable_assertions;
5270else
5271 enableval="yes"
5272fi
5273
5274if test ${enableval} = "yes" ; then
5275 DISABLE_ASSERTIONS=
5276
5277else
5278 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5279
5280fi
5281
Eric Christopher84864012012-08-03 19:58:20 +00005282# Check whether --enable-werror was given.
5283if test "${enable_werror+set}" = set; then
5284 enableval=$enable_werror;
5285else
5286 enableval="no"
5287fi
5288
5289case "$enableval" in
5290 yes) ENABLE_WERROR=1
5291 ;;
5292 no) ENABLE_WERROR=0
5293 ;;
5294 default) ENABLE_WERROR=0
5295;;
5296 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5297echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5298 { (exit 1); exit 1; }; } ;;
5299esac
5300
David Greenecbc8ddf2007-06-28 19:36:08 +00005301# Check whether --enable-expensive-checks was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005302if test "${enable_expensive_checks+set}" = set; then
David Greenecbc8ddf2007-06-28 19:36:08 +00005303 enableval=$enable_expensive_checks;
5304else
5305 enableval="no"
5306fi
5307
5308if test ${enableval} = "yes" ; then
5309 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5310
5311 EXPENSIVE_CHECKS=yes
5312
5313else
5314 ENABLE_EXPENSIVE_CHECKS=
5315
5316 EXPENSIVE_CHECKS=no
5317
5318fi
5319
Reid Spencer4b8067f2006-11-17 03:32:33 +00005320# Check whether --enable-debug-runtime was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005321if test "${enable_debug_runtime+set}" = set; then
Reid Spencer4b8067f2006-11-17 03:32:33 +00005322 enableval=$enable_debug_runtime;
5323else
5324 enableval=no
5325fi
5326
5327if test ${enableval} = "no" ; then
5328 DEBUG_RUNTIME=
5329
5330else
5331 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5332
5333fi
5334
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00005335# Check whether --enable-debug-symbols was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005336if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskinc3273dc2009-09-27 17:47:29 +00005337 enableval=$enable_debug_symbols;
5338else
5339 enableval=no
5340fi
5341
5342if test ${enableval} = "no" ; then
5343 DEBUG_SYMBOLS=
5344
5345else
5346 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5347
5348fi
5349
Daniel Dunbar39c04622012-08-14 18:14:22 +00005350# Check whether --enable-keep-symbols was given.
5351if test "${enable_keep_symbols+set}" = set; then
5352 enableval=$enable_keep_symbols;
5353else
5354 enableval=no
5355fi
5356
5357if test ${enableval} = "no" ; then
5358 KEEP_SYMBOLS=
5359
5360else
5361 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5362
5363fi
5364
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005365# Check whether --enable-jit was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005366if test "${enable_jit+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005367 enableval=$enable_jit;
5368else
5369 enableval=default
5370fi
5371
5372if test ${enableval} = "no"
5373then
5374 JIT=
5375
5376else
5377 case "$llvm_cv_target_arch" in
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005378 x86) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005379 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005380 Sparc) TARGET_HAS_JIT=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005381 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005382 PowerPC) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005383 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005384 x86_64) TARGET_HAS_JIT=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005385 ;;
Eric Christopherd8530f32009-09-14 16:38:49 +00005386 ARM) TARGET_HAS_JIT=1
Reid Spencerd7c8b3c2007-01-21 06:32:59 +00005387 ;;
Tim Northovere0e3aef2013-01-31 12:12:40 +00005388 AArch64) TARGET_HAS_JIT=0
5389 ;;
Bruno Cardoso Lopesd1d9c782011-07-21 16:28:51 +00005390 Mips) TARGET_HAS_JIT=1
Tanya Lattnerbca16c82007-08-29 16:38:16 +00005391 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005392 XCore) TARGET_HAS_JIT=0
Richard Osborneca08e062008-11-07 10:59:00 +00005393 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005394 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov9173b492009-05-03 13:42:23 +00005395 ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005396 Hexagon) TARGET_HAS_JIT=0
5397 ;;
Wesley Pecke4801e42010-02-23 19:15:24 +00005398 MBlaze) TARGET_HAS_JIT=0
5399 ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005400 NVPTX) TARGET_HAS_JIT=0
5401 ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005402 *) TARGET_HAS_JIT=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005403 ;;
5404 esac
5405fi
5406
Rafael Espindola7ac506d2010-11-12 19:24:06 +00005407# Check whether --enable-docs was given.
5408if test "${enable_docs+set}" = set; then
5409 enableval=$enable_docs;
5410else
5411 enableval=default
5412fi
5413
5414case "$enableval" in
5415 yes) ENABLE_DOCS=1
5416 ;;
5417 no) ENABLE_DOCS=0
5418 ;;
5419 default) ENABLE_DOCS=1
5420 ;;
5421 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5422echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5423 { (exit 1); exit 1; }; } ;;
5424esac
5425
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005426# Check whether --enable-doxygen was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005427if test "${enable_doxygen+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005428 enableval=$enable_doxygen;
5429else
5430 enableval=default
5431fi
5432
5433case "$enableval" in
5434 yes) ENABLE_DOXYGEN=1
5435 ;;
5436 no) ENABLE_DOXYGEN=0
5437 ;;
5438 default) ENABLE_DOXYGEN=0
5439 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005440 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5441echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5442 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005443esac
5444
5445# Check whether --enable-threads was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005446if test "${enable_threads+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005447 enableval=$enable_threads;
5448else
Reid Spencerd549edc2006-11-05 17:08:18 +00005449 enableval=default
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005450fi
5451
5452case "$enableval" in
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005453 yes) LLVM_ENABLE_THREADS=1
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005454 ;;
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005455 no) LLVM_ENABLE_THREADS=0
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005456 ;;
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005457 default) LLVM_ENABLE_THREADS=1
Reid Spencerd549edc2006-11-05 17:08:18 +00005458 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005459 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5460echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5461 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005462esac
5463
Owen Andersonaf5db832009-05-19 22:18:56 +00005464cat >>confdefs.h <<_ACEOF
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +00005465#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
Owen Andersonaf5db832009-05-19 22:18:56 +00005466_ACEOF
5467
5468
NAKAMURA Takumic6fce172010-12-29 03:59:03 +00005469# Check whether --enable-pthreads was given.
5470if test "${enable_pthreads+set}" = set; then
5471 enableval=$enable_pthreads;
5472else
5473 enableval=default
5474fi
5475
5476case "$enableval" in
5477 yes) ENABLE_PTHREADS=1
5478 ;;
5479 no) ENABLE_PTHREADS=0
5480 ;;
5481 default) ENABLE_PTHREADS=1
5482 ;;
5483 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5484echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5485 { (exit 1); exit 1; }; } ;;
5486esac
5487
Alexey Samsonov2fb337e2013-04-23 08:28:39 +00005488# Check whether --enable-zlib was given.
5489if test "${enable_zlib+set}" = set; then
5490 enableval=$enable_zlib;
5491else
5492 enableval=default
5493fi
5494
5495case "$enableval" in
5496 yes) LLVM_ENABLE_ZLIB=1
5497 ;;
5498 no) LLVM_ENABLE_ZLIB=0
5499 ;;
5500 default) LLVM_ENABLE_ZLIB=1
5501 ;;
5502 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5503echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5504 { (exit 1); exit 1; }; } ;;
5505esac
5506
5507cat >>confdefs.h <<_ACEOF
5508#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5509_ACEOF
5510
5511
Reid Spencer05a1fe52006-12-16 22:07:52 +00005512# Check whether --enable-pic was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005513if test "${enable_pic+set}" = set; then
Reid Spencer05a1fe52006-12-16 22:07:52 +00005514 enableval=$enable_pic;
5515else
5516 enableval=default
5517fi
5518
5519case "$enableval" in
5520 yes) ENABLE_PIC=1
5521 ;;
5522 no) ENABLE_PIC=0
5523 ;;
Nick Lewycky38525192009-02-19 06:18:56 +00005524 default) ENABLE_PIC=1
Reid Spencer05a1fe52006-12-16 22:07:52 +00005525 ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005526 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5527echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5528 { (exit 1); exit 1; }; } ;;
Reid Spencer05a1fe52006-12-16 22:07:52 +00005529esac
5530
5531cat >>confdefs.h <<_ACEOF
5532#define ENABLE_PIC $ENABLE_PIC
5533_ACEOF
5534
5535
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +00005536# Check whether --enable-shared was given.
5537if test "${enable_shared+set}" = set; then
5538 enableval=$enable_shared;
5539else
5540 enableval=default
5541fi
5542
5543case "$enableval" in
5544 yes) ENABLE_SHARED=1
5545 ;;
5546 no) ENABLE_SHARED=0
5547 ;;
5548 default) ENABLE_SHARED=0
5549 ;;
5550 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5551echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5552 { (exit 1); exit 1; }; } ;;
5553esac
5554
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00005555# Check whether --enable-embed-stdcxx was given.
5556if test "${enable_embed_stdcxx+set}" = set; then
5557 enableval=$enable_embed_stdcxx;
5558else
5559 enableval=default
5560fi
5561
5562case "$enableval" in
5563 yes) ENABLE_EMBED_STDCXX=1
5564 ;;
5565 no) ENABLE_EMBED_STDCXX=0
5566 ;;
NAKAMURA Takumid5a9a3a2011-10-13 18:04:52 +00005567 default) ENABLE_EMBED_STDCXX=0
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +00005568 ;;
5569 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5570echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5571 { (exit 1); exit 1; }; } ;;
5572esac
5573
Daniel Dunbardac18242010-05-10 20:11:56 +00005574# Check whether --enable-timestamps was given.
5575if test "${enable_timestamps+set}" = set; then
5576 enableval=$enable_timestamps;
5577else
5578 enableval=default
5579fi
5580
5581case "$enableval" in
5582 yes) ENABLE_TIMESTAMPS=1
5583 ;;
5584 no) ENABLE_TIMESTAMPS=0
5585 ;;
5586 default) ENABLE_TIMESTAMPS=1
5587 ;;
5588 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5589echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5590 { (exit 1); exit 1; }; } ;;
5591esac
5592
5593cat >>confdefs.h <<_ACEOF
5594#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5595_ACEOF
5596
5597
Eric Christopher9fafe072012-09-21 23:03:29 +00005598
5599# Check whether --enable-backtraces was given.
5600if test "${enable_backtraces+set}" = set; then
5601 enableval=$enable_backtraces;
5602else
5603 enableval=default
5604fi
5605
5606case "$enableval" in
Eric Christopherc6c2b9b2012-11-19 19:31:02 +00005607 yes) ENABLE_BACKTRACES=1
Eric Christopher9fafe072012-09-21 23:03:29 +00005608 ;;
Eric Christopherc6c2b9b2012-11-19 19:31:02 +00005609 no) ENABLE_BACKTRACES=0
Eric Christopher9fafe072012-09-21 23:03:29 +00005610 ;;
Eric Christopherc6c2b9b2012-11-19 19:31:02 +00005611 default) ENABLE_BACKTRACES=1
Eric Christopher9fafe072012-09-21 23:03:29 +00005612 ;;
5613 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5614echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5615 { (exit 1); exit 1; }; } ;;
5616esac
5617
5618cat >>confdefs.h <<_ACEOF
5619#define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5620_ACEOF
5621
5622
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005623TARGETS_TO_BUILD=""
5624# Check whether --enable-targets was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005625if test "${enable_targets+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005626 enableval=$enable_targets;
5627else
5628 enableval=all
5629fi
5630
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005631if test "$enableval" = host-only ; then
5632 enableval=host
5633fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005634case "$enableval" in
Tim Northover43852f22013-02-04 12:32:21 +00005635 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005636 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5637 case "$a_target" in
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005638 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5639 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5640 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5641 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Joerg Sonnenberger981e99d2013-02-03 17:06:49 +00005642 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Patrik Hagglundd91ae4d2013-02-04 08:15:53 +00005643 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005644 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Rafael Espindolae46f0962011-12-28 17:08:00 +00005645 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Simon Atanasyanc2cccd72012-10-29 19:49:45 +00005646 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5647 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005648 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5649 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Shantonu Sen1f90bd22009-08-11 13:39:52 +00005650 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005651 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Wesley Pecke4801e42010-02-23 19:15:24 +00005652 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005653 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005654 host) case "$llvm_cv_target_arch" in
5655 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5656 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5657 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5658 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Jia Liu43eb48e2013-04-22 16:26:15 +00005659 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005660 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5661 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecke4801e42010-02-23 19:15:24 +00005662 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005663 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5664 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicum1213a7a2011-12-12 21:14:40 +00005665 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Justin Holewinskiae556d32012-05-04 20:18:50 +00005666 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005667 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5668echo "$as_me: error: Can not set target to build" >&2;}
5669 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin42a49df2009-09-23 17:05:42 +00005670 esac ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005671 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5672echo "$as_me: error: Unrecognized target $a_target" >&2;}
5673 { (exit 1); exit 1; }; } ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005674 esac
5675 done
5676 ;;
5677esac
Victor Oliveira9d4b8f52012-08-09 01:13:59 +00005678
5679# Check whether --enable-experimental-targets was given.
5680if test "${enable_experimental_targets+set}" = set; then
5681 enableval=$enable_experimental_targets;
5682else
5683 enableval=disable
5684fi
5685
5686
5687if test ${enableval} != "disable"
5688then
5689 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5690fi
5691
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005692TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5693
5694
Douglas Gregor43613a22009-06-17 00:43:20 +00005695for a_target in $TARGETS_TO_BUILD; do
5696 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5697
5698cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005699#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5700_ACEOF
5701
5702 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5703 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
Evan Cheng8c886a42011-07-22 21:58:54 +00005704 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
Eric Christophere7a9db12010-08-30 18:34:48 +00005705 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005706 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5707 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5708 fi
Eric Christopher56079c12012-03-26 21:56:56 +00005709 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5710 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5711 fi
Eric Christophere7a9db12010-08-30 18:34:48 +00005712
5713cat >>confdefs.h <<_ACEOF
5714#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbaredf7b8b2010-08-03 14:26:17 +00005715_ACEOF
5716
5717
5718cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005719#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5720_ACEOF
5721
5722
5723cat >>confdefs.h <<_ACEOF
Evan Cheng8c886a42011-07-22 21:58:54 +00005724#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
Evan Cheng2129f592011-07-19 06:37:02 +00005725_ACEOF
5726
5727
5728cat >>confdefs.h <<_ACEOF
Eric Christophere7a9db12010-08-30 18:34:48 +00005729#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor43613a22009-06-17 00:43:20 +00005730_ACEOF
5731
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005732 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
Jan Sjödin27e07c32011-03-09 17:25:46 +00005733
5734cat >>confdefs.h <<_ACEOF
5735#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5736_ACEOF
5737
Jan Sjödinc9a16d52011-03-14 22:12:35 +00005738 fi
Eric Christopher56079c12012-03-26 21:56:56 +00005739 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5740
5741cat >>confdefs.h <<_ACEOF
5742#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5743_ACEOF
5744
5745 fi
Douglas Gregor43613a22009-06-17 00:43:20 +00005746 fi
5747done
5748
Douglas Gregor1b731d52009-06-16 20:12:29 +00005749LLVM_ENUM_TARGETS=""
5750LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005751LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar32027202009-11-25 04:37:28 +00005752LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1b731d52009-06-16 20:12:29 +00005753for target_to_build in $TARGETS_TO_BUILD; do
5754 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
Chris Lattner28776602010-11-14 19:10:47 +00005755 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
Jim Grosbach0e854f32010-10-01 22:39:28 +00005756 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5757 fi
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005758 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5759 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5760 fi
Daniel Dunbar32027202009-11-25 04:37:28 +00005761 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5762 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5763 fi
Douglas Gregor1b731d52009-06-16 20:12:29 +00005764done
5765
5766
5767
Jeffrey Yasskin563033b2009-07-17 21:33:35 +00005768
Daniel Dunbar32027202009-11-25 04:37:28 +00005769
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005770
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005771# Check whether --with-optimize-option was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005772if test "${with_optimize_option+set}" = set; then
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005773 withval=$with_optimize_option;
5774else
5775 withval=default
5776fi
5777
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005778{ echo "$as_me:$LINENO: checking optimization flags" >&5
5779echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005780case "$withval" in
5781 default)
5782 case "$llvm_cv_os_type" in
Daniel Dunbard411fcb2010-04-30 17:12:26 +00005783 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar4e06a5b2010-04-10 18:56:24 +00005784 MingW) optimize_option=-O2 ;;
5785 *) optimize_option=-O3 ;;
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005786 esac ;;
5787 *) optimize_option="$withval" ;;
5788esac
5789OPTIMIZE_OPTION=$optimize_option
5790
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005791{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5792echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbarb4a289c2009-11-04 04:32:50 +00005793
5794
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005795# Check whether --with-extra-options was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005796if test "${with_extra_options+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005797 withval=$with_extra_options;
5798else
5799 withval=default
5800fi
5801
5802case "$withval" in
5803 default) EXTRA_OPTIONS= ;;
5804 *) EXTRA_OPTIONS=$withval ;;
5805esac
5806EXTRA_OPTIONS=$EXTRA_OPTIONS
5807
5808
Daniel Dunbar3b95df82011-06-16 22:30:41 +00005809
5810# Check whether --with-extra-ld-options was given.
5811if test "${with_extra_ld_options+set}" = set; then
5812 withval=$with_extra_ld_options;
5813else
5814 withval=default
5815fi
5816
5817case "$withval" in
5818 default) EXTRA_LD_OPTIONS= ;;
5819 *) EXTRA_LD_OPTIONS=$withval ;;
5820esac
5821EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5822
5823
Gordon Henriksene61dd672007-10-02 09:50:32 +00005824# Check whether --enable-bindings was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005825if test "${enable_bindings+set}" = set; then
Gordon Henriksene61dd672007-10-02 09:50:32 +00005826 enableval=$enable_bindings;
5827else
5828 enableval=default
5829fi
5830
5831BINDINGS_TO_BUILD=""
5832case "$enableval" in
Gordon Henriksenacc2a832007-10-02 10:14:42 +00005833 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksene61dd672007-10-02 09:50:32 +00005834 all ) BINDINGS_TO_BUILD="ocaml" ;;
5835 none | no) BINDINGS_TO_BUILD="" ;;
5836 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5837 case "$a_binding" in
5838 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005839 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5840echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5841 { (exit 1); exit 1; }; } ;;
Gordon Henriksene61dd672007-10-02 09:50:32 +00005842 esac
5843 done
5844 ;;
5845esac
5846
Reid Spencer0b52e2f2006-08-04 18:18:08 +00005847
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005848# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005849if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005850 withval=$with_ocaml_libdir;
5851else
5852 withval=auto
5853fi
5854
5855case "$withval" in
5856 auto) with_ocaml_libdir="$withval" ;;
5857 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005858 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5859echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5860 { (exit 1); exit 1; }; } ;;
Gordon Henriksenda5d5b52007-10-02 16:42:22 +00005861esac
5862
5863
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00005864# Check whether --with-clang-srcdir was given.
5865if test "${with_clang_srcdir+set}" = set; then
5866 withval=$with_clang_srcdir;
5867else
5868 withval="-"
5869fi
5870
5871case "$withval" in
Eric Christopher7f977de2012-02-02 00:19:05 +00005872 -) clang_src_root="" ;;
NAKAMURA Takumi914f1922011-10-16 02:54:26 +00005873 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5874 *) clang_src_root="$ac_pwd/$withval" ;;
5875esac
5876CLANG_SRC_ROOT=$clang_src_root
5877
5878
5879
Chandler Carruthffae4a62010-10-19 08:21:25 +00005880# Check whether --with-clang-resource-dir was given.
5881if test "${with_clang_resource_dir+set}" = set; then
5882 withval=$with_clang_resource_dir;
5883else
5884 withval=""
5885fi
5886
5887
5888cat >>confdefs.h <<_ACEOF
5889#define CLANG_RESOURCE_DIR "$withval"
5890_ACEOF
5891
5892
5893
Rafael Espindola662908c2009-12-07 00:27:35 +00005894# Check whether --with-c-include-dirs was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005895if test "${with_c_include_dirs+set}" = set; then
Rafael Espindola662908c2009-12-07 00:27:35 +00005896 withval=$with_c_include_dirs;
Rafael Espindolad95960b2009-11-12 05:46:09 +00005897else
5898 withval=""
5899fi
5900
5901
5902cat >>confdefs.h <<_ACEOF
5903#define C_INCLUDE_DIRS "$withval"
5904_ACEOF
5905
5906
Rafael Espindolaec217f62012-02-03 00:59:30 +00005907# Clang normally uses the system c++ headers and libraries. With this option,
5908# clang will use the ones provided by a gcc installation instead. This option should
5909# be passed the same value that was used with --prefix when configuring gcc.
Rafael Espindolad95960b2009-11-12 05:46:09 +00005910
Rafael Espindolaec217f62012-02-03 00:59:30 +00005911# Check whether --with-gcc-toolchain was given.
5912if test "${with_gcc_toolchain+set}" = set; then
5913 withval=$with_gcc_toolchain;
Rafael Espindola65e9be6d2009-11-16 19:46:55 +00005914else
5915 withval=""
5916fi
5917
5918
5919cat >>confdefs.h <<_ACEOF
Rafael Espindolaec217f62012-02-03 00:59:30 +00005920#define GCC_INSTALL_PREFIX "$withval"
Rafael Espindola65e9be6d2009-11-16 19:46:55 +00005921_ACEOF
5922
5923
5924
Sebastian Pope29a6c72012-04-30 20:06:58 +00005925# Check whether --with-default-sysroot was given.
5926if test "${with_default_sysroot+set}" = set; then
5927 withval=$with_default_sysroot;
Sebastian Pop5c9e1842012-04-16 04:11:45 +00005928else
5929 withval=""
5930fi
5931
5932
5933cat >>confdefs.h <<_ACEOF
5934#define DEFAULT_SYSROOT "$withval"
5935_ACEOF
5936
5937
5938
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005939# Check whether --with-binutils-include was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005940if test "${with_binutils_include+set}" = set; then
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005941 withval=$with_binutils_include;
5942else
5943 withval=default
5944fi
5945
5946case "$withval" in
5947 default) WITH_BINUTILS_INCDIR=default ;;
5948 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005949 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5950echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5951 { (exit 1); exit 1; }; } ;;
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005952esac
5953if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5954 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5955
5956 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5957 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005958 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5959echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5960 { (exit 1); exit 1; }; };
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005961 fi
5962fi
5963
Eric Christopher65080cc2011-07-20 17:04:49 +00005964
5965# Check whether --with-bug-report-url was given.
5966if test "${with_bug_report_url+set}" = set; then
5967 withval=$with_bug_report_url;
5968else
NAKAMURA Takumi818a22b2011-08-12 01:50:43 +00005969 withval="http://llvm.org/bugs/"
Eric Christopher65080cc2011-07-20 17:04:49 +00005970fi
5971
5972
5973cat >>confdefs.h <<_ACEOF
5974#define BUG_REPORT_URL "$withval"
5975_ACEOF
5976
5977
Nick Lewycky86679902009-06-06 06:25:09 +00005978# Check whether --enable-libffi was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005979if test "${enable_libffi+set}" = set; then
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00005980 enableval=$enable_libffi; case "$enableval" in
5981 yes) llvm_cv_enable_libffi="yes" ;;
5982 no) llvm_cv_enable_libffi="no" ;;
5983 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00005984echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5985 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskin914050b2010-02-09 23:03:44 +00005986 esac
5987else
5988 llvm_cv_enable_libffi=no
5989fi
5990
Nick Lewycky86679902009-06-06 06:25:09 +00005991
Nick Lewyckya2cf0ed2009-02-03 07:10:30 +00005992
Bob Wilson3f354702011-11-28 07:59:52 +00005993# Check whether --with-internal-prefix was given.
5994if test "${with_internal_prefix+set}" = set; then
5995 withval=$with_internal_prefix;
5996else
5997 withval=""
5998fi
5999
6000INTERNAL_PREFIX=$withval
6001
6002
6003
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006004{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6005echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6006if test "${lt_cv_path_NM+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006008else
6009 if test -n "$NM"; then
6010 # Let the user override the test.
6011 lt_cv_path_NM="$NM"
6012else
6013 lt_nm_to_check="${ac_tool_prefix}nm"
6014 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6015 lt_nm_to_check="$lt_nm_to_check nm"
6016 fi
6017 for lt_tmp_nm in $lt_nm_to_check; do
6018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6019 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6020 IFS="$lt_save_ifs"
6021 test -z "$ac_dir" && ac_dir=.
6022 tmp_nm="$ac_dir/$lt_tmp_nm"
6023 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6024 # Check to see if the nm accepts a BSD-compat flag.
6025 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6026 # nm: unknown option "B" ignored
6027 # Tru64's nm complains that /dev/null is an invalid object file
6028 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6029 */dev/null* | *'Invalid file or object type'*)
6030 lt_cv_path_NM="$tmp_nm -B"
6031 break
6032 ;;
6033 *)
6034 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6035 */dev/null*)
6036 lt_cv_path_NM="$tmp_nm -p"
6037 break
6038 ;;
6039 *)
6040 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6041 continue # so that we can try to find one that supports BSD flags
6042 ;;
6043 esac
6044 ;;
6045 esac
6046 fi
6047 done
6048 IFS="$lt_save_ifs"
6049 done
6050 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6051fi
6052fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006053{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6054echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006055NM="$lt_cv_path_NM"
6056
6057
6058
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006059{ echo "$as_me:$LINENO: checking for GNU make" >&5
6060echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6061if test "${llvm_cv_gnu_make_command+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006063else
6064 llvm_cv_gnu_make_command=''
6065 for a in "$MAKE" make gmake gnumake ; do
6066 if test -z "$a" ; then continue ; fi ;
6067 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6068 then
6069 llvm_cv_gnu_make_command=$a ;
6070 break;
6071 fi
6072 done
6073fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006074{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6075echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006076 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6077 ifGNUmake='' ;
6078 else
6079 ifGNUmake='#' ;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006080 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6081echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006082 fi
6083
6084
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006085{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6086echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006087LN_S=$as_ln_s
6088if test "$LN_S" = "ln -s"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006089 { echo "$as_me:$LINENO: result: yes" >&5
6090echo "${ECHO_T}yes" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006091else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006092 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6093echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006094fi
6095
6096# Extract the first word of "cmp", so it can be a program name with args.
6097set dummy cmp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006098{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6100if test "${ac_cv_path_CMP+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006102else
6103 case $CMP in
6104 [\\/]* | ?:[\\/]*)
6105 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6106 ;;
6107 *)
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109for as_dir in $PATH
6110do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006115 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006117 break 2
6118 fi
6119done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006120done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006121IFS=$as_save_IFS
6122
6123 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6124 ;;
6125esac
6126fi
6127CMP=$ac_cv_path_CMP
6128if test -n "$CMP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006129 { echo "$as_me:$LINENO: result: $CMP" >&5
6130echo "${ECHO_T}$CMP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006131else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006132 { echo "$as_me:$LINENO: result: no" >&5
6133echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006134fi
6135
6136
6137# Extract the first word of "cp", so it can be a program name with args.
6138set dummy cp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141if test "${ac_cv_path_CP+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006143else
6144 case $CP in
6145 [\\/]* | ?:[\\/]*)
6146 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6147 ;;
6148 *)
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150for as_dir in $PATH
6151do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006156 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006158 break 2
6159 fi
6160done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006161done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006162IFS=$as_save_IFS
6163
6164 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6165 ;;
6166esac
6167fi
6168CP=$ac_cv_path_CP
6169if test -n "$CP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006170 { echo "$as_me:$LINENO: result: $CP" >&5
6171echo "${ECHO_T}$CP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006172else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006173 { echo "$as_me:$LINENO: result: no" >&5
6174echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006175fi
6176
6177
6178# Extract the first word of "date", so it can be a program name with args.
6179set dummy date; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6182if test "${ac_cv_path_DATE+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006184else
6185 case $DATE in
6186 [\\/]* | ?:[\\/]*)
6187 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6188 ;;
6189 *)
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191for as_dir in $PATH
6192do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006197 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006199 break 2
6200 fi
6201done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006202done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006203IFS=$as_save_IFS
6204
6205 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6206 ;;
6207esac
6208fi
6209DATE=$ac_cv_path_DATE
6210if test -n "$DATE"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006211 { echo "$as_me:$LINENO: result: $DATE" >&5
6212echo "${ECHO_T}$DATE" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006213else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006214 { echo "$as_me:$LINENO: result: no" >&5
6215echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006216fi
6217
6218
6219# Extract the first word of "find", so it can be a program name with args.
6220set dummy find; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223if test "${ac_cv_path_FIND+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006225else
6226 case $FIND in
6227 [\\/]* | ?:[\\/]*)
6228 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6229 ;;
6230 *)
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH
6233do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006238 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006240 break 2
6241 fi
6242done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006243done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006244IFS=$as_save_IFS
6245
6246 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6247 ;;
6248esac
6249fi
6250FIND=$ac_cv_path_FIND
6251if test -n "$FIND"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006252 { echo "$as_me:$LINENO: result: $FIND" >&5
6253echo "${ECHO_T}$FIND" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006254else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006255 { echo "$as_me:$LINENO: result: no" >&5
6256echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006257fi
6258
6259
6260# Extract the first word of "grep", so it can be a program name with args.
6261set dummy grep; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6264if test "${ac_cv_path_GREP+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006266else
6267 case $GREP in
6268 [\\/]* | ?:[\\/]*)
6269 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6270 ;;
6271 *)
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273for as_dir in $PATH
6274do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006279 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006281 break 2
6282 fi
6283done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006284done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006285IFS=$as_save_IFS
6286
6287 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6288 ;;
6289esac
6290fi
6291GREP=$ac_cv_path_GREP
6292if test -n "$GREP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006293 { echo "$as_me:$LINENO: result: $GREP" >&5
6294echo "${ECHO_T}$GREP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006295else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006296 { echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006298fi
6299
6300
6301# Extract the first word of "mkdir", so it can be a program name with args.
6302set dummy mkdir; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6305if test "${ac_cv_path_MKDIR+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006307else
6308 case $MKDIR in
6309 [\\/]* | ?:[\\/]*)
6310 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6311 ;;
6312 *)
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006320 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006322 break 2
6323 fi
6324done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006325done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006326IFS=$as_save_IFS
6327
6328 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6329 ;;
6330esac
6331fi
6332MKDIR=$ac_cv_path_MKDIR
6333if test -n "$MKDIR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006334 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6335echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006336else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006337 { echo "$as_me:$LINENO: result: no" >&5
6338echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006339fi
6340
6341
6342# Extract the first word of "mv", so it can be a program name with args.
6343set dummy mv; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346if test "${ac_cv_path_MV+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006348else
6349 case $MV in
6350 [\\/]* | ?:[\\/]*)
6351 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6352 ;;
6353 *)
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355for as_dir in $PATH
6356do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006361 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006363 break 2
6364 fi
6365done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006366done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006367IFS=$as_save_IFS
6368
6369 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6370 ;;
6371esac
6372fi
6373MV=$ac_cv_path_MV
6374if test -n "$MV"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006375 { echo "$as_me:$LINENO: result: $MV" >&5
6376echo "${ECHO_T}$MV" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006377else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006378 { echo "$as_me:$LINENO: result: no" >&5
6379echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006380fi
6381
6382
6383if test -n "$ac_tool_prefix"; then
6384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6385set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6388if test "${ac_cv_prog_RANLIB+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006390else
6391 if test -n "$RANLIB"; then
6392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6393else
6394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395for as_dir in $PATH
6396do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006401 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006403 break 2
6404 fi
6405done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006406done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006407IFS=$as_save_IFS
6408
6409fi
6410fi
6411RANLIB=$ac_cv_prog_RANLIB
6412if test -n "$RANLIB"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006413 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6414echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006415else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006416 { echo "$as_me:$LINENO: result: no" >&5
6417echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006418fi
6419
6420
6421fi
6422if test -z "$ac_cv_prog_RANLIB"; then
6423 ac_ct_RANLIB=$RANLIB
6424 # Extract the first word of "ranlib", so it can be a program name with args.
6425set dummy ranlib; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6428if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006430else
6431 if test -n "$ac_ct_RANLIB"; then
6432 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6433else
6434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435for as_dir in $PATH
6436do
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006441 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006443 break 2
6444 fi
6445done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006446done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006447IFS=$as_save_IFS
6448
6449fi
6450fi
6451ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6452if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006453 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6454echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006455else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006456 { echo "$as_me:$LINENO: result: no" >&5
6457echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006458fi
6459
6460 if test "x$ac_ct_RANLIB" = x; then
6461 RANLIB=":"
6462 else
6463 case $cross_compiling:$ac_tool_warned in
6464yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006465{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6466whose name does not start with the host triplet. If you think this
6467configuration is useful to you, please write to autoconf@gnu.org." >&5
6468echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6469whose name does not start with the host triplet. If you think this
6470configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006471ac_tool_warned=yes ;;
6472esac
6473 RANLIB=$ac_ct_RANLIB
6474 fi
6475else
6476 RANLIB="$ac_cv_prog_RANLIB"
6477fi
6478
Torok Edwinaec06332010-01-26 08:50:50 +00006479if test -n "$ac_tool_prefix"; then
6480 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6481set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484if test "${ac_cv_prog_AR+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00006486else
6487 if test -n "$AR"; then
6488 ac_cv_prog_AR="$AR" # Let the user override the test.
6489else
6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491for as_dir in $PATH
6492do
6493 IFS=$as_save_IFS
6494 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwinaec06332010-01-26 08:50:50 +00006497 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwinaec06332010-01-26 08:50:50 +00006499 break 2
6500 fi
6501done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006502done
Torok Edwinaec06332010-01-26 08:50:50 +00006503IFS=$as_save_IFS
6504
6505fi
6506fi
6507AR=$ac_cv_prog_AR
6508if test -n "$AR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006509 { echo "$as_me:$LINENO: result: $AR" >&5
6510echo "${ECHO_T}$AR" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006511else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006512 { echo "$as_me:$LINENO: result: no" >&5
6513echo "${ECHO_T}no" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006514fi
6515
6516
6517fi
6518if test -z "$ac_cv_prog_AR"; then
6519 ac_ct_AR=$AR
6520 # Extract the first word of "ar", so it can be a program name with args.
6521set dummy ar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6524if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwinaec06332010-01-26 08:50:50 +00006526else
6527 if test -n "$ac_ct_AR"; then
6528 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6529else
6530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531for as_dir in $PATH
6532do
6533 IFS=$as_save_IFS
6534 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwinaec06332010-01-26 08:50:50 +00006537 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwinaec06332010-01-26 08:50:50 +00006539 break 2
6540 fi
6541done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006542done
Torok Edwinaec06332010-01-26 08:50:50 +00006543IFS=$as_save_IFS
6544
6545fi
6546fi
6547ac_ct_AR=$ac_cv_prog_ac_ct_AR
6548if test -n "$ac_ct_AR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006549 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6550echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006551else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006552 { echo "$as_me:$LINENO: result: no" >&5
6553echo "${ECHO_T}no" >&6; }
Torok Edwinaec06332010-01-26 08:50:50 +00006554fi
6555
6556 if test "x$ac_ct_AR" = x; then
6557 AR="false"
6558 else
6559 case $cross_compiling:$ac_tool_warned in
6560yes:)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006561{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6562whose name does not start with the host triplet. If you think this
6563configuration is useful to you, please write to autoconf@gnu.org." >&5
6564echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6565whose name does not start with the host triplet. If you think this
6566configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwinaec06332010-01-26 08:50:50 +00006567ac_tool_warned=yes ;;
6568esac
6569 AR=$ac_ct_AR
6570 fi
6571else
6572 AR="$ac_cv_prog_AR"
6573fi
6574
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006575# Extract the first word of "rm", so it can be a program name with args.
6576set dummy rm; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6579if test "${ac_cv_path_RM+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006581else
6582 case $RM in
6583 [\\/]* | ?:[\\/]*)
6584 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6585 ;;
6586 *)
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588for as_dir in $PATH
6589do
6590 IFS=$as_save_IFS
6591 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006594 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006596 break 2
6597 fi
6598done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006599done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006600IFS=$as_save_IFS
6601
6602 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6603 ;;
6604esac
6605fi
6606RM=$ac_cv_path_RM
6607if test -n "$RM"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006608 { echo "$as_me:$LINENO: result: $RM" >&5
6609echo "${ECHO_T}$RM" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006610else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006611 { echo "$as_me:$LINENO: result: no" >&5
6612echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006613fi
6614
6615
6616# Extract the first word of "sed", so it can be a program name with args.
6617set dummy sed; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006618{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620if test "${ac_cv_path_SED+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006622else
6623 case $SED in
6624 [\\/]* | ?:[\\/]*)
6625 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6626 ;;
6627 *)
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629for as_dir in $PATH
6630do
6631 IFS=$as_save_IFS
6632 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006635 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006637 break 2
6638 fi
6639done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006640done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006641IFS=$as_save_IFS
6642
6643 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6644 ;;
6645esac
6646fi
6647SED=$ac_cv_path_SED
6648if test -n "$SED"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006649 { echo "$as_me:$LINENO: result: $SED" >&5
6650echo "${ECHO_T}$SED" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006651else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006652 { echo "$as_me:$LINENO: result: no" >&5
6653echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006654fi
6655
6656
6657# Extract the first word of "tar", so it can be a program name with args.
6658set dummy tar; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006659{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6661if test "${ac_cv_path_TAR+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006663else
6664 case $TAR in
6665 [\\/]* | ?:[\\/]*)
6666 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6667 ;;
6668 *)
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670for as_dir in $PATH
6671do
6672 IFS=$as_save_IFS
6673 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006674 for ac_exec_ext in '' $ac_executable_extensions; do
6675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006676 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006678 break 2
6679 fi
6680done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006681done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006682IFS=$as_save_IFS
6683
6684 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6685 ;;
6686esac
6687fi
6688TAR=$ac_cv_path_TAR
6689if test -n "$TAR"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006690 { echo "$as_me:$LINENO: result: $TAR" >&5
6691echo "${ECHO_T}$TAR" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006692else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006693 { echo "$as_me:$LINENO: result: no" >&5
6694echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006695fi
6696
6697
6698# Extract the first word of "pwd", so it can be a program name with args.
6699set dummy pwd; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702if test "${ac_cv_path_BINPWD+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006704else
6705 case $BINPWD in
6706 [\\/]* | ?:[\\/]*)
6707 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6708 ;;
6709 *)
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711for as_dir in $PATH
6712do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006717 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006719 break 2
6720 fi
6721done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006722done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006723IFS=$as_save_IFS
6724
6725 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6726 ;;
6727esac
6728fi
6729BINPWD=$ac_cv_path_BINPWD
6730if test -n "$BINPWD"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006731 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6732echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006733else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006734 { echo "$as_me:$LINENO: result: no" >&5
6735echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006736fi
6737
6738
6739
6740# Extract the first word of "Graphviz", so it can be a program name with args.
6741set dummy Graphviz; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006746else
6747 case $GRAPHVIZ in
6748 [\\/]* | ?:[\\/]*)
6749 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6750 ;;
6751 *)
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006759 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006761 break 2
6762 fi
6763done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006764done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006765IFS=$as_save_IFS
6766
6767 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6768 ;;
6769esac
6770fi
6771GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6772if test -n "$GRAPHVIZ"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006773 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6774echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006775else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006776 { echo "$as_me:$LINENO: result: no" >&5
6777echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006778fi
6779
6780
6781if test "$GRAPHVIZ" != "echo Graphviz" ; then
6782
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006783cat >>confdefs.h <<\_ACEOF
6784#define HAVE_GRAPHVIZ 1
6785_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006786
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006787 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006788 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6789 fi
6790
6791cat >>confdefs.h <<_ACEOF
6792#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6793_ACEOF
6794
6795fi
6796# Extract the first word of "dot", so it can be a program name with args.
6797set dummy dot; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800if test "${ac_cv_path_DOT+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006802else
6803 case $DOT in
6804 [\\/]* | ?:[\\/]*)
6805 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6806 ;;
6807 *)
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809for as_dir in $PATH
6810do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006815 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006817 break 2
6818 fi
6819done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006820done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006821IFS=$as_save_IFS
6822
6823 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6824 ;;
6825esac
6826fi
6827DOT=$ac_cv_path_DOT
6828if test -n "$DOT"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006829 { echo "$as_me:$LINENO: result: $DOT" >&5
6830echo "${ECHO_T}$DOT" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006831else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006832 { echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006834fi
6835
6836
6837if test "$DOT" != "echo dot" ; then
6838
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006839cat >>confdefs.h <<\_ACEOF
6840#define HAVE_DOT 1
6841_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006842
Jeff Cohenc5e5b272007-01-12 18:22:38 +00006843 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00006844 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6845 fi
6846
6847cat >>confdefs.h <<_ACEOF
6848#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6849_ACEOF
6850
6851fi
David Greened93c40b62009-07-09 17:16:26 +00006852# Extract the first word of "fdp", so it can be a program name with args.
6853set dummy fdp; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856if test "${ac_cv_path_FDP+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006858else
6859 case $FDP in
6860 [\\/]* | ?:[\\/]*)
6861 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6862 ;;
6863 *)
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00006871 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006873 break 2
6874 fi
6875done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006876done
David Greened93c40b62009-07-09 17:16:26 +00006877IFS=$as_save_IFS
6878
6879 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6880 ;;
6881esac
6882fi
6883FDP=$ac_cv_path_FDP
6884if test -n "$FDP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006885 { echo "$as_me:$LINENO: result: $FDP" >&5
6886echo "${ECHO_T}$FDP" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006887else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006888 { echo "$as_me:$LINENO: result: no" >&5
6889echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006890fi
6891
6892
6893if test "$FDP" != "echo fdp" ; then
6894
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006895cat >>confdefs.h <<\_ACEOF
6896#define HAVE_FDP 1
6897_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006898
6899 if test "$llvm_cv_os_type" = "MingW" ; then
6900 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6901 fi
6902
6903cat >>confdefs.h <<_ACEOF
6904#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6905_ACEOF
6906
6907fi
6908# Extract the first word of "neato", so it can be a program name with args.
6909set dummy neato; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006910{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6912if test "${ac_cv_path_NEATO+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006914else
6915 case $NEATO in
6916 [\\/]* | ?:[\\/]*)
6917 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6918 ;;
6919 *)
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00006927 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006929 break 2
6930 fi
6931done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006932done
David Greened93c40b62009-07-09 17:16:26 +00006933IFS=$as_save_IFS
6934
6935 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6936 ;;
6937esac
6938fi
6939NEATO=$ac_cv_path_NEATO
6940if test -n "$NEATO"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006941 { echo "$as_me:$LINENO: result: $NEATO" >&5
6942echo "${ECHO_T}$NEATO" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006943else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006944 { echo "$as_me:$LINENO: result: no" >&5
6945echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006946fi
6947
6948
6949if test "$NEATO" != "echo neato" ; then
6950
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006951cat >>confdefs.h <<\_ACEOF
6952#define HAVE_NEATO 1
6953_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00006954
6955 if test "$llvm_cv_os_type" = "MingW" ; then
6956 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6957 fi
6958
6959cat >>confdefs.h <<_ACEOF
6960#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6961_ACEOF
6962
6963fi
6964# Extract the first word of "twopi", so it can be a program name with args.
6965set dummy twopi; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968if test "${ac_cv_path_TWOPI+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00006970else
6971 case $TWOPI in
6972 [\\/]* | ?:[\\/]*)
6973 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6974 ;;
6975 *)
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977for as_dir in $PATH
6978do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00006983 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00006985 break 2
6986 fi
6987done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006988done
David Greened93c40b62009-07-09 17:16:26 +00006989IFS=$as_save_IFS
6990
6991 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6992 ;;
6993esac
6994fi
6995TWOPI=$ac_cv_path_TWOPI
6996if test -n "$TWOPI"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00006997 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6998echo "${ECHO_T}$TWOPI" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00006999else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007000 { echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00007002fi
7003
7004
7005if test "$TWOPI" != "echo twopi" ; then
7006
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007007cat >>confdefs.h <<\_ACEOF
7008#define HAVE_TWOPI 1
7009_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00007010
7011 if test "$llvm_cv_os_type" = "MingW" ; then
7012 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7013 fi
7014
7015cat >>confdefs.h <<_ACEOF
7016#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7017_ACEOF
7018
7019fi
7020# Extract the first word of "circo", so it can be a program name with args.
7021set dummy circo; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7024if test "${ac_cv_path_CIRCO+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greened93c40b62009-07-09 17:16:26 +00007026else
7027 case $CIRCO in
7028 [\\/]* | ?:[\\/]*)
7029 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7030 ;;
7031 *)
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greened93c40b62009-07-09 17:16:26 +00007039 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greened93c40b62009-07-09 17:16:26 +00007041 break 2
7042 fi
7043done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007044done
David Greened93c40b62009-07-09 17:16:26 +00007045IFS=$as_save_IFS
7046
7047 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7048 ;;
7049esac
7050fi
7051CIRCO=$ac_cv_path_CIRCO
7052if test -n "$CIRCO"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007053 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7054echo "${ECHO_T}$CIRCO" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00007055else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007056 { echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6; }
David Greened93c40b62009-07-09 17:16:26 +00007058fi
7059
7060
7061if test "$CIRCO" != "echo circo" ; then
7062
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007063cat >>confdefs.h <<\_ACEOF
7064#define HAVE_CIRCO 1
7065_ACEOF
David Greened93c40b62009-07-09 17:16:26 +00007066
7067 if test "$llvm_cv_os_type" = "MingW" ; then
7068 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7069 fi
7070
7071cat >>confdefs.h <<_ACEOF
7072#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7073_ACEOF
7074
7075fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007076for ac_prog in gv gsview32
7077do
7078 # Extract the first word of "$ac_prog", so it can be a program name with args.
7079set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007080{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082if test "${ac_cv_path_GV+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007084else
7085 case $GV in
7086 [\\/]* | ?:[\\/]*)
7087 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7088 ;;
7089 *)
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007097 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007099 break 2
7100 fi
7101done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007102done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007103IFS=$as_save_IFS
7104
7105 ;;
7106esac
7107fi
7108GV=$ac_cv_path_GV
7109if test -n "$GV"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007110 { echo "$as_me:$LINENO: result: $GV" >&5
7111echo "${ECHO_T}$GV" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007112else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007113 { echo "$as_me:$LINENO: result: no" >&5
7114echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007115fi
7116
7117
7118 test -n "$GV" && break
7119done
7120test -n "$GV" || GV="echo gv"
7121
7122if test "$GV" != "echo gv" ; then
7123
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007124cat >>confdefs.h <<\_ACEOF
7125#define HAVE_GV 1
7126_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007127
Jeff Cohenc5e5b272007-01-12 18:22:38 +00007128 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007129 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7130 fi
7131
7132cat >>confdefs.h <<_ACEOF
7133#define LLVM_PATH_GV "$GV${EXEEXT}"
7134_ACEOF
7135
7136fi
7137# Extract the first word of "dotty", so it can be a program name with args.
7138set dummy dotty; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141if test "${ac_cv_path_DOTTY+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007143else
7144 case $DOTTY in
7145 [\\/]* | ?:[\\/]*)
7146 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7147 ;;
7148 *)
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007156 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007158 break 2
7159 fi
7160done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007161done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007162IFS=$as_save_IFS
7163
7164 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7165 ;;
7166esac
7167fi
7168DOTTY=$ac_cv_path_DOTTY
7169if test -n "$DOTTY"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007170 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7171echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007172else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007173 { echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007175fi
7176
7177
7178if test "$DOTTY" != "echo dotty" ; then
7179
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007180cat >>confdefs.h <<\_ACEOF
7181#define HAVE_DOTTY 1
7182_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007183
Jeff Cohenc5e5b272007-01-12 18:22:38 +00007184 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007185 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7186 fi
7187
7188cat >>confdefs.h <<_ACEOF
7189#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7190_ACEOF
7191
7192fi
Dan Gohmana0da8892010-09-27 16:28:34 +00007193# Extract the first word of "xdot.py", so it can be a program name with args.
7194set dummy xdot.py; ac_word=$2
7195{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7197if test "${ac_cv_path_XDOT_PY+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200 case $XDOT_PY in
7201 [\\/]* | ?:[\\/]*)
7202 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7203 ;;
7204 *)
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206for as_dir in $PATH
7207do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7215 fi
7216done
7217done
7218IFS=$as_save_IFS
7219
7220 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7221 ;;
7222esac
7223fi
7224XDOT_PY=$ac_cv_path_XDOT_PY
7225if test -n "$XDOT_PY"; then
7226 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7227echo "${ECHO_T}$XDOT_PY" >&6; }
7228else
7229 { echo "$as_me:$LINENO: result: no" >&5
7230echo "${ECHO_T}no" >&6; }
7231fi
7232
7233
7234if test "$XDOT_PY" != "echo xdot.py" ; then
7235
7236cat >>confdefs.h <<\_ACEOF
7237#define HAVE_XDOT_PY 1
7238_ACEOF
7239
7240 if test "$llvm_cv_os_type" = "MingW" ; then
7241 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7242 fi
7243
7244cat >>confdefs.h <<_ACEOF
7245#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7246_ACEOF
7247
7248fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007249
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007250# Find a good install program. We prefer a C program (faster),
7251# so one script is as good as another. But avoid the broken or
7252# incompatible versions:
7253# SysV /etc/install, /usr/sbin/install
7254# SunOS /usr/etc/install
7255# IRIX /sbin/install
7256# AIX /bin/install
7257# AmigaOS /C/install, which installs bootblocks on floppy discs
7258# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7259# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7260# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7261# OS/2's system install, which has a completely different semantic
7262# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007263{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7264echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007265if test -z "$INSTALL"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007266if test "${ac_cv_path_install+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007268else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270for as_dir in $PATH
7271do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007274 # Account for people who put trailing slashes in PATH elements.
7275case $as_dir/ in
7276 ./ | .// | /cC/* | \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007278 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007279 /usr/ucb/* ) ;;
7280 *)
7281 # OSF1 and SCO ODT 3.0 have their own names for install.
7282 # Don't use installbsd from OSF since it installs stuff as root
7283 # by default.
7284 for ac_prog in ginstall scoinst install; do
7285 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007286 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007287 if test $ac_prog = install &&
7288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7289 # AIX install. It has an incompatible calling convention.
7290 :
7291 elif test $ac_prog = install &&
7292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7293 # program-specific install script used by HP pwplus--don't use.
7294 :
7295 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007296 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7297 break 3
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007298 fi
7299 fi
7300 done
7301 done
7302 ;;
7303esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007304done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007305IFS=$as_save_IFS
7306
7307
7308fi
7309 if test "${ac_cv_path_install+set}" = set; then
7310 INSTALL=$ac_cv_path_install
7311 else
7312 # As a last resort, use the slow shell script. Don't cache a
7313 # value for INSTALL within a source directory, because that will
7314 # break other packages using the cache if that directory is
7315 # removed, or if the value is a relative name.
7316 INSTALL=$ac_install_sh
7317 fi
7318fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007319{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7320echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007321
7322# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7323# It thinks the first close brace ends the variable substitution.
7324test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7325
7326test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7327
7328test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7329
Eric Christophere3befc72010-07-22 21:13:48 +00007330case "$INSTALL" in
7331 [\\/$]* | ?:[\\/]* ) ;;
7332 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7333esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007334
7335# Extract the first word of "bzip2", so it can be a program name with args.
7336set dummy bzip2; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339if test "${ac_cv_path_BZIP2+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007341else
7342 case $BZIP2 in
7343 [\\/]* | ?:[\\/]*)
7344 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7345 ;;
7346 *)
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007354 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007356 break 2
7357 fi
7358done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007359done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007360IFS=$as_save_IFS
7361
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007362 ;;
7363esac
7364fi
7365BZIP2=$ac_cv_path_BZIP2
7366if test -n "$BZIP2"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007367 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7368echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007369else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007370 { echo "$as_me:$LINENO: result: no" >&5
7371echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007372fi
7373
7374
mike-me08af302010-05-06 23:45:43 +00007375# Extract the first word of "cat", so it can be a program name with args.
7376set dummy cat; ac_word=$2
7377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379if test "${ac_cv_path_CAT+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381else
7382 case $CAT in
7383 [\\/]* | ?:[\\/]*)
7384 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7385 ;;
7386 *)
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398done
7399done
7400IFS=$as_save_IFS
7401
7402 ;;
7403esac
7404fi
7405CAT=$ac_cv_path_CAT
7406if test -n "$CAT"; then
7407 { echo "$as_me:$LINENO: result: $CAT" >&5
7408echo "${ECHO_T}$CAT" >&6; }
7409else
7410 { echo "$as_me:$LINENO: result: no" >&5
7411echo "${ECHO_T}no" >&6; }
7412fi
7413
7414
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007415# Extract the first word of "doxygen", so it can be a program name with args.
7416set dummy doxygen; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419if test "${ac_cv_path_DOXYGEN+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007421else
7422 case $DOXYGEN in
7423 [\\/]* | ?:[\\/]*)
7424 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7425 ;;
7426 *)
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH
7429do
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007434 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007436 break 2
7437 fi
7438done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007439done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007440IFS=$as_save_IFS
7441
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007442 ;;
7443esac
7444fi
7445DOXYGEN=$ac_cv_path_DOXYGEN
7446if test -n "$DOXYGEN"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007447 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7448echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007449else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007450 { echo "$as_me:$LINENO: result: no" >&5
7451echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007452fi
7453
7454
Daniel Dunbard1888822012-05-08 18:26:07 +00007455# Extract the first word of "groff", so it can be a program name with args.
7456set dummy groff; ac_word=$2
7457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459if test "${ac_cv_path_GROFF+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7461else
7462 case $GROFF in
7463 [\\/]* | ?:[\\/]*)
7464 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7465 ;;
7466 *)
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468for as_dir in $PATH
7469do
7470 IFS=$as_save_IFS
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7474 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 break 2
7477 fi
7478done
7479done
7480IFS=$as_save_IFS
7481
7482 ;;
7483esac
7484fi
7485GROFF=$ac_cv_path_GROFF
7486if test -n "$GROFF"; then
7487 { echo "$as_me:$LINENO: result: $GROFF" >&5
7488echo "${ECHO_T}$GROFF" >&6; }
7489else
7490 { echo "$as_me:$LINENO: result: no" >&5
7491echo "${ECHO_T}no" >&6; }
7492fi
7493
7494
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007495# Extract the first word of "gzip", so it can be a program name with args.
7496set dummy gzip; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007497{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Eric Christopher77560892010-12-10 01:31:51 +00007499if test "${ac_cv_path_GZIPBIN+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007500 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007501else
Eric Christopher77560892010-12-10 01:31:51 +00007502 case $GZIPBIN in
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007503 [\\/]* | ?:[\\/]*)
Eric Christopher77560892010-12-10 01:31:51 +00007504 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007505 ;;
7506 *)
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508for as_dir in $PATH
7509do
7510 IFS=$as_save_IFS
7511 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Eric Christopher77560892010-12-10 01:31:51 +00007514 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007516 break 2
7517 fi
7518done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007519done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007520IFS=$as_save_IFS
7521
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007522 ;;
7523esac
7524fi
Eric Christopher77560892010-12-10 01:31:51 +00007525GZIPBIN=$ac_cv_path_GZIPBIN
7526if test -n "$GZIPBIN"; then
7527 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7528echo "${ECHO_T}$GZIPBIN" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007529else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007530 { echo "$as_me:$LINENO: result: no" >&5
7531echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007532fi
7533
7534
Daniel Dunbard1888822012-05-08 18:26:07 +00007535# Extract the first word of "pdfroff", so it can be a program name with args.
7536set dummy pdfroff; ac_word=$2
7537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539if test "${ac_cv_path_PDFROFF+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7541else
7542 case $PDFROFF in
7543 [\\/]* | ?:[\\/]*)
7544 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7545 ;;
7546 *)
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7557 fi
7558done
7559done
7560IFS=$as_save_IFS
7561
7562 ;;
7563esac
7564fi
7565PDFROFF=$ac_cv_path_PDFROFF
7566if test -n "$PDFROFF"; then
7567 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7568echo "${ECHO_T}$PDFROFF" >&6; }
7569else
7570 { echo "$as_me:$LINENO: result: no" >&5
7571echo "${ECHO_T}no" >&6; }
7572fi
7573
7574
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007575# Extract the first word of "zip", so it can be a program name with args.
7576set dummy zip; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579if test "${ac_cv_path_ZIP+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007581else
7582 case $ZIP in
7583 [\\/]* | ?:[\\/]*)
7584 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7585 ;;
7586 *)
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588for as_dir in $PATH
7589do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007594 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007596 break 2
7597 fi
7598done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007599done
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007600IFS=$as_save_IFS
7601
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007602 ;;
7603esac
7604fi
7605ZIP=$ac_cv_path_ZIP
7606if test -n "$ZIP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007607 { echo "$as_me:$LINENO: result: $ZIP" >&5
7608echo "${ECHO_T}$ZIP" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007609else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007610 { echo "$as_me:$LINENO: result: no" >&5
7611echo "${ECHO_T}no" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007612fi
7613
7614
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007615for ac_prog in ocamlc
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007616do
7617 # Extract the first word of "$ac_prog", so it can be a program name with args.
7618set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7621if test "${ac_cv_path_OCAMLC+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007623else
7624 case $OCAMLC in
7625 [\\/]* | ?:[\\/]*)
7626 ac_cv_path_OCAMLC="$OCAMLC" # 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=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007634 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
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007636 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007638 break 2
7639 fi
7640done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007641done
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007642IFS=$as_save_IFS
7643
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007644 ;;
7645esac
7646fi
7647OCAMLC=$ac_cv_path_OCAMLC
7648if test -n "$OCAMLC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007649 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7650echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007651else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007652 { echo "$as_me:$LINENO: result: no" >&5
7653echo "${ECHO_T}no" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007654fi
7655
7656
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007657 test -n "$OCAMLC" && break
7658done
7659
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007660for ac_prog in ocamlopt
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007661do
7662 # Extract the first word of "$ac_prog", so it can be a program name with args.
7663set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7666if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007668else
7669 case $OCAMLOPT in
7670 [\\/]* | ?:[\\/]*)
7671 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7672 ;;
7673 *)
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675for as_dir in $PATH
7676do
7677 IFS=$as_save_IFS
7678 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007681 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007683 break 2
7684 fi
7685done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007686done
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007687IFS=$as_save_IFS
7688
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007689 ;;
7690esac
7691fi
7692OCAMLOPT=$ac_cv_path_OCAMLOPT
7693if test -n "$OCAMLOPT"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007694 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7695echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007696else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007697 { echo "$as_me:$LINENO: result: no" >&5
7698echo "${ECHO_T}no" >&6; }
Gordon Henriksen4c7ca7d2007-09-18 12:27:13 +00007699fi
7700
7701
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007702 test -n "$OCAMLOPT" && break
7703done
7704
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007705for ac_prog in ocamldep
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007706do
7707 # Extract the first word of "$ac_prog", so it can be a program name with args.
7708set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7711if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksend1e16452007-09-20 16:48:18 +00007713else
7714 case $OCAMLDEP in
7715 [\\/]* | ?:[\\/]*)
7716 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7717 ;;
7718 *)
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720for as_dir in $PATH
7721do
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksend1e16452007-09-20 16:48:18 +00007726 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksend1e16452007-09-20 16:48:18 +00007728 break 2
7729 fi
7730done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007731done
Gordon Henriksend1e16452007-09-20 16:48:18 +00007732IFS=$as_save_IFS
7733
Gordon Henriksend1e16452007-09-20 16:48:18 +00007734 ;;
7735esac
7736fi
7737OCAMLDEP=$ac_cv_path_OCAMLDEP
7738if test -n "$OCAMLDEP"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007739 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7740echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksend1e16452007-09-20 16:48:18 +00007741else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007742 { echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6; }
Gordon Henriksend1e16452007-09-20 16:48:18 +00007744fi
7745
7746
Gordon Henriksen53aaaaf2008-03-07 18:20:01 +00007747 test -n "$OCAMLDEP" && break
7748done
7749
Gordon Henriksen9b601a42008-10-22 12:40:55 +00007750for ac_prog in ocamldoc
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007751do
7752 # Extract the first word of "$ac_prog", so it can be a program name with args.
7753set dummy $ac_prog; ac_word=$2
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7756if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007758else
7759 case $OCAMLDOC in
7760 [\\/]* | ?:[\\/]*)
7761 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7762 ;;
7763 *)
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765for as_dir in $PATH
7766do
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007771 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007773 break 2
7774 fi
7775done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007776done
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007777IFS=$as_save_IFS
7778
7779 ;;
7780esac
7781fi
7782OCAMLDOC=$ac_cv_path_OCAMLDOC
7783if test -n "$OCAMLDOC"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007784 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7785echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007786else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007787 { echo "$as_me:$LINENO: result: no" >&5
7788echo "${ECHO_T}no" >&6; }
Gordon Henriksenc1269c82008-03-10 15:49:38 +00007789fi
7790
7791
7792 test -n "$OCAMLDOC" && break
7793done
7794
Daniel Dunbard1888822012-05-08 18:26:07 +00007795for ac_prog in gas as
7796do
7797 # Extract the first word of "$ac_prog", so it can be a program name with args.
7798set dummy $ac_prog; ac_word=$2
7799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7801if test "${ac_cv_path_GAS+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803else
7804 case $GAS in
7805 [\\/]* | ?:[\\/]*)
7806 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7807 ;;
7808 *)
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810for as_dir in $PATH
7811do
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7816 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 break 2
7819 fi
7820done
7821done
7822IFS=$as_save_IFS
7823
7824 ;;
7825esac
7826fi
7827GAS=$ac_cv_path_GAS
7828if test -n "$GAS"; then
7829 { echo "$as_me:$LINENO: result: $GAS" >&5
7830echo "${ECHO_T}$GAS" >&6; }
7831else
7832 { echo "$as_me:$LINENO: result: no" >&5
7833echo "${ECHO_T}no" >&6; }
7834fi
7835
7836
7837 test -n "$GAS" && break
7838done
7839
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007840
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007841{ echo "$as_me:$LINENO: checking for linker version" >&5
7842echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7843if test "${llvm_cv_link_version+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7845else
7846
7847 version_string="$(ld -v 2>&1 | head -1)"
7848
7849 # Check for ld64.
7850 if (echo "$version_string" | grep -q "ld64"); then
Charles Davise56294d2012-02-28 02:55:41 +00007851 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
Daniel Dunbarb524afb2010-08-11 23:53:59 +00007852 else
7853 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7854 fi
7855
7856fi
7857{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7858echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7859
7860cat >>confdefs.h <<_ACEOF
7861#define HOST_LINK_VERSION "$llvm_cv_link_version"
7862_ACEOF
7863
7864
7865
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007866{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7867echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7868if test "${llvm_cv_link_use_r+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007870else
7871 ac_ext=c
7872ac_cpp='$CPP $CPPFLAGS'
7873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7875ac_compiler_gnu=$ac_cv_c_compiler_gnu
7876
7877 oldcflags="$CFLAGS"
7878 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007879 cat >conftest.$ac_ext <<_ACEOF
7880/* confdefs.h. */
7881_ACEOF
7882cat confdefs.h >>conftest.$ac_ext
7883cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007884/* end confdefs.h. */
7885
7886int
7887main ()
7888{
Dan Gohmana1c94042010-04-25 00:12:20 +00007889
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007890 ;
7891 return 0;
7892}
7893_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007894rm -f conftest.$ac_objext conftest$ac_exeext
7895if { (ac_try="$ac_link"
7896case "(($ac_try" in
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7899esac
7900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901 (eval "$ac_link") 2>conftest.er1
7902 ac_status=$?
7903 grep -v '^ *+' conftest.er1 >conftest.err
7904 rm -f conftest.er1
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } &&
7908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7909 { (case "(($ac_try" in
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7912esac
7913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_try") 2>&5
7915 ac_status=$?
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; } &&
7918 { ac_try='test -s conftest$ac_exeext'
7919 { (case "(($ac_try" in
7920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921 *) ac_try_echo=$ac_try;;
7922esac
7923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924 (eval "$ac_try") 2>&5
7925 ac_status=$?
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007928 llvm_cv_link_use_r=yes
7929else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007930 echo "$as_me: failed program was:" >&5
7931sed 's/^/| /' conftest.$ac_ext >&5
7932
7933 llvm_cv_link_use_r=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007934fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007935
Bill Wendling02b47d92009-04-18 11:20:33 +00007936rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007937 conftest$ac_exeext conftest.$ac_ext
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007938 CFLAGS="$oldcflags"
7939 ac_ext=c
7940ac_cpp='$CPP $CPPFLAGS'
7941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7943ac_compiler_gnu=$ac_cv_c_compiler_gnu
7944
7945
7946fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007947{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7948echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007949if test "$llvm_cv_link_use_r" = yes ; then
7950
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007951cat >>confdefs.h <<\_ACEOF
7952#define HAVE_LINK_R 1
7953_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00007954
7955 fi
7956
7957
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007958{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7959echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7960if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007962else
7963 ac_ext=c
7964ac_cpp='$CPP $CPPFLAGS'
7965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7967ac_compiler_gnu=$ac_cv_c_compiler_gnu
7968
7969 oldcflags="$CFLAGS"
7970 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007971 cat >conftest.$ac_ext <<_ACEOF
7972/* confdefs.h. */
7973_ACEOF
7974cat confdefs.h >>conftest.$ac_ext
7975cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007976/* end confdefs.h. */
7977
7978int
7979main ()
7980{
Dan Gohmana1c94042010-04-25 00:12:20 +00007981
Nick Lewyckyc540cc62009-03-05 08:20:44 +00007982 ;
7983 return 0;
7984}
7985_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00007986rm -f conftest.$ac_objext conftest$ac_exeext
7987if { (ac_try="$ac_link"
7988case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7991esac
7992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_link") 2>conftest.er1
7994 ac_status=$?
7995 grep -v '^ *+' conftest.er1 >conftest.err
7996 rm -f conftest.er1
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8001 { (case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8004esac
8005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_try") 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; } &&
8010 { ac_try='test -s conftest$ac_exeext'
8011 { (case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014esac
8015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_try") 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
Nick Lewyckyc540cc62009-03-05 08:20:44 +00008020 llvm_cv_link_use_export_dynamic=yes
8021else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008022 echo "$as_me: failed program was:" >&5
8023sed 's/^/| /' conftest.$ac_ext >&5
8024
8025 llvm_cv_link_use_export_dynamic=no
Nick Lewyckyc540cc62009-03-05 08:20:44 +00008026fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008027
Bill Wendling02b47d92009-04-18 11:20:33 +00008028rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008029 conftest$ac_exeext conftest.$ac_ext
Nick Lewyckyc540cc62009-03-05 08:20:44 +00008030 CFLAGS="$oldcflags"
8031 ac_ext=c
8032ac_cpp='$CPP $CPPFLAGS'
8033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036
8037
8038fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008039{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8040echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewyckyc540cc62009-03-05 08:20:44 +00008041if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8042
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008043cat >>confdefs.h <<\_ACEOF
8044#define HAVE_LINK_EXPORT_DYNAMIC 1
8045_ACEOF
Nick Lewyckyc540cc62009-03-05 08:20:44 +00008046
8047 fi
8048
8049
Dan Gohmanb7edb422010-06-01 14:56:56 +00008050{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8051echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8052if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohmanfe051a52010-04-16 22:59:06 +00008053 echo $ECHO_N "(cached) $ECHO_C" >&6
8054else
8055 ac_ext=c
8056ac_cpp='$CPP $CPPFLAGS'
8057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8059ac_compiler_gnu=$ac_cv_c_compiler_gnu
8060
8061 oldcflags="$CFLAGS"
8062
8063 # The following code is from the autoconf manual,
8064 # "11.13: Limitations of Usual Tools".
8065 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8066 # Use mktemp if possible; otherwise fall back on mkdir,
8067 # with $RANDOM to make collisions less likely.
8068 : ${TMPDIR=/tmp}
8069 {
8070 tmp=`
8071 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8072 ` &&
8073 test -n "$tmp" && test -d "$tmp"
8074 } || {
8075 tmp=$TMPDIR/foo$$-$RANDOM
8076 (umask 077 && mkdir "$tmp")
8077 } || exit $?
8078
Dan Gohmanb7edb422010-06-01 14:56:56 +00008079 echo "{" > "$tmp/export.map"
8080 echo " global: main;" >> "$tmp/export.map"
8081 echo " local: *;" >> "$tmp/export.map"
8082 echo "};" >> "$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00008083
Dan Gohmanb7edb422010-06-01 14:56:56 +00008084 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00008085 cat >conftest.$ac_ext <<_ACEOF
8086/* confdefs.h. */
8087_ACEOF
8088cat confdefs.h >>conftest.$ac_ext
8089cat >>conftest.$ac_ext <<_ACEOF
8090/* end confdefs.h. */
8091
8092int
8093main ()
8094{
Dan Gohmana1c94042010-04-25 00:12:20 +00008095
Dan Gohmanfe051a52010-04-16 22:59:06 +00008096 ;
8097 return 0;
8098}
8099_ACEOF
8100rm -f conftest.$ac_objext conftest$ac_exeext
8101if { (ac_try="$ac_link"
8102case "(($ac_try" in
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8105esac
8106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_link") 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8115 { (case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8118esac
8119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_try") 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; } &&
8124 { ac_try='test -s conftest$ac_exeext'
8125 { (case "(($ac_try" in
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8128esac
8129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130 (eval "$ac_try") 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
Dan Gohmanb7edb422010-06-01 14:56:56 +00008134 llvm_cv_link_use_version_script=yes
Dan Gohmanfe051a52010-04-16 22:59:06 +00008135else
8136 echo "$as_me: failed program was:" >&5
8137sed 's/^/| /' conftest.$ac_ext >&5
8138
Dan Gohmanc6998312010-06-01 16:22:27 +00008139 llvm_cv_link_use_version_script=no
Dan Gohmanfe051a52010-04-16 22:59:06 +00008140fi
8141
8142rm -f core conftest.err conftest.$ac_objext \
8143 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanb7edb422010-06-01 14:56:56 +00008144 rm "$tmp/export.map"
Dan Gohmanfe051a52010-04-16 22:59:06 +00008145 rmdir "$tmp"
8146 CFLAGS="$oldcflags"
8147 ac_ext=c
8148ac_cpp='$CPP $CPPFLAGS'
8149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8151ac_compiler_gnu=$ac_cv_c_compiler_gnu
8152
8153
8154fi
Dan Gohmanb7edb422010-06-01 14:56:56 +00008155{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8156echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8157if test "$llvm_cv_link_use_version_script" = yes ; then
8158 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohmanfe051a52010-04-16 22:59:06 +00008159
8160 fi
8161
8162
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008163
8164
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008165{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8166echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8167if test "${ac_cv_c_const+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008169else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008170 cat >conftest.$ac_ext <<_ACEOF
8171/* confdefs.h. */
8172_ACEOF
8173cat confdefs.h >>conftest.$ac_ext
8174cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008175/* end confdefs.h. */
8176
8177int
8178main ()
8179{
8180/* FIXME: Include the comments suggested by Paul. */
8181#ifndef __cplusplus
8182 /* Ultrix mips cc rejects this. */
8183 typedef int charset[2];
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008184 const charset x;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008185 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008186 char const *const *ccp;
8187 char **p;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008188 /* NEC SVR4.0.2 mips cc rejects this. */
8189 struct point {int x, y;};
8190 static struct point const zero = {0,0};
8191 /* AIX XL C 1.02.0.0 rejects this.
8192 It does not let you subtract one const X* pointer from another in
8193 an arm of an if-expression whose if-part is not a constant
8194 expression */
8195 const char *g = "string";
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008196 ccp = &g + (g ? g-g : 0);
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008197 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008198 ++ccp;
8199 p = (char**) ccp;
8200 ccp = (char const *const *) p;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008201 { /* SCO 3.2v4 cc rejects this. */
8202 char *t;
8203 char const *s = 0 ? (char *) 0 : (char const *) 0;
8204
8205 *t++ = 0;
8206 if (s) return 0;
8207 }
8208 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8209 int x[] = {25, 17};
8210 const int *foo = &x[0];
8211 ++foo;
8212 }
8213 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8214 typedef const int *iptr;
8215 iptr p = 0;
8216 ++p;
8217 }
8218 { /* AIX XL C 1.02.0.0 rejects this saying
8219 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8220 struct s { int j; const int *ap[3]; };
8221 struct s *b; b->j = 5;
8222 }
8223 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8224 const int foo = 10;
8225 if (!foo) return 0;
8226 }
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008227 return !x[0] && !zero.x;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008228#endif
8229
8230 ;
8231 return 0;
8232}
8233_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008234rm -f conftest.$ac_objext
8235if { (ac_try="$ac_compile"
8236case "(($ac_try" in
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8239esac
8240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241 (eval "$ac_compile") 2>conftest.er1
8242 ac_status=$?
8243 grep -v '^ *+' conftest.er1 >conftest.err
8244 rm -f conftest.er1
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } &&
8248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8249 { (case "(($ac_try" in
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8252esac
8253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_try") 2>&5
8255 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest.$ac_objext'
8259 { (case "(($ac_try" in
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8262esac
8263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264 (eval "$ac_try") 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008268 ac_cv_c_const=yes
8269else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008270 echo "$as_me: failed program was:" >&5
8271sed 's/^/| /' conftest.$ac_ext >&5
8272
8273 ac_cv_c_const=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008274fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008275
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008278{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8279echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008280if test $ac_cv_c_const = no; then
8281
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008282cat >>confdefs.h <<\_ACEOF
8283#define const
8284_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008285
8286fi
8287
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008288
8289
8290
8291
8292
Reid Spencera40c6872004-11-29 12:29:58 +00008293ac_header_dirent=no
8294for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008295 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8296{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8297echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00008300else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008301 cat >conftest.$ac_ext <<_ACEOF
8302/* confdefs.h. */
8303_ACEOF
8304cat confdefs.h >>conftest.$ac_ext
8305cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00008306/* end confdefs.h. */
8307#include <sys/types.h>
8308#include <$ac_hdr>
8309
8310int
8311main ()
8312{
8313if ((DIR *) 0)
8314return 0;
8315 ;
8316 return 0;
8317}
8318_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008319rm -f conftest.$ac_objext
8320if { (ac_try="$ac_compile"
8321case "(($ac_try" in
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8324esac
8325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_compile") 2>conftest.er1
8327 ac_status=$?
8328 grep -v '^ *+' conftest.er1 >conftest.err
8329 rm -f conftest.er1
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } &&
8333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8334 { (case "(($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_try") 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; } &&
8343 { ac_try='test -s conftest.$ac_objext'
8344 { (case "(($ac_try" in
8345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346 *) ac_try_echo=$ac_try;;
8347esac
8348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349 (eval "$ac_try") 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +00008353 eval "$as_ac_Header=yes"
8354else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008355 echo "$as_me: failed program was:" >&5
8356sed 's/^/| /' conftest.$ac_ext >&5
8357
8358 eval "$as_ac_Header=no"
Reid Spencera40c6872004-11-29 12:29:58 +00008359fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008360
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +00008362fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008363ac_res=`eval echo '${'$as_ac_Header'}'`
8364 { echo "$as_me:$LINENO: result: $ac_res" >&5
8365echo "${ECHO_T}$ac_res" >&6; }
8366if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +00008367 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008368#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +00008369_ACEOF
8370
8371ac_header_dirent=$ac_hdr; break
8372fi
8373
8374done
8375# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8376if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008377 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8378echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8379if test "${ac_cv_search_opendir+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00008381else
8382 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008383cat >conftest.$ac_ext <<_ACEOF
8384/* confdefs.h. */
8385_ACEOF
8386cat confdefs.h >>conftest.$ac_ext
8387cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00008388/* end confdefs.h. */
8389
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008390/* Override any GCC internal prototype to avoid an error.
8391 Use char because int might match the return type of a GCC
8392 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +00008393#ifdef __cplusplus
8394extern "C"
8395#endif
Reid Spencera40c6872004-11-29 12:29:58 +00008396char opendir ();
8397int
8398main ()
8399{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008400return opendir ();
Reid Spencera40c6872004-11-29 12:29:58 +00008401 ;
8402 return 0;
8403}
8404_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008405for ac_lib in '' dir; do
8406 if test -z "$ac_lib"; then
8407 ac_res="none required"
8408 else
8409 ac_res=-l$ac_lib
Reid Spencera40c6872004-11-29 12:29:58 +00008410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008411 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008412 rm -f conftest.$ac_objext conftest$ac_exeext
8413if { (ac_try="$ac_link"
8414case "(($ac_try" in
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8417esac
8418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419 (eval "$ac_link") 2>conftest.er1
8420 ac_status=$?
8421 grep -v '^ *+' conftest.er1 >conftest.err
8422 rm -f conftest.er1
8423 cat conftest.err >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } &&
8426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8427 { (case "(($ac_try" in
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8430esac
8431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_try") 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; } &&
8436 { ac_try='test -s conftest$ac_exeext'
8437 { (case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440esac
8441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_try") 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008446 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008447else
8448 echo "$as_me: failed program was:" >&5
8449sed 's/^/| /' conftest.$ac_ext >&5
8450
8451
Reid Spencera40c6872004-11-29 12:29:58 +00008452fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008453
Bill Wendling02b47d92009-04-18 11:20:33 +00008454rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008455 conftest$ac_exeext
8456 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008457 break
Reid Spencera40c6872004-11-29 12:29:58 +00008458fi
John Criswell3ef61af2003-06-30 21:59:07 +00008459done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008460if test "${ac_cv_search_opendir+set}" = set; then
8461 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008462else
8463 ac_cv_search_opendir=no
8464fi
8465rm conftest.$ac_ext
8466LIBS=$ac_func_search_save_LIBS
8467fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008468{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8469echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008470ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008471if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell3ef61af2003-06-30 21:59:07 +00008473
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008474fi
8475
8476else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008477 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8478echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8479if test "${ac_cv_search_opendir+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008481else
8482 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008483cat >conftest.$ac_ext <<_ACEOF
8484/* confdefs.h. */
8485_ACEOF
8486cat confdefs.h >>conftest.$ac_ext
8487cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008488/* end confdefs.h. */
8489
8490/* Override any GCC internal prototype to avoid an error.
8491 Use char because int might match the return type of a GCC
8492 builtin and then its argument prototype would still apply. */
8493#ifdef __cplusplus
8494extern "C"
8495#endif
8496char opendir ();
8497int
8498main ()
8499{
8500return opendir ();
8501 ;
8502 return 0;
8503}
8504_ACEOF
8505for ac_lib in '' x; do
8506 if test -z "$ac_lib"; then
8507 ac_res="none required"
8508 else
8509 ac_res=-l$ac_lib
8510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8511 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008512 rm -f conftest.$ac_objext conftest$ac_exeext
8513if { (ac_try="$ac_link"
8514case "(($ac_try" in
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8517esac
8518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519 (eval "$ac_link") 2>conftest.er1
8520 ac_status=$?
8521 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8527 { (case "(($ac_try" in
8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8530esac
8531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532 (eval "$ac_try") 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest$ac_exeext'
8537 { (case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8540esac
8541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_try") 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008546 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008547else
8548 echo "$as_me: failed program was:" >&5
8549sed 's/^/| /' conftest.$ac_ext >&5
8550
8551
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008552fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008553
Bill Wendling02b47d92009-04-18 11:20:33 +00008554rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008555 conftest$ac_exeext
8556 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008557 break
8558fi
8559done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008560if test "${ac_cv_search_opendir+set}" = set; then
8561 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008562else
8563 ac_cv_search_opendir=no
8564fi
8565rm conftest.$ac_ext
8566LIBS=$ac_func_search_save_LIBS
8567fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008568{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8569echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008570ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008571if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8573
8574fi
8575
8576fi
John Criswell3ef61af2003-06-30 21:59:07 +00008577
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008578
John Criswell3ef61af2003-06-30 21:59:07 +00008579for ac_header in dlfcn.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008580do
8581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8587fi
8588ac_res=`eval echo '${'$as_ac_Header'}'`
8589 { echo "$as_me:$LINENO: result: $ac_res" >&5
8590echo "${ECHO_T}$ac_res" >&6; }
8591else
8592 # Is the header compilable?
8593{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8594echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8595cat >conftest.$ac_ext <<_ACEOF
8596/* confdefs.h. */
8597_ACEOF
8598cat confdefs.h >>conftest.$ac_ext
8599cat >>conftest.$ac_ext <<_ACEOF
8600/* end confdefs.h. */
8601$ac_includes_default
8602#include <$ac_header>
8603_ACEOF
8604rm -f conftest.$ac_objext
8605if { (ac_try="$ac_compile"
8606case "(($ac_try" in
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8609esac
8610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611 (eval "$ac_compile") 2>conftest.er1
8612 ac_status=$?
8613 grep -v '^ *+' conftest.er1 >conftest.err
8614 rm -f conftest.er1
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8619 { (case "(($ac_try" in
8620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621 *) ac_try_echo=$ac_try;;
8622esac
8623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624 (eval "$ac_try") 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest.$ac_objext'
8629 { (case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8632esac
8633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_try") 2>&5
8635 ac_status=$?
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 ac_header_compiler=yes
8639else
8640 echo "$as_me: failed program was:" >&5
8641sed 's/^/| /' conftest.$ac_ext >&5
8642
8643 ac_header_compiler=no
8644fi
8645
8646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8648echo "${ECHO_T}$ac_header_compiler" >&6; }
8649
8650# Is the header present?
8651{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8652echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8653cat >conftest.$ac_ext <<_ACEOF
8654/* confdefs.h. */
8655_ACEOF
8656cat confdefs.h >>conftest.$ac_ext
8657cat >>conftest.$ac_ext <<_ACEOF
8658/* end confdefs.h. */
8659#include <$ac_header>
8660_ACEOF
8661if { (ac_try="$ac_cpp conftest.$ac_ext"
8662case "(($ac_try" in
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8665esac
8666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8668 ac_status=$?
8669 grep -v '^ *+' conftest.er1 >conftest.err
8670 rm -f conftest.er1
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } >/dev/null; then
8674 if test -s conftest.err; then
8675 ac_cpp_err=$ac_c_preproc_warn_flag
8676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8677 else
8678 ac_cpp_err=
8679 fi
8680else
8681 ac_cpp_err=yes
8682fi
8683if test -z "$ac_cpp_err"; then
8684 ac_header_preproc=yes
8685else
8686 echo "$as_me: failed program was:" >&5
8687sed 's/^/| /' conftest.$ac_ext >&5
8688
8689 ac_header_preproc=no
8690fi
8691
8692rm -f conftest.err conftest.$ac_ext
8693{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8694echo "${ECHO_T}$ac_header_preproc" >&6; }
8695
8696# So? What about this header?
8697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8698 yes:no: )
8699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8700echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8702echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8703 ac_header_preproc=yes
8704 ;;
8705 no:yes:* )
8706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8707echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8709echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8711echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8713echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8715echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8717echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8718 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +00008719## ------------------------------------ ##
8720## Report this to http://llvm.org/bugs/ ##
8721## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008722_ASBOX
8723 ) | sed "s/^/$as_me: WARNING: /" >&2
8724 ;;
8725esac
8726{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8730else
8731 eval "$as_ac_Header=\$ac_header_preproc"
8732fi
8733ac_res=`eval echo '${'$as_ac_Header'}'`
8734 { echo "$as_me:$LINENO: result: $ac_res" >&5
8735echo "${ECHO_T}$ac_res" >&6; }
8736
8737fi
8738if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +00008739 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008740#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +00008741_ACEOF
8742
8743fi
8744
8745done
8746
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008747# Check whether --enable-ltdl-install was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008748if test "${enable_ltdl_install+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008749 enableval=$enable_ltdl_install;
8750fi
Reid Spencera40c6872004-11-29 12:29:58 +00008751
Reid Spencera40c6872004-11-29 12:29:58 +00008752
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +00008753
8754
8755if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencera40c6872004-11-29 12:29:58 +00008756 INSTALL_LTDL_TRUE=
8757 INSTALL_LTDL_FALSE='#'
8758else
8759 INSTALL_LTDL_TRUE='#'
8760 INSTALL_LTDL_FALSE=
8761fi
8762
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +00008763
8764
8765if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencera40c6872004-11-29 12:29:58 +00008766 CONVENIENCE_LTDL_TRUE=
8767 CONVENIENCE_LTDL_FALSE='#'
8768else
8769 CONVENIENCE_LTDL_TRUE='#'
8770 CONVENIENCE_LTDL_FALSE=
8771fi
8772
8773
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00008774{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8775echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00008776library_names_spec=
8777libname_spec='lib$name'
8778soname_spec=
8779shrext_cmds=".so"
8780postinstall_cmds=
8781postuninstall_cmds=
8782finish_cmds=
8783finish_eval=
8784shlibpath_var=
8785shlibpath_overrides_runpath=unknown
8786version_type=none
8787dynamic_linker="$host_os ld.so"
8788sys_lib_dlsearch_path_spec="/lib /usr/lib"
8789if test "$GCC" = yes; then
8790 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8791 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8792 # if the path contains ";" then we assume it to be the separator
8793 # otherwise default to the standard path separator (i.e. ":") - it is
8794 # assumed that no part of a normal pathname contains ";" but that should
8795 # okay in the real world where ";" in dirpaths is itself problematic.
8796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8797 else
8798 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8799 fi
8800else
8801 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8802fi
8803need_lib_prefix=unknown
8804hardcode_into_libs=no
8805
8806# when you set need_version to no, make sure it does not cause -set_version
8807# flags to be left without arguments
8808need_version=unknown
8809
8810case $host_os in
8811aix3*)
8812 version_type=linux
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8814 shlibpath_var=LIBPATH
8815
8816 # AIX 3 has no versioning support, so we append a major version to the name.
8817 soname_spec='${libname}${release}${shared_ext}$major'
8818 ;;
8819
8820aix4* | aix5*)
8821 version_type=linux
8822 need_lib_prefix=no
8823 need_version=no
8824 hardcode_into_libs=yes
8825 if test "$host_cpu" = ia64; then
8826 # AIX 5 supports IA64
8827 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8828 shlibpath_var=LD_LIBRARY_PATH
8829 else
8830 # With GCC up to 2.95.x, collect2 would create an import file
8831 # for dependence libraries. The import file would start with
8832 # the line `#! .'. This would cause the generated library to
8833 # depend on `.', always an invalid library. This was fixed in
8834 # development snapshots of GCC prior to 3.0.
8835 case $host_os in
8836 aix4 | aix4.[01] | aix4.[01].*)
8837 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8838 echo ' yes '
8839 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8840 :
8841 else
8842 can_build_shared=no
8843 fi
8844 ;;
8845 esac
8846 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8847 # soname into executable. Probably we can add versioning support to
8848 # collect2, so additional links can be useful in future.
8849 if test "$aix_use_runtimelinking" = yes; then
8850 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8851 # instead of lib<name>.a to let people know that these are not
8852 # typical AIX shared libraries.
8853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8854 else
8855 # We preserve .a as extension for shared libraries through AIX4.2
8856 # and later when we are not doing run time linking.
8857 library_names_spec='${libname}${release}.a $libname.a'
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 fi
8860 shlibpath_var=LIBPATH
8861 fi
8862 ;;
8863
8864amigaos*)
8865 library_names_spec='$libname.ixlibrary $libname.a'
8866 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8867 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'
8868 ;;
8869
8870beos*)
8871 library_names_spec='${libname}${shared_ext}'
8872 dynamic_linker="$host_os ld.so"
8873 shlibpath_var=LIBRARY_PATH
8874 ;;
8875
8876bsdi[45]*)
8877 version_type=linux
8878 need_version=no
8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8880 soname_spec='${libname}${release}${shared_ext}$major'
8881 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8882 shlibpath_var=LD_LIBRARY_PATH
8883 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8884 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8885 # the default ld.so.conf also contains /usr/contrib/lib and
8886 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8887 # libtool to hard-code these into programs
8888 ;;
8889
8890cygwin* | mingw* | pw32*)
8891 version_type=windows
8892 shrext_cmds=".dll"
8893 need_version=no
8894 need_lib_prefix=no
8895
8896 case $GCC,$host_os in
8897 yes,cygwin* | yes,mingw* | yes,pw32*)
8898 library_names_spec='$libname.dll.a'
8899 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8900 postinstall_cmds='base_file=`basename \${file}`~
8901 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8902 dldir=$destdir/`dirname \$dlpath`~
8903 test -d \$dldir || mkdir -p \$dldir~
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008904 $install_prog $dir/$dlname \$dldir/$dlname~
8905 chmod a+x \$dldir/$dlname'
Reid Spencera40c6872004-11-29 12:29:58 +00008906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8907 dlpath=$dir/\$dldll~
8908 $rm \$dlpath'
8909 shlibpath_overrides_runpath=yes
8910
8911 case $host_os in
8912 cygwin*)
8913 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8914 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8915 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8916 ;;
8917 mingw*)
8918 # MinGW DLLs use traditional 'lib' prefix
8919 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8920 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8921 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8922 # It is most probably a Windows format PATH printed by
8923 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8924 # path with ; separators, and with drive letters. We can handle the
8925 # drive letters (cygwin fileutils understands them), so leave them,
8926 # especially as we might pass files found there to a mingw objdump,
8927 # which wouldn't understand a cygwinified path. Ahh.
8928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8929 else
8930 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8931 fi
8932 ;;
8933 pw32*)
8934 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008935 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencera40c6872004-11-29 12:29:58 +00008936 ;;
8937 esac
8938 ;;
8939
8940 *)
8941 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8942 ;;
8943 esac
8944 dynamic_linker='Win32 ld.exe'
8945 # FIXME: first we should search . and the directory the executable is in
8946 shlibpath_var=PATH
8947 ;;
8948
8949darwin* | rhapsody*)
8950 dynamic_linker="$host_os dyld"
8951 version_type=darwin
8952 need_lib_prefix=no
8953 need_version=no
8954 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8955 soname_spec='${libname}${release}${major}$shared_ext'
8956 shlibpath_overrides_runpath=yes
8957 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer28d3e722007-04-11 00:27:39 +00008958 shrext_cmds='.dylib'
Reid Spencera40c6872004-11-29 12:29:58 +00008959 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8960 if test "$GCC" = yes; then
8961 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"`
8962 else
8963 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8964 fi
8965 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8966 ;;
8967
8968dgux*)
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 shlibpath_var=LD_LIBRARY_PATH
8975 ;;
8976
Eric Christopher49709ad2011-10-26 00:42:12 +00008977freebsd1.*)
Reid Spencera40c6872004-11-29 12:29:58 +00008978 dynamic_linker=no
8979 ;;
8980
8981kfreebsd*-gnu)
8982 version_type=linux
8983 need_lib_prefix=no
8984 need_version=no
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 shlibpath_var=LD_LIBRARY_PATH
8988 shlibpath_overrides_runpath=no
8989 hardcode_into_libs=yes
8990 dynamic_linker='GNU ld.so'
8991 ;;
8992
Reid Spencer0b52e2f2006-08-04 18:18:08 +00008993freebsd* | dragonfly*)
8994 # DragonFly does not have aout. When/if they implement a new
8995 # versioning mechanism, adjust this.
8996 if test -x /usr/bin/objformat; then
8997 objformat=`/usr/bin/objformat`
8998 else
8999 case $host_os in
Eric Christopher49709ad2011-10-26 00:42:12 +00009000 freebsd[123].*) objformat=aout ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009001 *) objformat=elf ;;
9002 esac
9003 fi
Reid Spencera40c6872004-11-29 12:29:58 +00009004 version_type=freebsd-$objformat
9005 case $version_type in
9006 freebsd-elf*)
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9008 need_version=no
9009 need_lib_prefix=no
9010 ;;
9011 freebsd-*)
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9013 need_version=yes
9014 ;;
9015 esac
9016 shlibpath_var=LD_LIBRARY_PATH
9017 case $host_os in
Eric Christopher49709ad2011-10-26 00:42:12 +00009018 freebsd2.*)
Reid Spencera40c6872004-11-29 12:29:58 +00009019 shlibpath_overrides_runpath=yes
9020 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009021 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencera40c6872004-11-29 12:29:58 +00009022 shlibpath_overrides_runpath=yes
9023 hardcode_into_libs=yes
9024 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009025 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9026 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencera40c6872004-11-29 12:29:58 +00009027 shlibpath_overrides_runpath=no
9028 hardcode_into_libs=yes
9029 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009030 freebsd*) # from 4.6 on
9031 shlibpath_overrides_runpath=yes
9032 hardcode_into_libs=yes
9033 ;;
Reid Spencera40c6872004-11-29 12:29:58 +00009034 esac
9035 ;;
9036
9037gnu*)
9038 version_type=linux
9039 need_lib_prefix=no
9040 need_version=no
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 shlibpath_var=LD_LIBRARY_PATH
9044 hardcode_into_libs=yes
9045 ;;
9046
9047hpux9* | hpux10* | hpux11*)
9048 # Give a soname corresponding to the major version so that dld.sl refuses to
9049 # link against other versions.
9050 version_type=sunos
9051 need_lib_prefix=no
9052 need_version=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009053 case $host_cpu in
Reid Spencera40c6872004-11-29 12:29:58 +00009054 ia64*)
9055 shrext_cmds='.so'
9056 hardcode_into_libs=yes
9057 dynamic_linker="$host_os dld.so"
9058 shlibpath_var=LD_LIBRARY_PATH
9059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 if test "X$HPUX_IA64_MODE" = X32; then
9063 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9064 else
9065 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9066 fi
9067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9068 ;;
9069 hppa*64*)
9070 shrext_cmds='.sl'
9071 hardcode_into_libs=yes
9072 dynamic_linker="$host_os dld.sl"
9073 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9079 ;;
9080 *)
9081 shrext_cmds='.sl'
9082 dynamic_linker="$host_os dld.sl"
9083 shlibpath_var=SHLIB_PATH
9084 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9086 soname_spec='${libname}${release}${shared_ext}$major'
9087 ;;
9088 esac
9089 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9090 postinstall_cmds='chmod 555 $lib'
9091 ;;
9092
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009093interix3*)
9094 version_type=linux
9095 need_lib_prefix=no
9096 need_version=no
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 shlibpath_overrides_runpath=no
9102 hardcode_into_libs=yes
9103 ;;
9104
Reid Spencera40c6872004-11-29 12:29:58 +00009105irix5* | irix6* | nonstopux*)
9106 case $host_os in
9107 nonstopux*) version_type=nonstopux ;;
9108 *)
9109 if test "$lt_cv_prog_gnu_ld" = yes; then
9110 version_type=linux
9111 else
9112 version_type=irix
9113 fi ;;
9114 esac
9115 need_lib_prefix=no
9116 need_version=no
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9119 case $host_os in
9120 irix5* | nonstopux*)
9121 libsuff= shlibsuff=
9122 ;;
9123 *)
9124 case $LD in # libtool.m4 will add one of these switches to LD
9125 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9126 libsuff= shlibsuff= libmagic=32-bit;;
9127 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9128 libsuff=32 shlibsuff=N32 libmagic=N32;;
9129 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9130 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9131 *) libsuff= shlibsuff= libmagic=never-match;;
9132 esac
9133 ;;
9134 esac
9135 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9136 shlibpath_overrides_runpath=no
9137 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9138 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9139 hardcode_into_libs=yes
9140 ;;
9141
9142# No shared lib support for Linux oldld, aout, or coff.
9143linux*oldld* | linux*aout* | linux*coff*)
9144 dynamic_linker=no
9145 ;;
9146
9147# This must be Linux ELF.
9148linux*)
9149 version_type=linux
9150 need_lib_prefix=no
9151 need_version=no
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9155 shlibpath_var=LD_LIBRARY_PATH
9156 shlibpath_overrides_runpath=no
9157 # This implies no fast_install, which is unacceptable.
9158 # Some rework will be needed to allow for fast_install
9159 # before this can be enabled.
9160 hardcode_into_libs=yes
9161
9162 # Append ld.so.conf contents to the search path
9163 if test -f /etc/ld.so.conf; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009164 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 Spencera40c6872004-11-29 12:29:58 +00009165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9166 fi
9167
9168 # We used to test for /lib/ld.so.1 and disable shared libraries on
9169 # powerpc, because MkLinux only supported shared libraries with the
9170 # GNU dynamic linker. Since this was broken with cross compilers,
9171 # most powerpc-linux boxes support dynamic linking these days and
9172 # people can always --disable-shared, the test was removed, and we
9173 # assume the GNU/Linux dynamic linker is in use.
9174 dynamic_linker='GNU/Linux ld.so'
9175 ;;
9176
9177knetbsd*-gnu)
9178 version_type=linux
9179 need_lib_prefix=no
9180 need_version=no
9181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9182 soname_spec='${libname}${release}${shared_ext}$major'
9183 shlibpath_var=LD_LIBRARY_PATH
9184 shlibpath_overrides_runpath=no
9185 hardcode_into_libs=yes
9186 dynamic_linker='GNU ld.so'
9187 ;;
9188
9189netbsd*)
9190 version_type=sunos
9191 need_lib_prefix=no
9192 need_version=no
9193 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9196 dynamic_linker='NetBSD (a.out) ld.so'
9197 else
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9199 soname_spec='${libname}${release}${shared_ext}$major'
9200 dynamic_linker='NetBSD ld.elf_so'
9201 fi
9202 shlibpath_var=LD_LIBRARY_PATH
9203 shlibpath_overrides_runpath=yes
9204 hardcode_into_libs=yes
9205 ;;
9206
9207newsos6)
9208 version_type=linux
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 shlibpath_overrides_runpath=yes
9212 ;;
9213
9214nto-qnx*)
9215 version_type=linux
9216 need_lib_prefix=no
9217 need_version=no
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219 soname_spec='${libname}${release}${shared_ext}$major'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 shlibpath_overrides_runpath=yes
9222 ;;
9223
Eric Christopher22738d02012-08-06 20:52:18 +00009224openbsd* | bitrig*)
Reid Spencera40c6872004-11-29 12:29:58 +00009225 version_type=sunos
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009226 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencera40c6872004-11-29 12:29:58 +00009227 need_lib_prefix=no
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009228 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9229 case $host_os in
9230 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9231 *) need_version=no ;;
9232 esac
Reid Spencera40c6872004-11-29 12:29:58 +00009233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9235 shlibpath_var=LD_LIBRARY_PATH
9236 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9237 case $host_os in
9238 openbsd2.[89] | openbsd2.[89].*)
9239 shlibpath_overrides_runpath=no
9240 ;;
9241 *)
9242 shlibpath_overrides_runpath=yes
9243 ;;
9244 esac
9245 else
9246 shlibpath_overrides_runpath=yes
9247 fi
9248 ;;
9249
9250os2*)
9251 libname_spec='$name'
9252 shrext_cmds=".dll"
9253 need_lib_prefix=no
9254 library_names_spec='$libname${shared_ext} $libname.a'
9255 dynamic_linker='OS/2 ld.exe'
9256 shlibpath_var=LIBPATH
9257 ;;
9258
9259osf3* | osf4* | osf5*)
9260 version_type=osf
9261 need_lib_prefix=no
9262 need_version=no
9263 soname_spec='${libname}${release}${shared_ext}$major'
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265 shlibpath_var=LD_LIBRARY_PATH
9266 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9267 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9268 ;;
9269
Reid Spencera40c6872004-11-29 12:29:58 +00009270solaris*)
9271 version_type=linux
9272 need_lib_prefix=no
9273 need_version=no
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 shlibpath_overrides_runpath=yes
9278 hardcode_into_libs=yes
9279 # ldd complains unless libraries are executable
9280 postinstall_cmds='chmod +x $lib'
9281 ;;
9282
9283sunos4*)
9284 version_type=sunos
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9286 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 shlibpath_overrides_runpath=yes
9289 if test "$with_gnu_ld" = yes; then
9290 need_lib_prefix=no
9291 fi
9292 need_version=yes
9293 ;;
9294
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009295sysv4 | sysv4.3*)
Reid Spencera40c6872004-11-29 12:29:58 +00009296 version_type=linux
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9298 soname_spec='${libname}${release}${shared_ext}$major'
9299 shlibpath_var=LD_LIBRARY_PATH
9300 case $host_vendor in
9301 sni)
9302 shlibpath_overrides_runpath=no
9303 need_lib_prefix=no
9304 export_dynamic_flag_spec='${wl}-Blargedynsym'
9305 runpath_var=LD_RUN_PATH
9306 ;;
9307 siemens)
9308 need_lib_prefix=no
9309 ;;
9310 motorola)
9311 need_lib_prefix=no
9312 need_version=no
9313 shlibpath_overrides_runpath=no
9314 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9315 ;;
9316 esac
9317 ;;
9318
9319sysv4*MP*)
9320 if test -d /usr/nec ;then
9321 version_type=linux
9322 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9323 soname_spec='$libname${shared_ext}.$major'
9324 shlibpath_var=LD_LIBRARY_PATH
9325 fi
9326 ;;
9327
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009328sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9329 version_type=freebsd-elf
9330 need_lib_prefix=no
9331 need_version=no
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9333 soname_spec='${libname}${release}${shared_ext}$major'
9334 shlibpath_var=LD_LIBRARY_PATH
9335 hardcode_into_libs=yes
9336 if test "$with_gnu_ld" = yes; then
9337 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9338 shlibpath_overrides_runpath=no
9339 else
9340 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9341 shlibpath_overrides_runpath=yes
9342 case $host_os in
9343 sco3.2v5*)
9344 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9345 ;;
9346 esac
9347 fi
9348 sys_lib_dlsearch_path_spec='/usr/lib'
9349 ;;
9350
Reid Spencera40c6872004-11-29 12:29:58 +00009351uts4*)
9352 version_type=linux
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9354 soname_spec='${libname}${release}${shared_ext}$major'
9355 shlibpath_var=LD_LIBRARY_PATH
9356 ;;
9357
9358*)
9359 dynamic_linker=no
9360 ;;
9361esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009362{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9363echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009364test "$dynamic_linker" = no && can_build_shared=no
9365
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009366variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9367if test "$GCC" = yes; then
9368 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9369fi
Reid Spencera40c6872004-11-29 12:29:58 +00009370
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009371
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009372{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9373echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9374if test "${libltdl_cv_shlibext+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009376else
9377
9378module=yes
9379eval libltdl_cv_shlibext=$shrext_cmds
9380
9381fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009382{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9383echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009384if test -n "$libltdl_cv_shlibext"; then
9385
9386cat >>confdefs.h <<_ACEOF
9387#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9388_ACEOF
9389
9390fi
9391
9392
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009393{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9394echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9395if test "${libltdl_cv_shlibpath_var+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009397else
9398 libltdl_cv_shlibpath_var="$shlibpath_var"
9399fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009400{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9401echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009402if test -n "$libltdl_cv_shlibpath_var"; then
9403
9404cat >>confdefs.h <<_ACEOF
9405#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9406_ACEOF
9407
9408fi
9409
9410
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009411{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9412echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9413if test "${libltdl_cv_sys_search_path+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009415else
9416 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9417fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009418{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9419echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009420if test -n "$libltdl_cv_sys_search_path"; then
9421 sys_search_path=
9422 for dir in $libltdl_cv_sys_search_path; do
9423 if test -z "$sys_search_path"; then
9424 sys_search_path="$dir"
9425 else
9426 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9427 fi
9428 done
9429
9430cat >>confdefs.h <<_ACEOF
9431#define LTDL_SYSSEARCHPATH "$sys_search_path"
9432_ACEOF
9433
9434fi
9435
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009436{ echo "$as_me:$LINENO: checking for objdir" >&5
9437echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9438if test "${libltdl_cv_objdir+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009440else
9441 libltdl_cv_objdir="$objdir"
9442 if test -n "$objdir"; then
9443 :
9444 else
9445 rm -f .libs 2>/dev/null
9446 mkdir .libs 2>/dev/null
9447 if test -d .libs; then
9448 libltdl_cv_objdir=.libs
9449 else
9450 # MS-DOS does not allow filenames that begin with a dot.
9451 libltdl_cv_objdir=_libs
9452 fi
9453 rmdir .libs 2>/dev/null
9454 fi
9455
9456fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009457{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9458echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009459
9460cat >>confdefs.h <<_ACEOF
9461#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9462_ACEOF
9463
9464
Reid Spencera40c6872004-11-29 12:29:58 +00009465
9466
9467
9468
9469# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009470{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9471echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9472if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009474else
9475
9476# These are sane defaults that work on at least a few old systems.
9477# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9478
9479# Character class describing NM global symbol codes.
9480symcode='[BCDEGRST]'
9481
9482# Regexp to match symbols that can be accessed directly from C.
9483sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9484
Reid Spencera40c6872004-11-29 12:29:58 +00009485# Transform an extracted symbol line into a proper C declaration
9486lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9487
9488# Transform an extracted symbol line into symbol name and symbol address
9489lt_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'"
9490
9491# Define system-specific variables.
9492case $host_os in
9493aix*)
9494 symcode='[BCDT]'
9495 ;;
9496cygwin* | mingw* | pw32*)
9497 symcode='[ABCDGISTW]'
9498 ;;
9499hpux*) # Its linker distinguishes data from code symbols
9500 if test "$host_cpu" = ia64; then
9501 symcode='[ABCDEGRST]'
9502 fi
9503 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9504 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'"
9505 ;;
9506linux*)
9507 if test "$host_cpu" = ia64; then
9508 symcode='[ABCDGIRSTW]'
9509 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9510 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'"
9511 fi
9512 ;;
9513irix* | nonstopux*)
9514 symcode='[BCDEGRST]'
9515 ;;
9516osf*)
9517 symcode='[BCDEGQRST]'
9518 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009519solaris*)
Reid Spencera40c6872004-11-29 12:29:58 +00009520 symcode='[BDRT]'
9521 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009522sco3.2v5*)
9523 symcode='[DT]'
9524 ;;
9525sysv4.2uw2*)
9526 symcode='[DT]'
9527 ;;
9528sysv5* | sco5v6* | unixware* | OpenUNIX*)
9529 symcode='[ABDT]'
9530 ;;
Reid Spencera40c6872004-11-29 12:29:58 +00009531sysv4)
9532 symcode='[DFNSTU]'
9533 ;;
9534esac
9535
9536# Handle CRLF in mingw tool chain
9537opt_cr=
9538case $build_os in
9539mingw*)
9540 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9541 ;;
9542esac
9543
9544# If we're using GNU nm, then use its standard symbol codes.
9545case `$NM -V 2>&1` in
9546*GNU* | *'with BFD'*)
9547 symcode='[ABCDGIRSTW]' ;;
9548esac
9549
9550# Try without a prefix undercore, then with it.
9551for ac_symprfx in "" "_"; do
9552
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009553 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9554 symxfrm="\\1 $ac_symprfx\\2 \\2"
9555
Reid Spencera40c6872004-11-29 12:29:58 +00009556 # Write the raw and C identifiers.
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009557 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Reid Spencera40c6872004-11-29 12:29:58 +00009558
9559 # Check to see that the pipe works correctly.
9560 pipe_works=no
9561
9562 rm -f conftest*
9563 cat > conftest.$ac_ext <<EOF
9564#ifdef __cplusplus
9565extern "C" {
9566#endif
9567char nm_test_var;
9568void nm_test_func(){}
9569#ifdef __cplusplus
9570}
9571#endif
9572int main(){nm_test_var='a';nm_test_func();return(0);}
9573EOF
9574
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +00009576 (eval $ac_compile) 2>&5
9577 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; then
Reid Spencera40c6872004-11-29 12:29:58 +00009580 # Now try to grab the symbols.
9581 nlist=conftest.nm
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009582 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +00009583 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9584 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencera40c6872004-11-29 12:29:58 +00009587 # Try sorting and uniquifying the output.
9588 if sort "$nlist" | uniq > "$nlist"T; then
9589 mv -f "$nlist"T "$nlist"
9590 else
9591 rm -f "$nlist"T
9592 fi
9593
9594 # Make sure that we snagged all the symbols we need.
9595 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9596 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9597 cat <<EOF > conftest.$ac_ext
9598#ifdef __cplusplus
9599extern "C" {
9600#endif
9601
9602EOF
9603 # Now generate the symbol file.
9604 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9605
9606 cat <<EOF >> conftest.$ac_ext
9607#if defined (__STDC__) && __STDC__
9608# define lt_ptr_t void *
9609#else
9610# define lt_ptr_t char *
9611# define const
9612#endif
9613
9614/* The mapping between symbol names and symbols. */
9615const struct {
9616 const char *name;
9617 lt_ptr_t address;
9618}
9619lt_preloaded_symbols[] =
9620{
9621EOF
9622 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9623 cat <<\EOF >> conftest.$ac_ext
9624 {0, (lt_ptr_t) 0}
9625};
9626
9627#ifdef __cplusplus
9628}
9629#endif
9630EOF
9631 # Now try linking the two files.
9632 mv conftest.$ac_objext conftstm.$ac_objext
9633 lt_save_LIBS="$LIBS"
9634 lt_save_CFLAGS="$CFLAGS"
9635 LIBS="conftstm.$ac_objext"
9636 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +00009638 (eval $ac_link) 2>&5
9639 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencera40c6872004-11-29 12:29:58 +00009642 pipe_works=yes
9643 fi
9644 LIBS="$lt_save_LIBS"
9645 CFLAGS="$lt_save_CFLAGS"
9646 else
9647 echo "cannot find nm_test_func in $nlist" >&5
9648 fi
9649 else
9650 echo "cannot find nm_test_var in $nlist" >&5
9651 fi
9652 else
9653 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9654 fi
9655 else
9656 echo "$progname: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9658 fi
9659 rm -f conftest* conftst*
9660
9661 # Do not use the global_symbol_pipe unless it works.
9662 if test "$pipe_works" = yes; then
9663 break
9664 else
9665 lt_cv_sys_global_symbol_pipe=
9666 fi
9667done
9668
9669fi
9670
9671if test -z "$lt_cv_sys_global_symbol_pipe"; then
9672 lt_cv_sys_global_symbol_to_cdecl=
9673fi
9674if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009675 { echo "$as_me:$LINENO: result: failed" >&5
9676echo "${ECHO_T}failed" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009677else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009678 { echo "$as_me:$LINENO: result: ok" >&5
9679echo "${ECHO_T}ok" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009680fi
9681
9682
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009683{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9684echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9685if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009687else
9688 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9689 libltdl_cv_preloaded_symbols=yes
9690 else
9691 libltdl_cv_preloaded_symbols=no
9692 fi
9693
9694fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009695{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9696echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +00009697if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9698
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009699cat >>confdefs.h <<\_ACEOF
9700#define HAVE_PRELOADED_SYMBOLS 1
9701_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009702
9703fi
9704
9705LIBADD_DL=
9706
9707ac_ext=c
9708ac_cpp='$CPP $CPPFLAGS'
9709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9711ac_compiler_gnu=$ac_cv_c_compiler_gnu
9712
9713
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009714{ echo "$as_me:$LINENO: checking for shl_load" >&5
9715echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9716if test "${ac_cv_func_shl_load+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9718else
9719 cat >conftest.$ac_ext <<_ACEOF
9720/* confdefs.h. */
9721_ACEOF
9722cat confdefs.h >>conftest.$ac_ext
9723cat >>conftest.$ac_ext <<_ACEOF
9724/* end confdefs.h. */
9725/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9727#define shl_load innocuous_shl_load
Reid Spencera40c6872004-11-29 12:29:58 +00009728
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009729/* System header to define __stub macros and hopefully few prototypes,
9730 which can conflict with char shl_load (); below.
9731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9732 <limits.h> exists even on freestanding compilers. */
9733
9734#ifdef __STDC__
9735# include <limits.h>
9736#else
9737# include <assert.h>
9738#endif
9739
9740#undef shl_load
9741
9742/* Override any GCC internal prototype to avoid an error.
9743 Use char because int might match the return type of a GCC
9744 builtin and then its argument prototype would still apply. */
9745#ifdef __cplusplus
9746extern "C"
9747#endif
9748char shl_load ();
9749/* The GNU C library defines this for functions which it implements
9750 to always fail with ENOSYS. Some functions are actually named
9751 something starting with __ and the normal name is an alias. */
9752#if defined __stub_shl_load || defined __stub___shl_load
9753choke me
9754#endif
9755
9756int
9757main ()
9758{
9759return shl_load ();
9760 ;
9761 return 0;
9762}
9763_ACEOF
9764rm -f conftest.$ac_objext conftest$ac_exeext
9765if { (ac_try="$ac_link"
9766case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9769esac
9770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_link") 2>conftest.er1
9772 ac_status=$?
9773 grep -v '^ *+' conftest.er1 >conftest.err
9774 rm -f conftest.er1
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9779 { (case "(($ac_try" in
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9782esac
9783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_try") 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest$ac_exeext'
9789 { (case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9792esac
9793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_try") 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 ac_cv_func_shl_load=yes
9799else
9800 echo "$as_me: failed program was:" >&5
9801sed 's/^/| /' conftest.$ac_ext >&5
9802
9803 ac_cv_func_shl_load=no
9804fi
9805
9806rm -f core conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
9808fi
9809{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9810echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9811if test $ac_cv_func_shl_load = yes; then
9812
9813cat >>confdefs.h <<\_ACEOF
9814#define HAVE_SHL_LOAD 1
9815_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009816
9817else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009818 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9819echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9820if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009822else
9823 ac_check_lib_save_LIBS=$LIBS
9824LIBS="-ldld $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009825cat >conftest.$ac_ext <<_ACEOF
9826/* confdefs.h. */
9827_ACEOF
9828cat confdefs.h >>conftest.$ac_ext
9829cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009830/* end confdefs.h. */
9831
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009832/* Override any GCC internal prototype to avoid an error.
9833 Use char because int might match the return type of a GCC
9834 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +00009835#ifdef __cplusplus
9836extern "C"
9837#endif
Reid Spencera40c6872004-11-29 12:29:58 +00009838char shl_load ();
9839int
9840main ()
9841{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009842return shl_load ();
Reid Spencera40c6872004-11-29 12:29:58 +00009843 ;
9844 return 0;
9845}
9846_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009847rm -f conftest.$ac_objext conftest$ac_exeext
9848if { (ac_try="$ac_link"
9849case "(($ac_try" in
9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851 *) ac_try_echo=$ac_try;;
9852esac
9853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9854 (eval "$ac_link") 2>conftest.er1
9855 ac_status=$?
9856 grep -v '^ *+' conftest.er1 >conftest.err
9857 rm -f conftest.er1
9858 cat conftest.err >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } &&
9861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9862 { (case "(($ac_try" in
9863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864 *) ac_try_echo=$ac_try;;
9865esac
9866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867 (eval "$ac_try") 2>&5
9868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try='test -s conftest$ac_exeext'
9872 { (case "(($ac_try" in
9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9875esac
9876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 (eval "$ac_try") 2>&5
9878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +00009881 ac_cv_lib_dld_shl_load=yes
9882else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009883 echo "$as_me: failed program was:" >&5
9884sed 's/^/| /' conftest.$ac_ext >&5
9885
9886 ac_cv_lib_dld_shl_load=no
Reid Spencera40c6872004-11-29 12:29:58 +00009887fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009888
Bill Wendling02b47d92009-04-18 11:20:33 +00009889rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009890 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +00009891LIBS=$ac_check_lib_save_LIBS
9892fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009893{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9894echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9895if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +00009896
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009897cat >>confdefs.h <<\_ACEOF
9898#define HAVE_SHL_LOAD 1
9899_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009900
9901 LIBADD_DL="$LIBADD_DL -ldld"
9902else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009903 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9904echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9905if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +00009907else
9908 ac_check_lib_save_LIBS=$LIBS
9909LIBS="-ldl $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009910cat >conftest.$ac_ext <<_ACEOF
9911/* confdefs.h. */
9912_ACEOF
9913cat confdefs.h >>conftest.$ac_ext
9914cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009915/* end confdefs.h. */
9916
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009917/* Override any GCC internal prototype to avoid an error.
9918 Use char because int might match the return type of a GCC
9919 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +00009920#ifdef __cplusplus
9921extern "C"
9922#endif
Reid Spencera40c6872004-11-29 12:29:58 +00009923char dlopen ();
9924int
9925main ()
9926{
Reid Spencer0b52e2f2006-08-04 18:18:08 +00009927return dlopen ();
Reid Spencera40c6872004-11-29 12:29:58 +00009928 ;
9929 return 0;
9930}
9931_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009932rm -f conftest.$ac_objext conftest$ac_exeext
9933if { (ac_try="$ac_link"
9934case "(($ac_try" in
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9937esac
9938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_link") 2>conftest.er1
9940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9947 { (case "(($ac_try" in
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9950esac
9951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_try") 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960esac
9961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_try") 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +00009966 ac_cv_lib_dl_dlopen=yes
9967else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009968 echo "$as_me: failed program was:" >&5
9969sed 's/^/| /' conftest.$ac_ext >&5
9970
9971 ac_cv_lib_dl_dlopen=no
Reid Spencera40c6872004-11-29 12:29:58 +00009972fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009973
Bill Wendling02b47d92009-04-18 11:20:33 +00009974rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009975 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +00009976LIBS=$ac_check_lib_save_LIBS
9977fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009978{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9979echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9980if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +00009981
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009982cat >>confdefs.h <<\_ACEOF
9983#define HAVE_LIBDL 1
9984_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009985
9986 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9987else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +00009988 cat >conftest.$ac_ext <<_ACEOF
9989/* confdefs.h. */
9990_ACEOF
9991cat confdefs.h >>conftest.$ac_ext
9992cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +00009993/* end confdefs.h. */
9994#if HAVE_DLFCN_H
9995# include <dlfcn.h>
9996#endif
9997
9998int
9999main ()
10000{
10001dlopen(0, 0);
10002 ;
10003 return 0;
10004}
10005_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010006rm -f conftest.$ac_objext conftest$ac_exeext
10007if { (ac_try="$ac_link"
10008case "(($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_link") 2>conftest.er1
10014 ac_status=$?
10015 grep -v '^ *+' conftest.er1 >conftest.err
10016 rm -f conftest.er1
10017 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } &&
10020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10021 { (case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10024esac
10025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_try") 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10034esac
10035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_try") 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010040
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010041cat >>confdefs.h <<\_ACEOF
10042#define HAVE_LIBDL 1
10043_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010044 libltdl_cv_func_dlopen="yes"
10045else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010046 echo "$as_me: failed program was:" >&5
10047sed 's/^/| /' conftest.$ac_ext >&5
10048
10049 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10050echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10051if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010053else
10054 ac_check_lib_save_LIBS=$LIBS
10055LIBS="-lsvld $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010056cat >conftest.$ac_ext <<_ACEOF
10057/* confdefs.h. */
10058_ACEOF
10059cat confdefs.h >>conftest.$ac_ext
10060cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010061/* end confdefs.h. */
10062
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010063/* Override any GCC internal prototype to avoid an error.
10064 Use char because int might match the return type of a GCC
10065 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +000010066#ifdef __cplusplus
10067extern "C"
10068#endif
Reid Spencera40c6872004-11-29 12:29:58 +000010069char dlopen ();
10070int
10071main ()
10072{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010073return dlopen ();
Reid Spencera40c6872004-11-29 12:29:58 +000010074 ;
10075 return 0;
10076}
10077_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010078rm -f conftest.$ac_objext conftest$ac_exeext
10079if { (ac_try="$ac_link"
10080case "(($ac_try" in
10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10083esac
10084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085 (eval "$ac_link") 2>conftest.er1
10086 ac_status=$?
10087 grep -v '^ *+' conftest.er1 >conftest.err
10088 rm -f conftest.er1
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10093 { (case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10096esac
10097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098 (eval "$ac_try") 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest$ac_exeext'
10103 { (case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10106esac
10107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108 (eval "$ac_try") 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010112 ac_cv_lib_svld_dlopen=yes
10113else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010114 echo "$as_me: failed program was:" >&5
10115sed 's/^/| /' conftest.$ac_ext >&5
10116
10117 ac_cv_lib_svld_dlopen=no
Reid Spencera40c6872004-11-29 12:29:58 +000010118fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010119
Bill Wendling02b47d92009-04-18 11:20:33 +000010120rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010121 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +000010122LIBS=$ac_check_lib_save_LIBS
10123fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010124{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10125echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10126if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010127
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010128cat >>confdefs.h <<\_ACEOF
10129#define HAVE_LIBDL 1
10130_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010131
10132 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10133else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010134 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10135echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10136if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010138else
10139 ac_check_lib_save_LIBS=$LIBS
10140LIBS="-ldld $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010141cat >conftest.$ac_ext <<_ACEOF
10142/* confdefs.h. */
10143_ACEOF
10144cat confdefs.h >>conftest.$ac_ext
10145cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010146/* end confdefs.h. */
10147
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010148/* Override any GCC internal prototype to avoid an error.
10149 Use char because int might match the return type of a GCC
10150 builtin and then its argument prototype would still apply. */
Reid Spencera40c6872004-11-29 12:29:58 +000010151#ifdef __cplusplus
10152extern "C"
10153#endif
Reid Spencera40c6872004-11-29 12:29:58 +000010154char dld_link ();
10155int
10156main ()
10157{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010158return dld_link ();
Reid Spencera40c6872004-11-29 12:29:58 +000010159 ;
10160 return 0;
10161}
10162_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010163rm -f conftest.$ac_objext conftest$ac_exeext
10164if { (ac_try="$ac_link"
10165case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10168esac
10169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_link") 2>conftest.er1
10171 ac_status=$?
10172 grep -v '^ *+' conftest.er1 >conftest.err
10173 rm -f conftest.er1
10174 cat conftest.err >&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } &&
10177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10178 { (case "(($ac_try" in
10179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180 *) ac_try_echo=$ac_try;;
10181esac
10182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183 (eval "$ac_try") 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; } &&
10187 { ac_try='test -s conftest$ac_exeext'
10188 { (case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10191esac
10192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_try") 2>&5
10194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010197 ac_cv_lib_dld_dld_link=yes
10198else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010199 echo "$as_me: failed program was:" >&5
10200sed 's/^/| /' conftest.$ac_ext >&5
10201
10202 ac_cv_lib_dld_dld_link=no
Reid Spencera40c6872004-11-29 12:29:58 +000010203fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010204
Bill Wendling02b47d92009-04-18 11:20:33 +000010205rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010206 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +000010207LIBS=$ac_check_lib_save_LIBS
10208fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010209{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10210echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10211if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010212
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010213cat >>confdefs.h <<\_ACEOF
10214#define HAVE_DLD 1
10215_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010216
10217 LIBADD_DL="$LIBADD_DL -ldld"
10218else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010219 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10220echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10221if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223else
10224 cat >conftest.$ac_ext <<_ACEOF
10225/* confdefs.h. */
10226_ACEOF
10227cat confdefs.h >>conftest.$ac_ext
10228cat >>conftest.$ac_ext <<_ACEOF
10229/* end confdefs.h. */
10230/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10232#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencera40c6872004-11-29 12:29:58 +000010233
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010234/* System header to define __stub macros and hopefully few prototypes,
10235 which can conflict with char _dyld_func_lookup (); below.
10236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10237 <limits.h> exists even on freestanding compilers. */
Reid Spencera40c6872004-11-29 12:29:58 +000010238
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010239#ifdef __STDC__
10240# include <limits.h>
10241#else
10242# include <assert.h>
10243#endif
10244
10245#undef _dyld_func_lookup
10246
10247/* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
10250#ifdef __cplusplus
10251extern "C"
10252#endif
10253char _dyld_func_lookup ();
10254/* The GNU C library defines this for functions which it implements
10255 to always fail with ENOSYS. Some functions are actually named
10256 something starting with __ and the normal name is an alias. */
10257#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10258choke me
10259#endif
10260
10261int
10262main ()
10263{
10264return _dyld_func_lookup ();
10265 ;
10266 return 0;
10267}
10268_ACEOF
10269rm -f conftest.$ac_objext conftest$ac_exeext
10270if { (ac_try="$ac_link"
10271case "(($ac_try" in
10272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273 *) ac_try_echo=$ac_try;;
10274esac
10275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276 (eval "$ac_link") 2>conftest.er1
10277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284 { (case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10287esac
10288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_try") 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; } &&
10293 { ac_try='test -s conftest$ac_exeext'
10294 { (case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10297esac
10298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_try") 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_func__dyld_func_lookup=yes
10304else
10305 echo "$as_me: failed program was:" >&5
10306sed 's/^/| /' conftest.$ac_ext >&5
10307
10308 ac_cv_func__dyld_func_lookup=no
Reid Spencera40c6872004-11-29 12:29:58 +000010309fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010310
Bill Wendling02b47d92009-04-18 11:20:33 +000010311rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010312 conftest$ac_exeext conftest.$ac_ext
10313fi
10314{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10315echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10316if test $ac_cv_func__dyld_func_lookup = yes; then
10317
10318cat >>confdefs.h <<\_ACEOF
10319#define HAVE_DYLD 1
10320_ACEOF
10321
10322fi
10323
10324
10325fi
10326
10327
10328fi
10329
10330
10331fi
10332
10333rm -f core conftest.err conftest.$ac_objext \
10334 conftest$ac_exeext conftest.$ac_ext
Reid Spencera40c6872004-11-29 12:29:58 +000010335
10336fi
10337
10338
10339fi
10340
10341
10342fi
10343
10344
10345if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10346then
10347 lt_save_LIBS="$LIBS"
10348 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010349
10350for ac_func in dlerror
10351do
10352as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10353{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10354echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10355if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10356 echo $ECHO_N "(cached) $ECHO_C" >&6
10357else
10358 cat >conftest.$ac_ext <<_ACEOF
10359/* confdefs.h. */
10360_ACEOF
10361cat confdefs.h >>conftest.$ac_ext
10362cat >>conftest.$ac_ext <<_ACEOF
10363/* end confdefs.h. */
10364/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10366#define $ac_func innocuous_$ac_func
10367
10368/* System header to define __stub macros and hopefully few prototypes,
10369 which can conflict with char $ac_func (); below.
10370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10371 <limits.h> exists even on freestanding compilers. */
10372
10373#ifdef __STDC__
10374# include <limits.h>
10375#else
10376# include <assert.h>
10377#endif
10378
10379#undef $ac_func
10380
10381/* Override any GCC internal prototype to avoid an error.
10382 Use char because int might match the return type of a GCC
10383 builtin and then its argument prototype would still apply. */
10384#ifdef __cplusplus
10385extern "C"
10386#endif
10387char $ac_func ();
10388/* The GNU C library defines this for functions which it implements
10389 to always fail with ENOSYS. Some functions are actually named
10390 something starting with __ and the normal name is an alias. */
10391#if defined __stub_$ac_func || defined __stub___$ac_func
10392choke me
10393#endif
10394
10395int
10396main ()
10397{
10398return $ac_func ();
10399 ;
10400 return 0;
10401}
10402_ACEOF
10403rm -f conftest.$ac_objext conftest$ac_exeext
10404if { (ac_try="$ac_link"
10405case "(($ac_try" in
10406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10407 *) ac_try_echo=$ac_try;;
10408esac
10409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410 (eval "$ac_link") 2>conftest.er1
10411 ac_status=$?
10412 grep -v '^ *+' conftest.er1 >conftest.err
10413 rm -f conftest.er1
10414 cat conftest.err >&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } &&
10417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10418 { (case "(($ac_try" in
10419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420 *) ac_try_echo=$ac_try;;
10421esac
10422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423 (eval "$ac_try") 2>&5
10424 ac_status=$?
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; } &&
10427 { ac_try='test -s conftest$ac_exeext'
10428 { (case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10431esac
10432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_try") 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; }; then
10437 eval "$as_ac_var=yes"
10438else
10439 echo "$as_me: failed program was:" >&5
10440sed 's/^/| /' conftest.$ac_ext >&5
10441
10442 eval "$as_ac_var=no"
10443fi
10444
10445rm -f core conftest.err conftest.$ac_objext \
10446 conftest$ac_exeext conftest.$ac_ext
10447fi
10448ac_res=`eval echo '${'$as_ac_var'}'`
10449 { echo "$as_me:$LINENO: result: $ac_res" >&5
10450echo "${ECHO_T}$ac_res" >&6; }
10451if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010452 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010453#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000010454_ACEOF
10455
10456fi
10457done
10458
10459 LIBS="$lt_save_LIBS"
10460fi
10461ac_ext=c
10462ac_cpp='$CPP $CPPFLAGS'
10463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10465ac_compiler_gnu=$ac_cv_c_compiler_gnu
10466
10467
10468
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010469{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10470echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10471if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010473else
10474 ac_cv_sys_symbol_underscore=no
10475 cat > conftest.$ac_ext <<EOF
10476void nm_test_func(){}
10477int main(){nm_test_func;return 0;}
10478EOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +000010480 (eval $ac_compile) 2>&5
10481 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; then
Reid Spencera40c6872004-11-29 12:29:58 +000010484 # Now try to grab the symbols.
10485 ac_nlist=conftest.nm
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010486 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +000010487 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10488 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencera40c6872004-11-29 12:29:58 +000010491 # See whether the symbols have a leading underscore.
10492 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10493 ac_cv_sys_symbol_underscore=yes
10494 else
10495 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10496 :
10497 else
10498 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10499 fi
10500 fi
10501 else
10502 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10503 fi
10504 else
10505 echo "configure: failed program was:" >&5
10506 cat conftest.c >&5
10507 fi
10508 rm -rf conftest*
10509
10510fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010511{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10512echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +000010513
10514
10515if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10516 if test x"$libltdl_cv_func_dlopen" = xyes ||
10517 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010518 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10519echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10520if test "${libltdl_cv_need_uscore+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010522else
10523 libltdl_cv_need_uscore=unknown
10524 save_LIBS="$LIBS"
10525 LIBS="$LIBS $LIBADD_DL"
10526 if test "$cross_compiling" = yes; then :
10527 libltdl_cv_need_uscore=cross
10528else
10529 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10530 lt_status=$lt_dlunknown
10531 cat > conftest.$ac_ext <<EOF
Benjamin Kramer00622f72013-05-03 15:55:06 +000010532#line 10532 "configure"
Reid Spencera40c6872004-11-29 12:29:58 +000010533#include "confdefs.h"
10534
10535#if HAVE_DLFCN_H
10536#include <dlfcn.h>
10537#endif
10538
10539#include <stdio.h>
10540
10541#ifdef RTLD_GLOBAL
10542# define LT_DLGLOBAL RTLD_GLOBAL
10543#else
10544# ifdef DL_GLOBAL
10545# define LT_DLGLOBAL DL_GLOBAL
10546# else
10547# define LT_DLGLOBAL 0
10548# endif
10549#endif
10550
10551/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10552 find out it does not work in some platform. */
10553#ifndef LT_DLLAZY_OR_NOW
10554# ifdef RTLD_LAZY
10555# define LT_DLLAZY_OR_NOW RTLD_LAZY
10556# else
10557# ifdef DL_LAZY
10558# define LT_DLLAZY_OR_NOW DL_LAZY
10559# else
10560# ifdef RTLD_NOW
10561# define LT_DLLAZY_OR_NOW RTLD_NOW
10562# else
10563# ifdef DL_NOW
10564# define LT_DLLAZY_OR_NOW DL_NOW
10565# else
10566# define LT_DLLAZY_OR_NOW 0
10567# endif
10568# endif
10569# endif
10570# endif
10571#endif
10572
10573#ifdef __cplusplus
10574extern "C" void exit (int);
10575#endif
10576
10577void fnord() { int i=42;}
10578int main ()
10579{
10580 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10581 int status = $lt_dlunknown;
10582
10583 if (self)
10584 {
10585 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10586 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10587 /* dlclose (self); */
10588 }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010589 else
10590 puts (dlerror ());
Reid Spencera40c6872004-11-29 12:29:58 +000010591
10592 exit (status);
10593}
10594EOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencera40c6872004-11-29 12:29:58 +000010596 (eval $ac_link) 2>&5
10597 ac_status=$?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010600 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencera40c6872004-11-29 12:29:58 +000010601 lt_status=$?
10602 case x$lt_status in
10603 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10604 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010605 x$lt_dlunknown|x*) ;;
Reid Spencera40c6872004-11-29 12:29:58 +000010606 esac
10607 else :
10608 # compilation failed
10609
10610 fi
10611fi
10612rm -fr conftest*
10613
10614 LIBS="$save_LIBS"
10615
10616fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010617{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10618echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +000010619 fi
10620fi
10621
10622if test x"$libltdl_cv_need_uscore" = xyes; then
10623
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010624cat >>confdefs.h <<\_ACEOF
10625#define NEED_USCORE 1
10626_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010627
10628fi
10629
10630
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010631{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10632echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10633if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera40c6872004-11-29 12:29:58 +000010635else
10636 # PORTME does your system automatically load deplibs for dlopen?
10637 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10638 # For now, we just catch OSes we know something about -- in the
10639 # future, we'll try test this programmatically.
10640 libltdl_cv_sys_dlopen_deplibs=unknown
10641 case "$host_os" in
10642 aix3*|aix4.1.*|aix4.2.*)
10643 # Unknown whether this is true for these versions of AIX, but
10644 # we want this `case' here to explicitly catch those versions.
10645 libltdl_cv_sys_dlopen_deplibs=unknown
10646 ;;
10647 aix[45]*)
10648 libltdl_cv_sys_dlopen_deplibs=yes
10649 ;;
10650 darwin*)
10651 # Assuming the user has installed a libdl from somewhere, this is true
10652 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10653 libltdl_cv_sys_dlopen_deplibs=yes
10654 ;;
10655 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10656 # GNU and its variants, using gnu ld.so (Glibc)
10657 libltdl_cv_sys_dlopen_deplibs=yes
10658 ;;
10659 hpux10*|hpux11*)
10660 libltdl_cv_sys_dlopen_deplibs=yes
10661 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010662 interix*)
10663 libltdl_cv_sys_dlopen_deplibs=yes
10664 ;;
Reid Spencera40c6872004-11-29 12:29:58 +000010665 irix[12345]*|irix6.[01]*)
10666 # Catch all versions of IRIX before 6.2, and indicate that we don't
10667 # know how it worked for any of those versions.
10668 libltdl_cv_sys_dlopen_deplibs=unknown
10669 ;;
10670 irix*)
10671 # The case above catches anything before 6.2, and it's known that
10672 # at 6.2 and later dlopen does load deplibs.
10673 libltdl_cv_sys_dlopen_deplibs=yes
10674 ;;
10675 netbsd*)
10676 libltdl_cv_sys_dlopen_deplibs=yes
10677 ;;
10678 openbsd*)
10679 libltdl_cv_sys_dlopen_deplibs=yes
10680 ;;
10681 osf[1234]*)
10682 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10683 # it did *not* use an RPATH in a shared library to find objects the
Chris Lattner0ab5e2c2011-04-15 05:18:47 +000010684 # library depends on, so we explicitly say `no'.
Reid Spencera40c6872004-11-29 12:29:58 +000010685 libltdl_cv_sys_dlopen_deplibs=no
10686 ;;
10687 osf5.0|osf5.0a|osf5.1)
10688 # dlopen *does* load deplibs and with the right loader patch applied
10689 # it even uses RPATH in a shared library to search for shared objects
10690 # that the library depends on, but there's no easy way to know if that
10691 # patch is installed. Since this is the case, all we can really
10692 # say is unknown -- it depends on the patch being installed. If
10693 # it is, this changes to `yes'. Without it, it would be `no'.
10694 libltdl_cv_sys_dlopen_deplibs=unknown
10695 ;;
10696 osf*)
10697 # the two cases above should catch all versions of osf <= 5.1. Read
10698 # the comments above for what we know about them.
10699 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10700 # is used to find them so we can finally say `yes'.
10701 libltdl_cv_sys_dlopen_deplibs=yes
10702 ;;
10703 solaris*)
10704 libltdl_cv_sys_dlopen_deplibs=yes
10705 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000010706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10707 libltdl_cv_sys_dlopen_deplibs=yes
10708 ;;
Reid Spencera40c6872004-11-29 12:29:58 +000010709 esac
10710
10711fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010712{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10713echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencera40c6872004-11-29 12:29:58 +000010714if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10715
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010716cat >>confdefs.h <<\_ACEOF
10717#define LTDL_DLOPEN_DEPLIBS 1
10718_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010719
10720fi
10721
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010722
Reid Spencera40c6872004-11-29 12:29:58 +000010723for ac_header in argz.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010724do
10725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10731fi
10732ac_res=`eval echo '${'$as_ac_Header'}'`
10733 { echo "$as_me:$LINENO: result: $ac_res" >&5
10734echo "${ECHO_T}$ac_res" >&6; }
10735else
10736 # Is the header compilable?
10737{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10738echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10739cat >conftest.$ac_ext <<_ACEOF
10740/* confdefs.h. */
10741_ACEOF
10742cat confdefs.h >>conftest.$ac_ext
10743cat >>conftest.$ac_ext <<_ACEOF
10744/* end confdefs.h. */
10745$ac_includes_default
10746#include <$ac_header>
10747_ACEOF
10748rm -f conftest.$ac_objext
10749if { (ac_try="$ac_compile"
10750case "(($ac_try" in
10751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752 *) ac_try_echo=$ac_try;;
10753esac
10754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755 (eval "$ac_compile") 2>conftest.er1
10756 ac_status=$?
10757 grep -v '^ *+' conftest.er1 >conftest.err
10758 rm -f conftest.er1
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10763 { (case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10766esac
10767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_try") 2>&5
10769 ac_status=$?
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; } &&
10772 { ac_try='test -s conftest.$ac_objext'
10773 { (case "(($ac_try" in
10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775 *) ac_try_echo=$ac_try;;
10776esac
10777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778 (eval "$ac_try") 2>&5
10779 ac_status=$?
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10782 ac_header_compiler=yes
10783else
10784 echo "$as_me: failed program was:" >&5
10785sed 's/^/| /' conftest.$ac_ext >&5
10786
10787 ac_header_compiler=no
10788fi
10789
10790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10791{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10792echo "${ECHO_T}$ac_header_compiler" >&6; }
10793
10794# Is the header present?
10795{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10796echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10797cat >conftest.$ac_ext <<_ACEOF
10798/* confdefs.h. */
10799_ACEOF
10800cat confdefs.h >>conftest.$ac_ext
10801cat >>conftest.$ac_ext <<_ACEOF
10802/* end confdefs.h. */
10803#include <$ac_header>
10804_ACEOF
10805if { (ac_try="$ac_cpp conftest.$ac_ext"
10806case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10809esac
10810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10812 ac_status=$?
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } >/dev/null; then
10818 if test -s conftest.err; then
10819 ac_cpp_err=$ac_c_preproc_warn_flag
10820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10821 else
10822 ac_cpp_err=
10823 fi
10824else
10825 ac_cpp_err=yes
10826fi
10827if test -z "$ac_cpp_err"; then
10828 ac_header_preproc=yes
10829else
10830 echo "$as_me: failed program was:" >&5
10831sed 's/^/| /' conftest.$ac_ext >&5
10832
10833 ac_header_preproc=no
10834fi
10835
10836rm -f conftest.err conftest.$ac_ext
10837{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10838echo "${ECHO_T}$ac_header_preproc" >&6; }
10839
10840# So? What about this header?
10841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10842 yes:no: )
10843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10844echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10846echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10847 ac_header_preproc=yes
10848 ;;
10849 no:yes:* )
10850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10851echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10853echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10855echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10857echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10859echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10861echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10862 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000010863## ------------------------------------ ##
10864## Report this to http://llvm.org/bugs/ ##
10865## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010866_ASBOX
10867 ) | sed "s/^/$as_me: WARNING: /" >&2
10868 ;;
10869esac
10870{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10874else
10875 eval "$as_ac_Header=\$ac_header_preproc"
10876fi
10877ac_res=`eval echo '${'$as_ac_Header'}'`
10878 { echo "$as_me:$LINENO: result: $ac_res" >&5
10879echo "${ECHO_T}$ac_res" >&6; }
10880
10881fi
10882if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010883 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000010885_ACEOF
10886
10887fi
10888
10889done
10890
10891
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010892{ echo "$as_me:$LINENO: checking for error_t" >&5
10893echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10894if test "${ac_cv_type_error_t+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10896else
10897 cat >conftest.$ac_ext <<_ACEOF
10898/* confdefs.h. */
10899_ACEOF
10900cat confdefs.h >>conftest.$ac_ext
10901cat >>conftest.$ac_ext <<_ACEOF
10902/* end confdefs.h. */
10903#if HAVE_ARGZ_H
Reid Spencera40c6872004-11-29 12:29:58 +000010904# include <argz.h>
10905#endif
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010906
10907typedef error_t ac__type_new_;
10908int
10909main ()
10910{
10911if ((ac__type_new_ *) 0)
10912 return 0;
10913if (sizeof (ac__type_new_))
10914 return 0;
10915 ;
10916 return 0;
10917}
10918_ACEOF
10919rm -f conftest.$ac_objext
10920if { (ac_try="$ac_compile"
10921case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924esac
10925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_compile") 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
10933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10934 { (case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10937esac
10938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_try") 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; } &&
10943 { ac_try='test -s conftest.$ac_objext'
10944 { (case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10947esac
10948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_try") 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; }; then
10953 ac_cv_type_error_t=yes
10954else
10955 echo "$as_me: failed program was:" >&5
10956sed 's/^/| /' conftest.$ac_ext >&5
10957
10958 ac_cv_type_error_t=no
10959fi
10960
10961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962fi
10963{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10964echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10965if test $ac_cv_type_error_t = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000010966
10967cat >>confdefs.h <<_ACEOF
10968#define HAVE_ERROR_T 1
10969_ACEOF
10970
10971
10972else
10973
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010974cat >>confdefs.h <<\_ACEOF
10975#define error_t int
10976_ACEOF
Reid Spencera40c6872004-11-29 12:29:58 +000010977
10978fi
10979
10980
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010981
10982
10983
10984
10985
Reid Spencera40c6872004-11-29 12:29:58 +000010986for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000010987do
10988as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10989{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10990echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10991if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993else
10994 cat >conftest.$ac_ext <<_ACEOF
10995/* confdefs.h. */
10996_ACEOF
10997cat confdefs.h >>conftest.$ac_ext
10998cat >>conftest.$ac_ext <<_ACEOF
10999/* end confdefs.h. */
11000/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11002#define $ac_func innocuous_$ac_func
11003
11004/* System header to define __stub macros and hopefully few prototypes,
11005 which can conflict with char $ac_func (); below.
11006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11007 <limits.h> exists even on freestanding compilers. */
11008
11009#ifdef __STDC__
11010# include <limits.h>
11011#else
11012# include <assert.h>
11013#endif
11014
11015#undef $ac_func
11016
11017/* Override any GCC internal prototype to avoid an error.
11018 Use char because int might match the return type of a GCC
11019 builtin and then its argument prototype would still apply. */
11020#ifdef __cplusplus
11021extern "C"
11022#endif
11023char $ac_func ();
11024/* The GNU C library defines this for functions which it implements
11025 to always fail with ENOSYS. Some functions are actually named
11026 something starting with __ and the normal name is an alias. */
11027#if defined __stub_$ac_func || defined __stub___$ac_func
11028choke me
11029#endif
11030
11031int
11032main ()
11033{
11034return $ac_func ();
11035 ;
11036 return 0;
11037}
11038_ACEOF
11039rm -f conftest.$ac_objext conftest$ac_exeext
11040if { (ac_try="$ac_link"
11041case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11044esac
11045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_link") 2>conftest.er1
11047 ac_status=$?
11048 grep -v '^ *+' conftest.er1 >conftest.err
11049 rm -f conftest.er1
11050 cat conftest.err >&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } &&
11053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11054 { (case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057esac
11058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_try") 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; } &&
11063 { ac_try='test -s conftest$ac_exeext'
11064 { (case "(($ac_try" in
11065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066 *) ac_try_echo=$ac_try;;
11067esac
11068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11069 (eval "$ac_try") 2>&5
11070 ac_status=$?
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; }; then
11073 eval "$as_ac_var=yes"
11074else
11075 echo "$as_me: failed program was:" >&5
11076sed 's/^/| /' conftest.$ac_ext >&5
11077
11078 eval "$as_ac_var=no"
11079fi
11080
11081rm -f core conftest.err conftest.$ac_objext \
11082 conftest$ac_exeext conftest.$ac_ext
11083fi
11084ac_res=`eval echo '${'$as_ac_var'}'`
11085 { echo "$as_me:$LINENO: result: $ac_res" >&5
11086echo "${ECHO_T}$ac_res" >&6; }
11087if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011088 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011090_ACEOF
11091
11092fi
11093done
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011114
11115
11116
11117
11118
11119
11120
11121
Reid Spencera40c6872004-11-29 12:29:58 +000011122for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11123 stdio.h unistd.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011124do
11125as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131fi
11132ac_res=`eval echo '${'$as_ac_Header'}'`
11133 { echo "$as_me:$LINENO: result: $ac_res" >&5
11134echo "${ECHO_T}$ac_res" >&6; }
11135else
11136 # Is the header compilable?
11137{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11138echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11139cat >conftest.$ac_ext <<_ACEOF
11140/* confdefs.h. */
11141_ACEOF
11142cat confdefs.h >>conftest.$ac_ext
11143cat >>conftest.$ac_ext <<_ACEOF
11144/* end confdefs.h. */
11145$ac_includes_default
11146#include <$ac_header>
11147_ACEOF
11148rm -f conftest.$ac_objext
11149if { (ac_try="$ac_compile"
11150case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153esac
11154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_compile") 2>conftest.er1
11156 ac_status=$?
11157 grep -v '^ *+' conftest.er1 >conftest.err
11158 rm -f conftest.er1
11159 cat conftest.err >&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } &&
11162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11163 { (case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11166esac
11167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_try") 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try='test -s conftest.$ac_objext'
11173 { (case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176esac
11177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_try") 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 ac_header_compiler=yes
11183else
11184 echo "$as_me: failed program was:" >&5
11185sed 's/^/| /' conftest.$ac_ext >&5
11186
11187 ac_header_compiler=no
11188fi
11189
11190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11191{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11192echo "${ECHO_T}$ac_header_compiler" >&6; }
11193
11194# Is the header present?
11195{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11196echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11197cat >conftest.$ac_ext <<_ACEOF
11198/* confdefs.h. */
11199_ACEOF
11200cat confdefs.h >>conftest.$ac_ext
11201cat >>conftest.$ac_ext <<_ACEOF
11202/* end confdefs.h. */
11203#include <$ac_header>
11204_ACEOF
11205if { (ac_try="$ac_cpp conftest.$ac_ext"
11206case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11209esac
11210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11212 ac_status=$?
11213 grep -v '^ *+' conftest.er1 >conftest.err
11214 rm -f conftest.er1
11215 cat conftest.err >&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } >/dev/null; then
11218 if test -s conftest.err; then
11219 ac_cpp_err=$ac_c_preproc_warn_flag
11220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11221 else
11222 ac_cpp_err=
11223 fi
11224else
11225 ac_cpp_err=yes
11226fi
11227if test -z "$ac_cpp_err"; then
11228 ac_header_preproc=yes
11229else
11230 echo "$as_me: failed program was:" >&5
11231sed 's/^/| /' conftest.$ac_ext >&5
11232
11233 ac_header_preproc=no
11234fi
11235
11236rm -f conftest.err conftest.$ac_ext
11237{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11238echo "${ECHO_T}$ac_header_preproc" >&6; }
11239
11240# So? What about this header?
11241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11242 yes:no: )
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11244echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11246echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11247 ac_header_preproc=yes
11248 ;;
11249 no:yes:* )
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11251echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11253echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11255echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11257echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11259echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11261echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11262 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011263## ------------------------------------ ##
11264## Report this to http://llvm.org/bugs/ ##
11265## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011266_ASBOX
11267 ) | sed "s/^/$as_me: WARNING: /" >&2
11268 ;;
11269esac
11270{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274else
11275 eval "$as_ac_Header=\$ac_header_preproc"
11276fi
11277ac_res=`eval echo '${'$as_ac_Header'}'`
11278 { echo "$as_me:$LINENO: result: $ac_res" >&5
11279echo "${ECHO_T}$ac_res" >&6; }
11280
11281fi
11282if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011283 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011284#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011285_ACEOF
11286
11287fi
11288
11289done
11290
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011291
11292
11293
11294
Reid Spencera40c6872004-11-29 12:29:58 +000011295for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011296do
11297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11303fi
11304ac_res=`eval echo '${'$as_ac_Header'}'`
11305 { echo "$as_me:$LINENO: result: $ac_res" >&5
11306echo "${ECHO_T}$ac_res" >&6; }
11307else
11308 # Is the header compilable?
11309{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11310echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11311cat >conftest.$ac_ext <<_ACEOF
11312/* confdefs.h. */
11313_ACEOF
11314cat confdefs.h >>conftest.$ac_ext
11315cat >>conftest.$ac_ext <<_ACEOF
11316/* end confdefs.h. */
11317$ac_includes_default
11318#include <$ac_header>
11319_ACEOF
11320rm -f conftest.$ac_objext
11321if { (ac_try="$ac_compile"
11322case "(($ac_try" in
11323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324 *) ac_try_echo=$ac_try;;
11325esac
11326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11327 (eval "$ac_compile") 2>conftest.er1
11328 ac_status=$?
11329 grep -v '^ *+' conftest.er1 >conftest.err
11330 rm -f conftest.er1
11331 cat conftest.err >&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); } &&
11334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11344 { ac_try='test -s conftest.$ac_objext'
11345 { (case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11348esac
11349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_try") 2>&5
11351 ac_status=$?
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; }; then
11354 ac_header_compiler=yes
11355else
11356 echo "$as_me: failed program was:" >&5
11357sed 's/^/| /' conftest.$ac_ext >&5
11358
11359 ac_header_compiler=no
11360fi
11361
11362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11364echo "${ECHO_T}$ac_header_compiler" >&6; }
11365
11366# Is the header present?
11367{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11368echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11369cat >conftest.$ac_ext <<_ACEOF
11370/* confdefs.h. */
11371_ACEOF
11372cat confdefs.h >>conftest.$ac_ext
11373cat >>conftest.$ac_ext <<_ACEOF
11374/* end confdefs.h. */
11375#include <$ac_header>
11376_ACEOF
11377if { (ac_try="$ac_cpp conftest.$ac_ext"
11378case "(($ac_try" in
11379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380 *) ac_try_echo=$ac_try;;
11381esac
11382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11384 ac_status=$?
11385 grep -v '^ *+' conftest.er1 >conftest.err
11386 rm -f conftest.er1
11387 cat conftest.err >&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } >/dev/null; then
11390 if test -s conftest.err; then
11391 ac_cpp_err=$ac_c_preproc_warn_flag
11392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11393 else
11394 ac_cpp_err=
11395 fi
11396else
11397 ac_cpp_err=yes
11398fi
11399if test -z "$ac_cpp_err"; then
11400 ac_header_preproc=yes
11401else
11402 echo "$as_me: failed program was:" >&5
11403sed 's/^/| /' conftest.$ac_ext >&5
11404
11405 ac_header_preproc=no
11406fi
11407
11408rm -f conftest.err conftest.$ac_ext
11409{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11410echo "${ECHO_T}$ac_header_preproc" >&6; }
11411
11412# So? What about this header?
11413case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11414 yes:no: )
11415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11416echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11418echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11419 ac_header_preproc=yes
11420 ;;
11421 no:yes:* )
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11423echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11425echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11427echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11429echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11431echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11433echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11434 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011435## ------------------------------------ ##
11436## Report this to http://llvm.org/bugs/ ##
11437## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011438_ASBOX
11439 ) | sed "s/^/$as_me: WARNING: /" >&2
11440 ;;
11441esac
11442{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11446else
11447 eval "$as_ac_Header=\$ac_header_preproc"
11448fi
11449ac_res=`eval echo '${'$as_ac_Header'}'`
11450 { echo "$as_me:$LINENO: result: $ac_res" >&5
11451echo "${ECHO_T}$ac_res" >&6; }
11452
11453fi
11454if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011455 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011456#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011457_ACEOF
11458
11459fi
11460
11461done
11462
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011463
11464
Reid Spencera40c6872004-11-29 12:29:58 +000011465for ac_header in string.h strings.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011466do
11467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11473fi
11474ac_res=`eval echo '${'$as_ac_Header'}'`
11475 { echo "$as_me:$LINENO: result: $ac_res" >&5
11476echo "${ECHO_T}$ac_res" >&6; }
11477else
11478 # Is the header compilable?
11479{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11480echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11481cat >conftest.$ac_ext <<_ACEOF
11482/* confdefs.h. */
11483_ACEOF
11484cat confdefs.h >>conftest.$ac_ext
11485cat >>conftest.$ac_ext <<_ACEOF
11486/* end confdefs.h. */
11487$ac_includes_default
11488#include <$ac_header>
11489_ACEOF
11490rm -f conftest.$ac_objext
11491if { (ac_try="$ac_compile"
11492case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11495esac
11496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_compile") 2>conftest.er1
11498 ac_status=$?
11499 grep -v '^ *+' conftest.er1 >conftest.err
11500 rm -f conftest.er1
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
11504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11505 { (case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11508esac
11509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_try") 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; } &&
11514 { ac_try='test -s conftest.$ac_objext'
11515 { (case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11518esac
11519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_try") 2>&5
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; }; then
11524 ac_header_compiler=yes
11525else
11526 echo "$as_me: failed program was:" >&5
11527sed 's/^/| /' conftest.$ac_ext >&5
11528
11529 ac_header_compiler=no
11530fi
11531
11532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11533{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11534echo "${ECHO_T}$ac_header_compiler" >&6; }
11535
11536# Is the header present?
11537{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11538echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11539cat >conftest.$ac_ext <<_ACEOF
11540/* confdefs.h. */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h. */
11545#include <$ac_header>
11546_ACEOF
11547if { (ac_try="$ac_cpp conftest.$ac_ext"
11548case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11551esac
11552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11554 ac_status=$?
11555 grep -v '^ *+' conftest.er1 >conftest.err
11556 rm -f conftest.er1
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } >/dev/null; then
11560 if test -s conftest.err; then
11561 ac_cpp_err=$ac_c_preproc_warn_flag
11562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11563 else
11564 ac_cpp_err=
11565 fi
11566else
11567 ac_cpp_err=yes
11568fi
11569if test -z "$ac_cpp_err"; then
11570 ac_header_preproc=yes
11571else
11572 echo "$as_me: failed program was:" >&5
11573sed 's/^/| /' conftest.$ac_ext >&5
11574
11575 ac_header_preproc=no
11576fi
11577
11578rm -f conftest.err conftest.$ac_ext
11579{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11580echo "${ECHO_T}$ac_header_preproc" >&6; }
11581
11582# So? What about this header?
11583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11584 yes:no: )
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11589 ac_header_preproc=yes
11590 ;;
11591 no:yes:* )
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11595echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11599echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11604 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000011605## ------------------------------------ ##
11606## Report this to http://llvm.org/bugs/ ##
11607## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011608_ASBOX
11609 ) | sed "s/^/$as_me: WARNING: /" >&2
11610 ;;
11611esac
11612{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11616else
11617 eval "$as_ac_Header=\$ac_header_preproc"
11618fi
11619ac_res=`eval echo '${'$as_ac_Header'}'`
11620 { echo "$as_me:$LINENO: result: $ac_res" >&5
11621echo "${ECHO_T}$ac_res" >&6; }
11622
11623fi
11624if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011625 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011627_ACEOF
11628 break
11629fi
11630
11631done
11632
11633
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011634
11635
Reid Spencera40c6872004-11-29 12:29:58 +000011636for ac_func in strchr index
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011637do
11638as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11639{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11640echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11641if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11643else
11644 cat >conftest.$ac_ext <<_ACEOF
11645/* confdefs.h. */
11646_ACEOF
11647cat confdefs.h >>conftest.$ac_ext
11648cat >>conftest.$ac_ext <<_ACEOF
11649/* end confdefs.h. */
11650/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11652#define $ac_func innocuous_$ac_func
11653
11654/* System header to define __stub macros and hopefully few prototypes,
11655 which can conflict with char $ac_func (); below.
11656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11657 <limits.h> exists even on freestanding compilers. */
11658
11659#ifdef __STDC__
11660# include <limits.h>
11661#else
11662# include <assert.h>
11663#endif
11664
11665#undef $ac_func
11666
11667/* Override any GCC internal prototype to avoid an error.
11668 Use char because int might match the return type of a GCC
11669 builtin and then its argument prototype would still apply. */
11670#ifdef __cplusplus
11671extern "C"
11672#endif
11673char $ac_func ();
11674/* The GNU C library defines this for functions which it implements
11675 to always fail with ENOSYS. Some functions are actually named
11676 something starting with __ and the normal name is an alias. */
11677#if defined __stub_$ac_func || defined __stub___$ac_func
11678choke me
11679#endif
11680
11681int
11682main ()
11683{
11684return $ac_func ();
11685 ;
11686 return 0;
11687}
11688_ACEOF
11689rm -f conftest.$ac_objext conftest$ac_exeext
11690if { (ac_try="$ac_link"
11691case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11694esac
11695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_link") 2>conftest.er1
11697 ac_status=$?
11698 grep -v '^ *+' conftest.er1 >conftest.err
11699 rm -f conftest.er1
11700 cat conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } &&
11703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11704 { (case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11707esac
11708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_try") 2>&5
11710 ac_status=$?
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; } &&
11713 { ac_try='test -s conftest$ac_exeext'
11714 { (case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717esac
11718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719 (eval "$ac_try") 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 eval "$as_ac_var=yes"
11724else
11725 echo "$as_me: failed program was:" >&5
11726sed 's/^/| /' conftest.$ac_ext >&5
11727
11728 eval "$as_ac_var=no"
11729fi
11730
11731rm -f core conftest.err conftest.$ac_objext \
11732 conftest$ac_exeext conftest.$ac_ext
11733fi
11734ac_res=`eval echo '${'$as_ac_var'}'`
11735 { echo "$as_me:$LINENO: result: $ac_res" >&5
11736echo "${ECHO_T}$ac_res" >&6; }
11737if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011738 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011739#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011740_ACEOF
11741 break
11742fi
11743done
11744
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011745
11746
Reid Spencera40c6872004-11-29 12:29:58 +000011747for ac_func in strrchr rindex
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011748do
11749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11750{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11752if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754else
11755 cat >conftest.$ac_ext <<_ACEOF
11756/* confdefs.h. */
11757_ACEOF
11758cat confdefs.h >>conftest.$ac_ext
11759cat >>conftest.$ac_ext <<_ACEOF
11760/* end confdefs.h. */
11761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11763#define $ac_func innocuous_$ac_func
11764
11765/* System header to define __stub macros and hopefully few prototypes,
11766 which can conflict with char $ac_func (); below.
11767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11768 <limits.h> exists even on freestanding compilers. */
11769
11770#ifdef __STDC__
11771# include <limits.h>
11772#else
11773# include <assert.h>
11774#endif
11775
11776#undef $ac_func
11777
11778/* Override any GCC internal prototype to avoid an error.
11779 Use char because int might match the return type of a GCC
11780 builtin and then its argument prototype would still apply. */
11781#ifdef __cplusplus
11782extern "C"
11783#endif
11784char $ac_func ();
11785/* The GNU C library defines this for functions which it implements
11786 to always fail with ENOSYS. Some functions are actually named
11787 something starting with __ and the normal name is an alias. */
11788#if defined __stub_$ac_func || defined __stub___$ac_func
11789choke me
11790#endif
11791
11792int
11793main ()
11794{
11795return $ac_func ();
11796 ;
11797 return 0;
11798}
11799_ACEOF
11800rm -f conftest.$ac_objext conftest$ac_exeext
11801if { (ac_try="$ac_link"
11802case "(($ac_try" in
11803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804 *) ac_try_echo=$ac_try;;
11805esac
11806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807 (eval "$ac_link") 2>conftest.er1
11808 ac_status=$?
11809 grep -v '^ *+' conftest.er1 >conftest.err
11810 rm -f conftest.er1
11811 cat conftest.err >&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } &&
11814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11815 { (case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11818esac
11819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_try") 2>&5
11821 ac_status=$?
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; } &&
11824 { ac_try='test -s conftest$ac_exeext'
11825 { (case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11828esac
11829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_try") 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 eval "$as_ac_var=yes"
11835else
11836 echo "$as_me: failed program was:" >&5
11837sed 's/^/| /' conftest.$ac_ext >&5
11838
11839 eval "$as_ac_var=no"
11840fi
11841
11842rm -f core conftest.err conftest.$ac_objext \
11843 conftest$ac_exeext conftest.$ac_ext
11844fi
11845ac_res=`eval echo '${'$as_ac_var'}'`
11846 { echo "$as_me:$LINENO: result: $ac_res" >&5
11847echo "${ECHO_T}$ac_res" >&6; }
11848if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011849 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011851_ACEOF
11852 break
11853fi
11854done
11855
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011856
11857
Reid Spencera40c6872004-11-29 12:29:58 +000011858for ac_func in memcpy bcopy
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011859do
11860as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11861{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11862echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11863if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11865else
11866 cat >conftest.$ac_ext <<_ACEOF
11867/* confdefs.h. */
11868_ACEOF
11869cat confdefs.h >>conftest.$ac_ext
11870cat >>conftest.$ac_ext <<_ACEOF
11871/* end confdefs.h. */
11872/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11874#define $ac_func innocuous_$ac_func
11875
11876/* System header to define __stub macros and hopefully few prototypes,
11877 which can conflict with char $ac_func (); below.
11878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11879 <limits.h> exists even on freestanding compilers. */
11880
11881#ifdef __STDC__
11882# include <limits.h>
11883#else
11884# include <assert.h>
11885#endif
11886
11887#undef $ac_func
11888
11889/* Override any GCC internal prototype to avoid an error.
11890 Use char because int might match the return type of a GCC
11891 builtin and then its argument prototype would still apply. */
11892#ifdef __cplusplus
11893extern "C"
11894#endif
11895char $ac_func ();
11896/* The GNU C library defines this for functions which it implements
11897 to always fail with ENOSYS. Some functions are actually named
11898 something starting with __ and the normal name is an alias. */
11899#if defined __stub_$ac_func || defined __stub___$ac_func
11900choke me
11901#endif
11902
11903int
11904main ()
11905{
11906return $ac_func ();
11907 ;
11908 return 0;
11909}
11910_ACEOF
11911rm -f conftest.$ac_objext conftest$ac_exeext
11912if { (ac_try="$ac_link"
11913case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916esac
11917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_link") 2>conftest.er1
11919 ac_status=$?
11920 grep -v '^ *+' conftest.er1 >conftest.err
11921 rm -f conftest.er1
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } &&
11925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11926 { (case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11929esac
11930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_try") 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; } &&
11935 { ac_try='test -s conftest$ac_exeext'
11936 { (case "(($ac_try" in
11937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938 *) ac_try_echo=$ac_try;;
11939esac
11940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941 (eval "$ac_try") 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 eval "$as_ac_var=yes"
11946else
11947 echo "$as_me: failed program was:" >&5
11948sed 's/^/| /' conftest.$ac_ext >&5
11949
11950 eval "$as_ac_var=no"
11951fi
11952
11953rm -f core conftest.err conftest.$ac_objext \
11954 conftest$ac_exeext conftest.$ac_ext
11955fi
11956ac_res=`eval echo '${'$as_ac_var'}'`
11957 { echo "$as_me:$LINENO: result: $ac_res" >&5
11958echo "${ECHO_T}$ac_res" >&6; }
11959if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000011960 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011961#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000011962_ACEOF
11963 break
11964fi
11965done
11966
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011967
11968
Reid Spencera40c6872004-11-29 12:29:58 +000011969for ac_func in memmove strcmp
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000011970do
11971as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11972{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11973echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11974if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976else
11977 cat >conftest.$ac_ext <<_ACEOF
11978/* confdefs.h. */
11979_ACEOF
11980cat confdefs.h >>conftest.$ac_ext
11981cat >>conftest.$ac_ext <<_ACEOF
11982/* end confdefs.h. */
11983/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11985#define $ac_func innocuous_$ac_func
11986
11987/* System header to define __stub macros and hopefully few prototypes,
11988 which can conflict with char $ac_func (); below.
11989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11990 <limits.h> exists even on freestanding compilers. */
11991
11992#ifdef __STDC__
11993# include <limits.h>
11994#else
11995# include <assert.h>
11996#endif
11997
11998#undef $ac_func
11999
12000/* Override any GCC internal prototype to avoid an error.
12001 Use char because int might match the return type of a GCC
12002 builtin and then its argument prototype would still apply. */
12003#ifdef __cplusplus
12004extern "C"
12005#endif
12006char $ac_func ();
12007/* The GNU C library defines this for functions which it implements
12008 to always fail with ENOSYS. Some functions are actually named
12009 something starting with __ and the normal name is an alias. */
12010#if defined __stub_$ac_func || defined __stub___$ac_func
12011choke me
12012#endif
12013
12014int
12015main ()
12016{
12017return $ac_func ();
12018 ;
12019 return 0;
12020}
12021_ACEOF
12022rm -f conftest.$ac_objext conftest$ac_exeext
12023if { (ac_try="$ac_link"
12024case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12027esac
12028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_link") 2>conftest.er1
12030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } &&
12036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12037 { (case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12040esac
12041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042 (eval "$ac_try") 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; } &&
12046 { ac_try='test -s conftest$ac_exeext'
12047 { (case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12050esac
12051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_try") 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 eval "$as_ac_var=yes"
12057else
12058 echo "$as_me: failed program was:" >&5
12059sed 's/^/| /' conftest.$ac_ext >&5
12060
12061 eval "$as_ac_var=no"
12062fi
12063
12064rm -f core conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12066fi
12067ac_res=`eval echo '${'$as_ac_var'}'`
12068 { echo "$as_me:$LINENO: result: $ac_res" >&5
12069echo "${ECHO_T}$ac_res" >&6; }
12070if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000012071 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012072#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000012073_ACEOF
12074
12075fi
12076done
12077
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012078
12079
12080
Reid Spencera40c6872004-11-29 12:29:58 +000012081for ac_func in closedir opendir readdir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012082do
12083as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12084{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12085echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12086if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12088else
12089 cat >conftest.$ac_ext <<_ACEOF
12090/* confdefs.h. */
12091_ACEOF
12092cat confdefs.h >>conftest.$ac_ext
12093cat >>conftest.$ac_ext <<_ACEOF
12094/* end confdefs.h. */
12095/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12097#define $ac_func innocuous_$ac_func
12098
12099/* System header to define __stub macros and hopefully few prototypes,
12100 which can conflict with char $ac_func (); below.
12101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12102 <limits.h> exists even on freestanding compilers. */
12103
12104#ifdef __STDC__
12105# include <limits.h>
12106#else
12107# include <assert.h>
12108#endif
12109
12110#undef $ac_func
12111
12112/* Override any GCC internal prototype to avoid an error.
12113 Use char because int might match the return type of a GCC
12114 builtin and then its argument prototype would still apply. */
12115#ifdef __cplusplus
12116extern "C"
12117#endif
12118char $ac_func ();
12119/* The GNU C library defines this for functions which it implements
12120 to always fail with ENOSYS. Some functions are actually named
12121 something starting with __ and the normal name is an alias. */
12122#if defined __stub_$ac_func || defined __stub___$ac_func
12123choke me
12124#endif
12125
12126int
12127main ()
12128{
12129return $ac_func ();
12130 ;
12131 return 0;
12132}
12133_ACEOF
12134rm -f conftest.$ac_objext conftest$ac_exeext
12135if { (ac_try="$ac_link"
12136case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12139esac
12140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_link") 2>conftest.er1
12142 ac_status=$?
12143 grep -v '^ *+' conftest.er1 >conftest.err
12144 rm -f conftest.er1
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } &&
12148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12149 { (case "(($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_try") 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; } &&
12158 { ac_try='test -s conftest$ac_exeext'
12159 { (case "(($ac_try" in
12160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12162esac
12163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12164 (eval "$ac_try") 2>&5
12165 ac_status=$?
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; }; then
12168 eval "$as_ac_var=yes"
12169else
12170 echo "$as_me: failed program was:" >&5
12171sed 's/^/| /' conftest.$ac_ext >&5
12172
12173 eval "$as_ac_var=no"
12174fi
12175
12176rm -f core conftest.err conftest.$ac_objext \
12177 conftest$ac_exeext conftest.$ac_ext
12178fi
12179ac_res=`eval echo '${'$as_ac_var'}'`
12180 { echo "$as_me:$LINENO: result: $ac_res" >&5
12181echo "${ECHO_T}$ac_res" >&6; }
12182if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera40c6872004-11-29 12:29:58 +000012183 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012184#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera40c6872004-11-29 12:29:58 +000012185_ACEOF
12186
12187fi
12188done
12189
12190
Douglas Gregor15436612009-05-11 18:05:52 +000012191
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012192{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12193echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000012194
Reid Spencerca06c8e2004-12-08 23:07:27 +000012195ICC=no
12196IXX=no
12197case $CC in
12198 icc*|icpc*)
12199 ICC=yes
12200 IXX=yes
12201 ;;
12202 *)
12203 ;;
12204esac
12205
Duraid Madina8604de82006-02-15 07:57:42 +000012206if test "$GCC" != "yes" && test "$ICC" != "yes"
12207then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012208 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12209echo "$as_me: error: gcc|icc required but not found" >&2;}
12210 { (exit 1); exit 1; }; }
Duraid Madina8604de82006-02-15 07:57:42 +000012211fi
12212
12213if test "$GXX" != "yes" && test "$IXX" != "yes"
12214then
Eric Christopher8d842da2010-12-08 02:02:14 +000012215 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12216echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012217 { (exit 1); exit 1; }; }
Duraid Madina8604de82006-02-15 07:57:42 +000012218fi
12219
Reid Spencerca06c8e2004-12-08 23:07:27 +000012220if test "$GCC" = "yes"
12221then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012222 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000012223
12224 /* confdefs.h. */
12225_ACEOF
12226cat confdefs.h >>conftest.$ac_ext
12227cat >>conftest.$ac_ext <<_ACEOF
12228/* end confdefs.h. */
12229
12230 #if !defined(__GNUC__) || __GNUC__ < 3
12231 #error Unsupported GCC version
12232 #endif
12233
Chris Lattnere115fb52008-02-05 19:43:53 +000012234
12235_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012236rm -f conftest.$ac_objext
12237if { (ac_try="$ac_compile"
12238case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12241esac
12242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_compile") 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
12250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12251 { (case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12254esac
12255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_try") 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; } &&
12260 { ac_try='test -s conftest.$ac_objext'
12261 { (case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12264esac
12265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_try") 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 :
Chris Lattnere115fb52008-02-05 19:43:53 +000012271else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012272 echo "$as_me: failed program was:" >&5
12273sed 's/^/| /' conftest.$ac_ext >&5
12274
12275 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12276echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12277 { (exit 1); exit 1; }; }
Chris Lattnere115fb52008-02-05 19:43:53 +000012278fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012279
Chris Lattnere115fb52008-02-05 19:43:53 +000012280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000012281fi
12282
12283if test -z "$llvm_cv_gnu_make_command"
12284then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012285 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12286echo "$as_me: error: GNU Make required but not found" >&2;}
12287 { (exit 1); exit 1; }; }
Reid Spencer0241e382004-11-25 04:51:04 +000012288fi
12289
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012290{ echo "$as_me:$LINENO: result: ok" >&5
12291echo "${ECHO_T}ok" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000012292
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012293{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12294echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Richard Smithf89ffcd2013-02-08 22:55:10 +000012295NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Julien Lerougeb614dd32009-10-26 20:00:35 +000012296
Richard Smithf89ffcd2013-02-08 22:55:10 +000012297NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Julien Lerougeb614dd32009-10-26 20:00:35 +000012298
Rafael Espindola42e94d12012-02-28 23:32:06 +000012299COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12300
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +000012301
12302NO_UNINITIALIZED=
12303NO_MAYBE_UNINITIALIZED=
David Greene9ff8d472013-01-09 22:11:13 +000012304if test "$GXX" = "yes"
12305then
Richard Smithf89ffcd2013-02-08 22:55:10 +000012306 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
David Greene9ff8d472013-01-09 22:11:13 +000012307
Dmitri Gribenkob5e23ef2013-02-13 21:19:39 +000012308 if test -z "$NO_MAYBE_UNINITIALIZED"
David Greene9ff8d472013-01-09 22:11:13 +000012309 then
Richard Smithf89ffcd2013-02-08 22:55:10 +000012310 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
David Greene9ff8d472013-01-09 22:11:13 +000012311
David Greene9ff8d472013-01-09 22:11:13 +000012312 fi
David Greene9ff8d472013-01-09 22:11:13 +000012313fi
Eric Christopher31f43542013-03-15 00:43:00 +000012314{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12315echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
David Greene9ff8d472013-01-09 22:11:13 +000012316
Julien Lerougeb614dd32009-10-26 20:00:35 +000012317
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000012318# Check whether --with-python was given.
12319if test "${with_python+set}" = set; then
12320 withval=$with_python; PYTHON="$withval"
12321fi
12322
12323
12324if test -n "$PYTHON" && test -x "$PYTHON" ; then
12325 { echo "$as_me:$LINENO: checking for python" >&5
12326echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12327 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12328echo "${ECHO_T}user defined: $with_python" >&6; }
12329else
12330 if test -n "$PYTHON" ; then
12331 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12332echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12333 fi
12334
12335 # Extract the first word of "python python2 python26", so it can be a program name with args.
12336set dummy python python2 python26; ac_word=$2
12337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12339if test "${ac_cv_path_PYTHON+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341else
12342 case $PYTHON in
12343 [\\/]* | ?:[\\/]*)
12344 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12345 ;;
12346 *)
12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348for as_dir in $PATH
12349do
12350 IFS=$as_save_IFS
12351 test -z "$as_dir" && as_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12354 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12356 break 2
12357 fi
12358done
12359done
12360IFS=$as_save_IFS
12361
12362 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12363echo "${ECHO_T}not found" >&6; }
12364 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12365echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12366 { (exit 1); exit 1; }; }"
12367 ;;
12368esac
12369fi
12370PYTHON=$ac_cv_path_PYTHON
12371if test -n "$PYTHON"; then
12372 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12373echo "${ECHO_T}$PYTHON" >&6; }
12374else
12375 { echo "$as_me:$LINENO: result: no" >&5
12376echo "${ECHO_T}no" >&6; }
12377fi
12378
12379
12380fi
12381
12382{ echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12383echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12384ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12385ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12386ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12387ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12388if test "$ac_python_version_major" -eq "2" \
12389 && test "$ac_python_version_minor" -ge "5" ; then
12390 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12391echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12392else
12393 { echo "$as_me:$LINENO: result: not found" >&5
12394echo "${ECHO_T}not found" >&6; }
12395 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12396See \`config.log' for more details." >&5
12397echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12398See \`config.log' for more details." >&2;}
12399 { (exit 1); exit 1; }; }
12400fi
12401
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000012402
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012403
12404{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12405echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12406if test "${ac_cv_lib_m_sin+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerec4a7f522006-01-19 08:31:08 +000012408else
12409 ac_check_lib_save_LIBS=$LIBS
12410LIBS="-lm $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012411cat >conftest.$ac_ext <<_ACEOF
12412/* confdefs.h. */
12413_ACEOF
12414cat confdefs.h >>conftest.$ac_ext
12415cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerec4a7f522006-01-19 08:31:08 +000012416/* end confdefs.h. */
12417
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012418/* Override any GCC internal prototype to avoid an error.
12419 Use char because int might match the return type of a GCC
12420 builtin and then its argument prototype would still apply. */
Reid Spencerec4a7f522006-01-19 08:31:08 +000012421#ifdef __cplusplus
12422extern "C"
12423#endif
Reid Spencerec4a7f522006-01-19 08:31:08 +000012424char sin ();
12425int
12426main ()
12427{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012428return sin ();
Reid Spencerec4a7f522006-01-19 08:31:08 +000012429 ;
12430 return 0;
12431}
12432_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012433rm -f conftest.$ac_objext conftest$ac_exeext
12434if { (ac_try="$ac_link"
12435case "(($ac_try" in
12436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437 *) ac_try_echo=$ac_try;;
12438esac
12439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440 (eval "$ac_link") 2>conftest.er1
12441 ac_status=$?
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -f conftest.er1
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12448 { (case "(($ac_try" in
12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12451esac
12452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453 (eval "$ac_try") 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; } &&
12457 { ac_try='test -s conftest$ac_exeext'
12458 { (case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12461esac
12462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_try") 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
Reid Spencerec4a7f522006-01-19 08:31:08 +000012467 ac_cv_lib_m_sin=yes
12468else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012469 echo "$as_me: failed program was:" >&5
12470sed 's/^/| /' conftest.$ac_ext >&5
12471
12472 ac_cv_lib_m_sin=no
Reid Spencerec4a7f522006-01-19 08:31:08 +000012473fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012474
Bill Wendling02b47d92009-04-18 11:20:33 +000012475rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012476 conftest$ac_exeext conftest.$ac_ext
Reid Spencerec4a7f522006-01-19 08:31:08 +000012477LIBS=$ac_check_lib_save_LIBS
12478fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012479{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12480echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12481if test $ac_cv_lib_m_sin = yes; then
Reid Spencerec4a7f522006-01-19 08:31:08 +000012482 cat >>confdefs.h <<_ACEOF
12483#define HAVE_LIBM 1
12484_ACEOF
12485
12486 LIBS="-lm $LIBS"
12487
12488fi
12489
Jeff Cohenc5e5b272007-01-12 18:22:38 +000012490if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012491
12492{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12493echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12494if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera16b9862006-06-01 16:55:59 +000012496else
12497 ac_check_lib_save_LIBS=$LIBS
12498LIBS="-limagehlp $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012499cat >conftest.$ac_ext <<_ACEOF
12500/* confdefs.h. */
12501_ACEOF
12502cat confdefs.h >>conftest.$ac_ext
12503cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera16b9862006-06-01 16:55:59 +000012504/* end confdefs.h. */
12505
Reid Spencer187b4ad2006-06-01 19:03:21 +000012506
Reid Spencera16b9862006-06-01 16:55:59 +000012507int
12508main ()
12509{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012510return main ();
Reid Spencera16b9862006-06-01 16:55:59 +000012511 ;
12512 return 0;
12513}
12514_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012515rm -f conftest.$ac_objext conftest$ac_exeext
12516if { (ac_try="$ac_link"
12517case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12520esac
12521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_link") 2>conftest.er1
12523 ac_status=$?
12524 grep -v '^ *+' conftest.er1 >conftest.err
12525 rm -f conftest.er1
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } &&
12529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12530 { (case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12533esac
12534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_try") 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (case "(($ac_try" in
12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542 *) ac_try_echo=$ac_try;;
12543esac
12544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_try") 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
Reid Spencer187b4ad2006-06-01 19:03:21 +000012549 ac_cv_lib_imagehlp_main=yes
Reid Spencera16b9862006-06-01 16:55:59 +000012550else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012551 echo "$as_me: failed program was:" >&5
12552sed 's/^/| /' conftest.$ac_ext >&5
12553
12554 ac_cv_lib_imagehlp_main=no
Reid Spencera16b9862006-06-01 16:55:59 +000012555fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012556
Bill Wendling02b47d92009-04-18 11:20:33 +000012557rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012558 conftest$ac_exeext conftest.$ac_ext
Reid Spencera16b9862006-06-01 16:55:59 +000012559LIBS=$ac_check_lib_save_LIBS
12560fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012561{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12562echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12563if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencera16b9862006-06-01 16:55:59 +000012564 cat >>confdefs.h <<_ACEOF
12565#define HAVE_LIBIMAGEHLP 1
12566_ACEOF
12567
12568 LIBS="-limagehlp $LIBS"
12569
12570fi
12571
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012572
12573{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12574echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12575if test "${ac_cv_lib_psapi_main+set}" = set; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera16b9862006-06-01 16:55:59 +000012577else
12578 ac_check_lib_save_LIBS=$LIBS
12579LIBS="-lpsapi $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012580cat >conftest.$ac_ext <<_ACEOF
12581/* confdefs.h. */
12582_ACEOF
12583cat confdefs.h >>conftest.$ac_ext
12584cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera16b9862006-06-01 16:55:59 +000012585/* end confdefs.h. */
12586
Reid Spencer187b4ad2006-06-01 19:03:21 +000012587
Reid Spencera16b9862006-06-01 16:55:59 +000012588int
12589main ()
12590{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012591return main ();
Reid Spencera16b9862006-06-01 16:55:59 +000012592 ;
12593 return 0;
12594}
12595_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012596rm -f conftest.$ac_objext conftest$ac_exeext
12597if { (ac_try="$ac_link"
12598case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12601esac
12602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_link") 2>conftest.er1
12604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12611 { (case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12614esac
12615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_try") 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try='test -s conftest$ac_exeext'
12621 { (case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12624esac
12625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_try") 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; }; then
Reid Spencer187b4ad2006-06-01 19:03:21 +000012630 ac_cv_lib_psapi_main=yes
Reid Spencera16b9862006-06-01 16:55:59 +000012631else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012632 echo "$as_me: failed program was:" >&5
12633sed 's/^/| /' conftest.$ac_ext >&5
12634
12635 ac_cv_lib_psapi_main=no
Reid Spencera16b9862006-06-01 16:55:59 +000012636fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012637
Bill Wendling02b47d92009-04-18 11:20:33 +000012638rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012639 conftest$ac_exeext conftest.$ac_ext
Reid Spencera16b9862006-06-01 16:55:59 +000012640LIBS=$ac_check_lib_save_LIBS
12641fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012642{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12643echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12644if test $ac_cv_lib_psapi_main = yes; then
Reid Spencera16b9862006-06-01 16:55:59 +000012645 cat >>confdefs.h <<_ACEOF
12646#define HAVE_LIBPSAPI 1
12647_ACEOF
12648
12649 LIBS="-lpsapi $LIBS"
12650
12651fi
12652
12653fi
Reid Spencer1aa7d052005-07-12 15:24:20 +000012654
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012655{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12656echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12657if test "${ac_cv_search_dlopen+set}" = set; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000012659else
12660 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012661cat >conftest.$ac_ext <<_ACEOF
12662/* confdefs.h. */
12663_ACEOF
12664cat confdefs.h >>conftest.$ac_ext
12665cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000012666/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000012667
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012668/* Override any GCC internal prototype to avoid an error.
12669 Use char because int might match the return type of a GCC
12670 builtin and then its argument prototype would still apply. */
John Criswell3ef61af2003-06-30 21:59:07 +000012671#ifdef __cplusplus
12672extern "C"
12673#endif
John Criswell3ef61af2003-06-30 21:59:07 +000012674char dlopen ();
John Criswell3ef61af2003-06-30 21:59:07 +000012675int
12676main ()
12677{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012678return dlopen ();
John Criswell3ef61af2003-06-30 21:59:07 +000012679 ;
12680 return 0;
12681}
12682_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012683for ac_lib in '' dl; do
12684 if test -z "$ac_lib"; then
12685 ac_res="none required"
12686 else
12687 ac_res=-l$ac_lib
John Criswell3ef61af2003-06-30 21:59:07 +000012688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012689 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012690 rm -f conftest.$ac_objext conftest$ac_exeext
12691if { (ac_try="$ac_link"
12692case "(($ac_try" in
12693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694 *) ac_try_echo=$ac_try;;
12695esac
12696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697 (eval "$ac_link") 2>conftest.er1
12698 ac_status=$?
12699 grep -v '^ *+' conftest.er1 >conftest.err
12700 rm -f conftest.er1
12701 cat conftest.err >&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } &&
12704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12705 { (case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12708esac
12709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_try") 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; } &&
12714 { ac_try='test -s conftest$ac_exeext'
12715 { (case "(($ac_try" in
12716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717 *) ac_try_echo=$ac_try;;
12718esac
12719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12720 (eval "$ac_try") 2>&5
12721 ac_status=$?
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012724 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012725else
12726 echo "$as_me: failed program was:" >&5
12727sed 's/^/| /' conftest.$ac_ext >&5
12728
12729
John Criswell3ef61af2003-06-30 21:59:07 +000012730fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012731
Bill Wendling02b47d92009-04-18 11:20:33 +000012732rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012733 conftest$ac_exeext
12734 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012735 break
John Criswell3ef61af2003-06-30 21:59:07 +000012736fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012737done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012738if test "${ac_cv_search_dlopen+set}" = set; then
12739 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012740else
12741 ac_cv_search_dlopen=no
12742fi
12743rm conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000012744LIBS=$ac_func_search_save_LIBS
12745fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012746{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12747echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012748ac_res=$ac_cv_search_dlopen
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012749if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswelle3a9bd82003-10-09 15:44:28 +000012751
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012752cat >>confdefs.h <<\_ACEOF
12753#define HAVE_DLOPEN 1
12754_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000012755
12756else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012757 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12758echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +000012759fi
12760
12761
Chandler Carruthef7f9682013-01-04 23:19:55 +000012762{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12763echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12764if test "${ac_cv_search_clock_gettime+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12766else
12767 ac_func_search_save_LIBS=$LIBS
12768cat >conftest.$ac_ext <<_ACEOF
12769/* confdefs.h. */
12770_ACEOF
12771cat confdefs.h >>conftest.$ac_ext
12772cat >>conftest.$ac_ext <<_ACEOF
12773/* end confdefs.h. */
12774
12775/* Override any GCC internal prototype to avoid an error.
12776 Use char because int might match the return type of a GCC
12777 builtin and then its argument prototype would still apply. */
12778#ifdef __cplusplus
12779extern "C"
12780#endif
12781char clock_gettime ();
12782int
12783main ()
12784{
12785return clock_gettime ();
12786 ;
12787 return 0;
12788}
12789_ACEOF
12790for ac_lib in '' rt; do
12791 if test -z "$ac_lib"; then
12792 ac_res="none required"
12793 else
12794 ac_res=-l$ac_lib
12795 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12796 fi
12797 rm -f conftest.$ac_objext conftest$ac_exeext
12798if { (ac_try="$ac_link"
12799case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12802esac
12803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_link") 2>conftest.er1
12805 ac_status=$?
12806 grep -v '^ *+' conftest.er1 >conftest.err
12807 rm -f conftest.er1
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12812 { (case "(($ac_try" in
12813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12814 *) ac_try_echo=$ac_try;;
12815esac
12816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12817 (eval "$ac_try") 2>&5
12818 ac_status=$?
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; } &&
12821 { ac_try='test -s conftest$ac_exeext'
12822 { (case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12825esac
12826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12827 (eval "$ac_try") 2>&5
12828 ac_status=$?
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; }; then
12831 ac_cv_search_clock_gettime=$ac_res
12832else
12833 echo "$as_me: failed program was:" >&5
12834sed 's/^/| /' conftest.$ac_ext >&5
12835
12836
12837fi
12838
12839rm -f core conftest.err conftest.$ac_objext \
12840 conftest$ac_exeext
12841 if test "${ac_cv_search_clock_gettime+set}" = set; then
12842 break
12843fi
12844done
12845if test "${ac_cv_search_clock_gettime+set}" = set; then
12846 :
12847else
12848 ac_cv_search_clock_gettime=no
12849fi
12850rm conftest.$ac_ext
12851LIBS=$ac_func_search_save_LIBS
12852fi
12853{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12854echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12855ac_res=$ac_cv_search_clock_gettime
12856if test "$ac_res" != no; then
12857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12858
Chandler Carruthef7f9682013-01-04 23:19:55 +000012859fi
12860
12861
Nick Lewycky86679902009-06-06 06:25:09 +000012862if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012863 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12864echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12865if test "${ac_cv_search_ffi_call+set}" = set; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky11e92142009-02-04 06:27:44 +000012867else
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012868 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012869cat >conftest.$ac_ext <<_ACEOF
12870/* confdefs.h. */
12871_ACEOF
12872cat confdefs.h >>conftest.$ac_ext
12873cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky11e92142009-02-04 06:27:44 +000012874/* end confdefs.h. */
12875
12876/* Override any GCC internal prototype to avoid an error.
12877 Use char because int might match the return type of a GCC
12878 builtin and then its argument prototype would still apply. */
12879#ifdef __cplusplus
12880extern "C"
12881#endif
12882char ffi_call ();
12883int
12884main ()
12885{
12886return ffi_call ();
12887 ;
12888 return 0;
12889}
12890_ACEOF
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012891for ac_lib in '' ffi; do
12892 if test -z "$ac_lib"; then
12893 ac_res="none required"
12894 else
12895 ac_res=-l$ac_lib
12896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12897 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012898 rm -f conftest.$ac_objext conftest$ac_exeext
12899if { (ac_try="$ac_link"
12900case "(($ac_try" in
12901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902 *) ac_try_echo=$ac_try;;
12903esac
12904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905 (eval "$ac_link") 2>conftest.er1
12906 ac_status=$?
12907 grep -v '^ *+' conftest.er1 >conftest.err
12908 rm -f conftest.er1
12909 cat conftest.err >&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } &&
12912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12913 { (case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12916esac
12917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918 (eval "$ac_try") 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; } &&
12922 { ac_try='test -s conftest$ac_exeext'
12923 { (case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12926esac
12927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928 (eval "$ac_try") 2>&5
12929 ac_status=$?
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012932 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012933else
12934 echo "$as_me: failed program was:" >&5
12935sed 's/^/| /' conftest.$ac_ext >&5
12936
12937
Nick Lewycky11e92142009-02-04 06:27:44 +000012938fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012939
Bill Wendling02b47d92009-04-18 11:20:33 +000012940rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012941 conftest$ac_exeext
12942 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012943 break
Nick Lewycky11e92142009-02-04 06:27:44 +000012944fi
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012945done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012946if test "${ac_cv_search_ffi_call+set}" = set; then
12947 :
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012948else
12949 ac_cv_search_ffi_call=no
12950fi
12951rm conftest.$ac_ext
12952LIBS=$ac_func_search_save_LIBS
12953fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012954{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12955echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012956ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012957if test "$ac_res" != no; then
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12959
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012960cat >>confdefs.h <<\_ACEOF
12961#define HAVE_FFI_CALL 1
12962_ACEOF
Nick Lewycky11dc7c12009-04-13 04:26:27 +000012963
Nick Lewycky11e92142009-02-04 06:27:44 +000012964else
Jeffrey Yasskin914050b2010-02-09 23:03:44 +000012965 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12966echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12967 { (exit 1); exit 1; }; }
Nick Lewycky11e92142009-02-04 06:27:44 +000012968fi
12969
Nick Lewycky86679902009-06-06 06:25:09 +000012970fi
Nick Lewycky11e92142009-02-04 06:27:44 +000012971
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012972{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12973echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12974if test "${ac_cv_search_mallinfo+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000012976else
12977 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000012978cat >conftest.$ac_ext <<_ACEOF
12979/* confdefs.h. */
12980_ACEOF
12981cat confdefs.h >>conftest.$ac_ext
12982cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000012983/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000012984
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012985/* Override any GCC internal prototype to avoid an error.
12986 Use char because int might match the return type of a GCC
12987 builtin and then its argument prototype would still apply. */
John Criswell3ef61af2003-06-30 21:59:07 +000012988#ifdef __cplusplus
12989extern "C"
12990#endif
John Criswell3ef61af2003-06-30 21:59:07 +000012991char mallinfo ();
John Criswell3ef61af2003-06-30 21:59:07 +000012992int
12993main ()
12994{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000012995return mallinfo ();
John Criswell3ef61af2003-06-30 21:59:07 +000012996 ;
12997 return 0;
12998}
12999_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013000for ac_lib in '' malloc; do
13001 if test -z "$ac_lib"; then
13002 ac_res="none required"
13003 else
13004 ac_res=-l$ac_lib
John Criswell3ef61af2003-06-30 21:59:07 +000013005 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013006 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013007 rm -f conftest.$ac_objext conftest$ac_exeext
13008if { (ac_try="$ac_link"
13009case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13012esac
13013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_link") 2>conftest.er1
13015 ac_status=$?
13016 grep -v '^ *+' conftest.er1 >conftest.err
13017 rm -f conftest.er1
13018 cat conftest.err >&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } &&
13021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13022 { (case "(($ac_try" in
13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024 *) ac_try_echo=$ac_try;;
13025esac
13026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027 (eval "$ac_try") 2>&5
13028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; } &&
13031 { ac_try='test -s conftest$ac_exeext'
13032 { (case "(($ac_try" in
13033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034 *) ac_try_echo=$ac_try;;
13035esac
13036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037 (eval "$ac_try") 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013041 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013042else
13043 echo "$as_me: failed program was:" >&5
13044sed 's/^/| /' conftest.$ac_ext >&5
13045
13046
John Criswell3ef61af2003-06-30 21:59:07 +000013047fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013048
Bill Wendling02b47d92009-04-18 11:20:33 +000013049rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013050 conftest$ac_exeext
13051 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013052 break
John Criswell3ef61af2003-06-30 21:59:07 +000013053fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013054done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013055if test "${ac_cv_search_mallinfo+set}" = set; then
13056 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013057else
13058 ac_cv_search_mallinfo=no
13059fi
13060rm conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000013061LIBS=$ac_func_search_save_LIBS
13062fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013063{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13064echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013065ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013066if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013067 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswelle3a9bd82003-10-09 15:44:28 +000013068
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013069cat >>confdefs.h <<\_ACEOF
13070#define HAVE_MALLINFO 1
13071_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000013072
13073fi
13074
13075
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +000013076if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013077
13078{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13079echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13080if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer1aa7d052005-07-12 15:24:20 +000013082else
Edward O'Callaghanedea3262009-10-14 11:12:33 +000013083 ac_check_lib_save_LIBS=$LIBS
13084LIBS="-lpthread $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013085cat >conftest.$ac_ext <<_ACEOF
13086/* confdefs.h. */
13087_ACEOF
13088cat confdefs.h >>conftest.$ac_ext
13089cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer1aa7d052005-07-12 15:24:20 +000013090/* end confdefs.h. */
13091
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013092/* Override any GCC internal prototype to avoid an error.
13093 Use char because int might match the return type of a GCC
13094 builtin and then its argument prototype would still apply. */
Reid Spencer1aa7d052005-07-12 15:24:20 +000013095#ifdef __cplusplus
13096extern "C"
13097#endif
Reid Spencer1aa7d052005-07-12 15:24:20 +000013098char pthread_mutex_init ();
13099int
13100main ()
13101{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013102return pthread_mutex_init ();
Reid Spencer1aa7d052005-07-12 15:24:20 +000013103 ;
13104 return 0;
13105}
13106_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013107rm -f conftest.$ac_objext conftest$ac_exeext
13108if { (ac_try="$ac_link"
13109case "(($ac_try" in
13110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13111 *) ac_try_echo=$ac_try;;
13112esac
13113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13114 (eval "$ac_link") 2>conftest.er1
13115 ac_status=$?
13116 grep -v '^ *+' conftest.er1 >conftest.err
13117 rm -f conftest.er1
13118 cat conftest.err >&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } &&
13121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13122 { (case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13125esac
13126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_try") 2>&5
13128 ac_status=$?
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; } &&
13131 { ac_try='test -s conftest$ac_exeext'
13132 { (case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13135esac
13136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_try") 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
Edward O'Callaghanedea3262009-10-14 11:12:33 +000013141 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer1aa7d052005-07-12 15:24:20 +000013142else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013143 echo "$as_me: failed program was:" >&5
13144sed 's/^/| /' conftest.$ac_ext >&5
13145
13146 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer1aa7d052005-07-12 15:24:20 +000013147fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013148
Bill Wendling02b47d92009-04-18 11:20:33 +000013149rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013150 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghanedea3262009-10-14 11:12:33 +000013151LIBS=$ac_check_lib_save_LIBS
Reid Spencer1aa7d052005-07-12 15:24:20 +000013152fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013153{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13154echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13155if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghanedea3262009-10-14 11:12:33 +000013156 cat >>confdefs.h <<_ACEOF
13157#define HAVE_LIBPTHREAD 1
Edward O'Callaghana5314b82009-10-13 01:01:38 +000013158_ACEOF
Reid Spencer1aa7d052005-07-12 15:24:20 +000013159
Edward O'Callaghanedea3262009-10-14 11:12:33 +000013160 LIBS="-lpthread $LIBS"
13161
Reid Spencer1aa7d052005-07-12 15:24:20 +000013162fi
13163
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013164 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13165echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13166if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013168else
13169 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013170cat >conftest.$ac_ext <<_ACEOF
13171/* confdefs.h. */
13172_ACEOF
13173cat confdefs.h >>conftest.$ac_ext
13174cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013175/* end confdefs.h. */
13176
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013177/* Override any GCC internal prototype to avoid an error.
13178 Use char because int might match the return type of a GCC
13179 builtin and then its argument prototype would still apply. */
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013180#ifdef __cplusplus
13181extern "C"
13182#endif
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013183char pthread_mutex_lock ();
13184int
13185main ()
13186{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013187return pthread_mutex_lock ();
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013188 ;
13189 return 0;
13190}
13191_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013192for ac_lib in '' pthread; do
13193 if test -z "$ac_lib"; then
13194 ac_res="none required"
13195 else
13196 ac_res=-l$ac_lib
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013198 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013199 rm -f conftest.$ac_objext conftest$ac_exeext
13200if { (ac_try="$ac_link"
13201case "(($ac_try" in
13202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203 *) ac_try_echo=$ac_try;;
13204esac
13205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 (eval "$ac_link") 2>conftest.er1
13207 ac_status=$?
13208 grep -v '^ *+' conftest.er1 >conftest.err
13209 rm -f conftest.er1
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
13213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13214 { (case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13217esac
13218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219 (eval "$ac_try") 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; } &&
13223 { ac_try='test -s conftest$ac_exeext'
13224 { (case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13227esac
13228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_try") 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013233 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013234else
13235 echo "$as_me: failed program was:" >&5
13236sed 's/^/| /' conftest.$ac_ext >&5
13237
13238
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013239fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013240
Bill Wendling02b47d92009-04-18 11:20:33 +000013241rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013242 conftest$ac_exeext
13243 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013244 break
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013245fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013246done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013247if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13248 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013249else
13250 ac_cv_search_pthread_mutex_lock=no
13251fi
13252rm conftest.$ac_ext
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013253LIBS=$ac_func_search_save_LIBS
13254fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013255{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13256echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013257ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013258if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000013259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013260
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013261cat >>confdefs.h <<\_ACEOF
13262#define HAVE_PTHREAD_MUTEX_LOCK 1
13263_ACEOF
John Criswell71c8d5e2004-09-24 21:19:06 +000013264
13265fi
Brian Gaeke7ee7b402003-12-05 19:29:01 +000013266
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013267 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13268echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13269if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13270 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersona149e222009-06-16 18:20:20 +000013271else
13272 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013273cat >conftest.$ac_ext <<_ACEOF
13274/* confdefs.h. */
13275_ACEOF
13276cat confdefs.h >>conftest.$ac_ext
13277cat >>conftest.$ac_ext <<_ACEOF
Owen Andersona149e222009-06-16 18:20:20 +000013278/* end confdefs.h. */
13279
13280/* Override any GCC internal prototype to avoid an error.
13281 Use char because int might match the return type of a GCC
13282 builtin and then its argument prototype would still apply. */
13283#ifdef __cplusplus
13284extern "C"
13285#endif
13286char pthread_rwlock_init ();
13287int
13288main ()
13289{
13290return pthread_rwlock_init ();
13291 ;
13292 return 0;
13293}
13294_ACEOF
13295for ac_lib in '' pthread; do
13296 if test -z "$ac_lib"; then
13297 ac_res="none required"
13298 else
13299 ac_res=-l$ac_lib
13300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13301 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013302 rm -f conftest.$ac_objext conftest$ac_exeext
13303if { (ac_try="$ac_link"
13304case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13307esac
13308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_link") 2>conftest.er1
13310 ac_status=$?
13311 grep -v '^ *+' conftest.er1 >conftest.err
13312 rm -f conftest.er1
13313 cat conftest.err >&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } &&
13316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13317 { (case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13320esac
13321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322 (eval "$ac_try") 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; } &&
13326 { ac_try='test -s conftest$ac_exeext'
13327 { (case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13330esac
13331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_try") 2>&5
13333 ac_status=$?
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
Owen Andersona149e222009-06-16 18:20:20 +000013336 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013337else
13338 echo "$as_me: failed program was:" >&5
13339sed 's/^/| /' conftest.$ac_ext >&5
13340
13341
Owen Andersona149e222009-06-16 18:20:20 +000013342fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013343
Owen Andersona149e222009-06-16 18:20:20 +000013344rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013345 conftest$ac_exeext
13346 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersona149e222009-06-16 18:20:20 +000013347 break
13348fi
13349done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013350if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13351 :
Owen Andersona149e222009-06-16 18:20:20 +000013352else
13353 ac_cv_search_pthread_rwlock_init=no
13354fi
13355rm conftest.$ac_ext
13356LIBS=$ac_func_search_save_LIBS
13357fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013358{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13359echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersona149e222009-06-16 18:20:20 +000013360ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013361if test "$ac_res" != no; then
Owen Andersona149e222009-06-16 18:20:20 +000013362 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13363
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013364cat >>confdefs.h <<\_ACEOF
13365#define HAVE_PTHREAD_RWLOCK_INIT 1
13366_ACEOF
Owen Andersona149e222009-06-16 18:20:20 +000013367
13368fi
13369
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013370 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13371echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13372if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson11549832009-06-25 23:10:26 +000013374else
13375 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013376cat >conftest.$ac_ext <<_ACEOF
13377/* confdefs.h. */
13378_ACEOF
13379cat confdefs.h >>conftest.$ac_ext
13380cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson11549832009-06-25 23:10:26 +000013381/* end confdefs.h. */
13382
13383/* Override any GCC internal prototype to avoid an error.
13384 Use char because int might match the return type of a GCC
13385 builtin and then its argument prototype would still apply. */
13386#ifdef __cplusplus
13387extern "C"
13388#endif
13389char pthread_getspecific ();
13390int
13391main ()
13392{
13393return pthread_getspecific ();
13394 ;
13395 return 0;
13396}
13397_ACEOF
13398for ac_lib in '' pthread; do
13399 if test -z "$ac_lib"; then
13400 ac_res="none required"
13401 else
13402 ac_res=-l$ac_lib
13403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13404 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013405 rm -f conftest.$ac_objext conftest$ac_exeext
13406if { (ac_try="$ac_link"
13407case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13410esac
13411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_link") 2>conftest.er1
13413 ac_status=$?
13414 grep -v '^ *+' conftest.er1 >conftest.err
13415 rm -f conftest.er1
13416 cat conftest.err >&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } &&
13419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13423esac
13424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try='test -s conftest$ac_exeext'
13430 { (case "(($ac_try" in
13431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432 *) ac_try_echo=$ac_try;;
13433esac
13434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435 (eval "$ac_try") 2>&5
13436 ac_status=$?
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; }; then
Owen Anderson11549832009-06-25 23:10:26 +000013439 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013440else
13441 echo "$as_me: failed program was:" >&5
13442sed 's/^/| /' conftest.$ac_ext >&5
13443
13444
Owen Anderson11549832009-06-25 23:10:26 +000013445fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013446
Owen Anderson11549832009-06-25 23:10:26 +000013447rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013448 conftest$ac_exeext
13449 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson11549832009-06-25 23:10:26 +000013450 break
13451fi
13452done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013453if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13454 :
Owen Anderson11549832009-06-25 23:10:26 +000013455else
13456 ac_cv_search_pthread_getspecific=no
13457fi
13458rm conftest.$ac_ext
13459LIBS=$ac_func_search_save_LIBS
13460fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013461{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13462echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson11549832009-06-25 23:10:26 +000013463ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013464if test "$ac_res" != no; then
Owen Anderson11549832009-06-25 23:10:26 +000013465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13466
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013467cat >>confdefs.h <<\_ACEOF
13468#define HAVE_PTHREAD_GETSPECIFIC 1
13469_ACEOF
Owen Anderson11549832009-06-25 23:10:26 +000013470
13471fi
13472
Reid Spencerf85fabeb2005-08-24 10:07:20 +000013473fi
Brian Gaeked3de6c02004-02-23 21:30:37 +000013474
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000013475if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13476
13477{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13478echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13479if test "${ac_cv_lib_z_compress2+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13481else
13482 ac_check_lib_save_LIBS=$LIBS
13483LIBS="-lz $LIBS"
13484cat >conftest.$ac_ext <<_ACEOF
13485/* confdefs.h. */
13486_ACEOF
13487cat confdefs.h >>conftest.$ac_ext
13488cat >>conftest.$ac_ext <<_ACEOF
13489/* end confdefs.h. */
13490
13491/* Override any GCC internal prototype to avoid an error.
13492 Use char because int might match the return type of a GCC
13493 builtin and then its argument prototype would still apply. */
13494#ifdef __cplusplus
13495extern "C"
13496#endif
13497char compress2 ();
13498int
13499main ()
13500{
13501return compress2 ();
13502 ;
13503 return 0;
13504}
13505_ACEOF
13506rm -f conftest.$ac_objext conftest$ac_exeext
13507if { (ac_try="$ac_link"
13508case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13511esac
13512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_link") 2>conftest.er1
13514 ac_status=$?
13515 grep -v '^ *+' conftest.er1 >conftest.err
13516 rm -f conftest.er1
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } &&
13520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13521 { (case "(($ac_try" in
13522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523 *) ac_try_echo=$ac_try;;
13524esac
13525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_try") 2>&5
13527 ac_status=$?
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; } &&
13530 { ac_try='test -s conftest$ac_exeext'
13531 { (case "(($ac_try" in
13532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533 *) ac_try_echo=$ac_try;;
13534esac
13535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13536 (eval "$ac_try") 2>&5
13537 ac_status=$?
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; }; then
13540 ac_cv_lib_z_compress2=yes
13541else
13542 echo "$as_me: failed program was:" >&5
13543sed 's/^/| /' conftest.$ac_ext >&5
13544
13545 ac_cv_lib_z_compress2=no
13546fi
13547
13548rm -f core conftest.err conftest.$ac_objext \
13549 conftest$ac_exeext conftest.$ac_ext
13550LIBS=$ac_check_lib_save_LIBS
13551fi
13552{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13553echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13554if test $ac_cv_lib_z_compress2 = yes; then
13555 cat >>confdefs.h <<_ACEOF
13556#define HAVE_LIBZ 1
13557_ACEOF
13558
13559 LIBS="-lz $LIBS"
13560
13561fi
13562
13563fi
13564
Reid Spencer0241e382004-11-25 04:51:04 +000013565
Reid Spencere5f3de32007-01-19 17:41:47 +000013566# Check whether --with-udis86 was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013567if test "${with_udis86+set}" = set; then
Reid Spencere5f3de32007-01-19 17:41:47 +000013568 withval=$with_udis86;
13569 USE_UDIS86=1
13570
13571 case "$withval" in
Reid Spencerdfda0612007-01-20 07:48:49 +000013572 /usr/lib|yes) ;;
Reid Spencere5f3de32007-01-19 17:41:47 +000013573 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13574 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013575
13576{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13577echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13578if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencere5f3de32007-01-19 17:41:47 +000013580else
13581 ac_check_lib_save_LIBS=$LIBS
13582LIBS="-ludis86 $LIBS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013583cat >conftest.$ac_ext <<_ACEOF
13584/* confdefs.h. */
13585_ACEOF
13586cat confdefs.h >>conftest.$ac_ext
13587cat >>conftest.$ac_ext <<_ACEOF
Reid Spencere5f3de32007-01-19 17:41:47 +000013588/* end confdefs.h. */
13589
13590/* Override any GCC internal prototype to avoid an error.
13591 Use char because int might match the return type of a GCC
13592 builtin and then its argument prototype would still apply. */
13593#ifdef __cplusplus
13594extern "C"
13595#endif
13596char ud_init ();
13597int
13598main ()
13599{
13600return ud_init ();
13601 ;
13602 return 0;
13603}
13604_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013605rm -f conftest.$ac_objext conftest$ac_exeext
13606if { (ac_try="$ac_link"
13607case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13610esac
13611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_link") 2>conftest.er1
13613 ac_status=$?
13614 grep -v '^ *+' conftest.er1 >conftest.err
13615 rm -f conftest.er1
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
13619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13620 { (case "(($ac_try" in
13621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622 *) ac_try_echo=$ac_try;;
13623esac
13624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13625 (eval "$ac_try") 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest$ac_exeext'
13630 { (case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13633esac
13634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_try") 2>&5
13636 ac_status=$?
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
Reid Spencere5f3de32007-01-19 17:41:47 +000013639 ac_cv_lib_udis86_ud_init=yes
13640else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013641 echo "$as_me: failed program was:" >&5
13642sed 's/^/| /' conftest.$ac_ext >&5
13643
13644 ac_cv_lib_udis86_ud_init=no
Reid Spencere5f3de32007-01-19 17:41:47 +000013645fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013646
Bill Wendling02b47d92009-04-18 11:20:33 +000013647rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013648 conftest$ac_exeext conftest.$ac_ext
Reid Spencere5f3de32007-01-19 17:41:47 +000013649LIBS=$ac_check_lib_save_LIBS
13650fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013651{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13652echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13653if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencere5f3de32007-01-19 17:41:47 +000013654 cat >>confdefs.h <<_ACEOF
13655#define HAVE_LIBUDIS86 1
13656_ACEOF
13657
13658 LIBS="-ludis86 $LIBS"
13659
13660else
13661
13662 echo "Error! You need to have libudis86 around."
13663 exit -1
13664
13665fi
13666
13667
13668else
13669 USE_UDIS86=0
13670
13671fi
13672
13673
13674cat >>confdefs.h <<_ACEOF
13675#define USE_UDIS86 $USE_UDIS86
13676_ACEOF
13677
13678
13679
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013680# Check whether --with-oprofile was given.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013681if test "${with_oprofile+set}" = set; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013682 withval=$with_oprofile;
13683 USE_OPROFILE=1
13684
13685 case "$withval" in
13686 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013687 no) llvm_cv_oppath=
13688 USE_OPROFILE=0
13689 ;;
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013690 *) llvm_cv_oppath="${withval}/lib/oprofile"
Eric Christopher46342fe2012-08-03 17:45:31 +000013691 CPPFLAGS="-I${withval}/include";;
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013692 esac
Eli Bendersky5262ad22012-03-13 08:33:15 +000013693 case $llvm_cv_os_type in
13694 Linux)
13695 if test -n "$llvm_cv_oppath" ; then
13696 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13697 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013698echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13699if test "${ac_cv_search_bfd_init+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013701else
13702 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013703cat >conftest.$ac_ext <<_ACEOF
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013708/* end confdefs.h. */
13709
13710/* Override any GCC internal prototype to avoid an error.
13711 Use char because int might match the return type of a GCC
13712 builtin and then its argument prototype would still apply. */
13713#ifdef __cplusplus
13714extern "C"
13715#endif
13716char bfd_init ();
13717int
13718main ()
13719{
13720return bfd_init ();
13721 ;
13722 return 0;
13723}
13724_ACEOF
13725for ac_lib in '' bfd; do
13726 if test -z "$ac_lib"; then
13727 ac_res="none required"
13728 else
13729 ac_res=-l$ac_lib
13730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13731 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013732 rm -f conftest.$ac_objext conftest$ac_exeext
13733if { (ac_try="$ac_link"
13734case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13737esac
13738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_link") 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
13746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13747 { (case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13750esac
13751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_try") 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; } &&
13756 { ac_try='test -s conftest$ac_exeext'
13757 { (case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13760esac
13761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_try") 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013766 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013767else
13768 echo "$as_me: failed program was:" >&5
13769sed 's/^/| /' conftest.$ac_ext >&5
13770
13771
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013772fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013773
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013774rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013775 conftest$ac_exeext
13776 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013777 break
13778fi
13779done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013780if test "${ac_cv_search_bfd_init+set}" = set; then
13781 :
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013782else
13783 ac_cv_search_bfd_init=no
13784fi
13785rm conftest.$ac_ext
13786LIBS=$ac_func_search_save_LIBS
13787fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013788{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13789echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013790ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013791if test "$ac_res" != no; then
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000013792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13793
13794fi
13795
Eli Bendersky5262ad22012-03-13 08:33:15 +000013796 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013797echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13798if test "${ac_cv_search_op_open_agent+set}" = set; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013800else
13801 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013802cat >conftest.$ac_ext <<_ACEOF
13803/* confdefs.h. */
13804_ACEOF
13805cat confdefs.h >>conftest.$ac_ext
13806cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013807/* end confdefs.h. */
13808
13809/* Override any GCC internal prototype to avoid an error.
13810 Use char because int might match the return type of a GCC
13811 builtin and then its argument prototype would still apply. */
13812#ifdef __cplusplus
13813extern "C"
13814#endif
13815char op_open_agent ();
13816int
13817main ()
13818{
13819return op_open_agent ();
13820 ;
13821 return 0;
13822}
13823_ACEOF
13824for ac_lib in '' opagent; do
13825 if test -z "$ac_lib"; then
13826 ac_res="none required"
13827 else
13828 ac_res=-l$ac_lib
13829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13830 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013831 rm -f conftest.$ac_objext conftest$ac_exeext
13832if { (ac_try="$ac_link"
13833case "(($ac_try" in
13834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13835 *) ac_try_echo=$ac_try;;
13836esac
13837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13838 (eval "$ac_link") 2>conftest.er1
13839 ac_status=$?
13840 grep -v '^ *+' conftest.er1 >conftest.err
13841 rm -f conftest.er1
13842 cat conftest.err >&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13846 { (case "(($ac_try" in
13847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848 *) ac_try_echo=$ac_try;;
13849esac
13850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851 (eval "$ac_try") 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
13856 { (case "(($ac_try" in
13857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858 *) ac_try_echo=$ac_try;;
13859esac
13860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861 (eval "$ac_try") 2>&5
13862 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013865 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013866else
13867 echo "$as_me: failed program was:" >&5
13868sed 's/^/| /' conftest.$ac_ext >&5
13869
13870
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013871fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013872
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013873rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013874 conftest$ac_exeext
13875 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013876 break
13877fi
13878done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013879if test "${ac_cv_search_op_open_agent+set}" = set; then
13880 :
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013881else
13882 ac_cv_search_op_open_agent=no
13883fi
13884rm conftest.$ac_ext
13885LIBS=$ac_func_search_save_LIBS
13886fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013887{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13888echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013889ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013890if test "$ac_res" != no; then
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13892
13893else
13894
Eli Bendersky5262ad22012-03-13 08:33:15 +000013895 echo "Error! You need to have libopagent around."
13896 exit -1
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013897
13898fi
13899
Eli Bendersky5262ad22012-03-13 08:33:15 +000013900 if test "${ac_cv_header_opagent_h+set}" = set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013901 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13902echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13903if test "${ac_cv_header_opagent_h+set}" = set; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
13905fi
13906{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13907echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13908else
13909 # Is the header compilable?
13910{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13911echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13912cat >conftest.$ac_ext <<_ACEOF
13913/* confdefs.h. */
13914_ACEOF
13915cat confdefs.h >>conftest.$ac_ext
13916cat >>conftest.$ac_ext <<_ACEOF
13917/* end confdefs.h. */
13918$ac_includes_default
13919#include <opagent.h>
13920_ACEOF
13921rm -f conftest.$ac_objext
13922if { (ac_try="$ac_compile"
13923case "(($ac_try" in
13924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925 *) ac_try_echo=$ac_try;;
13926esac
13927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928 (eval "$ac_compile") 2>conftest.er1
13929 ac_status=$?
13930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13936 { (case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13939esac
13940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_try") 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } &&
13945 { ac_try='test -s conftest.$ac_objext'
13946 { (case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13949esac
13950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_try") 2>&5
13952 ac_status=$?
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 ac_header_compiler=yes
13956else
13957 echo "$as_me: failed program was:" >&5
13958sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000013959
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000013960 ac_header_compiler=no
13961fi
13962
13963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13964{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13965echo "${ECHO_T}$ac_header_compiler" >&6; }
13966
13967# Is the header present?
13968{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13969echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13970cat >conftest.$ac_ext <<_ACEOF
13971/* confdefs.h. */
13972_ACEOF
13973cat confdefs.h >>conftest.$ac_ext
13974cat >>conftest.$ac_ext <<_ACEOF
13975/* end confdefs.h. */
13976#include <opagent.h>
13977_ACEOF
13978if { (ac_try="$ac_cpp conftest.$ac_ext"
13979case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13982esac
13983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } >/dev/null; then
13991 if test -s conftest.err; then
13992 ac_cpp_err=$ac_c_preproc_warn_flag
13993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13994 else
13995 ac_cpp_err=
13996 fi
13997else
13998 ac_cpp_err=yes
13999fi
14000if test -z "$ac_cpp_err"; then
14001 ac_header_preproc=yes
14002else
14003 echo "$as_me: failed program was:" >&5
14004sed 's/^/| /' conftest.$ac_ext >&5
14005
14006 ac_header_preproc=no
14007fi
14008
14009rm -f conftest.err conftest.$ac_ext
14010{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14011echo "${ECHO_T}$ac_header_preproc" >&6; }
14012
14013# So? What about this header?
14014case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14015 yes:no: )
14016 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14017echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14018 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14019echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14020 ac_header_preproc=yes
14021 ;;
14022 no:yes:* )
14023 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14024echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14026echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14028echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14030echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14032echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14034echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14035 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000014036## ------------------------------------ ##
14037## Report this to http://llvm.org/bugs/ ##
14038## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014039_ASBOX
14040 ) | sed "s/^/$as_me: WARNING: /" >&2
14041 ;;
14042esac
14043{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14044echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14045if test "${ac_cv_header_opagent_h+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047else
14048 ac_cv_header_opagent_h=$ac_header_preproc
14049fi
14050{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14051echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14052
14053fi
14054if test $ac_cv_header_opagent_h = yes; then
14055 :
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000014056else
14057
Eli Bendersky5262ad22012-03-13 08:33:15 +000014058 echo "Error! You need to have opagent.h around."
14059 exit -1
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000014060
14061fi
14062
14063
Eli Bendersky5262ad22012-03-13 08:33:15 +000014064 fi ;;
14065 *)
14066 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14067echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14068 { (exit 1); exit 1; }; } ;;
14069 esac
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000014070
14071else
14072
Jeffrey Yasskin2da72312009-10-07 23:22:42 +000014073 USE_OPROFILE=0
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000014074
14075
14076fi
14077
14078
14079cat >>confdefs.h <<_ACEOF
Eli Bendersky5262ad22012-03-13 08:33:15 +000014080#define LLVM_USE_OPROFILE $USE_OPROFILE
14081_ACEOF
14082
14083
14084
14085# Check whether --with-intel-jitevents was given.
14086if test "${with_intel_jitevents+set}" = set; then
14087 withval=$with_intel_jitevents;
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000014088 case "$withval" in
14089 yes) USE_INTEL_JITEVENTS=1
14090;;
14091 no) USE_INTEL_JITEVENTS=0
14092;;
14093 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14094echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14095 { (exit 1); exit 1; }; };;
14096 esac
14097
Eli Bendersky5262ad22012-03-13 08:33:15 +000014098 case $llvm_cv_os_type in
14099 Linux|Win32|Cygwin|MingW) ;;
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000014100 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14101echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14102 { (exit 1); exit 1; }; };;
Eli Bendersky5262ad22012-03-13 08:33:15 +000014103 esac
14104
Eli Bendersky5262ad22012-03-13 08:33:15 +000014105 case "$llvm_cv_target_arch" in
Andrew Kaylor5808c7d2012-09-28 17:35:20 +000014106 x86|x86_64) ;;
14107 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14108echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14109 { (exit 1); exit 1; }; };;
Eli Bendersky5262ad22012-03-13 08:33:15 +000014110 esac
Eli Bendersky5262ad22012-03-13 08:33:15 +000014111
14112else
14113
14114 USE_INTEL_JITEVENTS=0
14115
14116
14117fi
14118
14119
14120cat >>confdefs.h <<_ACEOF
14121#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000014122_ACEOF
14123
14124
Eric Christopherc807c532012-08-03 19:47:19 +000014125for ac_prog in xml2-config
14126do
14127 # Extract the first word of "$ac_prog", so it can be a program name with args.
14128set dummy $ac_prog; ac_word=$2
14129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14131if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14133else
14134 if test -n "$XML2CONFIG"; then
14135 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14136else
14137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138for as_dir in $PATH
14139do
14140 IFS=$as_save_IFS
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
14143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14144 ac_cv_prog_XML2CONFIG="$ac_prog"
14145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14146 break 2
14147 fi
14148done
14149done
14150IFS=$as_save_IFS
14151
14152fi
14153fi
14154XML2CONFIG=$ac_cv_prog_XML2CONFIG
14155if test -n "$XML2CONFIG"; then
14156 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14157echo "${ECHO_T}$XML2CONFIG" >&6; }
14158else
14159 { echo "$as_me:$LINENO: result: no" >&5
14160echo "${ECHO_T}no" >&6; }
14161fi
14162
14163
14164 test -n "$XML2CONFIG" && break
14165done
14166
14167
14168{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14169echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14170if test "x$XML2CONFIG" = "x"; then
14171 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14172echo "${ECHO_T}xml2-config not found" >&6; }
14173else
14174 LIBXML2_INC=`$XML2CONFIG --cflags`
14175 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14176echo "${ECHO_T}$LIBXML2_INC" >&6; }
14177 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14178echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14179if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14181else
14182 ac_check_lib_save_LIBS=$LIBS
14183LIBS="-lxml2 $LIBS"
14184cat >conftest.$ac_ext <<_ACEOF
14185/* confdefs.h. */
14186_ACEOF
14187cat confdefs.h >>conftest.$ac_ext
14188cat >>conftest.$ac_ext <<_ACEOF
14189/* end confdefs.h. */
14190
14191/* Override any GCC internal prototype to avoid an error.
14192 Use char because int might match the return type of a GCC
14193 builtin and then its argument prototype would still apply. */
14194#ifdef __cplusplus
14195extern "C"
14196#endif
14197char xmlReadFile ();
14198int
14199main ()
14200{
14201return xmlReadFile ();
14202 ;
14203 return 0;
14204}
14205_ACEOF
14206rm -f conftest.$ac_objext conftest$ac_exeext
14207if { (ac_try="$ac_link"
14208case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14211esac
14212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_link") 2>conftest.er1
14214 ac_status=$?
14215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221 { (case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14224esac
14225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_try") 2>&5
14227 ac_status=$?
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } &&
14230 { ac_try='test -s conftest$ac_exeext'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14234esac
14235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_lib_xml2_xmlReadFile=yes
14241else
14242 echo "$as_me: failed program was:" >&5
14243sed 's/^/| /' conftest.$ac_ext >&5
14244
14245 ac_cv_lib_xml2_xmlReadFile=no
14246fi
14247
14248rm -f core conftest.err conftest.$ac_objext \
14249 conftest$ac_exeext conftest.$ac_ext
14250LIBS=$ac_check_lib_save_LIBS
14251fi
14252{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14253echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14254if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14255
14256cat >>confdefs.h <<\_ACEOF
14257#define CLANG_HAVE_LIBXML 1
14258_ACEOF
14259
14260 LIBXML2_LIBS="-lxml2"
14261fi
14262
14263fi
14264
14265
14266
Jeffrey Yasskinefbc3a52009-07-10 21:09:55 +000014267
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014268
14269
14270
14271
14272
Reid Spencer8bc110c2004-12-25 07:31:29 +000014273ac_header_dirent=no
14274for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014275 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14276{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14277echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014280else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014281 cat >conftest.$ac_ext <<_ACEOF
14282/* confdefs.h. */
14283_ACEOF
14284cat confdefs.h >>conftest.$ac_ext
14285cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014286/* end confdefs.h. */
14287#include <sys/types.h>
14288#include <$ac_hdr>
14289
14290int
14291main ()
14292{
14293if ((DIR *) 0)
14294return 0;
14295 ;
14296 return 0;
14297}
14298_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014299rm -f conftest.$ac_objext
14300if { (ac_try="$ac_compile"
14301case "(($ac_try" in
14302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303 *) ac_try_echo=$ac_try;;
14304esac
14305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14306 (eval "$ac_compile") 2>conftest.er1
14307 ac_status=$?
14308 grep -v '^ *+' conftest.er1 >conftest.err
14309 rm -f conftest.er1
14310 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } &&
14313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14314 { (case "(($ac_try" in
14315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14317esac
14318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319 (eval "$ac_try") 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; } &&
14323 { ac_try='test -s conftest.$ac_objext'
14324 { (case "(($ac_try" in
14325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14326 *) ac_try_echo=$ac_try;;
14327esac
14328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14329 (eval "$ac_try") 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000014333 eval "$as_ac_Header=yes"
14334else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014335 echo "$as_me: failed program was:" >&5
14336sed 's/^/| /' conftest.$ac_ext >&5
14337
14338 eval "$as_ac_Header=no"
Reid Spencer8bc110c2004-12-25 07:31:29 +000014339fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014340
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000014342fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014343ac_res=`eval echo '${'$as_ac_Header'}'`
14344 { echo "$as_me:$LINENO: result: $ac_res" >&5
14345echo "${ECHO_T}$ac_res" >&6; }
14346if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000014347 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014348#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer8bc110c2004-12-25 07:31:29 +000014349_ACEOF
14350
14351ac_header_dirent=$ac_hdr; break
14352fi
14353
14354done
14355# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14356if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014357 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14358echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14359if test "${ac_cv_search_opendir+set}" = set; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014361else
14362 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014363cat >conftest.$ac_ext <<_ACEOF
14364/* confdefs.h. */
14365_ACEOF
14366cat confdefs.h >>conftest.$ac_ext
14367cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014368/* end confdefs.h. */
14369
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014370/* Override any GCC internal prototype to avoid an error.
14371 Use char because int might match the return type of a GCC
14372 builtin and then its argument prototype would still apply. */
Reid Spencer8bc110c2004-12-25 07:31:29 +000014373#ifdef __cplusplus
14374extern "C"
14375#endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014376char opendir ();
14377int
14378main ()
14379{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014380return opendir ();
Reid Spencer8bc110c2004-12-25 07:31:29 +000014381 ;
14382 return 0;
14383}
14384_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014385for ac_lib in '' dir; do
14386 if test -z "$ac_lib"; then
14387 ac_res="none required"
14388 else
14389 ac_res=-l$ac_lib
Reid Spencer8bc110c2004-12-25 07:31:29 +000014390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014391 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014392 rm -f conftest.$ac_objext conftest$ac_exeext
14393if { (ac_try="$ac_link"
14394case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14397esac
14398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_link") 2>conftest.er1
14400 ac_status=$?
14401 grep -v '^ *+' conftest.er1 >conftest.err
14402 rm -f conftest.er1
14403 cat conftest.err >&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } &&
14406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14407 { (case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14410esac
14411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_try") 2>&5
14413 ac_status=$?
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; } &&
14416 { ac_try='test -s conftest$ac_exeext'
14417 { (case "(($ac_try" in
14418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14419 *) ac_try_echo=$ac_try;;
14420esac
14421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14422 (eval "$ac_try") 2>&5
14423 ac_status=$?
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014426 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014427else
14428 echo "$as_me: failed program was:" >&5
14429sed 's/^/| /' conftest.$ac_ext >&5
14430
14431
Reid Spencer8bc110c2004-12-25 07:31:29 +000014432fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014433
Bill Wendling02b47d92009-04-18 11:20:33 +000014434rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014435 conftest$ac_exeext
14436 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014437 break
Reid Spencer8bc110c2004-12-25 07:31:29 +000014438fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014439done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014440if test "${ac_cv_search_opendir+set}" = set; then
14441 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014442else
14443 ac_cv_search_opendir=no
14444fi
14445rm conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000014446LIBS=$ac_func_search_save_LIBS
14447fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014448{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14449echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014450ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014451if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer8bc110c2004-12-25 07:31:29 +000014453
14454fi
14455
14456else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014457 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14458echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14459if test "${ac_cv_search_opendir+set}" = set; then
14460 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014461else
14462 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014463cat >conftest.$ac_ext <<_ACEOF
14464/* confdefs.h. */
14465_ACEOF
14466cat confdefs.h >>conftest.$ac_ext
14467cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014468/* end confdefs.h. */
14469
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014470/* Override any GCC internal prototype to avoid an error.
14471 Use char because int might match the return type of a GCC
14472 builtin and then its argument prototype would still apply. */
Reid Spencer8bc110c2004-12-25 07:31:29 +000014473#ifdef __cplusplus
14474extern "C"
14475#endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014476char opendir ();
14477int
14478main ()
14479{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014480return opendir ();
Reid Spencer8bc110c2004-12-25 07:31:29 +000014481 ;
14482 return 0;
14483}
14484_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014485for ac_lib in '' x; do
14486 if test -z "$ac_lib"; then
14487 ac_res="none required"
14488 else
14489 ac_res=-l$ac_lib
Reid Spencer8bc110c2004-12-25 07:31:29 +000014490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014491 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014492 rm -f conftest.$ac_objext conftest$ac_exeext
14493if { (ac_try="$ac_link"
14494case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14497esac
14498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_link") 2>conftest.er1
14500 ac_status=$?
14501 grep -v '^ *+' conftest.er1 >conftest.err
14502 rm -f conftest.er1
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } &&
14506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14507 { (case "(($ac_try" in
14508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14510esac
14511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512 (eval "$ac_try") 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; } &&
14516 { ac_try='test -s conftest$ac_exeext'
14517 { (case "(($ac_try" in
14518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14519 *) ac_try_echo=$ac_try;;
14520esac
14521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14522 (eval "$ac_try") 2>&5
14523 ac_status=$?
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; }; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014526 ac_cv_search_opendir=$ac_res
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014527else
14528 echo "$as_me: failed program was:" >&5
14529sed 's/^/| /' conftest.$ac_ext >&5
14530
14531
Reid Spencer8bc110c2004-12-25 07:31:29 +000014532fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014533
Bill Wendling02b47d92009-04-18 11:20:33 +000014534rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014535 conftest$ac_exeext
14536 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014537 break
Reid Spencer8bc110c2004-12-25 07:31:29 +000014538fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014539done
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014540if test "${ac_cv_search_opendir+set}" = set; then
14541 :
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014542else
14543 ac_cv_search_opendir=no
14544fi
14545rm conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000014546LIBS=$ac_func_search_save_LIBS
14547fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014548{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14549echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014550ac_res=$ac_cv_search_opendir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014551if test "$ac_res" != no; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer8bc110c2004-12-25 07:31:29 +000014553
14554fi
14555
14556fi
14557
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014558{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14559echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14560if test "${ac_cv_header_mmap_anon+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014562else
14563 ac_ext=c
14564ac_cpp='$CPP $CPPFLAGS'
14565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14567ac_compiler_gnu=$ac_cv_c_compiler_gnu
14568
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014569 cat >conftest.$ac_ext <<_ACEOF
14570/* confdefs.h. */
14571_ACEOF
14572cat confdefs.h >>conftest.$ac_ext
14573cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014574/* end confdefs.h. */
14575#include <sys/mman.h>
14576#include <unistd.h>
14577#include <fcntl.h>
14578int
14579main ()
14580{
14581mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14582 ;
14583 return 0;
14584}
14585_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014586rm -f conftest.$ac_objext
14587if { (ac_try="$ac_compile"
14588case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14591esac
14592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_compile") 2>conftest.er1
14594 ac_status=$?
14595 grep -v '^ *+' conftest.er1 >conftest.err
14596 rm -f conftest.er1
14597 cat conftest.err >&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } &&
14600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14601 { (case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14604esac
14605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_try") 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; } &&
14610 { ac_try='test -s conftest.$ac_objext'
14611 { (case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14614esac
14615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_try") 2>&5
14617 ac_status=$?
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000014620 ac_cv_header_mmap_anon=yes
14621else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014622 echo "$as_me: failed program was:" >&5
14623sed 's/^/| /' conftest.$ac_ext >&5
14624
14625 ac_cv_header_mmap_anon=no
Reid Spencer8bc110c2004-12-25 07:31:29 +000014626fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014627
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer8bc110c2004-12-25 07:31:29 +000014629 ac_ext=c
14630ac_cpp='$CPP $CPPFLAGS'
14631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14633ac_compiler_gnu=$ac_cv_c_compiler_gnu
14634
14635
14636fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014637{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14638echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer8bc110c2004-12-25 07:31:29 +000014639if test "$ac_cv_header_mmap_anon" = yes; then
14640
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014641cat >>confdefs.h <<\_ACEOF
14642#define HAVE_MMAP_ANONYMOUS 1
14643_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014644
14645fi
14646
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014647{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14648echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14649if test "${ac_cv_header_stat_broken+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer8bc110c2004-12-25 07:31:29 +000014651else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014652 cat >conftest.$ac_ext <<_ACEOF
14653/* confdefs.h. */
14654_ACEOF
14655cat confdefs.h >>conftest.$ac_ext
14656cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014657/* end confdefs.h. */
14658#include <sys/types.h>
14659#include <sys/stat.h>
14660
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014661#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014662# if S_ISBLK (S_IFDIR)
14663You lose.
14664# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014665#endif
14666
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014667#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014668# if S_ISBLK (S_IFCHR)
14669You lose.
14670# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014671#endif
14672
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014673#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014674# if S_ISLNK (S_IFREG)
14675You lose.
14676# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014677#endif
14678
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014679#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014680# if S_ISSOCK (S_IFREG)
14681You lose.
14682# endif
Reid Spencer8bc110c2004-12-25 07:31:29 +000014683#endif
14684
14685_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14687 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwinaec06332010-01-26 08:50:50 +000014688 ac_cv_header_stat_broken=yes
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014689else
14690 ac_cv_header_stat_broken=no
Mikhail Glushenkov4308aa52009-04-18 09:59:26 +000014691fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014692rm -f conftest*
14693
Reid Spencer8bc110c2004-12-25 07:31:29 +000014694fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014695{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14696echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer8bc110c2004-12-25 07:31:29 +000014697if test $ac_cv_header_stat_broken = yes; then
14698
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014699cat >>confdefs.h <<\_ACEOF
14700#define STAT_MACROS_BROKEN 1
14701_ACEOF
Reid Spencer8bc110c2004-12-25 07:31:29 +000014702
14703fi
14704
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014705{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14706echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14707if test "${ac_cv_header_sys_wait_h+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000014709else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014710 cat >conftest.$ac_ext <<_ACEOF
14711/* confdefs.h. */
14712_ACEOF
14713cat confdefs.h >>conftest.$ac_ext
14714cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000014715/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000014716#include <sys/types.h>
14717#include <sys/wait.h>
14718#ifndef WEXITSTATUS
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014719# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell3ef61af2003-06-30 21:59:07 +000014720#endif
14721#ifndef WIFEXITED
14722# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14723#endif
14724
John Criswell3ef61af2003-06-30 21:59:07 +000014725int
14726main ()
14727{
14728 int s;
14729 wait (&s);
14730 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14731 ;
14732 return 0;
14733}
14734_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014735rm -f conftest.$ac_objext
14736if { (ac_try="$ac_compile"
14737case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14740esac
14741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_compile") 2>conftest.er1
14743 ac_status=$?
14744 grep -v '^ *+' conftest.er1 >conftest.err
14745 rm -f conftest.er1
14746 cat conftest.err >&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } &&
14749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14750 { (case "(($ac_try" in
14751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752 *) ac_try_echo=$ac_try;;
14753esac
14754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14755 (eval "$ac_try") 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; } &&
14759 { ac_try='test -s conftest.$ac_objext'
14760 { (case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14763esac
14764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_try") 2>&5
14766 ac_status=$?
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000014769 ac_cv_header_sys_wait_h=yes
14770else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014771 echo "$as_me: failed program was:" >&5
14772sed 's/^/| /' conftest.$ac_ext >&5
14773
14774 ac_cv_header_sys_wait_h=no
John Criswell3ef61af2003-06-30 21:59:07 +000014775fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014776
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000014778fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014779{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14780echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000014781if test $ac_cv_header_sys_wait_h = yes; then
14782
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014783cat >>confdefs.h <<\_ACEOF
14784#define HAVE_SYS_WAIT_H 1
14785_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000014786
14787fi
14788
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014789{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14790echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14791if test "${ac_cv_header_time+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000014793else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014794 cat >conftest.$ac_ext <<_ACEOF
14795/* confdefs.h. */
14796_ACEOF
14797cat confdefs.h >>conftest.$ac_ext
14798cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000014799/* end confdefs.h. */
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014800#include <sys/types.h>
Reid Spencer0241e382004-11-25 04:51:04 +000014801#include <sys/time.h>
14802#include <time.h>
14803
14804int
14805main ()
14806{
14807if ((struct tm *) 0)
14808return 0;
14809 ;
14810 return 0;
14811}
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014812_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014813rm -f conftest.$ac_objext
14814if { (ac_try="$ac_compile"
14815case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14818esac
14819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_compile") 2>conftest.er1
14821 ac_status=$?
14822 grep -v '^ *+' conftest.er1 >conftest.err
14823 rm -f conftest.er1
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } &&
14827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14828 { (case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14831esac
14832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_try") 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; } &&
14837 { ac_try='test -s conftest.$ac_objext'
14838 { (case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14841esac
14842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_try") 2>&5
14844 ac_status=$?
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000014847 ac_cv_header_time=yes
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014848else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014849 echo "$as_me: failed program was:" >&5
14850sed 's/^/| /' conftest.$ac_ext >&5
14851
14852 ac_cv_header_time=no
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014853fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014854
Reid Spencer0b52e2f2006-08-04 18:18:08 +000014855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000014856fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014857{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14858echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000014859if test $ac_cv_header_time = yes; then
Brian Gaeke4eea32f2004-02-23 22:07:00 +000014860
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000014861cat >>confdefs.h <<\_ACEOF
14862#define TIME_WITH_SYS_TIME 1
14863_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000014864
14865fi
14866
Reid Spencer0241e382004-11-25 04:51:04 +000014867
Benjamin Kramer00622f72013-05-03 15:55:06 +000014868ac_ext=cpp
14869ac_cpp='$CXXCPP $CPPFLAGS'
14870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14873
14874ac_ext=cpp
14875ac_cpp='$CXXCPP $CPPFLAGS'
14876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14879{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14880echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14881if test -z "$CXXCPP"; then
14882 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14884else
14885 # Double quotes because CXXCPP needs to be expanded
14886 for CXXCPP in "$CXX -E" "/lib/cpp"
14887 do
14888 ac_preproc_ok=false
14889for ac_cxx_preproc_warn_flag in '' yes
14890do
14891 # Use a header file that comes with gcc, so configuring glibc
14892 # with a fresh cross-compiler works.
14893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14894 # <limits.h> exists even on freestanding compilers.
14895 # On the NeXT, cc -E runs the code through the compiler's parser,
14896 # not just through cpp. "Syntax error" is here to catch this case.
14897 cat >conftest.$ac_ext <<_ACEOF
14898/* confdefs.h. */
14899_ACEOF
14900cat confdefs.h >>conftest.$ac_ext
14901cat >>conftest.$ac_ext <<_ACEOF
14902/* end confdefs.h. */
14903#ifdef __STDC__
14904# include <limits.h>
14905#else
14906# include <assert.h>
14907#endif
14908 Syntax error
14909_ACEOF
14910if { (ac_try="$ac_cpp conftest.$ac_ext"
14911case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14914esac
14915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14917 ac_status=$?
14918 grep -v '^ *+' conftest.er1 >conftest.err
14919 rm -f conftest.er1
14920 cat conftest.err >&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } >/dev/null; then
14923 if test -s conftest.err; then
14924 ac_cpp_err=$ac_cxx_preproc_warn_flag
14925 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14926 else
14927 ac_cpp_err=
14928 fi
14929else
14930 ac_cpp_err=yes
14931fi
14932if test -z "$ac_cpp_err"; then
14933 :
14934else
14935 echo "$as_me: failed program was:" >&5
14936sed 's/^/| /' conftest.$ac_ext >&5
14937
14938 # Broken: fails on valid input.
14939continue
14940fi
14941
14942rm -f conftest.err conftest.$ac_ext
14943
14944 # OK, works on sane cases. Now check whether nonexistent headers
14945 # can be detected and how.
14946 cat >conftest.$ac_ext <<_ACEOF
14947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
14951/* end confdefs.h. */
14952#include <ac_nonexistent.h>
14953_ACEOF
14954if { (ac_try="$ac_cpp conftest.$ac_ext"
14955case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14958esac
14959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14961 ac_status=$?
14962 grep -v '^ *+' conftest.er1 >conftest.err
14963 rm -f conftest.er1
14964 cat conftest.err >&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } >/dev/null; then
14967 if test -s conftest.err; then
14968 ac_cpp_err=$ac_cxx_preproc_warn_flag
14969 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14970 else
14971 ac_cpp_err=
14972 fi
14973else
14974 ac_cpp_err=yes
14975fi
14976if test -z "$ac_cpp_err"; then
14977 # Broken: success on invalid input.
14978continue
14979else
14980 echo "$as_me: failed program was:" >&5
14981sed 's/^/| /' conftest.$ac_ext >&5
14982
14983 # Passes both tests.
14984ac_preproc_ok=:
14985break
14986fi
14987
14988rm -f conftest.err conftest.$ac_ext
14989
14990done
14991# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14992rm -f conftest.err conftest.$ac_ext
14993if $ac_preproc_ok; then
14994 break
14995fi
14996
14997 done
14998 ac_cv_prog_CXXCPP=$CXXCPP
14999
15000fi
15001 CXXCPP=$ac_cv_prog_CXXCPP
15002else
15003 ac_cv_prog_CXXCPP=$CXXCPP
15004fi
15005{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
15006echo "${ECHO_T}$CXXCPP" >&6; }
15007ac_preproc_ok=false
15008for ac_cxx_preproc_warn_flag in '' yes
15009do
15010 # Use a header file that comes with gcc, so configuring glibc
15011 # with a fresh cross-compiler works.
15012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15013 # <limits.h> exists even on freestanding compilers.
15014 # On the NeXT, cc -E runs the code through the compiler's parser,
15015 # not just through cpp. "Syntax error" is here to catch this case.
15016 cat >conftest.$ac_ext <<_ACEOF
15017/* confdefs.h. */
15018_ACEOF
15019cat confdefs.h >>conftest.$ac_ext
15020cat >>conftest.$ac_ext <<_ACEOF
15021/* end confdefs.h. */
15022#ifdef __STDC__
15023# include <limits.h>
15024#else
15025# include <assert.h>
15026#endif
15027 Syntax error
15028_ACEOF
15029if { (ac_try="$ac_cpp conftest.$ac_ext"
15030case "(($ac_try" in
15031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15032 *) ac_try_echo=$ac_try;;
15033esac
15034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15036 ac_status=$?
15037 grep -v '^ *+' conftest.er1 >conftest.err
15038 rm -f conftest.er1
15039 cat conftest.err >&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } >/dev/null; then
15042 if test -s conftest.err; then
15043 ac_cpp_err=$ac_cxx_preproc_warn_flag
15044 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15045 else
15046 ac_cpp_err=
15047 fi
15048else
15049 ac_cpp_err=yes
15050fi
15051if test -z "$ac_cpp_err"; then
15052 :
15053else
15054 echo "$as_me: failed program was:" >&5
15055sed 's/^/| /' conftest.$ac_ext >&5
15056
15057 # Broken: fails on valid input.
15058continue
15059fi
15060
15061rm -f conftest.err conftest.$ac_ext
15062
15063 # OK, works on sane cases. Now check whether nonexistent headers
15064 # can be detected and how.
15065 cat >conftest.$ac_ext <<_ACEOF
15066/* confdefs.h. */
15067_ACEOF
15068cat confdefs.h >>conftest.$ac_ext
15069cat >>conftest.$ac_ext <<_ACEOF
15070/* end confdefs.h. */
15071#include <ac_nonexistent.h>
15072_ACEOF
15073if { (ac_try="$ac_cpp conftest.$ac_ext"
15074case "(($ac_try" in
15075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076 *) ac_try_echo=$ac_try;;
15077esac
15078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15080 ac_status=$?
15081 grep -v '^ *+' conftest.er1 >conftest.err
15082 rm -f conftest.er1
15083 cat conftest.err >&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } >/dev/null; then
15086 if test -s conftest.err; then
15087 ac_cpp_err=$ac_cxx_preproc_warn_flag
15088 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15089 else
15090 ac_cpp_err=
15091 fi
15092else
15093 ac_cpp_err=yes
15094fi
15095if test -z "$ac_cpp_err"; then
15096 # Broken: success on invalid input.
15097continue
15098else
15099 echo "$as_me: failed program was:" >&5
15100sed 's/^/| /' conftest.$ac_ext >&5
15101
15102 # Passes both tests.
15103ac_preproc_ok=:
15104break
15105fi
15106
15107rm -f conftest.err conftest.$ac_ext
15108
15109done
15110# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15111rm -f conftest.err conftest.$ac_ext
15112if $ac_preproc_ok; then
15113 :
15114else
15115 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15116See \`config.log' for more details." >&5
15117echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15118See \`config.log' for more details." >&2;}
15119 { (exit 1); exit 1; }; }
15120fi
15121
15122ac_ext=cpp
15123ac_cpp='$CXXCPP $CPPFLAGS'
15124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15127
15128
15129
15130for ac_header in cxxabi.h
15131do
15132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15133if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15138fi
15139ac_res=`eval echo '${'$as_ac_Header'}'`
15140 { echo "$as_me:$LINENO: result: $ac_res" >&5
15141echo "${ECHO_T}$ac_res" >&6; }
15142else
15143 # Is the header compilable?
15144{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15145echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15146cat >conftest.$ac_ext <<_ACEOF
15147/* confdefs.h. */
15148_ACEOF
15149cat confdefs.h >>conftest.$ac_ext
15150cat >>conftest.$ac_ext <<_ACEOF
15151/* end confdefs.h. */
15152$ac_includes_default
15153#include <$ac_header>
15154_ACEOF
15155rm -f conftest.$ac_objext
15156if { (ac_try="$ac_compile"
15157case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15160esac
15161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_compile") 2>conftest.er1
15163 ac_status=$?
15164 grep -v '^ *+' conftest.er1 >conftest.err
15165 rm -f conftest.er1
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } &&
15169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15170 { (case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15173esac
15174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_try") 2>&5
15176 ac_status=$?
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; } &&
15179 { ac_try='test -s conftest.$ac_objext'
15180 { (case "(($ac_try" in
15181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182 *) ac_try_echo=$ac_try;;
15183esac
15184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15185 (eval "$ac_try") 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_header_compiler=yes
15190else
15191 echo "$as_me: failed program was:" >&5
15192sed 's/^/| /' conftest.$ac_ext >&5
15193
15194 ac_header_compiler=no
15195fi
15196
15197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15199echo "${ECHO_T}$ac_header_compiler" >&6; }
15200
15201# Is the header present?
15202{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15203echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15204cat >conftest.$ac_ext <<_ACEOF
15205/* confdefs.h. */
15206_ACEOF
15207cat confdefs.h >>conftest.$ac_ext
15208cat >>conftest.$ac_ext <<_ACEOF
15209/* end confdefs.h. */
15210#include <$ac_header>
15211_ACEOF
15212if { (ac_try="$ac_cpp conftest.$ac_ext"
15213case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15216esac
15217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15219 ac_status=$?
15220 grep -v '^ *+' conftest.er1 >conftest.err
15221 rm -f conftest.er1
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } >/dev/null; then
15225 if test -s conftest.err; then
15226 ac_cpp_err=$ac_cxx_preproc_warn_flag
15227 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15228 else
15229 ac_cpp_err=
15230 fi
15231else
15232 ac_cpp_err=yes
15233fi
15234if test -z "$ac_cpp_err"; then
15235 ac_header_preproc=yes
15236else
15237 echo "$as_me: failed program was:" >&5
15238sed 's/^/| /' conftest.$ac_ext >&5
15239
15240 ac_header_preproc=no
15241fi
15242
15243rm -f conftest.err conftest.$ac_ext
15244{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15245echo "${ECHO_T}$ac_header_preproc" >&6; }
15246
15247# So? What about this header?
15248case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15249 yes:no: )
15250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15251echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15253echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15254 ac_header_preproc=yes
15255 ;;
15256 no:yes:* )
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15258echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15260echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15262echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15264echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15268echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15269 ( cat <<\_ASBOX
15270## ------------------------------------ ##
15271## Report this to http://llvm.org/bugs/ ##
15272## ------------------------------------ ##
15273_ASBOX
15274 ) | sed "s/^/$as_me: WARNING: /" >&2
15275 ;;
15276esac
15277{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15280 echo $ECHO_N "(cached) $ECHO_C" >&6
15281else
15282 eval "$as_ac_Header=\$ac_header_preproc"
15283fi
15284ac_res=`eval echo '${'$as_ac_Header'}'`
15285 { echo "$as_me:$LINENO: result: $ac_res" >&5
15286echo "${ECHO_T}$ac_res" >&6; }
15287
15288fi
15289if test `eval echo '${'$as_ac_Header'}'` = yes; then
15290 cat >>confdefs.h <<_ACEOF
15291#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15292_ACEOF
15293
15294fi
15295
15296done
15297
15298ac_ext=c
15299ac_cpp='$CPP $CPPFLAGS'
15300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15302ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015303
15304
15305
15306
15307
15308
Eric Christopher15a4e5e2013-04-27 22:23:16 +000015309
Benjamin Kramer00622f72013-05-03 15:55:06 +000015310for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015311do
15312as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15318fi
15319ac_res=`eval echo '${'$as_ac_Header'}'`
15320 { echo "$as_me:$LINENO: result: $ac_res" >&5
15321echo "${ECHO_T}$ac_res" >&6; }
15322else
15323 # Is the header compilable?
15324{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15325echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15326cat >conftest.$ac_ext <<_ACEOF
15327/* confdefs.h. */
15328_ACEOF
15329cat confdefs.h >>conftest.$ac_ext
15330cat >>conftest.$ac_ext <<_ACEOF
15331/* end confdefs.h. */
15332$ac_includes_default
15333#include <$ac_header>
15334_ACEOF
15335rm -f conftest.$ac_objext
15336if { (ac_try="$ac_compile"
15337case "(($ac_try" in
15338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15340esac
15341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342 (eval "$ac_compile") 2>conftest.er1
15343 ac_status=$?
15344 grep -v '^ *+' conftest.er1 >conftest.err
15345 rm -f conftest.er1
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
15349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15350 { (case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15353esac
15354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_try") 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest.$ac_objext'
15360 { (case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15363esac
15364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_try") 2>&5
15366 ac_status=$?
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }; then
15369 ac_header_compiler=yes
15370else
15371 echo "$as_me: failed program was:" >&5
15372sed 's/^/| /' conftest.$ac_ext >&5
15373
15374 ac_header_compiler=no
15375fi
15376
15377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15379echo "${ECHO_T}$ac_header_compiler" >&6; }
15380
15381# Is the header present?
15382{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15384cat >conftest.$ac_ext <<_ACEOF
15385/* confdefs.h. */
15386_ACEOF
15387cat confdefs.h >>conftest.$ac_ext
15388cat >>conftest.$ac_ext <<_ACEOF
15389/* end confdefs.h. */
15390#include <$ac_header>
15391_ACEOF
15392if { (ac_try="$ac_cpp conftest.$ac_ext"
15393case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15396esac
15397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15399 ac_status=$?
15400 grep -v '^ *+' conftest.er1 >conftest.err
15401 rm -f conftest.er1
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } >/dev/null; then
15405 if test -s conftest.err; then
15406 ac_cpp_err=$ac_c_preproc_warn_flag
15407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15408 else
15409 ac_cpp_err=
15410 fi
15411else
15412 ac_cpp_err=yes
15413fi
15414if test -z "$ac_cpp_err"; then
15415 ac_header_preproc=yes
15416else
15417 echo "$as_me: failed program was:" >&5
15418sed 's/^/| /' conftest.$ac_ext >&5
15419
15420 ac_header_preproc=no
15421fi
15422
15423rm -f conftest.err conftest.$ac_ext
15424{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15425echo "${ECHO_T}$ac_header_preproc" >&6; }
15426
15427# So? What about this header?
15428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15429 yes:no: )
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15433echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15434 ac_header_preproc=yes
15435 ;;
15436 no:yes:* )
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15438echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15440echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15442echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15444echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15448echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15449 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015450## ------------------------------------ ##
15451## Report this to http://llvm.org/bugs/ ##
15452## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015453_ASBOX
15454 ) | sed "s/^/$as_me: WARNING: /" >&2
15455 ;;
15456esac
15457{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15460 echo $ECHO_N "(cached) $ECHO_C" >&6
15461else
15462 eval "$as_ac_Header=\$ac_header_preproc"
15463fi
15464ac_res=`eval echo '${'$as_ac_Header'}'`
15465 { echo "$as_me:$LINENO: result: $ac_res" >&5
15466echo "${ECHO_T}$ac_res" >&6; }
15467
15468fi
15469if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000015470 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer0241e382004-11-25 04:51:04 +000015472_ACEOF
Brian Gaeke4eea32f2004-02-23 22:07:00 +000015473
15474fi
Brian Gaeke4eea32f2004-02-23 22:07:00 +000015475
Reid Spencer8bc110c2004-12-25 07:31:29 +000015476done
Brian Gaeke4eea32f2004-02-23 22:07:00 +000015477
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015478
15479
15480
15481
15482
15483
Douglas Gregorb81294d2009-05-18 17:21:34 +000015484for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015485do
15486as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15492fi
15493ac_res=`eval echo '${'$as_ac_Header'}'`
15494 { echo "$as_me:$LINENO: result: $ac_res" >&5
15495echo "${ECHO_T}$ac_res" >&6; }
15496else
15497 # Is the header compilable?
15498{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15499echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15500cat >conftest.$ac_ext <<_ACEOF
15501/* confdefs.h. */
15502_ACEOF
15503cat confdefs.h >>conftest.$ac_ext
15504cat >>conftest.$ac_ext <<_ACEOF
15505/* end confdefs.h. */
15506$ac_includes_default
15507#include <$ac_header>
15508_ACEOF
15509rm -f conftest.$ac_objext
15510if { (ac_try="$ac_compile"
15511case "(($ac_try" in
15512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513 *) ac_try_echo=$ac_try;;
15514esac
15515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516 (eval "$ac_compile") 2>conftest.er1
15517 ac_status=$?
15518 grep -v '^ *+' conftest.er1 >conftest.err
15519 rm -f conftest.er1
15520 cat conftest.err >&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } &&
15523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15524 { (case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15527esac
15528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_try") 2>&5
15530 ac_status=$?
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; } &&
15533 { ac_try='test -s conftest.$ac_objext'
15534 { (case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15537esac
15538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539 (eval "$ac_try") 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15543 ac_header_compiler=yes
15544else
15545 echo "$as_me: failed program was:" >&5
15546sed 's/^/| /' conftest.$ac_ext >&5
15547
15548 ac_header_compiler=no
15549fi
15550
15551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15552{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15553echo "${ECHO_T}$ac_header_compiler" >&6; }
15554
15555# Is the header present?
15556{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15557echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15558cat >conftest.$ac_ext <<_ACEOF
15559/* confdefs.h. */
15560_ACEOF
15561cat confdefs.h >>conftest.$ac_ext
15562cat >>conftest.$ac_ext <<_ACEOF
15563/* end confdefs.h. */
15564#include <$ac_header>
15565_ACEOF
15566if { (ac_try="$ac_cpp conftest.$ac_ext"
15567case "(($ac_try" in
15568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569 *) ac_try_echo=$ac_try;;
15570esac
15571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15573 ac_status=$?
15574 grep -v '^ *+' conftest.er1 >conftest.err
15575 rm -f conftest.er1
15576 cat conftest.err >&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } >/dev/null; then
15579 if test -s conftest.err; then
15580 ac_cpp_err=$ac_c_preproc_warn_flag
15581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15582 else
15583 ac_cpp_err=
15584 fi
15585else
15586 ac_cpp_err=yes
15587fi
15588if test -z "$ac_cpp_err"; then
15589 ac_header_preproc=yes
15590else
15591 echo "$as_me: failed program was:" >&5
15592sed 's/^/| /' conftest.$ac_ext >&5
15593
15594 ac_header_preproc=no
15595fi
15596
15597rm -f conftest.err conftest.$ac_ext
15598{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15599echo "${ECHO_T}$ac_header_preproc" >&6; }
15600
15601# So? What about this header?
15602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15603 yes:no: )
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15605echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15607echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15608 ac_header_preproc=yes
15609 ;;
15610 no:yes:* )
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15612echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15614echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15616echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15618echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15620echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15622echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15623 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015624## ------------------------------------ ##
15625## Report this to http://llvm.org/bugs/ ##
15626## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015627_ASBOX
15628 ) | sed "s/^/$as_me: WARNING: /" >&2
15629 ;;
15630esac
15631{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15635else
15636 eval "$as_ac_Header=\$ac_header_preproc"
15637fi
15638ac_res=`eval echo '${'$as_ac_Header'}'`
15639 { echo "$as_me:$LINENO: result: $ac_res" >&5
15640echo "${ECHO_T}$ac_res" >&6; }
15641
15642fi
15643if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer8bc110c2004-12-25 07:31:29 +000015644 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015645#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer8bc110c2004-12-25 07:31:29 +000015646_ACEOF
15647
15648fi
15649
15650done
15651
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015652
15653
Douglas Gregorb81294d2009-05-18 17:21:34 +000015654for ac_header in utime.h windows.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015655do
15656as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15662fi
15663ac_res=`eval echo '${'$as_ac_Header'}'`
15664 { echo "$as_me:$LINENO: result: $ac_res" >&5
15665echo "${ECHO_T}$ac_res" >&6; }
15666else
15667 # Is the header compilable?
15668{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15669echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15670cat >conftest.$ac_ext <<_ACEOF
15671/* confdefs.h. */
15672_ACEOF
15673cat confdefs.h >>conftest.$ac_ext
15674cat >>conftest.$ac_ext <<_ACEOF
15675/* end confdefs.h. */
15676$ac_includes_default
15677#include <$ac_header>
15678_ACEOF
15679rm -f conftest.$ac_objext
15680if { (ac_try="$ac_compile"
15681case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15684esac
15685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_compile") 2>conftest.er1
15687 ac_status=$?
15688 grep -v '^ *+' conftest.er1 >conftest.err
15689 rm -f conftest.er1
15690 cat conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } &&
15693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15694 { (case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15697esac
15698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_try") 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; } &&
15703 { ac_try='test -s conftest.$ac_objext'
15704 { (case "(($ac_try" in
15705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706 *) ac_try_echo=$ac_try;;
15707esac
15708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15709 (eval "$ac_try") 2>&5
15710 ac_status=$?
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; }; then
15713 ac_header_compiler=yes
15714else
15715 echo "$as_me: failed program was:" >&5
15716sed 's/^/| /' conftest.$ac_ext >&5
15717
15718 ac_header_compiler=no
15719fi
15720
15721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15722{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15723echo "${ECHO_T}$ac_header_compiler" >&6; }
15724
15725# Is the header present?
15726{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15727echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15728cat >conftest.$ac_ext <<_ACEOF
15729/* confdefs.h. */
15730_ACEOF
15731cat confdefs.h >>conftest.$ac_ext
15732cat >>conftest.$ac_ext <<_ACEOF
15733/* end confdefs.h. */
15734#include <$ac_header>
15735_ACEOF
15736if { (ac_try="$ac_cpp conftest.$ac_ext"
15737case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15740esac
15741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15743 ac_status=$?
15744 grep -v '^ *+' conftest.er1 >conftest.err
15745 rm -f conftest.er1
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } >/dev/null; then
15749 if test -s conftest.err; then
15750 ac_cpp_err=$ac_c_preproc_warn_flag
15751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15752 else
15753 ac_cpp_err=
15754 fi
15755else
15756 ac_cpp_err=yes
15757fi
15758if test -z "$ac_cpp_err"; then
15759 ac_header_preproc=yes
15760else
15761 echo "$as_me: failed program was:" >&5
15762sed 's/^/| /' conftest.$ac_ext >&5
15763
15764 ac_header_preproc=no
15765fi
15766
15767rm -f conftest.err conftest.$ac_ext
15768{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15769echo "${ECHO_T}$ac_header_preproc" >&6; }
15770
15771# So? What about this header?
15772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15773 yes:no: )
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15775echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15777echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15778 ac_header_preproc=yes
15779 ;;
15780 no:yes:* )
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15782echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15784echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15786echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15788echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15790echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15792echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15793 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015794## ------------------------------------ ##
15795## Report this to http://llvm.org/bugs/ ##
15796## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015797_ASBOX
15798 ) | sed "s/^/$as_me: WARNING: /" >&2
15799 ;;
15800esac
15801{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15804 echo $ECHO_N "(cached) $ECHO_C" >&6
15805else
15806 eval "$as_ac_Header=\$ac_header_preproc"
15807fi
15808ac_res=`eval echo '${'$as_ac_Header'}'`
15809 { echo "$as_me:$LINENO: result: $ac_res" >&5
15810echo "${ECHO_T}$ac_res" >&6; }
15811
15812fi
15813if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerb8135562007-08-17 05:45:26 +000015814 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerb8135562007-08-17 05:45:26 +000015816_ACEOF
15817
15818fi
15819
15820done
Reid Spencer8bc110c2004-12-25 07:31:29 +000015821
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015822
15823
15824
15825
Daniel Dunbar7840c542011-02-03 02:40:02 +000015826
15827for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015828do
15829as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15833if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15834 echo $ECHO_N "(cached) $ECHO_C" >&6
15835fi
15836ac_res=`eval echo '${'$as_ac_Header'}'`
15837 { echo "$as_me:$LINENO: result: $ac_res" >&5
15838echo "${ECHO_T}$ac_res" >&6; }
15839else
15840 # Is the header compilable?
15841{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15842echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15843cat >conftest.$ac_ext <<_ACEOF
15844/* confdefs.h. */
15845_ACEOF
15846cat confdefs.h >>conftest.$ac_ext
15847cat >>conftest.$ac_ext <<_ACEOF
15848/* end confdefs.h. */
15849$ac_includes_default
15850#include <$ac_header>
15851_ACEOF
15852rm -f conftest.$ac_objext
15853if { (ac_try="$ac_compile"
15854case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15857esac
15858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859 (eval "$ac_compile") 2>conftest.er1
15860 ac_status=$?
15861 grep -v '^ *+' conftest.er1 >conftest.err
15862 rm -f conftest.er1
15863 cat conftest.err >&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } &&
15866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15867 { (case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15870esac
15871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872 (eval "$ac_try") 2>&5
15873 ac_status=$?
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; } &&
15876 { ac_try='test -s conftest.$ac_objext'
15877 { (case "(($ac_try" in
15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15880esac
15881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882 (eval "$ac_try") 2>&5
15883 ac_status=$?
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; }; then
15886 ac_header_compiler=yes
15887else
15888 echo "$as_me: failed program was:" >&5
15889sed 's/^/| /' conftest.$ac_ext >&5
15890
15891 ac_header_compiler=no
15892fi
15893
15894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15896echo "${ECHO_T}$ac_header_compiler" >&6; }
15897
15898# Is the header present?
15899{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15900echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15901cat >conftest.$ac_ext <<_ACEOF
15902/* confdefs.h. */
15903_ACEOF
15904cat confdefs.h >>conftest.$ac_ext
15905cat >>conftest.$ac_ext <<_ACEOF
15906/* end confdefs.h. */
15907#include <$ac_header>
15908_ACEOF
15909if { (ac_try="$ac_cpp conftest.$ac_ext"
15910case "(($ac_try" in
15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15913esac
15914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15916 ac_status=$?
15917 grep -v '^ *+' conftest.er1 >conftest.err
15918 rm -f conftest.er1
15919 cat conftest.err >&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } >/dev/null; then
15922 if test -s conftest.err; then
15923 ac_cpp_err=$ac_c_preproc_warn_flag
15924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15925 else
15926 ac_cpp_err=
15927 fi
15928else
15929 ac_cpp_err=yes
15930fi
15931if test -z "$ac_cpp_err"; then
15932 ac_header_preproc=yes
15933else
15934 echo "$as_me: failed program was:" >&5
15935sed 's/^/| /' conftest.$ac_ext >&5
15936
15937 ac_header_preproc=no
15938fi
15939
15940rm -f conftest.err conftest.$ac_ext
15941{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15942echo "${ECHO_T}$ac_header_preproc" >&6; }
15943
15944# So? What about this header?
15945case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15946 yes:no: )
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15948echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15950echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15951 ac_header_preproc=yes
15952 ;;
15953 no:yes:* )
15954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15955echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15957echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15959echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15961echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15963echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15965echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15966 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000015967## ------------------------------------ ##
15968## Report this to http://llvm.org/bugs/ ##
15969## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015970_ASBOX
15971 ) | sed "s/^/$as_me: WARNING: /" >&2
15972 ;;
15973esac
15974{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15977 echo $ECHO_N "(cached) $ECHO_C" >&6
15978else
15979 eval "$as_ac_Header=\$ac_header_preproc"
15980fi
15981ac_res=`eval echo '${'$as_ac_Header'}'`
15982 { echo "$as_me:$LINENO: result: $ac_res" >&5
15983echo "${ECHO_T}$ac_res" >&6; }
15984
15985fi
15986if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000015987 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015988#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswellb92c7c22004-07-19 16:12:29 +000015989_ACEOF
John Criswellb92c7c22004-07-19 16:12:29 +000015990
15991fi
John Criswellb92c7c22004-07-19 16:12:29 +000015992
Reid Spencer0241e382004-11-25 04:51:04 +000015993done
15994
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000015995
15996
15997
15998
Douglas Gregor15436612009-05-11 18:05:52 +000015999for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016000do
16001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16007fi
16008ac_res=`eval echo '${'$as_ac_Header'}'`
16009 { echo "$as_me:$LINENO: result: $ac_res" >&5
16010echo "${ECHO_T}$ac_res" >&6; }
16011else
16012 # Is the header compilable?
16013{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16014echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16015cat >conftest.$ac_ext <<_ACEOF
16016/* confdefs.h. */
16017_ACEOF
16018cat confdefs.h >>conftest.$ac_ext
16019cat >>conftest.$ac_ext <<_ACEOF
16020/* end confdefs.h. */
16021$ac_includes_default
16022#include <$ac_header>
16023_ACEOF
16024rm -f conftest.$ac_objext
16025if { (ac_try="$ac_compile"
16026case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16029esac
16030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_compile") 2>conftest.er1
16032 ac_status=$?
16033 grep -v '^ *+' conftest.er1 >conftest.err
16034 rm -f conftest.er1
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
16038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16039 { (case "(($ac_try" in
16040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041 *) ac_try_echo=$ac_try;;
16042esac
16043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044 (eval "$ac_try") 2>&5
16045 ac_status=$?
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; } &&
16048 { ac_try='test -s conftest.$ac_objext'
16049 { (case "(($ac_try" in
16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051 *) ac_try_echo=$ac_try;;
16052esac
16053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054 (eval "$ac_try") 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 ac_header_compiler=yes
16059else
16060 echo "$as_me: failed program was:" >&5
16061sed 's/^/| /' conftest.$ac_ext >&5
16062
16063 ac_header_compiler=no
16064fi
16065
16066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16067{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16068echo "${ECHO_T}$ac_header_compiler" >&6; }
16069
16070# Is the header present?
16071{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16072echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16073cat >conftest.$ac_ext <<_ACEOF
16074/* confdefs.h. */
16075_ACEOF
16076cat confdefs.h >>conftest.$ac_ext
16077cat >>conftest.$ac_ext <<_ACEOF
16078/* end confdefs.h. */
16079#include <$ac_header>
16080_ACEOF
16081if { (ac_try="$ac_cpp conftest.$ac_ext"
16082case "(($ac_try" in
16083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084 *) ac_try_echo=$ac_try;;
16085esac
16086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16088 ac_status=$?
16089 grep -v '^ *+' conftest.er1 >conftest.err
16090 rm -f conftest.er1
16091 cat conftest.err >&5
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); } >/dev/null; then
16094 if test -s conftest.err; then
16095 ac_cpp_err=$ac_c_preproc_warn_flag
16096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16097 else
16098 ac_cpp_err=
16099 fi
16100else
16101 ac_cpp_err=yes
16102fi
16103if test -z "$ac_cpp_err"; then
16104 ac_header_preproc=yes
16105else
16106 echo "$as_me: failed program was:" >&5
16107sed 's/^/| /' conftest.$ac_ext >&5
16108
16109 ac_header_preproc=no
16110fi
16111
16112rm -f conftest.err conftest.$ac_ext
16113{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114echo "${ECHO_T}$ac_header_preproc" >&6; }
16115
16116# So? What about this header?
16117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16118 yes:no: )
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16120echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16122echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16123 ac_header_preproc=yes
16124 ;;
16125 no:yes:* )
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16127echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16129echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16131echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16133echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16135echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16137echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16138 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016139## ------------------------------------ ##
16140## Report this to http://llvm.org/bugs/ ##
16141## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016142_ASBOX
16143 ) | sed "s/^/$as_me: WARNING: /" >&2
16144 ;;
16145esac
16146{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16150else
16151 eval "$as_ac_Header=\$ac_header_preproc"
16152fi
16153ac_res=`eval echo '${'$as_ac_Header'}'`
16154 { echo "$as_me:$LINENO: result: $ac_res" >&5
16155echo "${ECHO_T}$ac_res" >&6; }
16156
16157fi
16158if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner973917a2005-11-14 06:57:34 +000016159 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016160#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner973917a2005-11-14 06:57:34 +000016161_ACEOF
16162
16163fi
16164
16165done
16166
Jeffrey Yasskin3ddd88f2010-03-15 04:57:55 +000016167
16168for ac_header in valgrind/valgrind.h
16169do
16170as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16176fi
16177ac_res=`eval echo '${'$as_ac_Header'}'`
16178 { echo "$as_me:$LINENO: result: $ac_res" >&5
16179echo "${ECHO_T}$ac_res" >&6; }
16180else
16181 # Is the header compilable?
16182{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16183echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16184cat >conftest.$ac_ext <<_ACEOF
16185/* confdefs.h. */
16186_ACEOF
16187cat confdefs.h >>conftest.$ac_ext
16188cat >>conftest.$ac_ext <<_ACEOF
16189/* end confdefs.h. */
16190$ac_includes_default
16191#include <$ac_header>
16192_ACEOF
16193rm -f conftest.$ac_objext
16194if { (ac_try="$ac_compile"
16195case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16198esac
16199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16200 (eval "$ac_compile") 2>conftest.er1
16201 ac_status=$?
16202 grep -v '^ *+' conftest.er1 >conftest.err
16203 rm -f conftest.er1
16204 cat conftest.err >&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } &&
16207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16208 { (case "(($ac_try" in
16209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210 *) ac_try_echo=$ac_try;;
16211esac
16212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16213 (eval "$ac_try") 2>&5
16214 ac_status=$?
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; } &&
16217 { ac_try='test -s conftest.$ac_objext'
16218 { (case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16221esac
16222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_try") 2>&5
16224 ac_status=$?
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; }; then
16227 ac_header_compiler=yes
16228else
16229 echo "$as_me: failed program was:" >&5
16230sed 's/^/| /' conftest.$ac_ext >&5
16231
16232 ac_header_compiler=no
16233fi
16234
16235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16237echo "${ECHO_T}$ac_header_compiler" >&6; }
16238
16239# Is the header present?
16240{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16241echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16242cat >conftest.$ac_ext <<_ACEOF
16243/* confdefs.h. */
16244_ACEOF
16245cat confdefs.h >>conftest.$ac_ext
16246cat >>conftest.$ac_ext <<_ACEOF
16247/* end confdefs.h. */
16248#include <$ac_header>
16249_ACEOF
16250if { (ac_try="$ac_cpp conftest.$ac_ext"
16251case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16254esac
16255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16257 ac_status=$?
16258 grep -v '^ *+' conftest.er1 >conftest.err
16259 rm -f conftest.er1
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } >/dev/null; then
16263 if test -s conftest.err; then
16264 ac_cpp_err=$ac_c_preproc_warn_flag
16265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16266 else
16267 ac_cpp_err=
16268 fi
16269else
16270 ac_cpp_err=yes
16271fi
16272if test -z "$ac_cpp_err"; then
16273 ac_header_preproc=yes
16274else
16275 echo "$as_me: failed program was:" >&5
16276sed 's/^/| /' conftest.$ac_ext >&5
16277
16278 ac_header_preproc=no
16279fi
16280
16281rm -f conftest.err conftest.$ac_ext
16282{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16283echo "${ECHO_T}$ac_header_preproc" >&6; }
16284
16285# So? What about this header?
16286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16287 yes:no: )
16288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16289echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16291echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16292 ac_header_preproc=yes
16293 ;;
16294 no:yes:* )
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16298echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16300echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16302echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16306echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16307 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016308## ------------------------------------ ##
16309## Report this to http://llvm.org/bugs/ ##
16310## ------------------------------------ ##
Jeffrey Yasskin3ddd88f2010-03-15 04:57:55 +000016311_ASBOX
16312 ) | sed "s/^/$as_me: WARNING: /" >&2
16313 ;;
16314esac
16315{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16319else
16320 eval "$as_ac_Header=\$ac_header_preproc"
16321fi
16322ac_res=`eval echo '${'$as_ac_Header'}'`
16323 { echo "$as_me:$LINENO: result: $ac_res" >&5
16324echo "${ECHO_T}$ac_res" >&6; }
16325
16326fi
16327if test `eval echo '${'$as_ac_Header'}'` = yes; then
16328 cat >>confdefs.h <<_ACEOF
16329#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16330_ACEOF
16331
16332fi
16333
16334done
16335
Dan Gohmandf257772010-09-17 20:08:35 +000016336
16337for ac_header in fenv.h
16338do
16339as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16345fi
16346ac_res=`eval echo '${'$as_ac_Header'}'`
16347 { echo "$as_me:$LINENO: result: $ac_res" >&5
16348echo "${ECHO_T}$ac_res" >&6; }
16349else
16350 # Is the header compilable?
16351{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16352echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16353cat >conftest.$ac_ext <<_ACEOF
16354/* confdefs.h. */
16355_ACEOF
16356cat confdefs.h >>conftest.$ac_ext
16357cat >>conftest.$ac_ext <<_ACEOF
16358/* end confdefs.h. */
16359$ac_includes_default
16360#include <$ac_header>
16361_ACEOF
16362rm -f conftest.$ac_objext
16363if { (ac_try="$ac_compile"
16364case "(($ac_try" in
16365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366 *) ac_try_echo=$ac_try;;
16367esac
16368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369 (eval "$ac_compile") 2>conftest.er1
16370 ac_status=$?
16371 grep -v '^ *+' conftest.er1 >conftest.err
16372 rm -f conftest.er1
16373 cat conftest.err >&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } &&
16376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16377 { (case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16380esac
16381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_try") 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; } &&
16386 { ac_try='test -s conftest.$ac_objext'
16387 { (case "(($ac_try" in
16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389 *) ac_try_echo=$ac_try;;
16390esac
16391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392 (eval "$ac_try") 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; }; then
16396 ac_header_compiler=yes
16397else
16398 echo "$as_me: failed program was:" >&5
16399sed 's/^/| /' conftest.$ac_ext >&5
16400
16401 ac_header_compiler=no
16402fi
16403
16404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16405{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16406echo "${ECHO_T}$ac_header_compiler" >&6; }
16407
16408# Is the header present?
16409{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16411cat >conftest.$ac_ext <<_ACEOF
16412/* confdefs.h. */
16413_ACEOF
16414cat confdefs.h >>conftest.$ac_ext
16415cat >>conftest.$ac_ext <<_ACEOF
16416/* end confdefs.h. */
16417#include <$ac_header>
16418_ACEOF
16419if { (ac_try="$ac_cpp conftest.$ac_ext"
16420case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16423esac
16424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16426 ac_status=$?
16427 grep -v '^ *+' conftest.er1 >conftest.err
16428 rm -f conftest.er1
16429 cat conftest.err >&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } >/dev/null; then
16432 if test -s conftest.err; then
16433 ac_cpp_err=$ac_c_preproc_warn_flag
16434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16435 else
16436 ac_cpp_err=
16437 fi
16438else
16439 ac_cpp_err=yes
16440fi
16441if test -z "$ac_cpp_err"; then
16442 ac_header_preproc=yes
16443else
16444 echo "$as_me: failed program was:" >&5
16445sed 's/^/| /' conftest.$ac_ext >&5
16446
16447 ac_header_preproc=no
16448fi
16449
16450rm -f conftest.err conftest.$ac_ext
16451{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16452echo "${ECHO_T}$ac_header_preproc" >&6; }
16453
16454# So? What about this header?
16455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16456 yes:no: )
16457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16458echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16460echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16461 ac_header_preproc=yes
16462 ;;
16463 no:yes:* )
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16465echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16467echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16469echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16471echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16473echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16475echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16476 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016477## ------------------------------------ ##
16478## Report this to http://llvm.org/bugs/ ##
16479## ------------------------------------ ##
Dan Gohmandf257772010-09-17 20:08:35 +000016480_ASBOX
16481 ) | sed "s/^/$as_me: WARNING: /" >&2
16482 ;;
16483esac
16484{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16488else
16489 eval "$as_ac_Header=\$ac_header_preproc"
16490fi
16491ac_res=`eval echo '${'$as_ac_Header'}'`
16492 { echo "$as_me:$LINENO: result: $ac_res" >&5
16493echo "${ECHO_T}$ac_res" >&6; }
16494
16495fi
16496if test `eval echo '${'$as_ac_Header'}'` = yes; then
16497 cat >>confdefs.h <<_ACEOF
16498#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16499_ACEOF
16500
16501fi
16502
16503done
16504
Joerg Sonnenberger8a1177f2013-03-25 13:13:33 +000016505{ echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16506echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16507if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16509else
16510 cat >conftest.$ac_ext <<_ACEOF
16511/* confdefs.h. */
16512_ACEOF
16513cat confdefs.h >>conftest.$ac_ext
16514cat >>conftest.$ac_ext <<_ACEOF
16515/* end confdefs.h. */
16516#include <fenv.h>
16517
16518int
16519main ()
16520{
16521#ifndef FE_ALL_EXCEPT
16522 char *p = (char *) FE_ALL_EXCEPT;
16523 return !p;
16524#endif
16525
16526 ;
16527 return 0;
16528}
16529_ACEOF
16530rm -f conftest.$ac_objext
16531if { (ac_try="$ac_compile"
16532case "(($ac_try" in
16533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16534 *) ac_try_echo=$ac_try;;
16535esac
16536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16537 (eval "$ac_compile") 2>conftest.er1
16538 ac_status=$?
16539 grep -v '^ *+' conftest.er1 >conftest.err
16540 rm -f conftest.er1
16541 cat conftest.err >&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); } &&
16544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16545 { (case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16548esac
16549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550 (eval "$ac_try") 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; } &&
16554 { ac_try='test -s conftest.$ac_objext'
16555 { (case "(($ac_try" in
16556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557 *) ac_try_echo=$ac_try;;
16558esac
16559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16560 (eval "$ac_try") 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16565else
16566 echo "$as_me: failed program was:" >&5
16567sed 's/^/| /' conftest.$ac_ext >&5
16568
16569 ac_cv_have_decl_FE_ALL_EXCEPT=no
16570fi
16571
16572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16573fi
16574{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16575echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16576if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16577
16578cat >>confdefs.h <<_ACEOF
16579#define HAVE_DECL_FE_ALL_EXCEPT 1
16580_ACEOF
16581
16582
16583else
16584 cat >>confdefs.h <<_ACEOF
16585#define HAVE_DECL_FE_ALL_EXCEPT 0
16586_ACEOF
16587
16588
16589fi
16590{ echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16591echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16592if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16594else
16595 cat >conftest.$ac_ext <<_ACEOF
16596/* confdefs.h. */
16597_ACEOF
16598cat confdefs.h >>conftest.$ac_ext
16599cat >>conftest.$ac_ext <<_ACEOF
16600/* end confdefs.h. */
16601#include <fenv.h>
16602
16603int
16604main ()
16605{
16606#ifndef FE_INEXACT
16607 char *p = (char *) FE_INEXACT;
16608 return !p;
16609#endif
16610
16611 ;
16612 return 0;
16613}
16614_ACEOF
16615rm -f conftest.$ac_objext
16616if { (ac_try="$ac_compile"
16617case "(($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_compile") 2>conftest.er1
16623 ac_status=$?
16624 grep -v '^ *+' conftest.er1 >conftest.err
16625 rm -f conftest.er1
16626 cat conftest.err >&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); } &&
16629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16630 { (case "(($ac_try" in
16631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632 *) ac_try_echo=$ac_try;;
16633esac
16634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635 (eval "$ac_try") 2>&5
16636 ac_status=$?
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; } &&
16639 { ac_try='test -s conftest.$ac_objext'
16640 { (case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16643esac
16644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_try") 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
16649 ac_cv_have_decl_FE_INEXACT=yes
16650else
16651 echo "$as_me: failed program was:" >&5
16652sed 's/^/| /' conftest.$ac_ext >&5
16653
16654 ac_cv_have_decl_FE_INEXACT=no
16655fi
16656
16657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658fi
16659{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16660echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16661if test $ac_cv_have_decl_FE_INEXACT = yes; then
16662
16663cat >>confdefs.h <<_ACEOF
16664#define HAVE_DECL_FE_INEXACT 1
16665_ACEOF
16666
16667
16668else
16669 cat >>confdefs.h <<_ACEOF
16670#define HAVE_DECL_FE_INEXACT 0
16671_ACEOF
16672
16673
16674fi
16675
16676
NAKAMURA Takumi4ad52a52011-11-28 01:07:19 +000016677if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016678
16679for ac_header in pthread.h
16680do
16681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16687fi
16688ac_res=`eval echo '${'$as_ac_Header'}'`
16689 { echo "$as_me:$LINENO: result: $ac_res" >&5
16690echo "${ECHO_T}$ac_res" >&6; }
16691else
16692 # Is the header compilable?
16693{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16695cat >conftest.$ac_ext <<_ACEOF
16696/* confdefs.h. */
16697_ACEOF
16698cat confdefs.h >>conftest.$ac_ext
16699cat >>conftest.$ac_ext <<_ACEOF
16700/* end confdefs.h. */
16701$ac_includes_default
16702#include <$ac_header>
16703_ACEOF
16704rm -f conftest.$ac_objext
16705if { (ac_try="$ac_compile"
16706case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16709esac
16710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711 (eval "$ac_compile") 2>conftest.er1
16712 ac_status=$?
16713 grep -v '^ *+' conftest.er1 >conftest.err
16714 rm -f conftest.er1
16715 cat conftest.err >&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } &&
16718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16719 { (case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16722esac
16723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_try") 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; } &&
16728 { ac_try='test -s conftest.$ac_objext'
16729 { (case "(($ac_try" in
16730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731 *) ac_try_echo=$ac_try;;
16732esac
16733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734 (eval "$ac_try") 2>&5
16735 ac_status=$?
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; }; then
16738 ac_header_compiler=yes
16739else
16740 echo "$as_me: failed program was:" >&5
16741sed 's/^/| /' conftest.$ac_ext >&5
16742
16743 ac_header_compiler=no
16744fi
16745
16746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16747{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16748echo "${ECHO_T}$ac_header_compiler" >&6; }
16749
16750# Is the header present?
16751{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16753cat >conftest.$ac_ext <<_ACEOF
16754/* confdefs.h. */
16755_ACEOF
16756cat confdefs.h >>conftest.$ac_ext
16757cat >>conftest.$ac_ext <<_ACEOF
16758/* end confdefs.h. */
16759#include <$ac_header>
16760_ACEOF
16761if { (ac_try="$ac_cpp conftest.$ac_ext"
16762case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16765esac
16766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16768 ac_status=$?
16769 grep -v '^ *+' conftest.er1 >conftest.err
16770 rm -f conftest.er1
16771 cat conftest.err >&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } >/dev/null; then
16774 if test -s conftest.err; then
16775 ac_cpp_err=$ac_c_preproc_warn_flag
16776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16777 else
16778 ac_cpp_err=
16779 fi
16780else
16781 ac_cpp_err=yes
16782fi
16783if test -z "$ac_cpp_err"; then
16784 ac_header_preproc=yes
16785else
16786 echo "$as_me: failed program was:" >&5
16787sed 's/^/| /' conftest.$ac_ext >&5
16788
16789 ac_header_preproc=no
16790fi
16791
16792rm -f conftest.err conftest.$ac_ext
16793{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16794echo "${ECHO_T}$ac_header_preproc" >&6; }
16795
16796# So? What about this header?
16797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16798 yes:no: )
16799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16800echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16802echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16803 ac_header_preproc=yes
16804 ;;
16805 no:yes:* )
16806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16809echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16811echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16813echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16817echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16818 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000016819## ------------------------------------ ##
16820## Report this to http://llvm.org/bugs/ ##
16821## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016822_ASBOX
16823 ) | sed "s/^/$as_me: WARNING: /" >&2
16824 ;;
16825esac
16826{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16830else
16831 eval "$as_ac_Header=\$ac_header_preproc"
16832fi
16833ac_res=`eval echo '${'$as_ac_Header'}'`
16834 { echo "$as_me:$LINENO: result: $ac_res" >&5
16835echo "${ECHO_T}$ac_res" >&6; }
16836
16837fi
16838if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerb8135562007-08-17 05:45:26 +000016839 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000016840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerb8135562007-08-17 05:45:26 +000016841_ACEOF
16842 HAVE_PTHREAD=1
Reid Spencerd4399922006-12-01 00:37:14 +000016843
16844else
16845 HAVE_PTHREAD=0
Reid Spencerf85fabeb2005-08-24 10:07:20 +000016846
16847fi
16848
Reid Spencerb8135562007-08-17 05:45:26 +000016849done
Reid Spencerd4399922006-12-01 00:37:14 +000016850
16851else
16852 HAVE_PTHREAD=0
Reid Spencerf85fabeb2005-08-24 10:07:20 +000016853
16854fi
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000016855if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16856
16857for ac_header in zlib.h
16858do
16859as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16860if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16863if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16865fi
16866ac_res=`eval echo '${'$as_ac_Header'}'`
16867 { echo "$as_me:$LINENO: result: $ac_res" >&5
16868echo "${ECHO_T}$ac_res" >&6; }
16869else
16870 # Is the header compilable?
16871{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16872echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16873cat >conftest.$ac_ext <<_ACEOF
16874/* confdefs.h. */
16875_ACEOF
16876cat confdefs.h >>conftest.$ac_ext
16877cat >>conftest.$ac_ext <<_ACEOF
16878/* end confdefs.h. */
16879$ac_includes_default
16880#include <$ac_header>
16881_ACEOF
16882rm -f conftest.$ac_objext
16883if { (ac_try="$ac_compile"
16884case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16887esac
16888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_compile") 2>conftest.er1
16890 ac_status=$?
16891 grep -v '^ *+' conftest.er1 >conftest.err
16892 rm -f conftest.er1
16893 cat conftest.err >&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); } &&
16896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16897 { (case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16900esac
16901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_try") 2>&5
16903 ac_status=$?
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; } &&
16906 { ac_try='test -s conftest.$ac_objext'
16907 { (case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16910esac
16911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_try") 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; }; then
16916 ac_header_compiler=yes
16917else
16918 echo "$as_me: failed program was:" >&5
16919sed 's/^/| /' conftest.$ac_ext >&5
16920
16921 ac_header_compiler=no
16922fi
16923
16924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16925{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16926echo "${ECHO_T}$ac_header_compiler" >&6; }
16927
16928# Is the header present?
16929{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16930echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16931cat >conftest.$ac_ext <<_ACEOF
16932/* confdefs.h. */
16933_ACEOF
16934cat confdefs.h >>conftest.$ac_ext
16935cat >>conftest.$ac_ext <<_ACEOF
16936/* end confdefs.h. */
16937#include <$ac_header>
16938_ACEOF
16939if { (ac_try="$ac_cpp conftest.$ac_ext"
16940case "(($ac_try" in
16941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942 *) ac_try_echo=$ac_try;;
16943esac
16944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16946 ac_status=$?
16947 grep -v '^ *+' conftest.er1 >conftest.err
16948 rm -f conftest.er1
16949 cat conftest.err >&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } >/dev/null; then
16952 if test -s conftest.err; then
16953 ac_cpp_err=$ac_c_preproc_warn_flag
16954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16955 else
16956 ac_cpp_err=
16957 fi
16958else
16959 ac_cpp_err=yes
16960fi
16961if test -z "$ac_cpp_err"; then
16962 ac_header_preproc=yes
16963else
16964 echo "$as_me: failed program was:" >&5
16965sed 's/^/| /' conftest.$ac_ext >&5
16966
16967 ac_header_preproc=no
16968fi
16969
16970rm -f conftest.err conftest.$ac_ext
16971{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16972echo "${ECHO_T}$ac_header_preproc" >&6; }
16973
16974# So? What about this header?
16975case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16976 yes:no: )
16977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16978echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16980echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16981 ac_header_preproc=yes
16982 ;;
16983 no:yes:* )
16984 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16985echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16986 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16987echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16988 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16989echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16990 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16991echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16993echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16994 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16995echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16996 ( cat <<\_ASBOX
16997## ------------------------------------ ##
16998## Report this to http://llvm.org/bugs/ ##
16999## ------------------------------------ ##
17000_ASBOX
17001 ) | sed "s/^/$as_me: WARNING: /" >&2
17002 ;;
17003esac
17004{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17008else
17009 eval "$as_ac_Header=\$ac_header_preproc"
17010fi
17011ac_res=`eval echo '${'$as_ac_Header'}'`
17012 { echo "$as_me:$LINENO: result: $ac_res" >&5
17013echo "${ECHO_T}$ac_res" >&6; }
17014
17015fi
17016if test `eval echo '${'$as_ac_Header'}'` = yes; then
17017 cat >>confdefs.h <<_ACEOF
17018#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17019_ACEOF
17020 HAVE_LIBZ=1
17021
17022else
17023 HAVE_LIBZ=0
17024
17025fi
17026
17027done
17028
17029else
17030 HAVE_LIBZ=0
17031
17032fi
Reid Spencerd9f4f3b2005-01-16 02:58:39 +000017033
Nick Lewycky86679902009-06-06 06:25:09 +000017034if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017035
17036
17037for ac_header in ffi.h ffi/ffi.h
17038do
17039as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17040if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17045fi
17046ac_res=`eval echo '${'$as_ac_Header'}'`
17047 { echo "$as_me:$LINENO: result: $ac_res" >&5
17048echo "${ECHO_T}$ac_res" >&6; }
17049else
17050 # Is the header compilable?
17051{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17052echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17053cat >conftest.$ac_ext <<_ACEOF
17054/* confdefs.h. */
17055_ACEOF
17056cat confdefs.h >>conftest.$ac_ext
17057cat >>conftest.$ac_ext <<_ACEOF
17058/* end confdefs.h. */
17059$ac_includes_default
17060#include <$ac_header>
17061_ACEOF
17062rm -f conftest.$ac_objext
17063if { (ac_try="$ac_compile"
17064case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17067esac
17068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_compile") 2>conftest.er1
17070 ac_status=$?
17071 grep -v '^ *+' conftest.er1 >conftest.err
17072 rm -f conftest.er1
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } &&
17076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17077 { (case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17080esac
17081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082 (eval "$ac_try") 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; } &&
17086 { ac_try='test -s conftest.$ac_objext'
17087 { (case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17090esac
17091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_try") 2>&5
17093 ac_status=$?
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; }; then
17096 ac_header_compiler=yes
17097else
17098 echo "$as_me: failed program was:" >&5
17099sed 's/^/| /' conftest.$ac_ext >&5
17100
17101 ac_header_compiler=no
17102fi
17103
17104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17105{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17106echo "${ECHO_T}$ac_header_compiler" >&6; }
17107
17108# Is the header present?
17109{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17110echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17111cat >conftest.$ac_ext <<_ACEOF
17112/* confdefs.h. */
17113_ACEOF
17114cat confdefs.h >>conftest.$ac_ext
17115cat >>conftest.$ac_ext <<_ACEOF
17116/* end confdefs.h. */
17117#include <$ac_header>
17118_ACEOF
17119if { (ac_try="$ac_cpp conftest.$ac_ext"
17120case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17123esac
17124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17126 ac_status=$?
17127 grep -v '^ *+' conftest.er1 >conftest.err
17128 rm -f conftest.er1
17129 cat conftest.err >&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); } >/dev/null; then
17132 if test -s conftest.err; then
17133 ac_cpp_err=$ac_c_preproc_warn_flag
17134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17135 else
17136 ac_cpp_err=
17137 fi
17138else
17139 ac_cpp_err=yes
17140fi
17141if test -z "$ac_cpp_err"; then
17142 ac_header_preproc=yes
17143else
17144 echo "$as_me: failed program was:" >&5
17145sed 's/^/| /' conftest.$ac_ext >&5
17146
17147 ac_header_preproc=no
17148fi
17149
17150rm -f conftest.err conftest.$ac_ext
17151{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17152echo "${ECHO_T}$ac_header_preproc" >&6; }
17153
17154# So? What about this header?
17155case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17156 yes:no: )
17157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17158echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17160echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17161 ac_header_preproc=yes
17162 ;;
17163 no:yes:* )
17164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17165echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17167echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17169echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17171echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17173echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17175echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17176 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000017177## ------------------------------------ ##
17178## Report this to http://llvm.org/bugs/ ##
17179## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017180_ASBOX
17181 ) | sed "s/^/$as_me: WARNING: /" >&2
17182 ;;
17183esac
17184{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17187 echo $ECHO_N "(cached) $ECHO_C" >&6
17188else
17189 eval "$as_ac_Header=\$ac_header_preproc"
17190fi
17191ac_res=`eval echo '${'$as_ac_Header'}'`
17192 { echo "$as_me:$LINENO: result: $ac_res" >&5
17193echo "${ECHO_T}$ac_res" >&6; }
17194
17195fi
17196if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewycky11e92142009-02-04 06:27:44 +000017197 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewycky11e92142009-02-04 06:27:44 +000017199_ACEOF
Nick Lewycky11e92142009-02-04 06:27:44 +000017200
17201fi
17202
17203done
17204
Nick Lewycky86679902009-06-06 06:25:09 +000017205fi
Nick Lewycky11e92142009-02-04 06:27:44 +000017206
Nick Lewyckyc94134d2009-01-20 00:52:24 +000017207
Eric Christophere9c1bb62010-06-22 21:01:04 +000017208for ac_header in CrashReporterClient.h
17209do
17210as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17216fi
17217ac_res=`eval echo '${'$as_ac_Header'}'`
17218 { echo "$as_me:$LINENO: result: $ac_res" >&5
17219echo "${ECHO_T}$ac_res" >&6; }
17220else
17221 # Is the header compilable?
17222{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17223echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17224cat >conftest.$ac_ext <<_ACEOF
17225/* confdefs.h. */
17226_ACEOF
17227cat confdefs.h >>conftest.$ac_ext
17228cat >>conftest.$ac_ext <<_ACEOF
17229/* end confdefs.h. */
17230$ac_includes_default
17231#include <$ac_header>
17232_ACEOF
17233rm -f conftest.$ac_objext
17234if { (ac_try="$ac_compile"
17235case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17238esac
17239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_compile") 2>conftest.er1
17241 ac_status=$?
17242 grep -v '^ *+' conftest.er1 >conftest.err
17243 rm -f conftest.er1
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
17247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17248 { (case "(($ac_try" in
17249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250 *) ac_try_echo=$ac_try;;
17251esac
17252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17253 (eval "$ac_try") 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest.$ac_objext'
17258 { (case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17261esac
17262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263 (eval "$ac_try") 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 ac_header_compiler=yes
17268else
17269 echo "$as_me: failed program was:" >&5
17270sed 's/^/| /' conftest.$ac_ext >&5
17271
17272 ac_header_compiler=no
17273fi
17274
17275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17276{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17277echo "${ECHO_T}$ac_header_compiler" >&6; }
17278
17279# Is the header present?
17280{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17281echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17282cat >conftest.$ac_ext <<_ACEOF
17283/* confdefs.h. */
17284_ACEOF
17285cat confdefs.h >>conftest.$ac_ext
17286cat >>conftest.$ac_ext <<_ACEOF
17287/* end confdefs.h. */
17288#include <$ac_header>
17289_ACEOF
17290if { (ac_try="$ac_cpp conftest.$ac_ext"
17291case "(($ac_try" in
17292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293 *) ac_try_echo=$ac_try;;
17294esac
17295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17297 ac_status=$?
17298 grep -v '^ *+' conftest.er1 >conftest.err
17299 rm -f conftest.er1
17300 cat conftest.err >&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } >/dev/null; then
17303 if test -s conftest.err; then
17304 ac_cpp_err=$ac_c_preproc_warn_flag
17305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17306 else
17307 ac_cpp_err=
17308 fi
17309else
17310 ac_cpp_err=yes
17311fi
17312if test -z "$ac_cpp_err"; then
17313 ac_header_preproc=yes
17314else
17315 echo "$as_me: failed program was:" >&5
17316sed 's/^/| /' conftest.$ac_ext >&5
17317
17318 ac_header_preproc=no
17319fi
17320
17321rm -f conftest.err conftest.$ac_ext
17322{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17323echo "${ECHO_T}$ac_header_preproc" >&6; }
17324
17325# So? What about this header?
17326case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17327 yes:no: )
17328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17329echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17331echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17332 ac_header_preproc=yes
17333 ;;
17334 no:yes:* )
17335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17336echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17338echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17340echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17342echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17344echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17346echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17347 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000017348## ------------------------------------ ##
17349## Report this to http://llvm.org/bugs/ ##
17350## ------------------------------------ ##
Eric Christophere9c1bb62010-06-22 21:01:04 +000017351_ASBOX
17352 ) | sed "s/^/$as_me: WARNING: /" >&2
17353 ;;
17354esac
17355{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17358 echo $ECHO_N "(cached) $ECHO_C" >&6
17359else
17360 eval "$as_ac_Header=\$ac_header_preproc"
17361fi
17362ac_res=`eval echo '${'$as_ac_Header'}'`
17363 { echo "$as_me:$LINENO: result: $ac_res" >&5
17364echo "${ECHO_T}$ac_res" >&6; }
17365
17366fi
17367if test `eval echo '${'$as_ac_Header'}'` = yes; then
17368 cat >>confdefs.h <<_ACEOF
17369#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17370_ACEOF
17371
17372fi
17373
17374done
17375
17376
Eric Christopherba4f7722010-12-07 02:05:42 +000017377{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17378echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
Eric Christopherca466732010-12-03 07:45:22 +000017379cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017380
17381 /* confdefs.h. */
Eric Christopherca466732010-12-03 07:45:22 +000017382_ACEOF
17383cat confdefs.h >>conftest.$ac_ext
17384cat >>conftest.$ac_ext <<_ACEOF
17385/* end confdefs.h. */
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017386
17387 extern const char *__crashreporter_info__;
17388 int main() {
17389 __crashreporter_info__ = "test";
17390 return 0;
17391 }
17392
Eric Christopherca466732010-12-03 07:45:22 +000017393
Eric Christopherca466732010-12-03 07:45:22 +000017394_ACEOF
17395rm -f conftest.$ac_objext conftest$ac_exeext
17396if { (ac_try="$ac_link"
17397case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17400esac
17401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_link") 2>conftest.er1
17403 ac_status=$?
17404 grep -v '^ *+' conftest.er1 >conftest.err
17405 rm -f conftest.er1
17406 cat conftest.err >&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } &&
17409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17410 { (case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17413esac
17414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415 (eval "$ac_try") 2>&5
17416 ac_status=$?
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; } &&
17419 { ac_try='test -s conftest$ac_exeext'
17420 { (case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17423esac
17424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_try") 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; }; then
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017429
Eric Christopherba4f7722010-12-07 02:05:42 +000017430 { echo "$as_me:$LINENO: result: yes" >&5
17431echo "${ECHO_T}yes" >&6; }
Eric Christopherca466732010-12-03 07:45:22 +000017432
17433cat >>confdefs.h <<\_ACEOF
17434#define HAVE_CRASHREPORTER_INFO 1
17435_ACEOF
17436
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017437
Eric Christopherba4f7722010-12-07 02:05:42 +000017438else
17439 echo "$as_me: failed program was:" >&5
17440sed 's/^/| /' conftest.$ac_ext >&5
17441
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017442
17443 { echo "$as_me:$LINENO: result: no" >&5
Eric Christopherba4f7722010-12-07 02:05:42 +000017444echo "${ECHO_T}no" >&6; }
17445
17446cat >>confdefs.h <<\_ACEOF
17447#define HAVE_CRASHREPORTER_INFO 0
17448_ACEOF
17449
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000017450
Eric Christopherca466732010-12-03 07:45:22 +000017451fi
Eric Christophere9c1bb62010-06-22 21:01:04 +000017452
Eric Christopherba4f7722010-12-07 02:05:42 +000017453rm -f core conftest.err conftest.$ac_objext \
17454 conftest$ac_exeext conftest.$ac_ext
17455
17456
Reid Spencerd9f4f3b2005-01-16 02:58:39 +000017457
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017458 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17459echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17460if test "${ac_cv_huge_val_sanity+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer128ae102006-11-03 18:04:08 +000017462else
17463
Reid Spencer7b7ab9c2006-11-03 19:49:16 +000017464 ac_ext=cpp
17465ac_cpp='$CXXCPP $CPPFLAGS'
17466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencer128ae102006-11-03 18:04:08 +000017469
Eric Christopherf0ee6a12010-03-02 05:06:54 +000017470 ac_save_CXXFLAGS=$CXXFLAGS
Eric Christopher8e52bdc2012-04-02 06:54:01 +000017471 CXXFLAGS="$CXXFLAGS -pedantic"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017472 if test "$cross_compiling" = yes; then
Reid Spencer128ae102006-11-03 18:04:08 +000017473 ac_cv_huge_val_sanity=yes
17474else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017475 cat >conftest.$ac_ext <<_ACEOF
17476/* confdefs.h. */
17477_ACEOF
17478cat confdefs.h >>conftest.$ac_ext
17479cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer128ae102006-11-03 18:04:08 +000017480/* end confdefs.h. */
17481#include <math.h>
17482int
17483main ()
17484{
17485double x = HUGE_VAL; return x != x;
17486 ;
17487 return 0;
17488}
17489_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017490rm -f conftest$ac_exeext
17491if { (ac_try="$ac_link"
17492case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17495esac
17496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_link") 2>&5
17498 ac_status=$?
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17501 { (case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17504esac
17505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_try") 2>&5
17507 ac_status=$?
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; }; then
Reid Spencer128ae102006-11-03 18:04:08 +000017510 ac_cv_huge_val_sanity=yes
17511else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017512 echo "$as_me: program exited with status $ac_status" >&5
17513echo "$as_me: failed program was:" >&5
17514sed 's/^/| /' conftest.$ac_ext >&5
17515
17516( exit $ac_status )
17517ac_cv_huge_val_sanity=no
Reid Spencer128ae102006-11-03 18:04:08 +000017518fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencer128ae102006-11-03 18:04:08 +000017520fi
17521
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017522
Eric Christopherf0ee6a12010-03-02 05:06:54 +000017523 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencer128ae102006-11-03 18:04:08 +000017524 ac_ext=c
17525ac_cpp='$CPP $CPPFLAGS'
17526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17528ac_compiler_gnu=$ac_cv_c_compiler_gnu
17529
17530
17531fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017532{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17533echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencer128ae102006-11-03 18:04:08 +000017534 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17535
17536
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017537{ echo "$as_me:$LINENO: checking for pid_t" >&5
17538echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17539if test "${ac_cv_type_pid_t+set}" = set; then
17540 echo $ECHO_N "(cached) $ECHO_C" >&6
17541else
17542 cat >conftest.$ac_ext <<_ACEOF
17543/* confdefs.h. */
17544_ACEOF
17545cat confdefs.h >>conftest.$ac_ext
17546cat >>conftest.$ac_ext <<_ACEOF
17547/* end confdefs.h. */
17548$ac_includes_default
17549typedef pid_t ac__type_new_;
17550int
17551main ()
17552{
17553if ((ac__type_new_ *) 0)
17554 return 0;
17555if (sizeof (ac__type_new_))
17556 return 0;
17557 ;
17558 return 0;
17559}
17560_ACEOF
17561rm -f conftest.$ac_objext
17562if { (ac_try="$ac_compile"
17563case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17566esac
17567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568 (eval "$ac_compile") 2>conftest.er1
17569 ac_status=$?
17570 grep -v '^ *+' conftest.er1 >conftest.err
17571 rm -f conftest.er1
17572 cat conftest.err >&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } &&
17575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17576 { (case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17579esac
17580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_try") 2>&5
17582 ac_status=$?
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; } &&
17585 { ac_try='test -s conftest.$ac_objext'
17586 { (case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17589esac
17590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_try") 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 ac_cv_type_pid_t=yes
17596else
17597 echo "$as_me: failed program was:" >&5
17598sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000017599
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017600 ac_cv_type_pid_t=no
17601fi
17602
17603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17604fi
17605{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17606echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17607if test $ac_cv_type_pid_t = yes; then
17608 :
John Criswell3ef61af2003-06-30 21:59:07 +000017609else
17610
17611cat >>confdefs.h <<_ACEOF
17612#define pid_t int
17613_ACEOF
17614
17615fi
17616
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017617{ echo "$as_me:$LINENO: checking for size_t" >&5
17618echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17619if test "${ac_cv_type_size_t+set}" = set; then
17620 echo $ECHO_N "(cached) $ECHO_C" >&6
17621else
17622 cat >conftest.$ac_ext <<_ACEOF
17623/* confdefs.h. */
17624_ACEOF
17625cat confdefs.h >>conftest.$ac_ext
17626cat >>conftest.$ac_ext <<_ACEOF
17627/* end confdefs.h. */
17628$ac_includes_default
17629typedef size_t ac__type_new_;
17630int
17631main ()
17632{
17633if ((ac__type_new_ *) 0)
17634 return 0;
17635if (sizeof (ac__type_new_))
17636 return 0;
17637 ;
17638 return 0;
17639}
17640_ACEOF
17641rm -f conftest.$ac_objext
17642if { (ac_try="$ac_compile"
17643case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17646esac
17647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17648 (eval "$ac_compile") 2>conftest.er1
17649 ac_status=$?
17650 grep -v '^ *+' conftest.er1 >conftest.err
17651 rm -f conftest.er1
17652 cat conftest.err >&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); } &&
17655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17656 { (case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17659esac
17660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_try") 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; } &&
17665 { ac_try='test -s conftest.$ac_objext'
17666 { (case "(($ac_try" in
17667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668 *) ac_try_echo=$ac_try;;
17669esac
17670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671 (eval "$ac_try") 2>&5
17672 ac_status=$?
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; }; then
17675 ac_cv_type_size_t=yes
17676else
17677 echo "$as_me: failed program was:" >&5
17678sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000017679
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017680 ac_cv_type_size_t=no
17681fi
17682
17683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17684fi
17685{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17686echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17687if test $ac_cv_type_size_t = yes; then
17688 :
John Criswell3ef61af2003-06-30 21:59:07 +000017689else
17690
17691cat >>confdefs.h <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017692#define size_t unsigned int
John Criswell3ef61af2003-06-30 21:59:07 +000017693_ACEOF
17694
17695fi
17696
Reid Spencer0241e382004-11-25 04:51:04 +000017697
17698cat >>confdefs.h <<_ACEOF
Torok Edwinaec06332010-01-26 08:50:50 +000017699#define RETSIGTYPE void
Reid Spencer0241e382004-11-25 04:51:04 +000017700_ACEOF
17701
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017702{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17703echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17704if test "${ac_cv_struct_tm+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000017706else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017707 cat >conftest.$ac_ext <<_ACEOF
17708/* confdefs.h. */
17709_ACEOF
17710cat confdefs.h >>conftest.$ac_ext
17711cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000017712/* end confdefs.h. */
17713#include <sys/types.h>
17714#include <time.h>
17715
17716int
17717main ()
17718{
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017719struct tm *tp; tp->tm_sec;
Reid Spencer0241e382004-11-25 04:51:04 +000017720 ;
17721 return 0;
17722}
17723_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017724rm -f conftest.$ac_objext
17725if { (ac_try="$ac_compile"
17726case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729esac
17730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_compile") 2>conftest.er1
17732 ac_status=$?
17733 grep -v '^ *+' conftest.er1 >conftest.err
17734 rm -f conftest.er1
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } &&
17738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17739 { (case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17742esac
17743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_try") 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest.$ac_objext'
17749 { (case "(($ac_try" in
17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751 *) ac_try_echo=$ac_try;;
17752esac
17753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754 (eval "$ac_try") 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000017758 ac_cv_struct_tm=time.h
17759else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017760 echo "$as_me: failed program was:" >&5
17761sed 's/^/| /' conftest.$ac_ext >&5
17762
17763 ac_cv_struct_tm=sys/time.h
Reid Spencer0241e382004-11-25 04:51:04 +000017764fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017765
Reid Spencer0b52e2f2006-08-04 18:18:08 +000017766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer0241e382004-11-25 04:51:04 +000017767fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017768{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17769echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000017770if test $ac_cv_struct_tm = sys/time.h; then
17771
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017772cat >>confdefs.h <<\_ACEOF
17773#define TM_IN_SYS_TIME 1
17774_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000017775
17776fi
17777
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017778{ echo "$as_me:$LINENO: checking for int64_t" >&5
17779echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17780if test "${ac_cv_type_int64_t+set}" = set; then
17781 echo $ECHO_N "(cached) $ECHO_C" >&6
17782else
17783 cat >conftest.$ac_ext <<_ACEOF
17784/* confdefs.h. */
17785_ACEOF
17786cat confdefs.h >>conftest.$ac_ext
17787cat >>conftest.$ac_ext <<_ACEOF
17788/* end confdefs.h. */
17789$ac_includes_default
17790typedef int64_t ac__type_new_;
17791int
17792main ()
17793{
17794if ((ac__type_new_ *) 0)
17795 return 0;
17796if (sizeof (ac__type_new_))
17797 return 0;
17798 ;
17799 return 0;
17800}
17801_ACEOF
17802rm -f conftest.$ac_objext
17803if { (ac_try="$ac_compile"
17804case "(($ac_try" in
17805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806 *) ac_try_echo=$ac_try;;
17807esac
17808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809 (eval "$ac_compile") 2>conftest.er1
17810 ac_status=$?
17811 grep -v '^ *+' conftest.er1 >conftest.err
17812 rm -f conftest.er1
17813 cat conftest.err >&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } &&
17816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17817 { (case "(($ac_try" in
17818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17820esac
17821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822 (eval "$ac_try") 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; } &&
17826 { ac_try='test -s conftest.$ac_objext'
17827 { (case "(($ac_try" in
17828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829 *) ac_try_echo=$ac_try;;
17830esac
17831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832 (eval "$ac_try") 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 ac_cv_type_int64_t=yes
17837else
17838 echo "$as_me: failed program was:" >&5
17839sed 's/^/| /' conftest.$ac_ext >&5
17840
17841 ac_cv_type_int64_t=no
17842fi
17843
17844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17845fi
17846{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17847echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17848if test $ac_cv_type_int64_t = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000017849
17850cat >>confdefs.h <<_ACEOF
17851#define HAVE_INT64_T 1
17852_ACEOF
17853
17854
17855else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017856 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17857echo "$as_me: error: Type int64_t required but not found" >&2;}
17858 { (exit 1); exit 1; }; }
John Criswell3ef61af2003-06-30 21:59:07 +000017859fi
17860
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017861{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17862echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17863if test "${ac_cv_type_uint64_t+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17865else
17866 cat >conftest.$ac_ext <<_ACEOF
17867/* confdefs.h. */
17868_ACEOF
17869cat confdefs.h >>conftest.$ac_ext
17870cat >>conftest.$ac_ext <<_ACEOF
17871/* end confdefs.h. */
17872$ac_includes_default
17873typedef uint64_t ac__type_new_;
17874int
17875main ()
17876{
17877if ((ac__type_new_ *) 0)
17878 return 0;
17879if (sizeof (ac__type_new_))
17880 return 0;
17881 ;
17882 return 0;
17883}
17884_ACEOF
17885rm -f conftest.$ac_objext
17886if { (ac_try="$ac_compile"
17887case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17890esac
17891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_compile") 2>conftest.er1
17893 ac_status=$?
17894 grep -v '^ *+' conftest.er1 >conftest.err
17895 rm -f conftest.er1
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } &&
17899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17900 { (case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17903esac
17904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_try") 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest.$ac_objext'
17910 { (case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17913esac
17914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_try") 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; }; then
17919 ac_cv_type_uint64_t=yes
17920else
17921 echo "$as_me: failed program was:" >&5
17922sed 's/^/| /' conftest.$ac_ext >&5
17923
17924 ac_cv_type_uint64_t=no
17925fi
17926
17927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17928fi
17929{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17930echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17931if test $ac_cv_type_uint64_t = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000017932
17933cat >>confdefs.h <<_ACEOF
17934#define HAVE_UINT64_T 1
17935_ACEOF
17936
17937
17938else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000017939 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17940echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17941if test "${ac_cv_type_u_int64_t+set}" = set; then
17942 echo $ECHO_N "(cached) $ECHO_C" >&6
17943else
17944 cat >conftest.$ac_ext <<_ACEOF
17945/* confdefs.h. */
17946_ACEOF
17947cat confdefs.h >>conftest.$ac_ext
17948cat >>conftest.$ac_ext <<_ACEOF
17949/* end confdefs.h. */
17950$ac_includes_default
17951typedef u_int64_t ac__type_new_;
17952int
17953main ()
17954{
17955if ((ac__type_new_ *) 0)
17956 return 0;
17957if (sizeof (ac__type_new_))
17958 return 0;
17959 ;
17960 return 0;
17961}
17962_ACEOF
17963rm -f conftest.$ac_objext
17964if { (ac_try="$ac_compile"
17965case "(($ac_try" in
17966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967 *) ac_try_echo=$ac_try;;
17968esac
17969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17970 (eval "$ac_compile") 2>conftest.er1
17971 ac_status=$?
17972 grep -v '^ *+' conftest.er1 >conftest.err
17973 rm -f conftest.er1
17974 cat conftest.err >&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); } &&
17977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17978 { (case "(($ac_try" in
17979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980 *) ac_try_echo=$ac_try;;
17981esac
17982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983 (eval "$ac_try") 2>&5
17984 ac_status=$?
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; } &&
17987 { ac_try='test -s conftest.$ac_objext'
17988 { (case "(($ac_try" in
17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990 *) ac_try_echo=$ac_try;;
17991esac
17992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993 (eval "$ac_try") 2>&5
17994 ac_status=$?
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; }; then
17997 ac_cv_type_u_int64_t=yes
17998else
17999 echo "$as_me: failed program was:" >&5
18000sed 's/^/| /' conftest.$ac_ext >&5
18001
18002 ac_cv_type_u_int64_t=no
18003fi
18004
18005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18006fi
18007{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18008echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18009if test $ac_cv_type_u_int64_t = yes; then
John Criswelld672a3d2004-09-02 18:44:44 +000018010
18011cat >>confdefs.h <<_ACEOF
18012#define HAVE_U_INT64_T 1
18013_ACEOF
18014
18015
Misha Brukmancb46e662004-09-02 23:02:30 +000018016else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018017 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18018echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18019 { (exit 1); exit 1; }; }
Misha Brukmancb46e662004-09-02 23:02:30 +000018020fi
18021
John Criswelld672a3d2004-09-02 18:44:44 +000018022fi
18023
Reid Spencer0241e382004-11-25 04:51:04 +000018024
18025
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018026
18027
18028
18029
18030
18031
18032
Reid Spencera609b652006-01-23 08:15:53 +000018033for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018034do
18035as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18036{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18037echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18038if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18040else
18041 cat >conftest.$ac_ext <<_ACEOF
18042/* confdefs.h. */
18043_ACEOF
18044cat confdefs.h >>conftest.$ac_ext
18045cat >>conftest.$ac_ext <<_ACEOF
18046/* end confdefs.h. */
18047/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18049#define $ac_func innocuous_$ac_func
18050
18051/* System header to define __stub macros and hopefully few prototypes,
18052 which can conflict with char $ac_func (); below.
18053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18054 <limits.h> exists even on freestanding compilers. */
18055
18056#ifdef __STDC__
18057# include <limits.h>
18058#else
18059# include <assert.h>
18060#endif
18061
18062#undef $ac_func
18063
18064/* Override any GCC internal prototype to avoid an error.
18065 Use char because int might match the return type of a GCC
18066 builtin and then its argument prototype would still apply. */
18067#ifdef __cplusplus
18068extern "C"
18069#endif
18070char $ac_func ();
18071/* The GNU C library defines this for functions which it implements
18072 to always fail with ENOSYS. Some functions are actually named
18073 something starting with __ and the normal name is an alias. */
18074#if defined __stub_$ac_func || defined __stub___$ac_func
18075choke me
18076#endif
18077
18078int
18079main ()
18080{
18081return $ac_func ();
18082 ;
18083 return 0;
18084}
18085_ACEOF
18086rm -f conftest.$ac_objext conftest$ac_exeext
18087if { (ac_try="$ac_link"
18088case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18091esac
18092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_link") 2>conftest.er1
18094 ac_status=$?
18095 grep -v '^ *+' conftest.er1 >conftest.err
18096 rm -f conftest.er1
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18101 { (case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18104esac
18105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_try") 2>&5
18107 ac_status=$?
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; } &&
18110 { ac_try='test -s conftest$ac_exeext'
18111 { (case "(($ac_try" in
18112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113 *) ac_try_echo=$ac_try;;
18114esac
18115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116 (eval "$ac_try") 2>&5
18117 ac_status=$?
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18120 eval "$as_ac_var=yes"
18121else
18122 echo "$as_me: failed program was:" >&5
18123sed 's/^/| /' conftest.$ac_ext >&5
18124
18125 eval "$as_ac_var=no"
18126fi
18127
18128rm -f core conftest.err conftest.$ac_objext \
18129 conftest$ac_exeext conftest.$ac_ext
18130fi
18131ac_res=`eval echo '${'$as_ac_var'}'`
18132 { echo "$as_me:$LINENO: result: $ac_res" >&5
18133echo "${ECHO_T}$ac_res" >&6; }
18134if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000018135 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000018137_ACEOF
18138
18139fi
Reid Spencer0241e382004-11-25 04:51:04 +000018140done
John Criswell3ef61af2003-06-30 21:59:07 +000018141
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018142
18143
18144
18145
Reid Spencerdf523642007-07-13 10:05:30 +000018146for ac_func in powf fmodf strtof round
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018147do
18148as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18149{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18150echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18151if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18153else
18154 cat >conftest.$ac_ext <<_ACEOF
18155/* confdefs.h. */
18156_ACEOF
18157cat confdefs.h >>conftest.$ac_ext
18158cat >>conftest.$ac_ext <<_ACEOF
18159/* end confdefs.h. */
18160/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18162#define $ac_func innocuous_$ac_func
18163
18164/* System header to define __stub macros and hopefully few prototypes,
18165 which can conflict with char $ac_func (); below.
18166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18167 <limits.h> exists even on freestanding compilers. */
18168
18169#ifdef __STDC__
18170# include <limits.h>
18171#else
18172# include <assert.h>
18173#endif
18174
18175#undef $ac_func
18176
18177/* Override any GCC internal prototype to avoid an error.
18178 Use char because int might match the return type of a GCC
18179 builtin and then its argument prototype would still apply. */
18180#ifdef __cplusplus
18181extern "C"
18182#endif
18183char $ac_func ();
18184/* The GNU C library defines this for functions which it implements
18185 to always fail with ENOSYS. Some functions are actually named
18186 something starting with __ and the normal name is an alias. */
18187#if defined __stub_$ac_func || defined __stub___$ac_func
18188choke me
18189#endif
18190
18191int
18192main ()
18193{
18194return $ac_func ();
18195 ;
18196 return 0;
18197}
18198_ACEOF
18199rm -f conftest.$ac_objext conftest$ac_exeext
18200if { (ac_try="$ac_link"
18201case "(($ac_try" in
18202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203 *) ac_try_echo=$ac_try;;
18204esac
18205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206 (eval "$ac_link") 2>conftest.er1
18207 ac_status=$?
18208 grep -v '^ *+' conftest.er1 >conftest.err
18209 rm -f conftest.er1
18210 cat conftest.err >&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); } &&
18213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18214 { (case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18217esac
18218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219 (eval "$ac_try") 2>&5
18220 ac_status=$?
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; } &&
18223 { ac_try='test -s conftest$ac_exeext'
18224 { (case "(($ac_try" in
18225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226 *) ac_try_echo=$ac_try;;
18227esac
18228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18229 (eval "$ac_try") 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; }; then
18233 eval "$as_ac_var=yes"
18234else
18235 echo "$as_me: failed program was:" >&5
18236sed 's/^/| /' conftest.$ac_ext >&5
18237
18238 eval "$as_ac_var=no"
18239fi
18240
18241rm -f core conftest.err conftest.$ac_objext \
18242 conftest$ac_exeext conftest.$ac_ext
18243fi
18244ac_res=`eval echo '${'$as_ac_var'}'`
18245 { echo "$as_me:$LINENO: result: $ac_res" >&5
18246echo "${ECHO_T}$ac_res" >&6; }
18247if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf523642007-07-13 10:05:30 +000018248 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018249#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf523642007-07-13 10:05:30 +000018250_ACEOF
18251
18252fi
18253done
18254
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018255
18256
18257
18258
18259
Owen Anderson132ae8b2013-02-07 00:21:34 +000018260for ac_func in log log2 log10 exp exp2
18261do
18262as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18263{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18264echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18265if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18267else
18268 cat >conftest.$ac_ext <<_ACEOF
18269/* confdefs.h. */
18270_ACEOF
18271cat confdefs.h >>conftest.$ac_ext
18272cat >>conftest.$ac_ext <<_ACEOF
18273/* end confdefs.h. */
18274/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18276#define $ac_func innocuous_$ac_func
18277
18278/* System header to define __stub macros and hopefully few prototypes,
18279 which can conflict with char $ac_func (); below.
18280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18281 <limits.h> exists even on freestanding compilers. */
18282
18283#ifdef __STDC__
18284# include <limits.h>
18285#else
18286# include <assert.h>
18287#endif
18288
18289#undef $ac_func
18290
18291/* Override any GCC internal prototype to avoid an error.
18292 Use char because int might match the return type of a GCC
18293 builtin and then its argument prototype would still apply. */
18294#ifdef __cplusplus
18295extern "C"
18296#endif
18297char $ac_func ();
18298/* The GNU C library defines this for functions which it implements
18299 to always fail with ENOSYS. Some functions are actually named
18300 something starting with __ and the normal name is an alias. */
18301#if defined __stub_$ac_func || defined __stub___$ac_func
18302choke me
18303#endif
18304
18305int
18306main ()
18307{
18308return $ac_func ();
18309 ;
18310 return 0;
18311}
18312_ACEOF
18313rm -f conftest.$ac_objext conftest$ac_exeext
18314if { (ac_try="$ac_link"
18315case "(($ac_try" in
18316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317 *) ac_try_echo=$ac_try;;
18318esac
18319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320 (eval "$ac_link") 2>conftest.er1
18321 ac_status=$?
18322 grep -v '^ *+' conftest.er1 >conftest.err
18323 rm -f conftest.er1
18324 cat conftest.err >&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
18327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18328 { (case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18331esac
18332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_try") 2>&5
18334 ac_status=$?
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; } &&
18337 { ac_try='test -s conftest$ac_exeext'
18338 { (case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18341esac
18342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_try") 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
18347 eval "$as_ac_var=yes"
18348else
18349 echo "$as_me: failed program was:" >&5
18350sed 's/^/| /' conftest.$ac_ext >&5
18351
18352 eval "$as_ac_var=no"
18353fi
18354
18355rm -f core conftest.err conftest.$ac_objext \
18356 conftest$ac_exeext conftest.$ac_ext
18357fi
18358ac_res=`eval echo '${'$as_ac_var'}'`
18359 { echo "$as_me:$LINENO: result: $ac_res" >&5
18360echo "${ECHO_T}$ac_res" >&6; }
18361if test `eval echo '${'$as_ac_var'}'` = yes; then
18362 cat >>confdefs.h <<_ACEOF
18363#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18364_ACEOF
18365
18366fi
18367done
18368
18369
18370
18371
18372
18373
Reid Spenceredd2ccc2007-02-16 19:17:20 +000018374for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018375do
18376as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18377{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18378echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18379if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18381else
18382 cat >conftest.$ac_ext <<_ACEOF
18383/* confdefs.h. */
18384_ACEOF
18385cat confdefs.h >>conftest.$ac_ext
18386cat >>conftest.$ac_ext <<_ACEOF
18387/* end confdefs.h. */
18388/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18390#define $ac_func innocuous_$ac_func
18391
18392/* System header to define __stub macros and hopefully few prototypes,
18393 which can conflict with char $ac_func (); below.
18394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18395 <limits.h> exists even on freestanding compilers. */
18396
18397#ifdef __STDC__
18398# include <limits.h>
18399#else
18400# include <assert.h>
18401#endif
18402
18403#undef $ac_func
18404
18405/* Override any GCC internal prototype to avoid an error.
18406 Use char because int might match the return type of a GCC
18407 builtin and then its argument prototype would still apply. */
18408#ifdef __cplusplus
18409extern "C"
18410#endif
18411char $ac_func ();
18412/* The GNU C library defines this for functions which it implements
18413 to always fail with ENOSYS. Some functions are actually named
18414 something starting with __ and the normal name is an alias. */
18415#if defined __stub_$ac_func || defined __stub___$ac_func
18416choke me
18417#endif
18418
18419int
18420main ()
18421{
18422return $ac_func ();
18423 ;
18424 return 0;
18425}
18426_ACEOF
18427rm -f conftest.$ac_objext conftest$ac_exeext
18428if { (ac_try="$ac_link"
18429case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18432esac
18433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_link") 2>conftest.er1
18435 ac_status=$?
18436 grep -v '^ *+' conftest.er1 >conftest.err
18437 rm -f conftest.er1
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445esac
18446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; } &&
18451 { ac_try='test -s conftest$ac_exeext'
18452 { (case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18455esac
18456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_try") 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18461 eval "$as_ac_var=yes"
18462else
18463 echo "$as_me: failed program was:" >&5
18464sed 's/^/| /' conftest.$ac_ext >&5
18465
18466 eval "$as_ac_var=no"
18467fi
18468
18469rm -f core conftest.err conftest.$ac_objext \
18470 conftest$ac_exeext conftest.$ac_ext
18471fi
18472ac_res=`eval echo '${'$as_ac_var'}'`
18473 { echo "$as_me:$LINENO: result: $ac_res" >&5
18474echo "${ECHO_T}$ac_res" >&6; }
18475if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spenceredd2ccc2007-02-16 19:17:20 +000018476 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018477#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spenceredd2ccc2007-02-16 19:17:20 +000018478_ACEOF
18479
18480fi
18481done
18482
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018483
18484
18485
Reid Spenceredd2ccc2007-02-16 19:17:20 +000018486for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018487do
18488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18489{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18491if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18492 echo $ECHO_N "(cached) $ECHO_C" >&6
18493else
18494 cat >conftest.$ac_ext <<_ACEOF
18495/* confdefs.h. */
18496_ACEOF
18497cat confdefs.h >>conftest.$ac_ext
18498cat >>conftest.$ac_ext <<_ACEOF
18499/* end confdefs.h. */
18500/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18502#define $ac_func innocuous_$ac_func
18503
18504/* System header to define __stub macros and hopefully few prototypes,
18505 which can conflict with char $ac_func (); below.
18506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18507 <limits.h> exists even on freestanding compilers. */
18508
18509#ifdef __STDC__
18510# include <limits.h>
18511#else
18512# include <assert.h>
18513#endif
18514
18515#undef $ac_func
18516
18517/* Override any GCC internal prototype to avoid an error.
18518 Use char because int might match the return type of a GCC
18519 builtin and then its argument prototype would still apply. */
18520#ifdef __cplusplus
18521extern "C"
18522#endif
18523char $ac_func ();
18524/* The GNU C library defines this for functions which it implements
18525 to always fail with ENOSYS. Some functions are actually named
18526 something starting with __ and the normal name is an alias. */
18527#if defined __stub_$ac_func || defined __stub___$ac_func
18528choke me
18529#endif
18530
18531int
18532main ()
18533{
18534return $ac_func ();
18535 ;
18536 return 0;
18537}
18538_ACEOF
18539rm -f conftest.$ac_objext conftest$ac_exeext
18540if { (ac_try="$ac_link"
18541case "(($ac_try" in
18542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543 *) ac_try_echo=$ac_try;;
18544esac
18545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18546 (eval "$ac_link") 2>conftest.er1
18547 ac_status=$?
18548 grep -v '^ *+' conftest.er1 >conftest.err
18549 rm -f conftest.er1
18550 cat conftest.err >&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } &&
18553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18554 { (case "(($ac_try" in
18555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556 *) ac_try_echo=$ac_try;;
18557esac
18558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559 (eval "$ac_try") 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; } &&
18563 { ac_try='test -s conftest$ac_exeext'
18564 { (case "(($ac_try" in
18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566 *) ac_try_echo=$ac_try;;
18567esac
18568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569 (eval "$ac_try") 2>&5
18570 ac_status=$?
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; }; then
18573 eval "$as_ac_var=yes"
18574else
18575 echo "$as_me: failed program was:" >&5
18576sed 's/^/| /' conftest.$ac_ext >&5
18577
18578 eval "$as_ac_var=no"
18579fi
18580
18581rm -f core conftest.err conftest.$ac_objext \
18582 conftest$ac_exeext conftest.$ac_ext
18583fi
18584ac_res=`eval echo '${'$as_ac_var'}'`
18585 { echo "$as_me:$LINENO: result: $ac_res" >&5
18586echo "${ECHO_T}$ac_res" >&6; }
18587if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera609b652006-01-23 08:15:53 +000018588 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018589#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera609b652006-01-23 08:15:53 +000018590_ACEOF
18591
18592fi
18593done
18594
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018595
18596
18597
18598
18599
Eric Christopherdea3bda2010-04-16 05:14:21 +000018600
Benjamin Kramere1effb02011-11-22 12:31:53 +000018601
18602for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018603do
18604as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18605{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18606echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18607if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18608 echo $ECHO_N "(cached) $ECHO_C" >&6
18609else
18610 cat >conftest.$ac_ext <<_ACEOF
18611/* confdefs.h. */
18612_ACEOF
18613cat confdefs.h >>conftest.$ac_ext
18614cat >>conftest.$ac_ext <<_ACEOF
18615/* end confdefs.h. */
18616/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18618#define $ac_func innocuous_$ac_func
18619
18620/* System header to define __stub macros and hopefully few prototypes,
18621 which can conflict with char $ac_func (); below.
18622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18623 <limits.h> exists even on freestanding compilers. */
18624
18625#ifdef __STDC__
18626# include <limits.h>
18627#else
18628# include <assert.h>
18629#endif
18630
18631#undef $ac_func
18632
18633/* Override any GCC internal prototype to avoid an error.
18634 Use char because int might match the return type of a GCC
18635 builtin and then its argument prototype would still apply. */
18636#ifdef __cplusplus
18637extern "C"
18638#endif
18639char $ac_func ();
18640/* The GNU C library defines this for functions which it implements
18641 to always fail with ENOSYS. Some functions are actually named
18642 something starting with __ and the normal name is an alias. */
18643#if defined __stub_$ac_func || defined __stub___$ac_func
18644choke me
18645#endif
18646
18647int
18648main ()
18649{
18650return $ac_func ();
18651 ;
18652 return 0;
18653}
18654_ACEOF
18655rm -f conftest.$ac_objext conftest$ac_exeext
18656if { (ac_try="$ac_link"
18657case "(($ac_try" in
18658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18659 *) ac_try_echo=$ac_try;;
18660esac
18661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18662 (eval "$ac_link") 2>conftest.er1
18663 ac_status=$?
18664 grep -v '^ *+' conftest.er1 >conftest.err
18665 rm -f conftest.er1
18666 cat conftest.err >&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); } &&
18669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18670 { (case "(($ac_try" in
18671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672 *) ac_try_echo=$ac_try;;
18673esac
18674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675 (eval "$ac_try") 2>&5
18676 ac_status=$?
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; } &&
18679 { ac_try='test -s conftest$ac_exeext'
18680 { (case "(($ac_try" in
18681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18682 *) ac_try_echo=$ac_try;;
18683esac
18684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18685 (eval "$ac_try") 2>&5
18686 ac_status=$?
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; }; then
18689 eval "$as_ac_var=yes"
18690else
18691 echo "$as_me: failed program was:" >&5
18692sed 's/^/| /' conftest.$ac_ext >&5
18693
18694 eval "$as_ac_var=no"
18695fi
18696
18697rm -f core conftest.err conftest.$ac_objext \
18698 conftest$ac_exeext conftest.$ac_ext
18699fi
18700ac_res=`eval echo '${'$as_ac_var'}'`
18701 { echo "$as_me:$LINENO: result: $ac_res" >&5
18702echo "${ECHO_T}$ac_res" >&6; }
18703if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin246676d2009-07-01 18:30:10 +000018704 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018705#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin246676d2009-07-01 18:30:10 +000018706_ACEOF
18707
18708fi
18709done
Reid Spencera609b652006-01-23 08:15:53 +000018710
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018711
18712
18713
Daniel Dunbar407a85e2012-05-05 16:36:16 +000018714
18715for ac_func in strerror strerror_r setenv arc4random
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018716do
18717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18718{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18720if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18721 echo $ECHO_N "(cached) $ECHO_C" >&6
18722else
18723 cat >conftest.$ac_ext <<_ACEOF
18724/* confdefs.h. */
18725_ACEOF
18726cat confdefs.h >>conftest.$ac_ext
18727cat >>conftest.$ac_ext <<_ACEOF
18728/* end confdefs.h. */
18729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18731#define $ac_func innocuous_$ac_func
18732
18733/* System header to define __stub macros and hopefully few prototypes,
18734 which can conflict with char $ac_func (); below.
18735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18736 <limits.h> exists even on freestanding compilers. */
18737
18738#ifdef __STDC__
18739# include <limits.h>
18740#else
18741# include <assert.h>
18742#endif
18743
18744#undef $ac_func
18745
18746/* Override any GCC internal prototype to avoid an error.
18747 Use char because int might match the return type of a GCC
18748 builtin and then its argument prototype would still apply. */
18749#ifdef __cplusplus
18750extern "C"
18751#endif
18752char $ac_func ();
18753/* The GNU C library defines this for functions which it implements
18754 to always fail with ENOSYS. Some functions are actually named
18755 something starting with __ and the normal name is an alias. */
18756#if defined __stub_$ac_func || defined __stub___$ac_func
18757choke me
18758#endif
18759
18760int
18761main ()
18762{
18763return $ac_func ();
18764 ;
18765 return 0;
18766}
18767_ACEOF
18768rm -f conftest.$ac_objext conftest$ac_exeext
18769if { (ac_try="$ac_link"
18770case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18773esac
18774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_link") 2>conftest.er1
18776 ac_status=$?
18777 grep -v '^ *+' conftest.er1 >conftest.err
18778 rm -f conftest.er1
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } &&
18782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18783 { (case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18786esac
18787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_try") 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; } &&
18792 { ac_try='test -s conftest$ac_exeext'
18793 { (case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18796esac
18797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_try") 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 eval "$as_ac_var=yes"
18803else
18804 echo "$as_me: failed program was:" >&5
18805sed 's/^/| /' conftest.$ac_ext >&5
18806
18807 eval "$as_ac_var=no"
18808fi
18809
18810rm -f core conftest.err conftest.$ac_objext \
18811 conftest$ac_exeext conftest.$ac_ext
18812fi
18813ac_res=`eval echo '${'$as_ac_var'}'`
18814 { echo "$as_me:$LINENO: result: $ac_res" >&5
18815echo "${ECHO_T}$ac_res" >&6; }
18816if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb6681582004-12-27 06:15:02 +000018817 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018818#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb6681582004-12-27 06:15:02 +000018819_ACEOF
18820
18821fi
18822done
18823
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018824
18825
18826
18827
Chris Lattner81479022005-11-14 07:25:50 +000018828for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018829do
18830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18831{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18833if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18834 echo $ECHO_N "(cached) $ECHO_C" >&6
18835else
18836 cat >conftest.$ac_ext <<_ACEOF
18837/* confdefs.h. */
18838_ACEOF
18839cat confdefs.h >>conftest.$ac_ext
18840cat >>conftest.$ac_ext <<_ACEOF
18841/* end confdefs.h. */
18842/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18844#define $ac_func innocuous_$ac_func
18845
18846/* System header to define __stub macros and hopefully few prototypes,
18847 which can conflict with char $ac_func (); below.
18848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18849 <limits.h> exists even on freestanding compilers. */
18850
18851#ifdef __STDC__
18852# include <limits.h>
18853#else
18854# include <assert.h>
18855#endif
18856
18857#undef $ac_func
18858
18859/* Override any GCC internal prototype to avoid an error.
18860 Use char because int might match the return type of a GCC
18861 builtin and then its argument prototype would still apply. */
18862#ifdef __cplusplus
18863extern "C"
18864#endif
18865char $ac_func ();
18866/* The GNU C library defines this for functions which it implements
18867 to always fail with ENOSYS. Some functions are actually named
18868 something starting with __ and the normal name is an alias. */
18869#if defined __stub_$ac_func || defined __stub___$ac_func
18870choke me
18871#endif
18872
18873int
18874main ()
18875{
18876return $ac_func ();
18877 ;
18878 return 0;
18879}
18880_ACEOF
18881rm -f conftest.$ac_objext conftest$ac_exeext
18882if { (ac_try="$ac_link"
18883case "(($ac_try" in
18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18886esac
18887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_link") 2>conftest.er1
18889 ac_status=$?
18890 grep -v '^ *+' conftest.er1 >conftest.err
18891 rm -f conftest.er1
18892 cat conftest.err >&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); } &&
18895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18905 { ac_try='test -s conftest$ac_exeext'
18906 { (case "(($ac_try" in
18907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18908 *) ac_try_echo=$ac_try;;
18909esac
18910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18911 (eval "$ac_try") 2>&5
18912 ac_status=$?
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; }; then
18915 eval "$as_ac_var=yes"
18916else
18917 echo "$as_me: failed program was:" >&5
18918sed 's/^/| /' conftest.$ac_ext >&5
18919
18920 eval "$as_ac_var=no"
18921fi
18922
18923rm -f core conftest.err conftest.$ac_objext \
18924 conftest$ac_exeext conftest.$ac_ext
18925fi
18926ac_res=`eval echo '${'$as_ac_var'}'`
18927 { echo "$as_me:$LINENO: result: $ac_res" >&5
18928echo "${ECHO_T}$ac_res" >&6; }
18929if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer0241e382004-11-25 04:51:04 +000018930 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018931#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000018932_ACEOF
18933
18934fi
Reid Spencer0241e382004-11-25 04:51:04 +000018935done
John Criswell3ef61af2003-06-30 21:59:07 +000018936
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018937
18938
18939
18940
Daniel Dunbar7840c542011-02-03 02:40:02 +000018941
18942for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000018943do
18944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18945{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18947if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18949else
18950 cat >conftest.$ac_ext <<_ACEOF
18951/* confdefs.h. */
18952_ACEOF
18953cat confdefs.h >>conftest.$ac_ext
18954cat >>conftest.$ac_ext <<_ACEOF
18955/* end confdefs.h. */
18956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18958#define $ac_func innocuous_$ac_func
18959
18960/* System header to define __stub macros and hopefully few prototypes,
18961 which can conflict with char $ac_func (); below.
18962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18963 <limits.h> exists even on freestanding compilers. */
18964
18965#ifdef __STDC__
18966# include <limits.h>
18967#else
18968# include <assert.h>
18969#endif
18970
18971#undef $ac_func
18972
18973/* Override any GCC internal prototype to avoid an error.
18974 Use char because int might match the return type of a GCC
18975 builtin and then its argument prototype would still apply. */
18976#ifdef __cplusplus
18977extern "C"
18978#endif
18979char $ac_func ();
18980/* The GNU C library defines this for functions which it implements
18981 to always fail with ENOSYS. Some functions are actually named
18982 something starting with __ and the normal name is an alias. */
18983#if defined __stub_$ac_func || defined __stub___$ac_func
18984choke me
18985#endif
18986
18987int
18988main ()
18989{
18990return $ac_func ();
18991 ;
18992 return 0;
18993}
18994_ACEOF
18995rm -f conftest.$ac_objext conftest$ac_exeext
18996if { (ac_try="$ac_link"
18997case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19000esac
19001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_link") 2>conftest.er1
19003 ac_status=$?
19004 grep -v '^ *+' conftest.er1 >conftest.err
19005 rm -f conftest.er1
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } &&
19009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19010 { (case "(($ac_try" in
19011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19012 *) ac_try_echo=$ac_try;;
19013esac
19014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19015 (eval "$ac_try") 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; } &&
19019 { ac_try='test -s conftest$ac_exeext'
19020 { (case "(($ac_try" in
19021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022 *) ac_try_echo=$ac_try;;
19023esac
19024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025 (eval "$ac_try") 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; }; then
19029 eval "$as_ac_var=yes"
19030else
19031 echo "$as_me: failed program was:" >&5
19032sed 's/^/| /' conftest.$ac_ext >&5
19033
19034 eval "$as_ac_var=no"
19035fi
19036
19037rm -f core conftest.err conftest.$ac_objext \
19038 conftest$ac_exeext conftest.$ac_ext
19039fi
19040ac_res=`eval echo '${'$as_ac_var'}'`
19041 { echo "$as_me:$LINENO: result: $ac_res" >&5
19042echo "${ECHO_T}$ac_res" >&6; }
19043if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencera31ac4e2006-06-05 16:11:07 +000019044 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019045#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencera31ac4e2006-06-05 16:11:07 +000019046_ACEOF
19047
19048fi
19049done
19050
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019051{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19052echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19053if test "${llvm_cv_c_printf_a+set}" = set; then
19054 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000019055else
Reid Spencerf184a862004-09-19 23:53:36 +000019056 ac_ext=c
John Criswell42859552003-10-13 16:22:01 +000019057ac_cpp='$CPP $CPPFLAGS'
19058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19060ac_compiler_gnu=$ac_cv_c_compiler_gnu
19061
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019062 if test "$cross_compiling" = yes; then
Reid Spencer8de46052004-11-27 22:01:43 +000019063 llvmac_cv_c_printf_a=no
John Criswell42859552003-10-13 16:22:01 +000019064else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019065 cat >conftest.$ac_ext <<_ACEOF
Reid Spencerf184a862004-09-19 23:53:36 +000019066
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019067 /* confdefs.h. */
19068_ACEOF
19069cat confdefs.h >>conftest.$ac_ext
19070cat >>conftest.$ac_ext <<_ACEOF
19071/* end confdefs.h. */
Torok Edwinaec06332010-01-26 08:50:50 +000019072
John Criswell42859552003-10-13 16:22:01 +000019073#include <stdio.h>
Reid Spencerf184a862004-09-19 23:53:36 +000019074#include <stdlib.h>
19075
John Criswell42859552003-10-13 16:22:01 +000019076int
19077main ()
19078{
19079
Reid Spencerf184a862004-09-19 23:53:36 +000019080volatile double A, B;
19081char Buffer[100];
19082A = 1;
19083A /= 10.0;
19084sprintf(Buffer, "%a", A);
19085B = atof(Buffer);
19086if (A != B)
19087 return (1);
19088if (A != 0x1.999999999999ap-4)
19089 return (1);
19090return (0);
John Criswell42859552003-10-13 16:22:01 +000019091 ;
19092 return 0;
19093}
19094_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019095rm -f conftest$ac_exeext
19096if { (ac_try="$ac_link"
19097case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19100esac
19101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_link") 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19106 { (case "(($ac_try" in
19107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108 *) ac_try_echo=$ac_try;;
19109esac
19110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111 (eval "$ac_try") 2>&5
19112 ac_status=$?
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; }; then
Reid Spencer8de46052004-11-27 22:01:43 +000019115 llvm_cv_c_printf_a=yes
John Criswell42859552003-10-13 16:22:01 +000019116else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019117 echo "$as_me: program exited with status $ac_status" >&5
19118echo "$as_me: failed program was:" >&5
19119sed 's/^/| /' conftest.$ac_ext >&5
19120
19121( exit $ac_status )
19122llvmac_cv_c_printf_a=no
John Criswell42859552003-10-13 16:22:01 +000019123fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019124rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell42859552003-10-13 16:22:01 +000019125fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019126
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019127
Reid Spencerf184a862004-09-19 23:53:36 +000019128 ac_ext=c
John Criswell42859552003-10-13 16:22:01 +000019129ac_cpp='$CPP $CPPFLAGS'
19130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19132ac_compiler_gnu=$ac_cv_c_compiler_gnu
19133
Reid Spencer0241e382004-11-25 04:51:04 +000019134fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019135{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19136echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer8de46052004-11-27 22:01:43 +000019137 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswell42859552003-10-13 16:22:01 +000019138
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019139cat >>confdefs.h <<\_ACEOF
19140#define HAVE_PRINTF_A 1
19141_ACEOF
John Criswell42859552003-10-13 16:22:01 +000019142
Reid Spencerf184a862004-09-19 23:53:36 +000019143 fi
John Criswell42859552003-10-13 16:22:01 +000019144
Reid Spencer0241e382004-11-25 04:51:04 +000019145
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019146
19147 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019148echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19149if test "${ac_cv_func_rand48+set}" = set; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer0241e382004-11-25 04:51:04 +000019151else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019152
19153 ac_ext=cpp
Reid Spencer0241e382004-11-25 04:51:04 +000019154ac_cpp='$CXXCPP $CPPFLAGS'
19155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19158
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019159 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019160/* confdefs.h. */
19161_ACEOF
19162cat confdefs.h >>conftest.$ac_ext
19163cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000019164/* end confdefs.h. */
19165#include <stdlib.h>
19166int
19167main ()
19168{
19169srand48(0);lrand48();drand48();
19170 ;
19171 return 0;
19172}
19173_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019174rm -f conftest.$ac_objext
19175if { (ac_try="$ac_compile"
19176case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19179esac
19180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_compile") 2>conftest.er1
19182 ac_status=$?
19183 grep -v '^ *+' conftest.er1 >conftest.err
19184 rm -f conftest.er1
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } &&
19188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19189 { (case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19192esac
19193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_try") 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; } &&
19198 { ac_try='test -s conftest.$ac_objext'
19199 { (case "(($ac_try" in
19200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201 *) ac_try_echo=$ac_try;;
19202esac
19203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204 (eval "$ac_try") 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
Reid Spencer0241e382004-11-25 04:51:04 +000019208 ac_cv_func_rand48=yes
19209else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019210 echo "$as_me: failed program was:" >&5
19211sed 's/^/| /' conftest.$ac_ext >&5
19212
19213 ac_cv_func_rand48=no
Reid Spencer0241e382004-11-25 04:51:04 +000019214fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019215
Reid Spencer0b52e2f2006-08-04 18:18:08 +000019216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019217 ac_ext=c
Reid Spencer0241e382004-11-25 04:51:04 +000019218ac_cpp='$CPP $CPPFLAGS'
19219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19221ac_compiler_gnu=$ac_cv_c_compiler_gnu
19222
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000019223
Reid Spencer0241e382004-11-25 04:51:04 +000019224fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019225{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19226echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer0241e382004-11-25 04:51:04 +000019227
19228if test "$ac_cv_func_rand48" = "yes" ; then
19229
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000019230cat >>confdefs.h <<\_ACEOF
19231#define HAVE_RAND48 1
19232_ACEOF
Reid Spencer0241e382004-11-25 04:51:04 +000019233
19234fi
John Criswell3b4195f32004-02-13 21:57:29 +000019235
19236
NAKAMURA Takumi189111802011-02-09 04:18:48 +000019237{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19238echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19239if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19240 echo $ECHO_N "(cached) $ECHO_C" >&6
19241else
19242 cat >conftest.$ac_ext <<_ACEOF
19243/* confdefs.h. */
19244_ACEOF
19245cat confdefs.h >>conftest.$ac_ext
19246cat >>conftest.$ac_ext <<_ACEOF
19247/* end confdefs.h. */
19248$ac_includes_default
19249int
19250main ()
19251{
19252#ifndef strerror_s
19253 char *p = (char *) strerror_s;
19254 return !p;
19255#endif
19256
19257 ;
19258 return 0;
19259}
19260_ACEOF
19261rm -f conftest.$ac_objext
19262if { (ac_try="$ac_compile"
19263case "(($ac_try" in
19264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265 *) ac_try_echo=$ac_try;;
19266esac
19267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268 (eval "$ac_compile") 2>conftest.er1
19269 ac_status=$?
19270 grep -v '^ *+' conftest.er1 >conftest.err
19271 rm -f conftest.er1
19272 cat conftest.err >&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); } &&
19275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19276 { (case "(($ac_try" in
19277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19279esac
19280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281 (eval "$ac_try") 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; } &&
19285 { ac_try='test -s conftest.$ac_objext'
19286 { (case "(($ac_try" in
19287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288 *) ac_try_echo=$ac_try;;
19289esac
19290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19291 (eval "$ac_try") 2>&5
19292 ac_status=$?
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 ac_cv_have_decl_strerror_s=yes
19296else
19297 echo "$as_me: failed program was:" >&5
19298sed 's/^/| /' conftest.$ac_ext >&5
19299
19300 ac_cv_have_decl_strerror_s=no
19301fi
19302
19303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19304fi
19305{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19306echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19307if test $ac_cv_have_decl_strerror_s = yes; then
19308
19309cat >>confdefs.h <<_ACEOF
19310#define HAVE_DECL_STRERROR_S 1
19311_ACEOF
19312
19313
19314else
19315 cat >>confdefs.h <<_ACEOF
19316#define HAVE_DECL_STRERROR_S 0
19317_ACEOF
19318
19319
19320fi
19321
19322
19323
NAKAMURA Takumi03a541f2011-02-05 15:11:53 +000019324if test "$llvm_cv_os_type" = "MingW" ; then
19325 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19326echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19327if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
19329else
19330 ac_check_lib_save_LIBS=$LIBS
19331LIBS="-lgcc $LIBS"
19332cat >conftest.$ac_ext <<_ACEOF
19333/* confdefs.h. */
19334_ACEOF
19335cat confdefs.h >>conftest.$ac_ext
19336cat >>conftest.$ac_ext <<_ACEOF
19337/* end confdefs.h. */
19338
19339/* Override any GCC internal prototype to avoid an error.
19340 Use char because int might match the return type of a GCC
19341 builtin and then its argument prototype would still apply. */
19342#ifdef __cplusplus
19343extern "C"
19344#endif
19345char _alloca ();
19346int
19347main ()
19348{
19349return _alloca ();
19350 ;
19351 return 0;
19352}
19353_ACEOF
19354rm -f conftest.$ac_objext conftest$ac_exeext
19355if { (ac_try="$ac_link"
19356case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19359esac
19360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361 (eval "$ac_link") 2>conftest.er1
19362 ac_status=$?
19363 grep -v '^ *+' conftest.er1 >conftest.err
19364 rm -f conftest.er1
19365 cat conftest.err >&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } &&
19368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19369 { (case "(($ac_try" in
19370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19371 *) ac_try_echo=$ac_try;;
19372esac
19373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19374 (eval "$ac_try") 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; } &&
19378 { ac_try='test -s conftest$ac_exeext'
19379 { (case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19382esac
19383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_try") 2>&5
19385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 ac_cv_lib_gcc__alloca=yes
19389else
19390 echo "$as_me: failed program was:" >&5
19391sed 's/^/| /' conftest.$ac_ext >&5
19392
19393 ac_cv_lib_gcc__alloca=no
19394fi
19395
19396rm -f core conftest.err conftest.$ac_objext \
19397 conftest$ac_exeext conftest.$ac_ext
19398LIBS=$ac_check_lib_save_LIBS
19399fi
19400{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19401echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19402if test $ac_cv_lib_gcc__alloca = yes; then
19403
19404cat >>confdefs.h <<\_ACEOF
19405#define HAVE__ALLOCA 1
19406_ACEOF
19407
19408fi
19409
19410 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19411echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19412if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19413 echo $ECHO_N "(cached) $ECHO_C" >&6
19414else
19415 ac_check_lib_save_LIBS=$LIBS
19416LIBS="-lgcc $LIBS"
19417cat >conftest.$ac_ext <<_ACEOF
19418/* confdefs.h. */
19419_ACEOF
19420cat confdefs.h >>conftest.$ac_ext
19421cat >>conftest.$ac_ext <<_ACEOF
19422/* end confdefs.h. */
19423
19424/* Override any GCC internal prototype to avoid an error.
19425 Use char because int might match the return type of a GCC
19426 builtin and then its argument prototype would still apply. */
19427#ifdef __cplusplus
19428extern "C"
19429#endif
19430char __alloca ();
19431int
19432main ()
19433{
19434return __alloca ();
19435 ;
19436 return 0;
19437}
19438_ACEOF
19439rm -f conftest.$ac_objext conftest$ac_exeext
19440if { (ac_try="$ac_link"
19441case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19444esac
19445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_link") 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19454 { (case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19457esac
19458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_try") 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; } &&
19463 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19473 ac_cv_lib_gcc___alloca=yes
19474else
19475 echo "$as_me: failed program was:" >&5
19476sed 's/^/| /' conftest.$ac_ext >&5
19477
19478 ac_cv_lib_gcc___alloca=no
19479fi
19480
19481rm -f core conftest.err conftest.$ac_objext \
19482 conftest$ac_exeext conftest.$ac_ext
19483LIBS=$ac_check_lib_save_LIBS
19484fi
19485{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19486echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19487if test $ac_cv_lib_gcc___alloca = yes; then
19488
19489cat >>confdefs.h <<\_ACEOF
19490#define HAVE___ALLOCA 1
19491_ACEOF
19492
19493fi
19494
19495 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19496echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19497if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19498 echo $ECHO_N "(cached) $ECHO_C" >&6
19499else
19500 ac_check_lib_save_LIBS=$LIBS
19501LIBS="-lgcc $LIBS"
19502cat >conftest.$ac_ext <<_ACEOF
19503/* confdefs.h. */
19504_ACEOF
19505cat confdefs.h >>conftest.$ac_ext
19506cat >>conftest.$ac_ext <<_ACEOF
19507/* end confdefs.h. */
19508
19509/* Override any GCC internal prototype to avoid an error.
19510 Use char because int might match the return type of a GCC
19511 builtin and then its argument prototype would still apply. */
19512#ifdef __cplusplus
19513extern "C"
19514#endif
19515char __chkstk ();
19516int
19517main ()
19518{
19519return __chkstk ();
19520 ;
19521 return 0;
19522}
19523_ACEOF
19524rm -f conftest.$ac_objext conftest$ac_exeext
19525if { (ac_try="$ac_link"
19526case "(($ac_try" in
19527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19529esac
19530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531 (eval "$ac_link") 2>conftest.er1
19532 ac_status=$?
19533 grep -v '^ *+' conftest.er1 >conftest.err
19534 rm -f conftest.er1
19535 cat conftest.err >&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); } &&
19538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19539 { (case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19542esac
19543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_try") 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; } &&
19548 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19558 ac_cv_lib_gcc___chkstk=yes
19559else
19560 echo "$as_me: failed program was:" >&5
19561sed 's/^/| /' conftest.$ac_ext >&5
19562
19563 ac_cv_lib_gcc___chkstk=no
19564fi
19565
19566rm -f core conftest.err conftest.$ac_objext \
19567 conftest$ac_exeext conftest.$ac_ext
19568LIBS=$ac_check_lib_save_LIBS
19569fi
19570{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19571echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19572if test $ac_cv_lib_gcc___chkstk = yes; then
19573
19574cat >>confdefs.h <<\_ACEOF
19575#define HAVE___CHKSTK 1
19576_ACEOF
19577
19578fi
19579
19580 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19581echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19582if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19584else
19585 ac_check_lib_save_LIBS=$LIBS
19586LIBS="-lgcc $LIBS"
19587cat >conftest.$ac_ext <<_ACEOF
19588/* confdefs.h. */
19589_ACEOF
19590cat confdefs.h >>conftest.$ac_ext
19591cat >>conftest.$ac_ext <<_ACEOF
19592/* end confdefs.h. */
19593
19594/* Override any GCC internal prototype to avoid an error.
19595 Use char because int might match the return type of a GCC
19596 builtin and then its argument prototype would still apply. */
19597#ifdef __cplusplus
19598extern "C"
19599#endif
19600char ___chkstk ();
19601int
19602main ()
19603{
19604return ___chkstk ();
19605 ;
19606 return 0;
19607}
19608_ACEOF
19609rm -f conftest.$ac_objext conftest$ac_exeext
19610if { (ac_try="$ac_link"
19611case "(($ac_try" in
19612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19613 *) ac_try_echo=$ac_try;;
19614esac
19615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19616 (eval "$ac_link") 2>conftest.er1
19617 ac_status=$?
19618 grep -v '^ *+' conftest.er1 >conftest.err
19619 rm -f conftest.er1
19620 cat conftest.err >&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } &&
19623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19624 { (case "(($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_try") 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; } &&
19633 { ac_try='test -s conftest$ac_exeext'
19634 { (case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19637esac
19638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19640 ac_status=$?
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; }; then
19643 ac_cv_lib_gcc____chkstk=yes
19644else
19645 echo "$as_me: failed program was:" >&5
19646sed 's/^/| /' conftest.$ac_ext >&5
19647
19648 ac_cv_lib_gcc____chkstk=no
19649fi
19650
19651rm -f core conftest.err conftest.$ac_objext \
19652 conftest$ac_exeext conftest.$ac_ext
19653LIBS=$ac_check_lib_save_LIBS
19654fi
19655{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19656echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19657if test $ac_cv_lib_gcc____chkstk = yes; then
19658
19659cat >>confdefs.h <<\_ACEOF
19660#define HAVE____CHKSTK 1
19661_ACEOF
19662
19663fi
19664
19665
19666 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19667echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19668if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19670else
19671 ac_check_lib_save_LIBS=$LIBS
19672LIBS="-lgcc $LIBS"
19673cat >conftest.$ac_ext <<_ACEOF
19674/* confdefs.h. */
19675_ACEOF
19676cat confdefs.h >>conftest.$ac_ext
19677cat >>conftest.$ac_ext <<_ACEOF
19678/* end confdefs.h. */
19679
19680/* Override any GCC internal prototype to avoid an error.
19681 Use char because int might match the return type of a GCC
19682 builtin and then its argument prototype would still apply. */
19683#ifdef __cplusplus
19684extern "C"
19685#endif
19686char __ashldi3 ();
19687int
19688main ()
19689{
19690return __ashldi3 ();
19691 ;
19692 return 0;
19693}
19694_ACEOF
19695rm -f conftest.$ac_objext conftest$ac_exeext
19696if { (ac_try="$ac_link"
19697case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19700esac
19701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_link") 2>conftest.er1
19703 ac_status=$?
19704 grep -v '^ *+' conftest.er1 >conftest.err
19705 rm -f conftest.er1
19706 cat conftest.err >&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } &&
19709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19710 { (case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19713esac
19714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_try") 2>&5
19716 ac_status=$?
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; } &&
19719 { ac_try='test -s conftest$ac_exeext'
19720 { (case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19723esac
19724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_try") 2>&5
19726 ac_status=$?
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; }; then
19729 ac_cv_lib_gcc___ashldi3=yes
19730else
19731 echo "$as_me: failed program was:" >&5
19732sed 's/^/| /' conftest.$ac_ext >&5
19733
19734 ac_cv_lib_gcc___ashldi3=no
19735fi
19736
19737rm -f core conftest.err conftest.$ac_objext \
19738 conftest$ac_exeext conftest.$ac_ext
19739LIBS=$ac_check_lib_save_LIBS
19740fi
19741{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19742echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19743if test $ac_cv_lib_gcc___ashldi3 = yes; then
19744
19745cat >>confdefs.h <<\_ACEOF
19746#define HAVE___ASHLDI3 1
19747_ACEOF
19748
19749fi
19750
19751 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19752echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19753if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
19755else
19756 ac_check_lib_save_LIBS=$LIBS
19757LIBS="-lgcc $LIBS"
19758cat >conftest.$ac_ext <<_ACEOF
19759/* confdefs.h. */
19760_ACEOF
19761cat confdefs.h >>conftest.$ac_ext
19762cat >>conftest.$ac_ext <<_ACEOF
19763/* end confdefs.h. */
19764
19765/* Override any GCC internal prototype to avoid an error.
19766 Use char because int might match the return type of a GCC
19767 builtin and then its argument prototype would still apply. */
19768#ifdef __cplusplus
19769extern "C"
19770#endif
19771char __ashrdi3 ();
19772int
19773main ()
19774{
19775return __ashrdi3 ();
19776 ;
19777 return 0;
19778}
19779_ACEOF
19780rm -f conftest.$ac_objext conftest$ac_exeext
19781if { (ac_try="$ac_link"
19782case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19785esac
19786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_link") 2>conftest.er1
19788 ac_status=$?
19789 grep -v '^ *+' conftest.er1 >conftest.err
19790 rm -f conftest.er1
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
19794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19795 { (case "(($ac_try" in
19796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797 *) ac_try_echo=$ac_try;;
19798esac
19799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800 (eval "$ac_try") 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; } &&
19804 { ac_try='test -s conftest$ac_exeext'
19805 { (case "(($ac_try" in
19806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807 *) ac_try_echo=$ac_try;;
19808esac
19809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810 (eval "$ac_try") 2>&5
19811 ac_status=$?
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; }; then
19814 ac_cv_lib_gcc___ashrdi3=yes
19815else
19816 echo "$as_me: failed program was:" >&5
19817sed 's/^/| /' conftest.$ac_ext >&5
19818
19819 ac_cv_lib_gcc___ashrdi3=no
19820fi
19821
19822rm -f core conftest.err conftest.$ac_objext \
19823 conftest$ac_exeext conftest.$ac_ext
19824LIBS=$ac_check_lib_save_LIBS
19825fi
19826{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19827echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19828if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19829
19830cat >>confdefs.h <<\_ACEOF
19831#define HAVE___ASHRDI3 1
19832_ACEOF
19833
19834fi
19835
19836 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19837echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19838if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19840else
19841 ac_check_lib_save_LIBS=$LIBS
19842LIBS="-lgcc $LIBS"
19843cat >conftest.$ac_ext <<_ACEOF
19844/* confdefs.h. */
19845_ACEOF
19846cat confdefs.h >>conftest.$ac_ext
19847cat >>conftest.$ac_ext <<_ACEOF
19848/* end confdefs.h. */
19849
19850/* Override any GCC internal prototype to avoid an error.
19851 Use char because int might match the return type of a GCC
19852 builtin and then its argument prototype would still apply. */
19853#ifdef __cplusplus
19854extern "C"
19855#endif
19856char __divdi3 ();
19857int
19858main ()
19859{
19860return __divdi3 ();
19861 ;
19862 return 0;
19863}
19864_ACEOF
19865rm -f conftest.$ac_objext conftest$ac_exeext
19866if { (ac_try="$ac_link"
19867case "(($ac_try" in
19868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19870esac
19871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_link") 2>conftest.er1
19873 ac_status=$?
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } &&
19879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19880 { (case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19883esac
19884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_try") 2>&5
19886 ac_status=$?
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; } &&
19889 { ac_try='test -s conftest$ac_exeext'
19890 { (case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19893esac
19894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_try") 2>&5
19896 ac_status=$?
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; }; then
19899 ac_cv_lib_gcc___divdi3=yes
19900else
19901 echo "$as_me: failed program was:" >&5
19902sed 's/^/| /' conftest.$ac_ext >&5
19903
19904 ac_cv_lib_gcc___divdi3=no
19905fi
19906
19907rm -f core conftest.err conftest.$ac_objext \
19908 conftest$ac_exeext conftest.$ac_ext
19909LIBS=$ac_check_lib_save_LIBS
19910fi
19911{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19912echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19913if test $ac_cv_lib_gcc___divdi3 = yes; then
19914
19915cat >>confdefs.h <<\_ACEOF
19916#define HAVE___DIVDI3 1
19917_ACEOF
19918
19919fi
19920
19921 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19922echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19923if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19925else
19926 ac_check_lib_save_LIBS=$LIBS
19927LIBS="-lgcc $LIBS"
19928cat >conftest.$ac_ext <<_ACEOF
19929/* confdefs.h. */
19930_ACEOF
19931cat confdefs.h >>conftest.$ac_ext
19932cat >>conftest.$ac_ext <<_ACEOF
19933/* end confdefs.h. */
19934
19935/* Override any GCC internal prototype to avoid an error.
19936 Use char because int might match the return type of a GCC
19937 builtin and then its argument prototype would still apply. */
19938#ifdef __cplusplus
19939extern "C"
19940#endif
19941char __fixdfdi ();
19942int
19943main ()
19944{
19945return __fixdfdi ();
19946 ;
19947 return 0;
19948}
19949_ACEOF
19950rm -f conftest.$ac_objext conftest$ac_exeext
19951if { (ac_try="$ac_link"
19952case "(($ac_try" in
19953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954 *) ac_try_echo=$ac_try;;
19955esac
19956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957 (eval "$ac_link") 2>conftest.er1
19958 ac_status=$?
19959 grep -v '^ *+' conftest.er1 >conftest.err
19960 rm -f conftest.er1
19961 cat conftest.err >&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } &&
19964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19965 { (case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19968esac
19969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_try") 2>&5
19971 ac_status=$?
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); }; } &&
19974 { ac_try='test -s conftest$ac_exeext'
19975 { (case "(($ac_try" in
19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19978esac
19979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980 (eval "$ac_try") 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; }; then
19984 ac_cv_lib_gcc___fixdfdi=yes
19985else
19986 echo "$as_me: failed program was:" >&5
19987sed 's/^/| /' conftest.$ac_ext >&5
19988
19989 ac_cv_lib_gcc___fixdfdi=no
19990fi
19991
19992rm -f core conftest.err conftest.$ac_objext \
19993 conftest$ac_exeext conftest.$ac_ext
19994LIBS=$ac_check_lib_save_LIBS
19995fi
19996{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19997echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19998if test $ac_cv_lib_gcc___fixdfdi = yes; then
19999
20000cat >>confdefs.h <<\_ACEOF
20001#define HAVE___FIXDFDI 1
20002_ACEOF
20003
20004fi
20005
20006 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20007echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20008if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20009 echo $ECHO_N "(cached) $ECHO_C" >&6
20010else
20011 ac_check_lib_save_LIBS=$LIBS
20012LIBS="-lgcc $LIBS"
20013cat >conftest.$ac_ext <<_ACEOF
20014/* confdefs.h. */
20015_ACEOF
20016cat confdefs.h >>conftest.$ac_ext
20017cat >>conftest.$ac_ext <<_ACEOF
20018/* end confdefs.h. */
20019
20020/* Override any GCC internal prototype to avoid an error.
20021 Use char because int might match the return type of a GCC
20022 builtin and then its argument prototype would still apply. */
20023#ifdef __cplusplus
20024extern "C"
20025#endif
20026char __fixsfdi ();
20027int
20028main ()
20029{
20030return __fixsfdi ();
20031 ;
20032 return 0;
20033}
20034_ACEOF
20035rm -f conftest.$ac_objext conftest$ac_exeext
20036if { (ac_try="$ac_link"
20037case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20040esac
20041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_link") 2>conftest.er1
20043 ac_status=$?
20044 grep -v '^ *+' conftest.er1 >conftest.err
20045 rm -f conftest.er1
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } &&
20049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20050 { (case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20053esac
20054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_try") 2>&5
20056 ac_status=$?
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; } &&
20059 { ac_try='test -s conftest$ac_exeext'
20060 { (case "(($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_try") 2>&5
20066 ac_status=$?
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); }; }; then
20069 ac_cv_lib_gcc___fixsfdi=yes
20070else
20071 echo "$as_me: failed program was:" >&5
20072sed 's/^/| /' conftest.$ac_ext >&5
20073
20074 ac_cv_lib_gcc___fixsfdi=no
20075fi
20076
20077rm -f core conftest.err conftest.$ac_objext \
20078 conftest$ac_exeext conftest.$ac_ext
20079LIBS=$ac_check_lib_save_LIBS
20080fi
20081{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20082echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20083if test $ac_cv_lib_gcc___fixsfdi = yes; then
20084
20085cat >>confdefs.h <<\_ACEOF
20086#define HAVE___FIXSFDI 1
20087_ACEOF
20088
20089fi
20090
20091 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20092echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20093if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20095else
20096 ac_check_lib_save_LIBS=$LIBS
20097LIBS="-lgcc $LIBS"
20098cat >conftest.$ac_ext <<_ACEOF
20099/* confdefs.h. */
20100_ACEOF
20101cat confdefs.h >>conftest.$ac_ext
20102cat >>conftest.$ac_ext <<_ACEOF
20103/* end confdefs.h. */
20104
20105/* Override any GCC internal prototype to avoid an error.
20106 Use char because int might match the return type of a GCC
20107 builtin and then its argument prototype would still apply. */
20108#ifdef __cplusplus
20109extern "C"
20110#endif
20111char __floatdidf ();
20112int
20113main ()
20114{
20115return __floatdidf ();
20116 ;
20117 return 0;
20118}
20119_ACEOF
20120rm -f conftest.$ac_objext conftest$ac_exeext
20121if { (ac_try="$ac_link"
20122case "(($ac_try" in
20123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124 *) ac_try_echo=$ac_try;;
20125esac
20126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20127 (eval "$ac_link") 2>conftest.er1
20128 ac_status=$?
20129 grep -v '^ *+' conftest.er1 >conftest.err
20130 rm -f conftest.er1
20131 cat conftest.err >&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } &&
20134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20135 { (case "(($ac_try" in
20136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137 *) ac_try_echo=$ac_try;;
20138esac
20139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140 (eval "$ac_try") 2>&5
20141 ac_status=$?
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); }; } &&
20144 { ac_try='test -s conftest$ac_exeext'
20145 { (case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20148esac
20149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_try") 2>&5
20151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154 ac_cv_lib_gcc___floatdidf=yes
20155else
20156 echo "$as_me: failed program was:" >&5
20157sed 's/^/| /' conftest.$ac_ext >&5
20158
20159 ac_cv_lib_gcc___floatdidf=no
20160fi
20161
20162rm -f core conftest.err conftest.$ac_objext \
20163 conftest$ac_exeext conftest.$ac_ext
20164LIBS=$ac_check_lib_save_LIBS
20165fi
20166{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20167echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20168if test $ac_cv_lib_gcc___floatdidf = yes; then
20169
20170cat >>confdefs.h <<\_ACEOF
20171#define HAVE___FLOATDIDF 1
20172_ACEOF
20173
20174fi
20175
20176 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20177echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20178if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
20180else
20181 ac_check_lib_save_LIBS=$LIBS
20182LIBS="-lgcc $LIBS"
20183cat >conftest.$ac_ext <<_ACEOF
20184/* confdefs.h. */
20185_ACEOF
20186cat confdefs.h >>conftest.$ac_ext
20187cat >>conftest.$ac_ext <<_ACEOF
20188/* end confdefs.h. */
20189
20190/* Override any GCC internal prototype to avoid an error.
20191 Use char because int might match the return type of a GCC
20192 builtin and then its argument prototype would still apply. */
20193#ifdef __cplusplus
20194extern "C"
20195#endif
20196char __lshrdi3 ();
20197int
20198main ()
20199{
20200return __lshrdi3 ();
20201 ;
20202 return 0;
20203}
20204_ACEOF
20205rm -f conftest.$ac_objext conftest$ac_exeext
20206if { (ac_try="$ac_link"
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_link") 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); } &&
20219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20220 { (case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20223esac
20224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_try") 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try='test -s conftest$ac_exeext'
20230 { (case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20233esac
20234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_try") 2>&5
20236 ac_status=$?
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; }; then
20239 ac_cv_lib_gcc___lshrdi3=yes
20240else
20241 echo "$as_me: failed program was:" >&5
20242sed 's/^/| /' conftest.$ac_ext >&5
20243
20244 ac_cv_lib_gcc___lshrdi3=no
20245fi
20246
20247rm -f core conftest.err conftest.$ac_objext \
20248 conftest$ac_exeext conftest.$ac_ext
20249LIBS=$ac_check_lib_save_LIBS
20250fi
20251{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20252echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20253if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20254
20255cat >>confdefs.h <<\_ACEOF
20256#define HAVE___LSHRDI3 1
20257_ACEOF
20258
20259fi
20260
20261 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20262echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20263if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20264 echo $ECHO_N "(cached) $ECHO_C" >&6
20265else
20266 ac_check_lib_save_LIBS=$LIBS
20267LIBS="-lgcc $LIBS"
20268cat >conftest.$ac_ext <<_ACEOF
20269/* confdefs.h. */
20270_ACEOF
20271cat confdefs.h >>conftest.$ac_ext
20272cat >>conftest.$ac_ext <<_ACEOF
20273/* end confdefs.h. */
20274
20275/* Override any GCC internal prototype to avoid an error.
20276 Use char because int might match the return type of a GCC
20277 builtin and then its argument prototype would still apply. */
20278#ifdef __cplusplus
20279extern "C"
20280#endif
20281char __moddi3 ();
20282int
20283main ()
20284{
20285return __moddi3 ();
20286 ;
20287 return 0;
20288}
20289_ACEOF
20290rm -f conftest.$ac_objext conftest$ac_exeext
20291if { (ac_try="$ac_link"
20292case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20295esac
20296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297 (eval "$ac_link") 2>conftest.er1
20298 ac_status=$?
20299 grep -v '^ *+' conftest.er1 >conftest.err
20300 rm -f conftest.er1
20301 cat conftest.err >&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); } &&
20304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20305 { (case "(($ac_try" in
20306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307 *) ac_try_echo=$ac_try;;
20308esac
20309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310 (eval "$ac_try") 2>&5
20311 ac_status=$?
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; } &&
20314 { ac_try='test -s conftest$ac_exeext'
20315 { (case "(($ac_try" in
20316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317 *) ac_try_echo=$ac_try;;
20318esac
20319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320 (eval "$ac_try") 2>&5
20321 ac_status=$?
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; }; then
20324 ac_cv_lib_gcc___moddi3=yes
20325else
20326 echo "$as_me: failed program was:" >&5
20327sed 's/^/| /' conftest.$ac_ext >&5
20328
20329 ac_cv_lib_gcc___moddi3=no
20330fi
20331
20332rm -f core conftest.err conftest.$ac_objext \
20333 conftest$ac_exeext conftest.$ac_ext
20334LIBS=$ac_check_lib_save_LIBS
20335fi
20336{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20337echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20338if test $ac_cv_lib_gcc___moddi3 = yes; then
20339
20340cat >>confdefs.h <<\_ACEOF
20341#define HAVE___MODDI3 1
20342_ACEOF
20343
20344fi
20345
20346 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20347echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20348if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20350else
20351 ac_check_lib_save_LIBS=$LIBS
20352LIBS="-lgcc $LIBS"
20353cat >conftest.$ac_ext <<_ACEOF
20354/* confdefs.h. */
20355_ACEOF
20356cat confdefs.h >>conftest.$ac_ext
20357cat >>conftest.$ac_ext <<_ACEOF
20358/* end confdefs.h. */
20359
20360/* Override any GCC internal prototype to avoid an error.
20361 Use char because int might match the return type of a GCC
20362 builtin and then its argument prototype would still apply. */
20363#ifdef __cplusplus
20364extern "C"
20365#endif
20366char __udivdi3 ();
20367int
20368main ()
20369{
20370return __udivdi3 ();
20371 ;
20372 return 0;
20373}
20374_ACEOF
20375rm -f conftest.$ac_objext conftest$ac_exeext
20376if { (ac_try="$ac_link"
20377case "(($ac_try" in
20378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20379 *) ac_try_echo=$ac_try;;
20380esac
20381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20382 (eval "$ac_link") 2>conftest.er1
20383 ac_status=$?
20384 grep -v '^ *+' conftest.er1 >conftest.err
20385 rm -f conftest.er1
20386 cat conftest.err >&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); } &&
20389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20390 { (case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20393esac
20394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_try") 2>&5
20396 ac_status=$?
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); }; } &&
20399 { ac_try='test -s conftest$ac_exeext'
20400 { (case "(($ac_try" in
20401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402 *) ac_try_echo=$ac_try;;
20403esac
20404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20405 (eval "$ac_try") 2>&5
20406 ac_status=$?
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; }; then
20409 ac_cv_lib_gcc___udivdi3=yes
20410else
20411 echo "$as_me: failed program was:" >&5
20412sed 's/^/| /' conftest.$ac_ext >&5
20413
20414 ac_cv_lib_gcc___udivdi3=no
20415fi
20416
20417rm -f core conftest.err conftest.$ac_objext \
20418 conftest$ac_exeext conftest.$ac_ext
20419LIBS=$ac_check_lib_save_LIBS
20420fi
20421{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20422echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20423if test $ac_cv_lib_gcc___udivdi3 = yes; then
20424
20425cat >>confdefs.h <<\_ACEOF
20426#define HAVE___UDIVDI3 1
20427_ACEOF
20428
20429fi
20430
20431 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20432echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20433if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20434 echo $ECHO_N "(cached) $ECHO_C" >&6
20435else
20436 ac_check_lib_save_LIBS=$LIBS
20437LIBS="-lgcc $LIBS"
20438cat >conftest.$ac_ext <<_ACEOF
20439/* confdefs.h. */
20440_ACEOF
20441cat confdefs.h >>conftest.$ac_ext
20442cat >>conftest.$ac_ext <<_ACEOF
20443/* end confdefs.h. */
20444
20445/* Override any GCC internal prototype to avoid an error.
20446 Use char because int might match the return type of a GCC
20447 builtin and then its argument prototype would still apply. */
20448#ifdef __cplusplus
20449extern "C"
20450#endif
20451char __umoddi3 ();
20452int
20453main ()
20454{
20455return __umoddi3 ();
20456 ;
20457 return 0;
20458}
20459_ACEOF
20460rm -f conftest.$ac_objext conftest$ac_exeext
20461if { (ac_try="$ac_link"
20462case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20465esac
20466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467 (eval "$ac_link") 2>conftest.er1
20468 ac_status=$?
20469 grep -v '^ *+' conftest.er1 >conftest.err
20470 rm -f conftest.er1
20471 cat conftest.err >&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); } &&
20474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20475 { (case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20478esac
20479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_try") 2>&5
20481 ac_status=$?
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); }; } &&
20484 { ac_try='test -s conftest$ac_exeext'
20485 { (case "(($ac_try" in
20486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487 *) ac_try_echo=$ac_try;;
20488esac
20489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490 (eval "$ac_try") 2>&5
20491 ac_status=$?
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; }; then
20494 ac_cv_lib_gcc___umoddi3=yes
20495else
20496 echo "$as_me: failed program was:" >&5
20497sed 's/^/| /' conftest.$ac_ext >&5
20498
20499 ac_cv_lib_gcc___umoddi3=no
20500fi
20501
20502rm -f core conftest.err conftest.$ac_objext \
20503 conftest$ac_exeext conftest.$ac_ext
20504LIBS=$ac_check_lib_save_LIBS
20505fi
20506{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20507echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20508if test $ac_cv_lib_gcc___umoddi3 = yes; then
20509
20510cat >>confdefs.h <<\_ACEOF
20511#define HAVE___UMODDI3 1
20512_ACEOF
20513
20514fi
20515
20516
20517 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20518echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20519if test "${ac_cv_lib_gcc___main+set}" = set; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20521else
20522 ac_check_lib_save_LIBS=$LIBS
20523LIBS="-lgcc $LIBS"
20524cat >conftest.$ac_ext <<_ACEOF
20525/* confdefs.h. */
20526_ACEOF
20527cat confdefs.h >>conftest.$ac_ext
20528cat >>conftest.$ac_ext <<_ACEOF
20529/* end confdefs.h. */
20530
20531/* Override any GCC internal prototype to avoid an error.
20532 Use char because int might match the return type of a GCC
20533 builtin and then its argument prototype would still apply. */
20534#ifdef __cplusplus
20535extern "C"
20536#endif
20537char __main ();
20538int
20539main ()
20540{
20541return __main ();
20542 ;
20543 return 0;
20544}
20545_ACEOF
20546rm -f conftest.$ac_objext conftest$ac_exeext
20547if { (ac_try="$ac_link"
20548case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20551esac
20552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_link") 2>conftest.er1
20554 ac_status=$?
20555 grep -v '^ *+' conftest.er1 >conftest.err
20556 rm -f conftest.er1
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
20560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20561 { (case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20564esac
20565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_try") 2>&5
20567 ac_status=$?
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; } &&
20570 { ac_try='test -s conftest$ac_exeext'
20571 { (case "(($ac_try" in
20572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20573 *) ac_try_echo=$ac_try;;
20574esac
20575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20576 (eval "$ac_try") 2>&5
20577 ac_status=$?
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; }; then
20580 ac_cv_lib_gcc___main=yes
20581else
20582 echo "$as_me: failed program was:" >&5
20583sed 's/^/| /' conftest.$ac_ext >&5
20584
20585 ac_cv_lib_gcc___main=no
20586fi
20587
20588rm -f core conftest.err conftest.$ac_objext \
20589 conftest$ac_exeext conftest.$ac_ext
20590LIBS=$ac_check_lib_save_LIBS
20591fi
20592{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20593echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20594if test $ac_cv_lib_gcc___main = yes; then
20595
20596cat >>confdefs.h <<\_ACEOF
20597#define HAVE___MAIN 1
20598_ACEOF
20599
20600fi
20601
20602 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20603echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20604if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20606else
20607 ac_check_lib_save_LIBS=$LIBS
20608LIBS="-lgcc $LIBS"
20609cat >conftest.$ac_ext <<_ACEOF
20610/* confdefs.h. */
20611_ACEOF
20612cat confdefs.h >>conftest.$ac_ext
20613cat >>conftest.$ac_ext <<_ACEOF
20614/* end confdefs.h. */
20615
20616/* Override any GCC internal prototype to avoid an error.
20617 Use char because int might match the return type of a GCC
20618 builtin and then its argument prototype would still apply. */
20619#ifdef __cplusplus
20620extern "C"
20621#endif
20622char __cmpdi2 ();
20623int
20624main ()
20625{
20626return __cmpdi2 ();
20627 ;
20628 return 0;
20629}
20630_ACEOF
20631rm -f conftest.$ac_objext conftest$ac_exeext
20632if { (ac_try="$ac_link"
20633case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20636esac
20637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_link") 2>conftest.er1
20639 ac_status=$?
20640 grep -v '^ *+' conftest.er1 >conftest.err
20641 rm -f conftest.er1
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } &&
20645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20646 { (case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20649esac
20650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651 (eval "$ac_try") 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; } &&
20655 { ac_try='test -s conftest$ac_exeext'
20656 { (case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20659esac
20660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_try") 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
20665 ac_cv_lib_gcc___cmpdi2=yes
20666else
20667 echo "$as_me: failed program was:" >&5
20668sed 's/^/| /' conftest.$ac_ext >&5
20669
20670 ac_cv_lib_gcc___cmpdi2=no
20671fi
20672
20673rm -f core conftest.err conftest.$ac_objext \
20674 conftest$ac_exeext conftest.$ac_ext
20675LIBS=$ac_check_lib_save_LIBS
20676fi
20677{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20678echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20679if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20680
20681cat >>confdefs.h <<\_ACEOF
20682#define HAVE___CMPDI2 1
20683_ACEOF
20684
20685fi
20686
20687fi
20688
NAKAMURA Takumi4471f822011-05-01 13:29:49 +000020689if test "$llvm_cv_os_type" = "MingW" ; then
20690 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20691echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20692 cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020693
20694 /* confdefs.h. */
20695_ACEOF
20696cat confdefs.h >>conftest.$ac_ext
20697cat >>conftest.$ac_ext <<_ACEOF
20698/* end confdefs.h. */
20699
20700 #include <windows.h>
20701 #include <imagehlp.h>
20702 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20703 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20704
20705
NAKAMURA Takumi4471f822011-05-01 13:29:49 +000020706_ACEOF
20707rm -f conftest.$ac_objext
20708if { (ac_try="$ac_compile"
20709case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20712esac
20713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_compile") 2>conftest.er1
20715 ac_status=$?
20716 grep -v '^ *+' conftest.er1 >conftest.err
20717 rm -f conftest.er1
20718 cat conftest.err >&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } &&
20721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20722 { (case "(($ac_try" in
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20725esac
20726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727 (eval "$ac_try") 2>&5
20728 ac_status=$?
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); }; } &&
20731 { ac_try='test -s conftest.$ac_objext'
20732 { (case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20735esac
20736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_try") 2>&5
20738 ac_status=$?
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; }; then
20741
20742 { echo "$as_me:$LINENO: result: yes" >&5
20743echo "${ECHO_T}yes" >&6; }
20744 llvm_cv_win32_elmcb_pcstr="PCSTR"
20745
20746else
20747 echo "$as_me: failed program was:" >&5
20748sed 's/^/| /' conftest.$ac_ext >&5
20749
20750
20751 { echo "$as_me:$LINENO: result: no" >&5
20752echo "${ECHO_T}no" >&6; }
20753 llvm_cv_win32_elmcb_pcstr="PSTR"
20754
20755fi
20756
20757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20758
20759cat >>confdefs.h <<_ACEOF
20760#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20761_ACEOF
20762
20763fi
20764
Torok Edwinaec06332010-01-26 08:50:50 +000020765
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020766
20767 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020768echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20769if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20770 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000020771else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020772
20773 ac_ext=cpp
John Criswell3ef61af2003-06-30 21:59:07 +000020774ac_cpp='$CXXCPP $CPPFLAGS'
20775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20778
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020779 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020780/* confdefs.h. */
20781_ACEOF
20782cat confdefs.h >>conftest.$ac_ext
20783cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020784/* end confdefs.h. */
20785#include <math.h>
Reid Spencerf9676532004-10-27 23:03:44 +000020786int
20787main ()
20788{
20789float f; isnan(f);
20790 ;
20791 return 0;
20792}
Brian Gaekec77683c2004-06-22 23:47:13 +000020793_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020794rm -f conftest.$ac_objext
20795if { (ac_try="$ac_compile"
20796case "(($ac_try" in
20797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20798 *) ac_try_echo=$ac_try;;
20799esac
20800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20801 (eval "$ac_compile") 2>conftest.er1
20802 ac_status=$?
20803 grep -v '^ *+' conftest.er1 >conftest.err
20804 rm -f conftest.er1
20805 cat conftest.err >&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } &&
20808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20809 { (case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20812esac
20813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_try") 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest.$ac_objext'
20819 { (case "(($ac_try" in
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821 *) ac_try_echo=$ac_try;;
20822esac
20823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824 (eval "$ac_try") 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020828 ac_cv_func_isnan_in_math_h=yes
20829else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020830 echo "$as_me: failed program was:" >&5
20831sed 's/^/| /' conftest.$ac_ext >&5
20832
20833 ac_cv_func_isnan_in_math_h=no
Brian Gaekec77683c2004-06-22 23:47:13 +000020834fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020835
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020837 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000020838ac_cpp='$CPP $CPPFLAGS'
20839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20841ac_compiler_gnu=$ac_cv_c_compiler_gnu
20842
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020843
Brian Gaekec77683c2004-06-22 23:47:13 +000020844fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020845{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20846echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020847
20848
20849if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020850
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020851cat >>confdefs.h <<\_ACEOF
20852#define HAVE_ISNAN_IN_MATH_H 1
20853_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020854
Reid Spencerf9676532004-10-27 23:03:44 +000020855fi
20856
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020857
20858 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020859echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20860if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekec77683c2004-06-22 23:47:13 +000020862else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020863
20864 ac_ext=cpp
Brian Gaekec77683c2004-06-22 23:47:13 +000020865ac_cpp='$CXXCPP $CPPFLAGS'
20866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20869
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020870 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020871/* confdefs.h. */
20872_ACEOF
20873cat confdefs.h >>conftest.$ac_ext
20874cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020875/* end confdefs.h. */
20876#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000020877int
20878main ()
20879{
20880float f; isnan(f);
20881 ;
20882 return 0;
20883}
Brian Gaekec77683c2004-06-22 23:47:13 +000020884_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020885rm -f conftest.$ac_objext
20886if { (ac_try="$ac_compile"
20887case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20890esac
20891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_compile") 2>conftest.er1
20893 ac_status=$?
20894 grep -v '^ *+' conftest.er1 >conftest.err
20895 rm -f conftest.er1
20896 cat conftest.err >&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } &&
20899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20900 { (case "(($ac_try" in
20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902 *) ac_try_echo=$ac_try;;
20903esac
20904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_try") 2>&5
20906 ac_status=$?
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; } &&
20909 { ac_try='test -s conftest.$ac_objext'
20910 { (case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20913esac
20914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915 (eval "$ac_try") 2>&5
20916 ac_status=$?
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020919 ac_cv_func_isnan_in_cmath=yes
20920else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020921 echo "$as_me: failed program was:" >&5
20922sed 's/^/| /' conftest.$ac_ext >&5
20923
20924 ac_cv_func_isnan_in_cmath=no
Brian Gaekec77683c2004-06-22 23:47:13 +000020925fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020926
Reid Spencer0b52e2f2006-08-04 18:18:08 +000020927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020928 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000020929ac_cpp='$CPP $CPPFLAGS'
20930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932ac_compiler_gnu=$ac_cv_c_compiler_gnu
20933
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020934
Brian Gaekec77683c2004-06-22 23:47:13 +000020935fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020936{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20937echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000020938
20939if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000020940
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020941cat >>confdefs.h <<\_ACEOF
20942#define HAVE_ISNAN_IN_CMATH 1
20943_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020944
Reid Spencerf9676532004-10-27 23:03:44 +000020945fi
20946
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020947
20948 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020949echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20950if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20951 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekec77683c2004-06-22 23:47:13 +000020952else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020953
20954 ac_ext=cpp
Brian Gaekec77683c2004-06-22 23:47:13 +000020955ac_cpp='$CXXCPP $CPPFLAGS'
20956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20959
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000020960 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020961/* confdefs.h. */
20962_ACEOF
20963cat confdefs.h >>conftest.$ac_ext
20964cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000020965/* end confdefs.h. */
20966#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000020967int
20968main ()
20969{
20970float f; std::isnan(f);
20971 ;
20972 return 0;
20973}
Brian Gaekec77683c2004-06-22 23:47:13 +000020974_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000020975rm -f conftest.$ac_objext
20976if { (ac_try="$ac_compile"
20977case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20980esac
20981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_compile") 2>conftest.er1
20983 ac_status=$?
20984 grep -v '^ *+' conftest.er1 >conftest.err
20985 rm -f conftest.er1
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } &&
20989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20990 { (case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20993esac
20994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_try") 2>&5
20996 ac_status=$?
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; } &&
20999 { ac_try='test -s conftest.$ac_objext'
21000 { (case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21003esac
21004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_try") 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
Brian Gaekec77683c2004-06-22 23:47:13 +000021009 ac_cv_func_std_isnan_in_cmath=yes
21010else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021011 echo "$as_me: failed program was:" >&5
21012sed 's/^/| /' conftest.$ac_ext >&5
21013
21014 ac_cv_func_std_isnan_in_cmath=no
Brian Gaekec77683c2004-06-22 23:47:13 +000021015fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021016
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021018 ac_ext=c
Brian Gaekec77683c2004-06-22 23:47:13 +000021019ac_cpp='$CPP $CPPFLAGS'
21020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022ac_compiler_gnu=$ac_cv_c_compiler_gnu
21023
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021024
Brian Gaekec77683c2004-06-22 23:47:13 +000021025fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021026{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21027echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000021028
21029if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaekec77683c2004-06-22 23:47:13 +000021030
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021031cat >>confdefs.h <<\_ACEOF
21032#define HAVE_STD_ISNAN_IN_CMATH 1
21033_ACEOF
Brian Gaekec77683c2004-06-22 23:47:13 +000021034
Reid Spencerf9676532004-10-27 23:03:44 +000021035fi
Brian Gaekec77683c2004-06-22 23:47:13 +000021036
21037
NAKAMURA Takumif7148bd2013-01-30 01:37:49 +000021038
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021039
21040 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021041echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21042if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21043 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021044else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021045
21046 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021047ac_cpp='$CXXCPP $CPPFLAGS'
21048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21051
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021052 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021053/* confdefs.h. */
21054_ACEOF
21055cat confdefs.h >>conftest.$ac_ext
21056cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021057/* end confdefs.h. */
21058#include <math.h>
Reid Spencerf9676532004-10-27 23:03:44 +000021059int
21060main ()
21061{
21062float f; isinf(f);
21063 ;
21064 return 0;
21065}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021066_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021067rm -f conftest.$ac_objext
21068if { (ac_try="$ac_compile"
21069case "(($ac_try" in
21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071 *) ac_try_echo=$ac_try;;
21072esac
21073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074 (eval "$ac_compile") 2>conftest.er1
21075 ac_status=$?
21076 grep -v '^ *+' conftest.er1 >conftest.err
21077 rm -f conftest.er1
21078 cat conftest.err >&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } &&
21081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21082 { (case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21085esac
21086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087 (eval "$ac_try") 2>&5
21088 ac_status=$?
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; } &&
21091 { ac_try='test -s conftest.$ac_objext'
21092 { (case "(($ac_try" in
21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094 *) ac_try_echo=$ac_try;;
21095esac
21096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_try") 2>&5
21098 ac_status=$?
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021101 ac_cv_func_isinf_in_math_h=yes
21102else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021103 echo "$as_me: failed program was:" >&5
21104sed 's/^/| /' conftest.$ac_ext >&5
21105
21106 ac_cv_func_isinf_in_math_h=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021107fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021108
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021110 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021111ac_cpp='$CPP $CPPFLAGS'
21112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21114ac_compiler_gnu=$ac_cv_c_compiler_gnu
21115
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021116
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021117fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021118{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21119echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000021120
21121if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021122
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021123cat >>confdefs.h <<\_ACEOF
21124#define HAVE_ISINF_IN_MATH_H 1
21125_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021126
Reid Spencerf9676532004-10-27 23:03:44 +000021127fi
21128
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021129
21130 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021131echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21132if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21133 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021134else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021135
21136 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021137ac_cpp='$CXXCPP $CPPFLAGS'
21138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21141
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021142 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021143/* confdefs.h. */
21144_ACEOF
21145cat confdefs.h >>conftest.$ac_ext
21146cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021147/* end confdefs.h. */
21148#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000021149int
21150main ()
21151{
21152float f; isinf(f);
21153 ;
21154 return 0;
21155}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021156_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021157rm -f conftest.$ac_objext
21158if { (ac_try="$ac_compile"
21159case "(($ac_try" in
21160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21162esac
21163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164 (eval "$ac_compile") 2>conftest.er1
21165 ac_status=$?
21166 grep -v '^ *+' conftest.er1 >conftest.err
21167 rm -f conftest.er1
21168 cat conftest.err >&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } &&
21171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21172 { (case "(($ac_try" in
21173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174 *) ac_try_echo=$ac_try;;
21175esac
21176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177 (eval "$ac_try") 2>&5
21178 ac_status=$?
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; } &&
21181 { ac_try='test -s conftest.$ac_objext'
21182 { (case "(($ac_try" in
21183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184 *) ac_try_echo=$ac_try;;
21185esac
21186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187 (eval "$ac_try") 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021191 ac_cv_func_isinf_in_cmath=yes
21192else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021193 echo "$as_me: failed program was:" >&5
21194sed 's/^/| /' conftest.$ac_ext >&5
21195
21196 ac_cv_func_isinf_in_cmath=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021197fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021198
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021200 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021201ac_cpp='$CPP $CPPFLAGS'
21202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21204ac_compiler_gnu=$ac_cv_c_compiler_gnu
21205
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021206
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021207fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021208{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21209echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000021210
21211if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021212
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021213cat >>confdefs.h <<\_ACEOF
21214#define HAVE_ISINF_IN_CMATH 1
21215_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021216
Reid Spencerf9676532004-10-27 23:03:44 +000021217fi
21218
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021219
21220 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021221echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21222if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21223 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021224else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021225
21226 ac_ext=cpp
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021227ac_cpp='$CXXCPP $CPPFLAGS'
21228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21231
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021232 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021233/* confdefs.h. */
21234_ACEOF
21235cat confdefs.h >>conftest.$ac_ext
21236cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021237/* end confdefs.h. */
21238#include <cmath>
Reid Spencerf9676532004-10-27 23:03:44 +000021239int
21240main ()
21241{
Eric Christophereb75cc22012-03-26 02:09:01 +000021242float f; std::isinf(f);
Reid Spencerf9676532004-10-27 23:03:44 +000021243 ;
21244 return 0;
21245}
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021246_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021247rm -f conftest.$ac_objext
21248if { (ac_try="$ac_compile"
21249case "(($ac_try" in
21250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251 *) ac_try_echo=$ac_try;;
21252esac
21253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254 (eval "$ac_compile") 2>conftest.er1
21255 ac_status=$?
21256 grep -v '^ *+' conftest.er1 >conftest.err
21257 rm -f conftest.er1
21258 cat conftest.err >&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); } &&
21261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21262 { (case "(($ac_try" in
21263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264 *) ac_try_echo=$ac_try;;
21265esac
21266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267 (eval "$ac_try") 2>&5
21268 ac_status=$?
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; } &&
21271 { ac_try='test -s conftest.$ac_objext'
21272 { (case "(($ac_try" in
21273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274 *) ac_try_echo=$ac_try;;
21275esac
21276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21277 (eval "$ac_try") 2>&5
21278 ac_status=$?
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021281 ac_cv_func_std_isinf_in_cmath=yes
21282else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021283 echo "$as_me: failed program was:" >&5
21284sed 's/^/| /' conftest.$ac_ext >&5
21285
21286 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021287fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021288
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021290 ac_ext=c
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021291ac_cpp='$CPP $CPPFLAGS'
21292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21294ac_compiler_gnu=$ac_cv_c_compiler_gnu
21295
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021296
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021297fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021298{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21299echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000021300
21301if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021302
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021303cat >>confdefs.h <<\_ACEOF
21304#define HAVE_STD_ISINF_IN_CMATH 1
21305_ACEOF
Brian Gaeke2698a6c2004-07-21 03:14:12 +000021306
Reid Spencerf9676532004-10-27 23:03:44 +000021307fi
21308
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021309
21310 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021311echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21312if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21313 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaekea8704452004-07-21 03:33:58 +000021314else
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021315
21316 ac_ext=cpp
Brian Gaekea8704452004-07-21 03:33:58 +000021317ac_cpp='$CXXCPP $CPPFLAGS'
21318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21321
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021322 cat >conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021323/* confdefs.h. */
21324_ACEOF
21325cat confdefs.h >>conftest.$ac_ext
21326cat >>conftest.$ac_ext <<_ACEOF
Brian Gaekea8704452004-07-21 03:33:58 +000021327/* end confdefs.h. */
21328#include <ieeefp.h>
Reid Spencerf9676532004-10-27 23:03:44 +000021329int
21330main ()
21331{
21332float f; finite(f);
21333 ;
21334 return 0;
21335}
Brian Gaekea8704452004-07-21 03:33:58 +000021336_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021337rm -f conftest.$ac_objext
21338if { (ac_try="$ac_compile"
21339case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21342esac
21343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344 (eval "$ac_compile") 2>conftest.er1
21345 ac_status=$?
21346 grep -v '^ *+' conftest.er1 >conftest.err
21347 rm -f conftest.er1
21348 cat conftest.err >&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); } &&
21351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21352 { (case "(($ac_try" in
21353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354 *) ac_try_echo=$ac_try;;
21355esac
21356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357 (eval "$ac_try") 2>&5
21358 ac_status=$?
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; } &&
21361 { ac_try='test -s conftest.$ac_objext'
21362 { (case "(($ac_try" in
21363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364 *) ac_try_echo=$ac_try;;
21365esac
21366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21367 (eval "$ac_try") 2>&5
21368 ac_status=$?
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); }; }; then
Brian Gaekea8704452004-07-21 03:33:58 +000021371 ac_cv_func_finite_in_ieeefp_h=yes
21372else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021373 echo "$as_me: failed program was:" >&5
21374sed 's/^/| /' conftest.$ac_ext >&5
21375
21376 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaekea8704452004-07-21 03:33:58 +000021377fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021378
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021380 ac_ext=c
Brian Gaekea8704452004-07-21 03:33:58 +000021381ac_cpp='$CPP $CPPFLAGS'
21382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21384ac_compiler_gnu=$ac_cv_c_compiler_gnu
21385
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000021386
Brian Gaekea8704452004-07-21 03:33:58 +000021387fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021388{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21389echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerf9676532004-10-27 23:03:44 +000021390
Brian Gaekeae050e02004-10-28 05:06:45 +000021391if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaekea8704452004-07-21 03:33:58 +000021392
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021393cat >>confdefs.h <<\_ACEOF
21394#define HAVE_FINITE_IN_IEEEFP_H 1
21395_ACEOF
Brian Gaekea8704452004-07-21 03:33:58 +000021396
Reid Spencerf9676532004-10-27 23:03:44 +000021397fi
21398
21399
21400
Reid Spencerdfda0612007-01-20 07:48:49 +000021401if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell3ef61af2003-06-30 21:59:07 +000021402
21403
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021404for ac_header in stdlib.h unistd.h
21405do
21406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21407if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21412fi
21413ac_res=`eval echo '${'$as_ac_Header'}'`
21414 { echo "$as_me:$LINENO: result: $ac_res" >&5
21415echo "${ECHO_T}$ac_res" >&6; }
21416else
21417 # Is the header compilable?
21418{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21419echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21420cat >conftest.$ac_ext <<_ACEOF
21421/* confdefs.h. */
21422_ACEOF
21423cat confdefs.h >>conftest.$ac_ext
21424cat >>conftest.$ac_ext <<_ACEOF
21425/* end confdefs.h. */
21426$ac_includes_default
21427#include <$ac_header>
21428_ACEOF
21429rm -f conftest.$ac_objext
21430if { (ac_try="$ac_compile"
21431case "(($ac_try" in
21432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433 *) ac_try_echo=$ac_try;;
21434esac
21435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436 (eval "$ac_compile") 2>conftest.er1
21437 ac_status=$?
21438 grep -v '^ *+' conftest.er1 >conftest.err
21439 rm -f conftest.er1
21440 cat conftest.err >&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } &&
21443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21444 { (case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21447esac
21448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_try") 2>&5
21450 ac_status=$?
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; } &&
21453 { ac_try='test -s conftest.$ac_objext'
21454 { (case "(($ac_try" in
21455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456 *) ac_try_echo=$ac_try;;
21457esac
21458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459 (eval "$ac_try") 2>&5
21460 ac_status=$?
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); }; }; then
21463 ac_header_compiler=yes
21464else
21465 echo "$as_me: failed program was:" >&5
21466sed 's/^/| /' conftest.$ac_ext >&5
John Criswell3eaf0b42003-09-10 15:17:25 +000021467
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021468 ac_header_compiler=no
21469fi
21470
21471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21472{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21473echo "${ECHO_T}$ac_header_compiler" >&6; }
21474
21475# Is the header present?
21476{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21477echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21478cat >conftest.$ac_ext <<_ACEOF
21479/* confdefs.h. */
21480_ACEOF
21481cat confdefs.h >>conftest.$ac_ext
21482cat >>conftest.$ac_ext <<_ACEOF
21483/* end confdefs.h. */
21484#include <$ac_header>
21485_ACEOF
21486if { (ac_try="$ac_cpp conftest.$ac_ext"
21487case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21490esac
21491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21493 ac_status=$?
21494 grep -v '^ *+' conftest.er1 >conftest.err
21495 rm -f conftest.er1
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } >/dev/null; then
21499 if test -s conftest.err; then
21500 ac_cpp_err=$ac_c_preproc_warn_flag
21501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21502 else
21503 ac_cpp_err=
21504 fi
21505else
21506 ac_cpp_err=yes
21507fi
21508if test -z "$ac_cpp_err"; then
21509 ac_header_preproc=yes
21510else
21511 echo "$as_me: failed program was:" >&5
21512sed 's/^/| /' conftest.$ac_ext >&5
21513
21514 ac_header_preproc=no
21515fi
21516
21517rm -f conftest.err conftest.$ac_ext
21518{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21519echo "${ECHO_T}$ac_header_preproc" >&6; }
21520
21521# So? What about this header?
21522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21523 yes:no: )
21524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21528 ac_header_preproc=yes
21529 ;;
21530 no:yes:* )
21531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21543 ( cat <<\_ASBOX
Eric Christopherafbe7522011-12-21 00:52:44 +000021544## ------------------------------------ ##
21545## Report this to http://llvm.org/bugs/ ##
21546## ------------------------------------ ##
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021547_ASBOX
21548 ) | sed "s/^/$as_me: WARNING: /" >&2
21549 ;;
21550esac
21551{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21554 echo $ECHO_N "(cached) $ECHO_C" >&6
21555else
21556 eval "$as_ac_Header=\$ac_header_preproc"
21557fi
21558ac_res=`eval echo '${'$as_ac_Header'}'`
21559 { echo "$as_me:$LINENO: result: $ac_res" >&5
21560echo "${ECHO_T}$ac_res" >&6; }
21561
21562fi
21563if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000021564 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000021566_ACEOF
21567
21568fi
21569
21570done
21571
21572
21573for ac_func in getpagesize
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021574do
21575as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21576{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21577echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21578if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21579 echo $ECHO_N "(cached) $ECHO_C" >&6
21580else
21581 cat >conftest.$ac_ext <<_ACEOF
21582/* confdefs.h. */
21583_ACEOF
21584cat confdefs.h >>conftest.$ac_ext
21585cat >>conftest.$ac_ext <<_ACEOF
21586/* end confdefs.h. */
21587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21589#define $ac_func innocuous_$ac_func
21590
21591/* System header to define __stub macros and hopefully few prototypes,
21592 which can conflict with char $ac_func (); below.
21593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21594 <limits.h> exists even on freestanding compilers. */
21595
21596#ifdef __STDC__
21597# include <limits.h>
21598#else
21599# include <assert.h>
21600#endif
21601
21602#undef $ac_func
21603
21604/* Override any GCC internal prototype to avoid an error.
21605 Use char because int might match the return type of a GCC
21606 builtin and then its argument prototype would still apply. */
21607#ifdef __cplusplus
21608extern "C"
21609#endif
21610char $ac_func ();
21611/* The GNU C library defines this for functions which it implements
21612 to always fail with ENOSYS. Some functions are actually named
21613 something starting with __ and the normal name is an alias. */
21614#if defined __stub_$ac_func || defined __stub___$ac_func
21615choke me
21616#endif
21617
21618int
21619main ()
21620{
21621return $ac_func ();
21622 ;
21623 return 0;
21624}
21625_ACEOF
21626rm -f conftest.$ac_objext conftest$ac_exeext
21627if { (ac_try="$ac_link"
21628case "(($ac_try" in
21629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630 *) ac_try_echo=$ac_try;;
21631esac
21632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633 (eval "$ac_link") 2>conftest.er1
21634 ac_status=$?
21635 grep -v '^ *+' conftest.er1 >conftest.err
21636 rm -f conftest.er1
21637 cat conftest.err >&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); } &&
21640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21641 { (case "(($ac_try" in
21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643 *) ac_try_echo=$ac_try;;
21644esac
21645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21646 (eval "$ac_try") 2>&5
21647 ac_status=$?
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; } &&
21650 { ac_try='test -s conftest$ac_exeext'
21651 { (case "(($ac_try" in
21652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653 *) ac_try_echo=$ac_try;;
21654esac
21655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656 (eval "$ac_try") 2>&5
21657 ac_status=$?
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; }; then
21660 eval "$as_ac_var=yes"
21661else
21662 echo "$as_me: failed program was:" >&5
21663sed 's/^/| /' conftest.$ac_ext >&5
21664
21665 eval "$as_ac_var=no"
21666fi
21667
21668rm -f core conftest.err conftest.$ac_objext \
21669 conftest$ac_exeext conftest.$ac_ext
21670fi
21671ac_res=`eval echo '${'$as_ac_var'}'`
21672 { echo "$as_me:$LINENO: result: $ac_res" >&5
21673echo "${ECHO_T}$ac_res" >&6; }
21674if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000021675 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell3ef61af2003-06-30 21:59:07 +000021677_ACEOF
21678
21679fi
21680done
21681
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021682{ echo "$as_me:$LINENO: checking for working mmap" >&5
21683echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21684if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21685 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000021686else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021687 if test "$cross_compiling" = yes; then
John Criswell3ef61af2003-06-30 21:59:07 +000021688 ac_cv_func_mmap_fixed_mapped=no
21689else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021690 cat >conftest.$ac_ext <<_ACEOF
21691/* confdefs.h. */
21692_ACEOF
21693cat confdefs.h >>conftest.$ac_ext
21694cat >>conftest.$ac_ext <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000021695/* end confdefs.h. */
John Criswell3ef61af2003-06-30 21:59:07 +000021696$ac_includes_default
21697/* malloc might have been renamed as rpl_malloc. */
21698#undef malloc
21699
21700/* Thanks to Mike Haertel and Jim Avera for this test.
21701 Here is a matrix of mmap possibilities:
21702 mmap private not fixed
21703 mmap private fixed at somewhere currently unmapped
21704 mmap private fixed at somewhere already mapped
21705 mmap shared not fixed
21706 mmap shared fixed at somewhere currently unmapped
21707 mmap shared fixed at somewhere already mapped
21708 For private mappings, we should verify that changes cannot be read()
21709 back from the file, nor mmap's back from the file at a different
21710 address. (There have been systems where private was not correctly
21711 implemented like the infamous i386 svr4.0, and systems where the
21712 VM page cache was not coherent with the file system buffer cache
21713 like early versions of FreeBSD and possibly contemporary NetBSD.)
21714 For shared mappings, we should conversely verify that changes get
21715 propagated back to all the places they're supposed to be.
21716
21717 Grep wants private fixed already mapped.
21718 The main things grep needs to know about mmap are:
21719 * does it exist and is it safe to write into the mmap'd area
21720 * how to use it (BSD variants) */
21721
21722#include <fcntl.h>
21723#include <sys/mman.h>
21724
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021725#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell3ef61af2003-06-30 21:59:07 +000021726char *malloc ();
21727#endif
21728
21729/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021730#if !HAVE_GETPAGESIZE
21731/* Assume that all systems that can run configure have sys/param.h. */
21732# if !HAVE_SYS_PARAM_H
21733# define HAVE_SYS_PARAM_H 1
21734# endif
21735
John Criswell3ef61af2003-06-30 21:59:07 +000021736# ifdef _SC_PAGESIZE
21737# define getpagesize() sysconf(_SC_PAGESIZE)
21738# else /* no _SC_PAGESIZE */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021739# if HAVE_SYS_PARAM_H
John Criswell3ef61af2003-06-30 21:59:07 +000021740# include <sys/param.h>
21741# ifdef EXEC_PAGESIZE
21742# define getpagesize() EXEC_PAGESIZE
21743# else /* no EXEC_PAGESIZE */
21744# ifdef NBPG
21745# define getpagesize() NBPG * CLSIZE
21746# ifndef CLSIZE
21747# define CLSIZE 1
21748# endif /* no CLSIZE */
21749# else /* no NBPG */
21750# ifdef NBPC
21751# define getpagesize() NBPC
21752# else /* no NBPC */
21753# ifdef PAGESIZE
21754# define getpagesize() PAGESIZE
21755# endif /* PAGESIZE */
21756# endif /* no NBPC */
21757# endif /* no NBPG */
21758# endif /* no EXEC_PAGESIZE */
21759# else /* no HAVE_SYS_PARAM_H */
21760# define getpagesize() 8192 /* punt totally */
21761# endif /* no HAVE_SYS_PARAM_H */
21762# endif /* no _SC_PAGESIZE */
21763
21764#endif /* no HAVE_GETPAGESIZE */
21765
21766int
21767main ()
21768{
21769 char *data, *data2, *data3;
21770 int i, pagesize;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021771 int fd;
John Criswell3ef61af2003-06-30 21:59:07 +000021772
21773 pagesize = getpagesize ();
21774
21775 /* First, make a file with some known garbage in it. */
21776 data = (char *) malloc (pagesize);
21777 if (!data)
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021778 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021779 for (i = 0; i < pagesize; ++i)
21780 *(data + i) = rand ();
21781 umask (0);
21782 fd = creat ("conftest.mmap", 0600);
21783 if (fd < 0)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021784 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021785 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021786 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021787 close (fd);
21788
21789 /* Next, try to mmap the file at a fixed address which already has
21790 something else allocated at it. If we can, also make sure that
21791 we see the same garbage. */
21792 fd = open ("conftest.mmap", O_RDWR);
21793 if (fd < 0)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021794 return 1;
21795 data2 = (char *) malloc (2 * pagesize);
21796 if (!data2)
21797 return 1;
21798 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell3ef61af2003-06-30 21:59:07 +000021799 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencerf184a862004-09-19 23:53:36 +000021800 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021801 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021802 for (i = 0; i < pagesize; ++i)
21803 if (*(data + i) != *(data2 + i))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021804 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021805
21806 /* Finally, make sure that changes to the mapped area do not
21807 percolate back to the file as seen by read(). (This is a bug on
21808 some variants of i386 svr4.0.) */
21809 for (i = 0; i < pagesize; ++i)
21810 *(data2 + i) = *(data2 + i) + 1;
21811 data3 = (char *) malloc (pagesize);
21812 if (!data3)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021813 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021814 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021815 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021816 for (i = 0; i < pagesize; ++i)
21817 if (*(data + i) != *(data3 + i))
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021818 return 1;
John Criswell3ef61af2003-06-30 21:59:07 +000021819 close (fd);
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021820 return 0;
John Criswell3ef61af2003-06-30 21:59:07 +000021821}
21822_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021823rm -f conftest$ac_exeext
21824if { (ac_try="$ac_link"
21825case "(($ac_try" in
21826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827 *) ac_try_echo=$ac_try;;
21828esac
21829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830 (eval "$ac_link") 2>&5
21831 ac_status=$?
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21834 { (case "(($ac_try" in
21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836 *) ac_try_echo=$ac_try;;
21837esac
21838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21839 (eval "$ac_try") 2>&5
21840 ac_status=$?
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000021843 ac_cv_func_mmap_fixed_mapped=yes
21844else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021845 echo "$as_me: program exited with status $ac_status" >&5
21846echo "$as_me: failed program was:" >&5
21847sed 's/^/| /' conftest.$ac_ext >&5
21848
21849( exit $ac_status )
21850ac_cv_func_mmap_fixed_mapped=no
John Criswell3ef61af2003-06-30 21:59:07 +000021851fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000021853fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021854
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021855
John Criswell3ef61af2003-06-30 21:59:07 +000021856fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021857{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21858echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000021859if test $ac_cv_func_mmap_fixed_mapped = yes; then
21860
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021861cat >>confdefs.h <<\_ACEOF
21862#define HAVE_MMAP 1
21863_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000021864
21865fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021866rm -f conftest.mmap
John Criswell3ef61af2003-06-30 21:59:07 +000021867
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021868 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21869echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21870if test "${ac_cv_func_mmap_file+set}" = set; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell3ef61af2003-06-30 21:59:07 +000021872else
Reid Spencerf184a862004-09-19 23:53:36 +000021873 ac_ext=c
John Criswell3ef61af2003-06-30 21:59:07 +000021874ac_cpp='$CPP $CPPFLAGS'
21875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21877ac_compiler_gnu=$ac_cv_c_compiler_gnu
21878
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021879 if test "$cross_compiling" = yes; then
Reid Spencer5a6815d2004-09-21 17:14:44 +000021880 ac_cv_func_mmap_file=no
John Criswell3ef61af2003-06-30 21:59:07 +000021881else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021882 cat >conftest.$ac_ext <<_ACEOF
Reid Spencerac16ea92004-09-20 04:09:56 +000021883
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021884 /* confdefs.h. */
21885_ACEOF
21886cat confdefs.h >>conftest.$ac_ext
21887cat >>conftest.$ac_ext <<_ACEOF
21888/* end confdefs.h. */
Torok Edwinaec06332010-01-26 08:50:50 +000021889
John Criswell3ef61af2003-06-30 21:59:07 +000021890#include <sys/types.h>
John Criswelle3a9bd82003-10-09 15:44:28 +000021891#include <sys/mman.h>
John Criswell3ef61af2003-06-30 21:59:07 +000021892#include <fcntl.h>
Reid Spencerac16ea92004-09-20 04:09:56 +000021893
21894int
21895main ()
21896{
John Criswell3ef61af2003-06-30 21:59:07 +000021897
21898 int fd;
Reid Spencerac16ea92004-09-20 04:09:56 +000021899 fd = creat ("foo",0777);
21900 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21901 unlink ("foo");
Reid Spencer5a6815d2004-09-21 17:14:44 +000021902 return (fd != (int) MAP_FAILED);
Reid Spencerac16ea92004-09-20 04:09:56 +000021903 ;
21904 return 0;
21905}
John Criswell3ef61af2003-06-30 21:59:07 +000021906_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021907rm -f conftest$ac_exeext
21908if { (ac_try="$ac_link"
21909case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21912esac
21913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914 (eval "$ac_link") 2>&5
21915 ac_status=$?
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21918 { (case "(($ac_try" in
21919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920 *) ac_try_echo=$ac_try;;
21921esac
21922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21923 (eval "$ac_try") 2>&5
21924 ac_status=$?
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); }; }; then
John Criswell3ef61af2003-06-30 21:59:07 +000021927 ac_cv_func_mmap_file=yes
21928else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021929 echo "$as_me: program exited with status $ac_status" >&5
21930echo "$as_me: failed program was:" >&5
21931sed 's/^/| /' conftest.$ac_ext >&5
21932
21933( exit $ac_status )
21934ac_cv_func_mmap_file=no
John Criswell3ef61af2003-06-30 21:59:07 +000021935fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021936rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell3ef61af2003-06-30 21:59:07 +000021937fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000021938
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021939
John Criswell3ef61af2003-06-30 21:59:07 +000021940 ac_ext=c
21941ac_cpp='$CPP $CPPFLAGS'
21942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21944ac_compiler_gnu=$ac_cv_c_compiler_gnu
21945
21946
21947fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021948{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21949echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell3ef61af2003-06-30 21:59:07 +000021950if test "$ac_cv_func_mmap_file" = yes; then
John Criswelle3a9bd82003-10-09 15:44:28 +000021951
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021952cat >>confdefs.h <<\_ACEOF
21953#define HAVE_MMAP_FILE
21954_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000021955
21956 MMAP_FILE=yes
21957
21958fi
21959
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021960 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21961echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21962if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6681582004-12-27 06:15:02 +000021964else
Reid Spencer3d745d42004-12-29 07:07:57 +000021965 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencerb6681582004-12-27 06:15:02 +000021966 ac_cv_need_dev_zero_for_mmap=yes
21967 else
21968 ac_cv_need_dev_zero_for_mmap=no
21969 fi
21970
21971fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021972{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21973echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencerb6681582004-12-27 06:15:02 +000021974if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21975
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021976cat >>confdefs.h <<\_ACEOF
21977#define NEED_DEV_ZERO_FOR_MMAP 1
21978_ACEOF
Reid Spencerb6681582004-12-27 06:15:02 +000021979
21980fi
Reid Spencerf184a862004-09-19 23:53:36 +000021981
Reid Spencerdfda0612007-01-20 07:48:49 +000021982 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21983 then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021984 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21985echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencerdfda0612007-01-20 07:48:49 +000021986 fi
21987 if test "$ac_cv_func_mmap_file" = "no"
21988 then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021989 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21990echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencerdfda0612007-01-20 07:48:49 +000021991 fi
John Criswellb65ddad2003-07-22 21:00:24 +000021992fi
John Criswell3ef61af2003-06-30 21:59:07 +000021993
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000021994{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21995echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7eb8112010-07-28 20:26:43 +000021996ac_ext=cpp
21997ac_cpp='$CXXCPP $CPPFLAGS'
21998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22001
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022002cat >conftest.$ac_ext <<_ACEOF
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000022003
22004 /* confdefs.h. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022005_ACEOF
22006cat confdefs.h >>conftest.$ac_ext
22007cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonb9509c52009-05-18 23:58:51 +000022008/* end confdefs.h. */
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000022009
22010 int main() {
22011 volatile unsigned long val = 1;
22012 __sync_synchronize();
22013 __sync_val_compare_and_swap(&val, 1, 0);
22014 __sync_add_and_fetch(&val, 1);
22015 __sync_sub_and_fetch(&val, 1);
22016 return 0;
22017 }
22018
Owen Andersonb9509c52009-05-18 23:58:51 +000022019
22020_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022021rm -f conftest.$ac_objext conftest$ac_exeext
22022if { (ac_try="$ac_link"
22023case "(($ac_try" in
22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025 *) ac_try_echo=$ac_try;;
22026esac
22027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028 (eval "$ac_link") 2>conftest.er1
22029 ac_status=$?
22030 grep -v '^ *+' conftest.er1 >conftest.err
22031 rm -f conftest.er1
22032 cat conftest.err >&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000022035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022036 { (case "(($ac_try" in
22037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038 *) ac_try_echo=$ac_try;;
22039esac
22040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041 (eval "$ac_try") 2>&5
22042 ac_status=$?
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); }; } &&
22045 { ac_try='test -s conftest$ac_exeext'
22046 { (case "(($ac_try" in
22047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22048 *) ac_try_echo=$ac_try;;
22049esac
22050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22051 (eval "$ac_try") 2>&5
22052 ac_status=$?
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }; then
Eric Christopherf7eb8112010-07-28 20:26:43 +000022055
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022056 { echo "$as_me:$LINENO: result: yes" >&5
22057echo "${ECHO_T}yes" >&6; }
Owen Andersonaf5db832009-05-19 22:18:56 +000022058
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022059cat >>confdefs.h <<\_ACEOF
Eric Christopher4418a602011-09-19 20:43:23 +000022060#define LLVM_HAS_ATOMICS 1
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022061_ACEOF
Owen Andersonaf5db832009-05-19 22:18:56 +000022062
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000022063
Owen Andersonb9509c52009-05-18 23:58:51 +000022064else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022065 echo "$as_me: failed program was:" >&5
22066sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersonb9509c52009-05-18 23:58:51 +000022067
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000022068
22069 { echo "$as_me:$LINENO: result: no" >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022070echo "${ECHO_T}no" >&6; }
Owen Andersonb9509c52009-05-18 23:58:51 +000022071
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022072cat >>confdefs.h <<\_ACEOF
Eric Christopher4418a602011-09-19 20:43:23 +000022073#define LLVM_HAS_ATOMICS 0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022074_ACEOF
22075
22076 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22077echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000022078
Owen Andersonb9509c52009-05-18 23:58:51 +000022079fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022080
Owen Andersonb9509c52009-05-18 23:58:51 +000022081rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022082 conftest$ac_exeext conftest.$ac_ext
NAKAMURA Takumie5bc87c2013-01-30 01:37:55 +000022083ac_ext=c
22084ac_cpp='$CPP $CPPFLAGS'
22085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22087ac_compiler_gnu=$ac_cv_c_compiler_gnu
22088
Owen Andersonb9509c52009-05-18 23:58:51 +000022089
John Criswell3ef61af2003-06-30 21:59:07 +000022090
Nick Lewycky9b3f7162009-09-29 06:18:23 +000022091if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022092 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22093echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22094if test "${llvm_cv_linux_mixed+set}" = set; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky9b3f7162009-09-29 06:18:23 +000022096else
22097 ac_ext=c
22098ac_cpp='$CPP $CPPFLAGS'
22099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22101ac_compiler_gnu=$ac_cv_c_compiler_gnu
22102
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022103 cat >conftest.$ac_ext <<_ACEOF
22104/* confdefs.h. */
22105_ACEOF
22106cat confdefs.h >>conftest.$ac_ext
22107cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky9b3f7162009-09-29 06:18:23 +000022108/* end confdefs.h. */
22109#ifndef __x86_64__
22110 error: Not x86-64 even if uname says so!
22111 #endif
22112
22113int
22114main ()
22115{
22116
22117 ;
22118 return 0;
22119}
22120_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022121rm -f conftest.$ac_objext
22122if { (ac_try="$ac_compile"
22123case "(($ac_try" in
22124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125 *) ac_try_echo=$ac_try;;
22126esac
22127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128 (eval "$ac_compile") 2>conftest.er1
22129 ac_status=$?
22130 grep -v '^ *+' conftest.er1 >conftest.err
22131 rm -f conftest.er1
22132 cat conftest.err >&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); } &&
22135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22136 { (case "(($ac_try" in
22137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138 *) ac_try_echo=$ac_try;;
22139esac
22140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141 (eval "$ac_try") 2>&5
22142 ac_status=$?
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); }; } &&
22145 { ac_try='test -s conftest.$ac_objext'
22146 { (case "(($ac_try" in
22147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148 *) ac_try_echo=$ac_try;;
22149esac
22150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22151 (eval "$ac_try") 2>&5
22152 ac_status=$?
22153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); }; }; then
Nick Lewycky9b3f7162009-09-29 06:18:23 +000022155 llvm_cv_linux_mixed=no
22156else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022157 echo "$as_me: failed program was:" >&5
22158sed 's/^/| /' conftest.$ac_ext >&5
22159
22160 llvm_cv_linux_mixed=yes
Nick Lewycky9b3f7162009-09-29 06:18:23 +000022161fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022162
Nick Lewycky9b3f7162009-09-29 06:18:23 +000022163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22164 ac_ext=c
22165ac_cpp='$CPP $CPPFLAGS'
22166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22168ac_compiler_gnu=$ac_cv_c_compiler_gnu
22169
22170
22171fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022172{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22173echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky9b3f7162009-09-29 06:18:23 +000022174
22175 if test "$llvm_cv_linux_mixed" = "yes"; then
22176 llvm_cv_target_arch="x86"
22177 ARCH="x86"
22178 fi
22179fi
22180
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022181
Reid Spencer32046f72007-07-30 20:13:24 +000022182for ac_func in __dso_handle
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022183do
22184as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22185{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22186echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22187if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22188 echo $ECHO_N "(cached) $ECHO_C" >&6
22189else
22190 cat >conftest.$ac_ext <<_ACEOF
22191/* confdefs.h. */
22192_ACEOF
22193cat confdefs.h >>conftest.$ac_ext
22194cat >>conftest.$ac_ext <<_ACEOF
22195/* end confdefs.h. */
22196/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22198#define $ac_func innocuous_$ac_func
22199
22200/* System header to define __stub macros and hopefully few prototypes,
22201 which can conflict with char $ac_func (); below.
22202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22203 <limits.h> exists even on freestanding compilers. */
22204
22205#ifdef __STDC__
22206# include <limits.h>
22207#else
22208# include <assert.h>
22209#endif
22210
22211#undef $ac_func
22212
22213/* Override any GCC internal prototype to avoid an error.
22214 Use char because int might match the return type of a GCC
22215 builtin and then its argument prototype would still apply. */
22216#ifdef __cplusplus
22217extern "C"
22218#endif
22219char $ac_func ();
22220/* The GNU C library defines this for functions which it implements
22221 to always fail with ENOSYS. Some functions are actually named
22222 something starting with __ and the normal name is an alias. */
22223#if defined __stub_$ac_func || defined __stub___$ac_func
22224choke me
22225#endif
22226
22227int
22228main ()
22229{
22230return $ac_func ();
22231 ;
22232 return 0;
22233}
22234_ACEOF
22235rm -f conftest.$ac_objext conftest$ac_exeext
22236if { (ac_try="$ac_link"
22237case "(($ac_try" in
22238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239 *) ac_try_echo=$ac_try;;
22240esac
22241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242 (eval "$ac_link") 2>conftest.er1
22243 ac_status=$?
22244 grep -v '^ *+' conftest.er1 >conftest.err
22245 rm -f conftest.er1
22246 cat conftest.err >&5
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } &&
22249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22250 { (case "(($ac_try" in
22251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252 *) ac_try_echo=$ac_try;;
22253esac
22254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255 (eval "$ac_try") 2>&5
22256 ac_status=$?
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; } &&
22259 { ac_try='test -s conftest$ac_exeext'
22260 { (case "(($ac_try" in
22261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22262 *) ac_try_echo=$ac_try;;
22263esac
22264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22265 (eval "$ac_try") 2>&5
22266 ac_status=$?
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); }; }; then
22269 eval "$as_ac_var=yes"
22270else
22271 echo "$as_me: failed program was:" >&5
22272sed 's/^/| /' conftest.$ac_ext >&5
22273
22274 eval "$as_ac_var=no"
22275fi
22276
22277rm -f core conftest.err conftest.$ac_objext \
22278 conftest$ac_exeext conftest.$ac_ext
22279fi
22280ac_res=`eval echo '${'$as_ac_var'}'`
22281 { echo "$as_me:$LINENO: result: $ac_res" >&5
22282echo "${ECHO_T}$ac_res" >&6; }
22283if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer32046f72007-07-30 20:13:24 +000022284 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022285#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer32046f72007-07-30 20:13:24 +000022286_ACEOF
22287
22288fi
22289done
22290
22291
Reid Spencera40c6872004-11-29 12:29:58 +000022292SHLIBEXT=$libltdl_cv_shlibext
Brian Gaekea2404522004-01-21 19:39:29 +000022293
22294
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +000022295SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22296
22297
Jeff Cohenc5e5b272007-01-12 18:22:38 +000022298if test "${prefix}" = "NONE" ; then
Reid Spencer40f1b132006-05-16 08:53:32 +000022299 prefix="/usr/local"
22300fi
Reid Spencer4d5c2a92004-08-20 09:03:57 +000022301eval LLVM_PREFIX="${prefix}";
22302eval LLVM_BINDIR="${prefix}/bin";
22303eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer0194c9a2004-11-29 04:56:35 +000022304eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherb3762a02010-03-02 05:17:21 +000022305eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer0194c9a2004-11-29 04:56:35 +000022306eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencer4d5c2a92004-08-20 09:03:57 +000022307eval LLVM_INCLUDEDIR="${prefix}/include";
22308eval LLVM_INFODIR="${prefix}/info";
22309eval LLVM_MANDIR="${prefix}/man";
22310LLVM_CONFIGTIME=`date`
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
Daniel Dunbar9370ecf2012-03-02 16:24:21 +000022322if test "${ENABLE_TIMESTAMPS}" = "0"; then
22323 LLVM_CONFIGTIME="(timestamp not enabled)"
22324fi
22325
Reid Spencer0241e382004-11-25 04:51:04 +000022326
Reid Spencer4d5c2a92004-08-20 09:03:57 +000022327cat >>confdefs.h <<_ACEOF
22328#define LLVM_PREFIX "$LLVM_PREFIX"
22329_ACEOF
22330
22331
22332cat >>confdefs.h <<_ACEOF
22333#define LLVM_BINDIR "$LLVM_BINDIR"
22334_ACEOF
22335
22336
22337cat >>confdefs.h <<_ACEOF
22338#define LLVM_LIBDIR "$LLVM_LIBDIR"
22339_ACEOF
22340
22341
22342cat >>confdefs.h <<_ACEOF
22343#define LLVM_DATADIR "$LLVM_DATADIR"
22344_ACEOF
22345
22346
22347cat >>confdefs.h <<_ACEOF
Gordon Henriksen80f35e02007-10-03 12:07:14 +000022348#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencer4d5c2a92004-08-20 09:03:57 +000022349_ACEOF
22350
22351
22352cat >>confdefs.h <<_ACEOF
Reid Spencer288adf12004-08-20 09:10:31 +000022353#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencer4d5c2a92004-08-20 09:03:57 +000022354_ACEOF
22355
22356
22357cat >>confdefs.h <<_ACEOF
22358#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22359_ACEOF
22360
22361
22362cat >>confdefs.h <<_ACEOF
22363#define LLVM_INFODIR "$LLVM_INFODIR"
22364_ACEOF
22365
22366
22367cat >>confdefs.h <<_ACEOF
22368#define LLVM_MANDIR "$LLVM_MANDIR"
22369_ACEOF
22370
22371
22372cat >>confdefs.h <<_ACEOF
22373#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22374_ACEOF
22375
22376
Eric Christophere62b4412007-12-01 00:34:39 +000022377cat >>confdefs.h <<_ACEOF
Tim Northoverfee13d12013-05-04 07:36:23 +000022378#define LLVM_HOST_TRIPLE "$host"
NAKAMURA Takumi43652ae2012-07-22 03:04:52 +000022379_ACEOF
22380
22381
22382cat >>confdefs.h <<_ACEOF
Sebastian Popec2fb222011-11-01 21:31:44 +000022383#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Eric Christophere62b4412007-12-01 00:34:39 +000022384_ACEOF
22385
22386
Gordon Henriksene61dd672007-10-02 09:50:32 +000022387if test "$BINDINGS_TO_BUILD" = auto ; then
22388 BINDINGS_TO_BUILD=""
22389 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22390 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22391 fi
22392fi
22393BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22394
22395
Gordon Henriksene61dd672007-10-02 09:50:32 +000022396ALL_BINDINGS=ocaml
22397
22398
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000022399binding_prereqs_failed=0
22400for a_binding in $BINDINGS_TO_BUILD ; do
22401 case "$a_binding" in
22402 ocaml)
22403 if test "x$OCAMLC" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022404 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22405echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000022406 binding_prereqs_failed=1
22407 fi
22408 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022409 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22410echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000022411 binding_prereqs_failed=1
22412 fi
22413 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022414 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22415echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000022416 fi
22417 if test "x$with_ocaml_libdir" != xauto ; then
22418 OCAML_LIBDIR=$with_ocaml_libdir
22419
22420 else
22421 ocaml_stdlib="`"$OCAMLC" -where`"
22422 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22423 then
22424 # ocaml stdlib is beneath our prefix; use stdlib
22425 OCAML_LIBDIR=$ocaml_stdlib
22426
22427 else
22428 # ocaml stdlib is outside our prefix; use libdir/ocaml
22429 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22430
22431 fi
22432 fi
22433 ;;
22434 esac
22435done
22436if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022437 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22438echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22439 { (exit 1); exit 1; }; }
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000022440fi
22441
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022442{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22443echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22444if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22445 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022446else
22447 ac_ext=cpp
22448ac_cpp='$CXXCPP $CPPFLAGS'
22449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22452
22453 oldcxxflags="$CXXFLAGS"
NAKAMURA Takumi652e0132012-02-19 12:05:12 +000022454 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022455 cat >conftest.$ac_ext <<_ACEOF
22456/* confdefs.h. */
22457_ACEOF
22458cat confdefs.h >>conftest.$ac_ext
22459cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022460/* end confdefs.h. */
Benjamin Kramer54671a72011-12-22 22:50:44 +000022461template <typename T> struct X { void __attribute__((noinline)) f() {} };
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022462int
22463main ()
22464{
Benjamin Kramer942b2872011-12-22 22:25:26 +000022465X<int>().f();
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022466 ;
22467 return 0;
22468}
22469_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022470rm -f conftest.$ac_objext
22471if { (ac_try="$ac_compile"
22472case "(($ac_try" in
22473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22474 *) ac_try_echo=$ac_try;;
22475esac
22476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22477 (eval "$ac_compile") 2>conftest.er1
22478 ac_status=$?
22479 grep -v '^ *+' conftest.er1 >conftest.err
22480 rm -f conftest.er1
22481 cat conftest.err >&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } &&
22484 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22485 { (case "(($ac_try" in
22486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487 *) ac_try_echo=$ac_try;;
22488esac
22489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22490 (eval "$ac_try") 2>&5
22491 ac_status=$?
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); }; } &&
22494 { ac_try='test -s conftest.$ac_objext'
22495 { (case "(($ac_try" in
22496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497 *) ac_try_echo=$ac_try;;
22498esac
22499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500 (eval "$ac_try") 2>&5
22501 ac_status=$?
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); }; }; then
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022504 llvm_cv_cxx_visibility_inlines_hidden=yes
22505else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022506 echo "$as_me: failed program was:" >&5
22507sed 's/^/| /' conftest.$ac_ext >&5
22508
22509 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022510fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022511
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513 CXXFLAGS="$oldcxxflags"
22514 ac_ext=c
22515ac_cpp='$CPP $CPPFLAGS'
22516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22518ac_compiler_gnu=$ac_cv_c_compiler_gnu
22519
22520
22521fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022522{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22523echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbar8eec9852008-08-30 01:16:19 +000022524if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22525 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22526
22527else
22528 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22529
22530fi
22531
Gordon Henriksenda5d5b52007-10-02 16:42:22 +000022532
Nick Lewyckyc540cc62009-03-05 08:20:44 +000022533if test "$llvm_cv_link_use_r" = "yes" ; then
22534 RPATH="-Wl,-R"
22535else
22536 RPATH="-Wl,-rpath"
22537fi
22538
22539
22540if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22541 RDYNAMIC="-Wl,-export-dynamic"
22542else
22543 RDYNAMIC=""
22544fi
Nick Lewyckyed8472e2009-03-03 04:55:29 +000022545
22546
Reid Spencer0241e382004-11-25 04:51:04 +000022547
Eric Christopher97014d82010-08-08 02:44:25 +000022548ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer0241e382004-11-25 04:51:04 +000022549
Eric Christopher41983c62010-08-08 09:20:39 +000022550
22551
22552
22553
22554
Douglas Gregor1b731d52009-06-16 20:12:29 +000022555ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22556
22557ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22558
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000022559ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22560
Daniel Dunbar32027202009-11-25 04:37:28 +000022561ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22562
Michael J. Spencer447762d2010-11-29 18:16:10 +000022563ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer0241e382004-11-25 04:51:04 +000022564
Reid Spencer0241e382004-11-25 04:51:04 +000022565
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022566ac_config_files="$ac_config_files Makefile.config"
Reid Spencer0241e382004-11-25 04:51:04 +000022567
Eric Christopher49709ad2011-10-26 00:42:12 +000022568
Reid Spencer1277ba22006-08-16 00:45:38 +000022569ac_config_files="$ac_config_files llvm.spec"
22570
22571
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000022572ac_config_files="$ac_config_files docs/doxygen.cfg"
22573
Eric Christopherf1329892012-02-02 00:16:55 +000022574
Dylan Noblesmithe21a3b22012-02-04 02:41:36 +000022575if test "${clang_src_root}" = ""; then
Eric Christopherdc51a5d2012-02-02 01:11:30 +000022576 clang_src_root="$srcdir/tools/clang"
Eric Christopher7f977de2012-02-02 00:19:05 +000022577fi
Eric Christopherf1329892012-02-02 00:16:55 +000022578if test -f ${clang_src_root}/README.txt; then
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000022579 configh="include/clang/Config/config.h"
22580 doxy="docs/doxygen.cfg"
22581 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
Eric Christopherf1329892012-02-02 00:16:55 +000022582
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000022583 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000022584
22585fi
22586
Torok Edwin229f8d72011-10-14 20:38:02 +000022587ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
Reid Spencer6f682b72006-03-22 15:59:55 +000022588
Eric Christopher49709ad2011-10-26 00:42:12 +000022589
Jordan Rose3c837ab2012-10-01 18:40:32 +000022590test "x$program_prefix" = "xNONE" && program_prefix=""
22591
22592
22593
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022594ac_config_commands="$ac_config_commands setup"
Reid Spencereeedeaf2005-02-24 19:05:19 +000022595
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022596ac_config_commands="$ac_config_commands Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022597
22598
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022599ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer0241e382004-11-25 04:51:04 +000022600
22601
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022602ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022603
22604
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022605ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022606
22607
Reid Spencer4b8067f2006-11-17 03:32:33 +000022608ac_config_commands="$ac_config_commands runtime/Makefile"
22609
22610
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022611ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022612
22613
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022614ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer0241e382004-11-25 04:51:04 +000022615
22616
Bill Wendling7c53a182009-01-04 23:12:30 +000022617ac_config_commands="$ac_config_commands unittests/Makefile"
22618
22619
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022620ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022621
22622
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022623ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022624
22625
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022626ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer0241e382004-11-25 04:51:04 +000022627
22628
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000022629ac_config_commands="$ac_config_commands bindings/Makefile"
22630
22631
22632ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22633
22634
Reid Spencer0241e382004-11-25 04:51:04 +000022635
John Criswell3ef61af2003-06-30 21:59:07 +000022636cat >confcache <<\_ACEOF
22637# This file is a shell script that caches the results of configure
22638# tests run on this system so they can be shared between configure
22639# scripts and configure runs, see configure's option --config-cache.
22640# It is not useful on other systems. If it contains results you don't
22641# want to keep, you may remove or edit it.
22642#
22643# config.status only pays attention to the cache file if you give it
22644# the --recheck option to rerun configure.
22645#
John Criswell3eaf0b42003-09-10 15:17:25 +000022646# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell3ef61af2003-06-30 21:59:07 +000022647# loading this file, other *unset* `ac_cv_foo' will be assigned the
22648# following values.
22649
22650_ACEOF
22651
22652# The following way of writing the cache mishandles newlines in values,
22653# but we know of no workaround that is simple, portable, and efficient.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022654# So, we kill variables containing newlines.
John Criswell3ef61af2003-06-30 21:59:07 +000022655# Ultrix sh set writes to stderr and can't be redirected directly,
22656# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022657(
22658 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22659 eval ac_val=\$$ac_var
22660 case $ac_val in #(
22661 *${as_nl}*)
22662 case $ac_var in #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022663 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22664echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022665 esac
22666 case $ac_var in #(
22667 _ | IFS | as_nl) ;; #(
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022668 *) $as_unset $ac_var ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022669 esac ;;
22670 esac
22671 done
22672
John Criswell3ef61af2003-06-30 21:59:07 +000022673 (set) 2>&1 |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022674 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22675 *${as_nl}ac_space=\ *)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022676 # `set' does not quote correctly, so add quotes (double-quote
22677 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell3ef61af2003-06-30 21:59:07 +000022678 sed -n \
Reid Spencerf184a862004-09-19 23:53:36 +000022679 "s/'/'\\\\''/g;
22680 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022681 ;; #(
John Criswell3ef61af2003-06-30 21:59:07 +000022682 *)
22683 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022684 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell3ef61af2003-06-30 21:59:07 +000022685 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022686 esac |
22687 sort
22688) |
John Criswell3ef61af2003-06-30 21:59:07 +000022689 sed '
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022690 /^ac_cv_env_/b end
John Criswell3ef61af2003-06-30 21:59:07 +000022691 t clear
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022692 :clear
John Criswell3ef61af2003-06-30 21:59:07 +000022693 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22694 t end
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022695 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22696 :end' >>confcache
22697if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22698 if test -w "$cache_file"; then
22699 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022700 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22701echo "$as_me: updating cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000022702 cat confcache >$cache_file
22703 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022704 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22705echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000022706 fi
22707fi
22708rm -f confcache
22709
22710test "x$prefix" = xNONE && prefix=$ac_default_prefix
22711# Let make expand exec_prefix.
22712test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22713
John Criswell3ef61af2003-06-30 21:59:07 +000022714DEFS=-DHAVE_CONFIG_H
22715
John Criswell3eaf0b42003-09-10 15:17:25 +000022716ac_libobjs=
22717ac_ltlibobjs=
22718for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22719 # 1. Remove the extension, and $U if already installed.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022720 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022721 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022722 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22723 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022724 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22725 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell3eaf0b42003-09-10 15:17:25 +000022726done
22727LIBOBJS=$ac_libobjs
22728
22729LTLIBOBJS=$ac_ltlibobjs
22730
22731
Reid Spencera40c6872004-11-29 12:29:58 +000022732if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022733 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22734Usually this means the macro was only invoked conditionally." >&5
22735echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22736Usually this means the macro was only invoked conditionally." >&2;}
22737 { (exit 1); exit 1; }; }
Reid Spencera40c6872004-11-29 12:29:58 +000022738fi
22739if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022740 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22741Usually this means the macro was only invoked conditionally." >&5
22742echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22743Usually this means the macro was only invoked conditionally." >&2;}
22744 { (exit 1); exit 1; }; }
Reid Spencera40c6872004-11-29 12:29:58 +000022745fi
John Criswell3ef61af2003-06-30 21:59:07 +000022746
22747: ${CONFIG_STATUS=./config.status}
22748ac_clean_files_save=$ac_clean_files
22749ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022750{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22751echo "$as_me: creating $CONFIG_STATUS" >&6;}
22752cat >$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022753#! $SHELL
22754# Generated by $as_me.
22755# Run this file to recreate the current configuration.
22756# Compiler output produced by configure, useful for debugging
22757# configure, is in config.log if it exists.
22758
22759debug=false
John Criswell3eaf0b42003-09-10 15:17:25 +000022760ac_cs_recheck=false
22761ac_cs_silent=false
John Criswell3ef61af2003-06-30 21:59:07 +000022762SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022763_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000022764
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022765cat >>$CONFIG_STATUS <<\_ACEOF
22766## --------------------- ##
22767## M4sh Initialization. ##
22768## --------------------- ##
22769
22770# Be Bourne compatible
22771if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell3ef61af2003-06-30 21:59:07 +000022772 emulate sh
22773 NULLCMD=:
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022774 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell3eaf0b42003-09-10 15:17:25 +000022775 # is contrary to our usage. Disable this feature.
22776 alias -g '${1+"$@"}'='"$@"'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022777 setopt NO_GLOB_SUBST
22778else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022779 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell3ef61af2003-06-30 21:59:07 +000022780fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022781BIN_SH=xpg4; export BIN_SH # for Tru64
22782DUALCASE=1; export DUALCASE # for MKS sh
John Criswell3ef61af2003-06-30 21:59:07 +000022783
John Criswell3ef61af2003-06-30 21:59:07 +000022784
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022785# PATH needs CR
22786# Avoid depending upon Character Ranges.
22787as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22788as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22789as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22790as_cr_digits='0123456789'
22791as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell3ef61af2003-06-30 21:59:07 +000022792
22793# The user is always right.
22794if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022795 echo "#! /bin/sh" >conf$$.sh
22796 echo "exit 0" >>conf$$.sh
22797 chmod +x conf$$.sh
22798 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22799 PATH_SEPARATOR=';'
22800 else
22801 PATH_SEPARATOR=:
22802 fi
22803 rm -f conf$$.sh
22804fi
22805
22806# Support unset when possible.
22807if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22808 as_unset=unset
22809else
22810 as_unset=false
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022811fi
John Criswell3ef61af2003-06-30 21:59:07 +000022812
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022813
22814# IFS
22815# We need space, tab and new line, in precisely that order. Quoting is
22816# there to prevent editors from complaining about space-tab.
22817# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22818# splitting by setting IFS to empty value.)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022819as_nl='
22820'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022821IFS=" "" $as_nl"
22822
22823# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022824case $0 in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022825 *[\\/]* ) as_myself=$0 ;;
22826 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell3ef61af2003-06-30 21:59:07 +000022827for as_dir in $PATH
22828do
22829 IFS=$as_save_IFS
22830 test -z "$as_dir" && as_dir=.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022831 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22832done
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022833IFS=$as_save_IFS
John Criswell3ef61af2003-06-30 21:59:07 +000022834
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022835 ;;
22836esac
22837# We did not find ourselves, most probably we were run as `sh COMMAND'
22838# in which case we are not to be found in the path.
22839if test "x$as_myself" = x; then
22840 as_myself=$0
22841fi
22842if test ! -f "$as_myself"; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022843 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22844 { (exit 1); exit 1; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022845fi
22846
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022847# Work around bugs in pre-3.0 UWIN ksh.
22848for as_var in ENV MAIL MAILPATH
22849do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022850done
22851PS1='$ '
22852PS2='> '
22853PS4='+ '
22854
22855# NLS nuisances.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022856for as_var in \
22857 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22858 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22859 LC_TELEPHONE LC_TIME
22860do
22861 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22862 eval $as_var=C; export $as_var
22863 else
22864 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwinaec06332010-01-26 08:50:50 +000022865 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022866done
Torok Edwinaec06332010-01-26 08:50:50 +000022867
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022868# Required to use basename.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022869if expr a : '\(a\)' >/dev/null 2>&1 &&
22870 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22871 as_expr=expr
22872else
22873 as_expr=false
22874fi
22875
22876if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22877 as_basename=basename
22878else
22879 as_basename=false
22880fi
22881
22882
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022883# Name of the executable.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022884as_me=`$as_basename -- "$0" ||
22885$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22886 X"$0" : 'X\(//\)$' \| \
22887 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022888echo X/"$0" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022889 sed '/^.*\/\([^/][^/]*\)\/*$/{
22890 s//\1/
22891 q
22892 }
22893 /^X\/\(\/\/\)$/{
22894 s//\1/
22895 q
22896 }
22897 /^X\/\(\/\).*/{
22898 s//\1/
22899 q
22900 }
22901 s/.*/./; q'`
22902
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022903# CDPATH.
22904$as_unset CDPATH
22905
22906
22907
22908 as_lineno_1=$LINENO
22909 as_lineno_2=$LINENO
22910 test "x$as_lineno_1" != "x$as_lineno_2" &&
22911 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22912
22913 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22914 # uniformly replaced by the line number. The first 'sed' inserts a
22915 # line-number line after each line using $LINENO; the second 'sed'
22916 # does the real work. The second script uses 'N' to pair each
22917 # line-number line with the line containing $LINENO, and appends
22918 # trailing '-' during substitution so that $LINENO is not a special
22919 # case at line end.
22920 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22921 # scripts with optimization help from Paolo Bonzini. Blame Lee
22922 # E. McMahon (1931-1989) for sed's syntax. :-)
22923 sed -n '
22924 p
22925 /[$]LINENO/=
22926 ' <$as_myself |
22927 sed '
22928 s/[$]LINENO.*/&-/
22929 t lineno
22930 b
22931 :lineno
22932 N
22933 :loop
22934 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22935 t loop
22936 s/-\n.*//
22937 ' >$as_me.lineno &&
22938 chmod +x "$as_me.lineno" ||
22939 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22940 { (exit 1); exit 1; }; }
22941
22942 # Don't try to exec as it changes $[0], causing all sort of problems
22943 # (the dirname of $[0] is not the place where we might find the
22944 # original and so on. Autoconf is especially sensitive to this).
22945 . "./$as_me.lineno"
22946 # Exit status is that of the last command.
22947 exit
22948}
22949
22950
22951if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22952 as_dirname=dirname
22953else
22954 as_dirname=false
22955fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022956
22957ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022958case `echo -n x` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022959-n*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022960 case `echo 'x\c'` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022961 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022962 *) ECHO_C='\c';;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022963 esac;;
22964*)
22965 ECHO_N='-n';;
John Criswell3ef61af2003-06-30 21:59:07 +000022966esac
22967
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022968if expr a : '\(a\)' >/dev/null 2>&1 &&
22969 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22970 as_expr=expr
22971else
22972 as_expr=false
22973fi
22974
John Criswell3ef61af2003-06-30 21:59:07 +000022975rm -f conf$$ conf$$.exe conf$$.file
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022976if test -d conf$$.dir; then
22977 rm -f conf$$.dir/conf$$.file
22978else
22979 rm -f conf$$.dir
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022980 mkdir conf$$.dir
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022981fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022982echo >conf$$.file
22983if ln -s conf$$.file conf$$ 2>/dev/null; then
22984 as_ln_s='ln -s'
22985 # ... but there are two gotchas:
22986 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22987 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22988 # In both cases, we have to default to `cp -p'.
22989 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell3ef61af2003-06-30 21:59:07 +000022990 as_ln_s='cp -p'
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000022991elif ln conf$$.file conf$$ 2>/dev/null; then
22992 as_ln_s=ln
John Criswell3ef61af2003-06-30 21:59:07 +000022993else
22994 as_ln_s='cp -p'
22995fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000022996rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22997rmdir conf$$.dir 2>/dev/null
John Criswell3ef61af2003-06-30 21:59:07 +000022998
John Criswell3eaf0b42003-09-10 15:17:25 +000022999if mkdir -p . 2>/dev/null; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023000 as_mkdir_p=:
John Criswell3eaf0b42003-09-10 15:17:25 +000023001else
Reid Spencerf184a862004-09-19 23:53:36 +000023002 test -d ./-p && rmdir ./-p
John Criswell3eaf0b42003-09-10 15:17:25 +000023003 as_mkdir_p=false
23004fi
23005
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023006# Find out whether ``test -x'' works. Don't use a zero-byte file, as
23007# systems may use methods other than mode bits to determine executability.
23008cat >conf$$.file <<_ASEOF
23009#! /bin/sh
23010exit 0
23011_ASEOF
23012chmod +x conf$$.file
23013if test -x conf$$.file >/dev/null 2>&1; then
23014 as_executable_p="test -x"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023015else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023016 as_executable_p=:
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023017fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023018rm -f conf$$.file
John Criswell3ef61af2003-06-30 21:59:07 +000023019
23020# Sed expression to map a string onto a valid CPP name.
Reid Spencerf184a862004-09-19 23:53:36 +000023021as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3ef61af2003-06-30 21:59:07 +000023022
23023# Sed expression to map a string onto a valid variable name.
Reid Spencerf184a862004-09-19 23:53:36 +000023024as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell3ef61af2003-06-30 21:59:07 +000023025
23026
John Criswell3ef61af2003-06-30 21:59:07 +000023027exec 6>&1
23028
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023029# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell3ef61af2003-06-30 21:59:07 +000023030# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023031# values after options handling.
23032ac_log="
Benjamin Kramer6900a4a2012-11-17 22:01:08 +000023033This file was extended by LLVM $as_me 3.3svn, which was
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023034generated by GNU Autoconf 2.60. Invocation command line was
John Criswell3ef61af2003-06-30 21:59:07 +000023035
23036 CONFIG_FILES = $CONFIG_FILES
23037 CONFIG_HEADERS = $CONFIG_HEADERS
23038 CONFIG_LINKS = $CONFIG_LINKS
23039 CONFIG_COMMANDS = $CONFIG_COMMANDS
23040 $ $0 $@
23041
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023042on `(hostname || uname -n) 2>/dev/null | sed 1q`
23043"
23044
John Criswell3ef61af2003-06-30 21:59:07 +000023045_ACEOF
23046
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023047cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023048# Files that config.status was made for.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023049config_files="$ac_config_files"
23050config_headers="$ac_config_headers"
23051config_commands="$ac_config_commands"
John Criswell3ef61af2003-06-30 21:59:07 +000023052
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023053_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023054
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023055cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023056ac_cs_usage="\
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023057\`$as_me' instantiates files from templates according to the
23058current configuration.
John Criswell3ef61af2003-06-30 21:59:07 +000023059
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023060Usage: $0 [OPTIONS] [FILE]...
John Criswell3ef61af2003-06-30 21:59:07 +000023061
23062 -h, --help print this help, then exit
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023063 -V, --version print version number, then exit
23064 -q, --quiet do not print progress messages
John Criswell3ef61af2003-06-30 21:59:07 +000023065 -d, --debug don't remove temporary files
23066 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023067 --file=FILE[:TEMPLATE]
23068 instantiate the configuration file FILE
23069 --header=FILE[:TEMPLATE]
23070 instantiate the configuration header FILE
John Criswell3ef61af2003-06-30 21:59:07 +000023071
23072Configuration files:
23073$config_files
23074
23075Configuration headers:
23076$config_headers
23077
John Criswell3bac9bc2003-09-06 15:17:13 +000023078Configuration commands:
23079$config_commands
23080
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023081Report bugs to <bug-autoconf@gnu.org>."
John Criswell3ef61af2003-06-30 21:59:07 +000023082
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023083_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023084cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023085ac_cs_version="\\
Benjamin Kramer6900a4a2012-11-17 22:01:08 +000023086LLVM config.status 3.3svn
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023087configured by $0, generated by GNU Autoconf 2.60,
23088 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell3ef61af2003-06-30 21:59:07 +000023089
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023090Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell3ef61af2003-06-30 21:59:07 +000023091This config.status script is free software; the Free Software Foundation
23092gives unlimited permission to copy, distribute and modify it."
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023093
23094ac_pwd='$ac_pwd'
23095srcdir='$srcdir'
23096INSTALL='$INSTALL'
John Criswell3ef61af2003-06-30 21:59:07 +000023097_ACEOF
23098
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023099cat >>$CONFIG_STATUS <<\_ACEOF
23100# If no file are specified by the user, then we need to provide default
23101# value. By we need to know if files were specified by the user.
John Criswell3ef61af2003-06-30 21:59:07 +000023102ac_need_defaults=:
23103while test $# != 0
23104do
23105 case $1 in
23106 --*=*)
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023107 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23108 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell3eaf0b42003-09-10 15:17:25 +000023109 ac_shift=:
John Criswell3ef61af2003-06-30 21:59:07 +000023110 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023111 *)
John Criswell3eaf0b42003-09-10 15:17:25 +000023112 ac_option=$1
23113 ac_optarg=$2
23114 ac_shift=shift
23115 ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023116 esac
23117
John Criswell3eaf0b42003-09-10 15:17:25 +000023118 case $ac_option in
John Criswell3ef61af2003-06-30 21:59:07 +000023119 # Handling of the options.
John Criswell3eaf0b42003-09-10 15:17:25 +000023120 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23121 ac_cs_recheck=: ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023122 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023123 echo "$ac_cs_version"; exit ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023124 --debug | --debu | --deb | --de | --d | -d )
John Criswell3ef61af2003-06-30 21:59:07 +000023125 debug=: ;;
23126 --file | --fil | --fi | --f )
John Criswell3eaf0b42003-09-10 15:17:25 +000023127 $ac_shift
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023128 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell3ef61af2003-06-30 21:59:07 +000023129 ac_need_defaults=false;;
23130 --header | --heade | --head | --hea )
John Criswell3eaf0b42003-09-10 15:17:25 +000023131 $ac_shift
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023132 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell3ef61af2003-06-30 21:59:07 +000023133 ac_need_defaults=false;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023134 --he | --h)
23135 # Conflict between --help and --header
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023136 { echo "$as_me: error: ambiguous option: $1
23137Try \`$0 --help' for more information." >&2
23138 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023139 --help | --hel | -h )
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023140 echo "$ac_cs_usage"; exit ;;
John Criswell3eaf0b42003-09-10 15:17:25 +000023141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23142 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23143 ac_cs_silent=: ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023144
23145 # This is an error.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023146 -*) { echo "$as_me: error: unrecognized option: $1
23147Try \`$0 --help' for more information." >&2
23148 { (exit 1); exit 1; }; } ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023149
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023150 *) ac_config_targets="$ac_config_targets $1"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023151 ac_need_defaults=false ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023152
23153 esac
23154 shift
23155done
23156
John Criswell3eaf0b42003-09-10 15:17:25 +000023157ac_configure_extra_args=
23158
23159if $ac_cs_silent; then
23160 exec 6>/dev/null
23161 ac_configure_extra_args="$ac_configure_extra_args --silent"
23162fi
23163
23164_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023165cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3eaf0b42003-09-10 15:17:25 +000023166if \$ac_cs_recheck; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023167 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23168 CONFIG_SHELL=$SHELL
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023169 export CONFIG_SHELL
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023170 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell3eaf0b42003-09-10 15:17:25 +000023171fi
23172
John Criswell3ef61af2003-06-30 21:59:07 +000023173_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023174cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023175exec 5>>config.log
23176{
23177 echo
23178 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23179## Running $as_me. ##
23180_ASBOX
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023181 echo "$ac_log"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023182} >&5
John Criswell3ef61af2003-06-30 21:59:07 +000023183
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023184_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023185cat >>$CONFIG_STATUS <<_ACEOF
John Criswell3bac9bc2003-09-06 15:17:13 +000023186#
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023187# INIT-COMMANDS
John Criswell3bac9bc2003-09-06 15:17:13 +000023188#
Reid Spencereeedeaf2005-02-24 19:05:19 +000023189llvm_src="${srcdir}"
John Criswell3bac9bc2003-09-06 15:17:13 +000023190
23191_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023192
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023193cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023194
23195# Handling of arguments.
John Criswell3ef61af2003-06-30 21:59:07 +000023196for ac_config_target in $ac_config_targets
23197do
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023198 case $ac_config_target in
23199 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christopher97014d82010-08-08 02:44:25 +000023200 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1b731d52009-06-16 20:12:29 +000023201 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23202 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskin563033b2009-07-17 21:33:35 +000023203 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar32027202009-11-25 04:37:28 +000023204 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Michael J. Spencer447762d2010-11-29 18:16:10 +000023205 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023206 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1277ba22006-08-16 00:45:38 +000023207 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Peter Collingbourne5ac59df2011-05-13 03:27:56 +000023208 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Dylan Noblesmitha7a29c172012-02-04 03:00:50 +000023209 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23210 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
Eric Christopher49709ad2011-10-26 00:42:12 +000023211 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023212 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23213 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23214 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23215 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23216 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer4b8067f2006-11-17 03:32:33 +000023217 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023218 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23219 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling7c53a182009-01-04 23:12:30 +000023220 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023221 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23222 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23223 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000023224 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23225 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023226
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023227 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23228echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23229 { (exit 1); exit 1; }; };;
John Criswell3ef61af2003-06-30 21:59:07 +000023230 esac
23231done
23232
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023233
John Criswell3ef61af2003-06-30 21:59:07 +000023234# If the user did not use the arguments to specify the items to instantiate,
23235# then the envvar interface is used. Set only those that are not.
23236# We use the long form for the default assignment because of an extremely
23237# bizarre bug on SunOS 4.1.3.
23238if $ac_need_defaults; then
23239 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23240 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswell3bac9bc2003-09-06 15:17:13 +000023241 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell3ef61af2003-06-30 21:59:07 +000023242fi
23243
John Criswell3eaf0b42003-09-10 15:17:25 +000023244# Have a temporary directory for convenience. Make it in the build tree
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023245# simply because there is no reason against having it here, and in addition,
John Criswell3eaf0b42003-09-10 15:17:25 +000023246# creating and moving files from /tmp can sometimes cause problems.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023247# Hook for its removal unless debugging.
23248# Note that there is a small window in which the directory will not be cleaned:
23249# after its creation but before its name has been assigned to `$tmp'.
John Criswell3ef61af2003-06-30 21:59:07 +000023250$debug ||
23251{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023252 tmp=
23253 trap 'exit_status=$?
23254 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23255' 0
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023256 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell3ef61af2003-06-30 21:59:07 +000023257}
John Criswell3ef61af2003-06-30 21:59:07 +000023258# Create a (secure) tmp directory for tmp files.
John Criswell3eaf0b42003-09-10 15:17:25 +000023259
John Criswell3ef61af2003-06-30 21:59:07 +000023260{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023261 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell3ef61af2003-06-30 21:59:07 +000023262 test -n "$tmp" && test -d "$tmp"
23263} ||
23264{
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023265 tmp=./conf$$-$RANDOM
23266 (umask 077 && mkdir "$tmp")
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023267} ||
23268{
23269 echo "$me: cannot create a temporary directory in ." >&2
23270 { (exit 1); exit 1; }
23271}
John Criswell3ef61af2003-06-30 21:59:07 +000023272
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023273#
23274# Set up the sed scripts for CONFIG_FILES section.
23275#
23276
23277# No need to generate the scripts if there are no CONFIG_FILES.
23278# This happens for instance when ./config.status config.h
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023279if test -n "$CONFIG_FILES"; then
John Criswell3ef61af2003-06-30 21:59:07 +000023280
23281_ACEOF
23282
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023283
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023284
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023285ac_delim='%!_!# '
23286for ac_last_try in false false false false false :; do
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023287 cat >conf$$subs.sed <<_ACEOF
23288SHELL!$SHELL$ac_delim
23289PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23290PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23291PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23292PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23293PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23294PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23295exec_prefix!$exec_prefix$ac_delim
23296prefix!$prefix$ac_delim
23297program_transform_name!$program_transform_name$ac_delim
23298bindir!$bindir$ac_delim
23299sbindir!$sbindir$ac_delim
23300libexecdir!$libexecdir$ac_delim
23301datarootdir!$datarootdir$ac_delim
23302datadir!$datadir$ac_delim
23303sysconfdir!$sysconfdir$ac_delim
23304sharedstatedir!$sharedstatedir$ac_delim
23305localstatedir!$localstatedir$ac_delim
23306includedir!$includedir$ac_delim
23307oldincludedir!$oldincludedir$ac_delim
23308docdir!$docdir$ac_delim
23309infodir!$infodir$ac_delim
23310htmldir!$htmldir$ac_delim
23311dvidir!$dvidir$ac_delim
23312pdfdir!$pdfdir$ac_delim
23313psdir!$psdir$ac_delim
23314libdir!$libdir$ac_delim
23315localedir!$localedir$ac_delim
23316mandir!$mandir$ac_delim
23317DEFS!$DEFS$ac_delim
23318ECHO_C!$ECHO_C$ac_delim
23319ECHO_N!$ECHO_N$ac_delim
23320ECHO_T!$ECHO_T$ac_delim
23321LIBS!$LIBS$ac_delim
23322build_alias!$build_alias$ac_delim
23323host_alias!$host_alias$ac_delim
23324target_alias!$target_alias$ac_delim
23325LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
Eric Christopher58839712011-09-16 20:36:25 +000023326CC!$CC$ac_delim
23327CFLAGS!$CFLAGS$ac_delim
23328LDFLAGS!$LDFLAGS$ac_delim
23329CPPFLAGS!$CPPFLAGS$ac_delim
23330ac_ct_CC!$ac_ct_CC$ac_delim
23331EXEEXT!$EXEEXT$ac_delim
23332OBJEXT!$OBJEXT$ac_delim
23333CXX!$CXX$ac_delim
23334CXXFLAGS!$CXXFLAGS$ac_delim
23335ac_ct_CXX!$ac_ct_CXX$ac_delim
23336CPP!$CPP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023337subdirs!$subdirs$ac_delim
Tobias Grosserea9dca42010-10-30 00:54:26 +000023338ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23339LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023340build!$build$ac_delim
23341build_cpu!$build_cpu$ac_delim
23342build_vendor!$build_vendor$ac_delim
23343build_os!$build_os$ac_delim
23344host!$host$ac_delim
23345host_cpu!$host_cpu$ac_delim
23346host_vendor!$host_vendor$ac_delim
23347host_os!$host_os$ac_delim
23348target!$target$ac_delim
23349target_cpu!$target_cpu$ac_delim
23350target_vendor!$target_vendor$ac_delim
23351target_os!$target_os$ac_delim
23352OS!$OS$ac_delim
23353HOST_OS!$HOST_OS$ac_delim
23354TARGET_OS!$TARGET_OS$ac_delim
23355LINKALL!$LINKALL$ac_delim
23356NOLINKALL!$NOLINKALL$ac_delim
23357LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23358LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23359ARCH!$ARCH$ac_delim
Danil Malyshev7c5db452012-05-17 21:07:47 +000023360HOST_ARCH!$HOST_ARCH$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023361ENDIAN!$ENDIAN$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023362GREP!$GREP$ac_delim
23363EGREP!$EGREP$ac_delim
23364LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23365BUILD_CC!$BUILD_CC$ac_delim
23366BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23367BUILD_CXX!$BUILD_CXX$ac_delim
23368CVSBUILD!$CVSBUILD$ac_delim
Eric Christopher1094ded2011-11-11 22:51:42 +000023369ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
Eric Christopher04e35972012-08-03 19:47:14 +000023370ENABLE_CXX11!$ENABLE_CXX11$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023371ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23372ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23373ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023374ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23375ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23376DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Eric Christopher84864012012-08-03 19:58:20 +000023377ENABLE_WERROR!$ENABLE_WERROR$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023378ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23379EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23380DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23381DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Daniel Dunbar39c04622012-08-14 18:14:22 +000023382KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023383JIT!$JIT$ac_delim
23384TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023385_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023386
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023387 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023388 break
23389 elif $ac_last_try; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023390 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23391echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23392 { (exit 1); exit 1; }; }
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023393 else
23394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell3ef61af2003-06-30 21:59:07 +000023395 fi
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023396done
23397
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023398ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23399if test -n "$ac_eof"; then
23400 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23401 ac_eof=`expr $ac_eof + 1`
23402fi
23403
23404cat >>$CONFIG_STATUS <<_ACEOF
23405cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23406/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023407_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023408sed '
23409s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23410s/^/s,@/; s/!/@,|#_!!_#|/
23411:n
23412t n
23413s/'"$ac_delim"'$/,g/; t
23414s/$/\\/; p
23415N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23416' >>$CONFIG_STATUS <conf$$subs.sed
23417rm -f conf$$subs.sed
23418cat >>$CONFIG_STATUS <<_ACEOF
23419CEOF$ac_eof
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023420_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023421
23422
23423ac_delim='%!_!# '
23424for ac_last_try in false false false false false :; do
23425 cat >conf$$subs.sed <<_ACEOF
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023426ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23427ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23428LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
Daniel Dunbar39c04622012-08-14 18:14:22 +000023429ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000023430LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
Eric Christopher84864012012-08-03 19:58:20 +000023431ENABLE_PIC!$ENABLE_PIC$ac_delim
Eric Christopher04e35972012-08-03 19:47:14 +000023432ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Danil Malyshev7c5db452012-05-17 21:07:47 +000023433ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
Eric Christopher1094ded2011-11-11 22:51:42 +000023434ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Eric Christopherc6c2b9b2012-11-19 19:31:02 +000023435ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
Eric Christopher58839712011-09-16 20:36:25 +000023436TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23437LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23438LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
NAKAMURA Takumi495afdf2010-12-29 03:59:14 +000023439LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
NAKAMURA Takumic6fce172010-12-29 03:59:03 +000023440LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +000023441OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar49b962c2010-02-23 10:00:49 +000023442EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Daniel Dunbar3b95df82011-06-16 22:30:41 +000023443EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
NAKAMURA Takumi914f1922011-10-16 02:54:26 +000023444CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
Daniel Dunbar49b962c2010-02-23 10:00:49 +000023445BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Bob Wilson3f354702011-11-28 07:59:52 +000023446INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023447NM!$NM$ac_delim
23448ifGNUmake!$ifGNUmake$ac_delim
23449LN_S!$LN_S$ac_delim
23450CMP!$CMP$ac_delim
23451CP!$CP$ac_delim
23452DATE!$DATE$ac_delim
23453FIND!$FIND$ac_delim
23454MKDIR!$MKDIR$ac_delim
23455MV!$MV$ac_delim
23456RANLIB!$RANLIB$ac_delim
23457AR!$AR$ac_delim
23458RM!$RM$ac_delim
23459SED!$SED$ac_delim
23460TAR!$TAR$ac_delim
23461BINPWD!$BINPWD$ac_delim
23462GRAPHVIZ!$GRAPHVIZ$ac_delim
23463DOT!$DOT$ac_delim
23464FDP!$FDP$ac_delim
23465NEATO!$NEATO$ac_delim
23466TWOPI!$TWOPI$ac_delim
23467CIRCO!$CIRCO$ac_delim
23468GV!$GV$ac_delim
23469DOTTY!$DOTTY$ac_delim
Dan Gohmana0da8892010-09-27 16:28:34 +000023470XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023471INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23472INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23473INSTALL_DATA!$INSTALL_DATA$ac_delim
23474BZIP2!$BZIP2$ac_delim
mike-me08af302010-05-06 23:45:43 +000023475CAT!$CAT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023476DOXYGEN!$DOXYGEN$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000023477GROFF!$GROFF$ac_delim
Eric Christopher77560892010-12-10 01:31:51 +000023478GZIPBIN!$GZIPBIN$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000023479PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023480ZIP!$ZIP$ac_delim
23481OCAMLC!$OCAMLC$ac_delim
23482OCAMLOPT!$OCAMLOPT$ac_delim
23483OCAMLDEP!$OCAMLDEP$ac_delim
23484OCAMLDOC!$OCAMLDOC$ac_delim
Daniel Dunbard1888822012-05-08 18:26:07 +000023485GAS!$GAS$ac_delim
Dan Gohmanb7edb422010-06-01 14:56:56 +000023486HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023487INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23488INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23489CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23490CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23491LIBADD_DL!$LIBADD_DL$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023492NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23493NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola42e94d12012-02-28 23:32:06 +000023494COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
David Greene9ff8d472013-01-09 22:11:13 +000023495NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23496NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000023497PYTHON!$PYTHON$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023498USE_UDIS86!$USE_UDIS86$ac_delim
23499USE_OPROFILE!$USE_OPROFILE$ac_delim
Eli Bendersky5262ad22012-03-13 08:33:15 +000023500USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
Eric Christopherc807c532012-08-03 19:47:19 +000023501XML2CONFIG!$XML2CONFIG$ac_delim
23502LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23503LIBXML2_INC!$LIBXML2_INC$ac_delim
Benjamin Kramer00622f72013-05-03 15:55:06 +000023504CXXCPP!$CXXCPP$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023505HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000023506HAVE_LIBZ!$HAVE_LIBZ$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023507HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23508MMAP_FILE!$MMAP_FILE$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023509SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskin6b718f72010-02-25 06:34:33 +000023510SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023511LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23512LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23513LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23514LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23515LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23516LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23517LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23518LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23519LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23520LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23521BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23522ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023523_ACEOF
23524
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023525 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023526 break
23527 elif $ac_last_try; then
23528 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23529echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23530 { (exit 1); exit 1; }; }
23531 else
23532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23533 fi
23534done
23535
23536ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23537if test -n "$ac_eof"; then
23538 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23539 ac_eof=`expr $ac_eof + 1`
23540fi
23541
23542cat >>$CONFIG_STATUS <<_ACEOF
23543cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023544/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23545_ACEOF
23546sed '
23547s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23548s/^/s,@/; s/!/@,|#_!!_#|/
23549:n
23550t n
23551s/'"$ac_delim"'$/,g/; t
23552s/$/\\/; p
23553N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23554' >>$CONFIG_STATUS <conf$$subs.sed
23555rm -f conf$$subs.sed
23556cat >>$CONFIG_STATUS <<_ACEOF
23557CEOF$ac_eof
23558_ACEOF
23559
23560
23561ac_delim='%!_!# '
23562for ac_last_try in false false false false false :; do
23563 cat >conf$$subs.sed <<_ACEOF
Benjamin Kramer00622f72013-05-03 15:55:06 +000023564OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000023565ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23566RPATH!$RPATH$ac_delim
Saleem Abdulrasoola1665742013-01-30 04:44:17 +000023567RDYNAMIC!$RDYNAMIC$ac_delim
David Greene9ff8d472013-01-09 22:11:13 +000023568program_prefix!$program_prefix$ac_delim
23569LIBOBJS!$LIBOBJS$ac_delim
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023570LTLIBOBJS!$LTLIBOBJS$ac_delim
23571_ACEOF
23572
Benjamin Kramer00622f72013-05-03 15:55:06 +000023573 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023574 break
23575 elif $ac_last_try; then
23576 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23577echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23578 { (exit 1); exit 1; }; }
23579 else
23580 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23581 fi
23582done
23583
23584ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23585if test -n "$ac_eof"; then
23586 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23587 ac_eof=`expr $ac_eof + 1`
23588fi
23589
23590cat >>$CONFIG_STATUS <<_ACEOF
23591cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
Jordan Rose2998d252012-09-26 00:01:00 +000023592/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
Tobias Grosser61cb2452010-11-10 16:31:34 +000023593_ACEOF
23594sed '
23595s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23596s/^/s,@/; s/!/@,|#_!!_#|/
23597:n
23598t n
23599s/'"$ac_delim"'$/,g/; t
23600s/$/\\/; p
23601N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23602' >>$CONFIG_STATUS <conf$$subs.sed
23603rm -f conf$$subs.sed
23604cat >>$CONFIG_STATUS <<_ACEOF
Jordan Rose2998d252012-09-26 00:01:00 +000023605:end
23606s/|#_!!_#|//g
Tobias Grosser61cb2452010-11-10 16:31:34 +000023607CEOF$ac_eof
23608_ACEOF
23609
23610
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023611# VPATH may cause trouble with some makes, so we remove $(srcdir),
23612# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23613# trailing colons and then remove the whole line if VPATH becomes empty
23614# (actually we leave an empty line to preserve line numbers).
23615if test "x$srcdir" = x.; then
23616 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23617s/:*\$(srcdir):*/:/
23618s/:*\${srcdir}:*/:/
23619s/:*@srcdir@:*/:/
23620s/^\([^=]*=[ ]*\):*/\1/
23621s/:*$//
23622s/^[^=]*=[ ]*$//
23623}'
23624fi
23625
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023626cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023627fi # test -n "$CONFIG_FILES"
23628
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023629
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023630for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023631do
23632 case $ac_tag in
23633 :[FHLC]) ac_mode=$ac_tag; continue;;
23634 esac
23635 case $ac_mode$ac_tag in
23636 :[FHL]*:*);;
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023637 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23638echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23639 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023640 :[FH]-) ac_tag=-:-;;
23641 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23642 esac
23643 ac_save_IFS=$IFS
23644 IFS=:
23645 set x $ac_tag
23646 IFS=$ac_save_IFS
23647 shift
23648 ac_file=$1
23649 shift
23650
23651 case $ac_mode in
23652 :L) ac_source=$1;;
23653 :[FH])
23654 ac_file_inputs=
23655 for ac_f
23656 do
23657 case $ac_f in
23658 -) ac_f="$tmp/stdin";;
23659 *) # Look for the file first in the build tree, then in the source tree
23660 # (if the path is not absolute). The absolute path cannot be DOS-style,
23661 # because $ac_f cannot contain `:'.
23662 test -f "$ac_f" ||
23663 case $ac_f in
23664 [\\/$]*) false;;
23665 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23666 esac ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023667 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23668echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23669 { (exit 1); exit 1; }; };;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023670 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023671 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023672 done
23673
23674 # Let's still pretend it is `configure' which instantiates (i.e., don't
23675 # use $as_me), people would be surprised to read:
23676 # /* config.h. Generated by config.status. */
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023677 configure_input="Generated from "`IFS=:
23678 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023679 if test x"$ac_file" != x-; then
23680 configure_input="$ac_file. $configure_input"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023681 { echo "$as_me:$LINENO: creating $ac_file" >&5
23682echo "$as_me: creating $ac_file" >&6;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023683 fi
23684
23685 case $ac_tag in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023686 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023687 esac
23688 ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023689 esac
23690
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023691 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell3ef61af2003-06-30 21:59:07 +000023692$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencerf184a862004-09-19 23:53:36 +000023693 X"$ac_file" : 'X\(//\)[^/]' \| \
23694 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023695 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023696echo X"$ac_file" |
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23698 s//\1/
23699 q
23700 }
23701 /^X\(\/\/\)[^/].*/{
23702 s//\1/
23703 q
23704 }
23705 /^X\(\/\/\)$/{
23706 s//\1/
23707 q
23708 }
23709 /^X\(\/\).*/{
23710 s//\1/
23711 q
23712 }
23713 s/.*/./; q'`
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023714 { as_dir="$ac_dir"
23715 case $as_dir in #(
23716 -*) as_dir=./$as_dir;;
23717 esac
23718 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23719 as_dirs=
23720 while :; do
23721 case $as_dir in #(
23722 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23723 *) as_qdir=$as_dir;;
23724 esac
23725 as_dirs="'$as_qdir' $as_dirs"
23726 as_dir=`$as_dirname -- "$as_dir" ||
23727$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23728 X"$as_dir" : 'X\(//\)[^/]' \| \
23729 X"$as_dir" : 'X\(//\)$' \| \
23730 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23731echo X"$as_dir" |
23732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23733 s//\1/
23734 q
23735 }
23736 /^X\(\/\/\)[^/].*/{
23737 s//\1/
23738 q
23739 }
23740 /^X\(\/\/\)$/{
23741 s//\1/
23742 q
23743 }
23744 /^X\(\/\).*/{
23745 s//\1/
23746 q
23747 }
23748 s/.*/./; q'`
23749 test -d "$as_dir" && break
23750 done
23751 test -z "$as_dirs" || eval "mkdir $as_dirs"
23752 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23753echo "$as_me: error: cannot create directory $as_dir" >&2;}
23754 { (exit 1); exit 1; }; }; }
John Criswell3ef61af2003-06-30 21:59:07 +000023755 ac_builddir=.
23756
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023757case "$ac_dir" in
23758.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23759*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023760 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023761 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023762 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023763 case $ac_top_builddir_sub in
23764 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23765 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23766 esac ;;
23767esac
23768ac_abs_top_builddir=$ac_pwd
23769ac_abs_builddir=$ac_pwd$ac_dir_suffix
23770# for backward compatibility:
23771ac_top_builddir=$ac_top_build_prefix
John Criswell3ef61af2003-06-30 21:59:07 +000023772
23773case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023774 .) # We are building in place.
John Criswell3ef61af2003-06-30 21:59:07 +000023775 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023776 ac_top_srcdir=$ac_top_builddir_sub
23777 ac_abs_top_srcdir=$ac_pwd ;;
23778 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell3ef61af2003-06-30 21:59:07 +000023779 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023780 ac_top_srcdir=$srcdir
23781 ac_abs_top_srcdir=$srcdir ;;
23782 *) # Relative name.
23783 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23784 ac_top_srcdir=$ac_top_build_prefix$srcdir
23785 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023786esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023787ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencerf184a862004-09-19 23:53:36 +000023788
John Criswell3ef61af2003-06-30 21:59:07 +000023789
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023790 case $ac_mode in
23791 :F)
23792 #
23793 # CONFIG_FILE
23794 #
John Criswell3ef61af2003-06-30 21:59:07 +000023795
23796 case $INSTALL in
23797 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023798 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell3ef61af2003-06-30 21:59:07 +000023799 esac
John Criswell3ef61af2003-06-30 21:59:07 +000023800_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023801
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023802cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023803# If the template does not know about datarootdir, expand it.
23804# FIXME: This hack should be removed a few years after 2.60.
23805ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023806
23807case `sed -n '/datarootdir/ {
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023808 p
23809 q
23810}
23811/@datadir@/p
23812/@docdir@/p
23813/@infodir@/p
23814/@localedir@/p
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023815/@mandir@/p
23816' $ac_file_inputs` in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023817*datarootdir*) ac_datarootdir_seen=yes;;
23818*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023819 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23820echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023821_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023822cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023823 ac_datarootdir_hack='
23824 s&@datadir@&$datadir&g
23825 s&@docdir@&$docdir&g
23826 s&@infodir@&$infodir&g
23827 s&@localedir@&$localedir&g
23828 s&@mandir@&$mandir&g
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023829 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023830esac
23831_ACEOF
23832
23833# Neutralize VPATH when `$srcdir' = `.'.
23834# Shell code in configure.ac might set extrasub.
23835# FIXME: do we really want to maintain this feature?
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023836cat >>$CONFIG_STATUS <<_ACEOF
23837 sed "$ac_vpsub
John Criswell3ef61af2003-06-30 21:59:07 +000023838$extrasub
23839_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023840cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023841:t
23842/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023843s&@configure_input@&$configure_input&;t t
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023844s&@top_builddir@&$ac_top_builddir_sub&;t t
23845s&@srcdir@&$ac_srcdir&;t t
23846s&@abs_srcdir@&$ac_abs_srcdir&;t t
23847s&@top_srcdir@&$ac_top_srcdir&;t t
23848s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23849s&@builddir@&$ac_builddir&;t t
23850s&@abs_builddir@&$ac_abs_builddir&;t t
23851s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23852s&@INSTALL@&$ac_INSTALL&;t t
23853$ac_datarootdir_hack
Roman Divackyf2bb66b2012-12-13 16:07:19 +000023854" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
John Criswell3ef61af2003-06-30 21:59:07 +000023855
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023856test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23857 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23858 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023859 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023860which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023861echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023862which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell3ef61af2003-06-30 21:59:07 +000023863
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023864 rm -f "$tmp/stdin"
John Criswell3ef61af2003-06-30 21:59:07 +000023865 case $ac_file in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023866 -) cat "$tmp/out"; rm -f "$tmp/out";;
23867 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23868 esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023869 ;;
23870 :H)
23871 #
23872 # CONFIG_HEADER
23873 #
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023874_ACEOF
23875
23876# Transform confdefs.h into a sed script `conftest.defines', that
23877# substitutes the proper values into config.h.in to produce config.h.
23878rm -f conftest.defines conftest.tail
23879# First, append a space to every undef/define line, to ease matching.
23880echo 's/$/ /' >conftest.defines
23881# Then, protect against being on the right side of a sed subst, or in
23882# an unquoted here document, in config.status. If some macros were
23883# called several times there might be several #defines for the same
23884# symbol, which is useless. But do not sort them, since the last
23885# AC_DEFINE must be honored.
23886ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23887# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23888# NAME is the cpp macro being defined, VALUE is the value it is being given.
23889# PARAMS is the parameter list in the macro definition--in most cases, it's
23890# just an empty string.
23891ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23892ac_dB='\\)[ (].*,\\1define\\2'
23893ac_dC=' '
23894ac_dD=' ,'
23895
23896uniq confdefs.h |
23897 sed -n '
23898 t rset
23899 :rset
23900 s/^[ ]*#[ ]*define[ ][ ]*//
23901 t ok
23902 d
23903 :ok
23904 s/[\\&,]/\\&/g
23905 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23906 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23907 ' >>conftest.defines
23908
23909# Remove the space that was appended to ease matching.
23910# Then replace #undef with comments. This is necessary, for
23911# example, in the case of _POSIX_SOURCE, which is predefined and required
23912# on some systems where configure will not decide to define it.
23913# (The regexp can be short, since the line contains either #define or #undef.)
23914echo 's/ $//
23915s,^[ #]*u.*,/* & */,' >>conftest.defines
23916
23917# Break up conftest.defines:
23918ac_max_sed_lines=50
23919
23920# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23921# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23922# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23923# et cetera.
23924ac_in='$ac_file_inputs'
23925ac_out='"$tmp/out1"'
23926ac_nxt='"$tmp/out2"'
23927
23928while :
23929do
23930 # Write a here document:
23931 cat >>$CONFIG_STATUS <<_ACEOF
23932 # First, check the format of the line:
23933 cat >"\$tmp/defines.sed" <<\\CEOF
23934/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23935/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23936b
23937:def
23938_ACEOF
23939 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23940 echo 'CEOF
23941 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23942 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23943 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23944 grep . conftest.tail >/dev/null || break
23945 rm -f conftest.defines
23946 mv conftest.tail conftest.defines
23947done
23948rm -f conftest.defines conftest.tail
23949
23950echo "ac_result=$ac_in" >>$CONFIG_STATUS
23951cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell3ef61af2003-06-30 21:59:07 +000023952 if test x"$ac_file" != x-; then
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023953 echo "/* $configure_input */" >"$tmp/config.h"
23954 cat "$ac_result" >>"$tmp/config.h"
23955 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23956 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23957echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell3ef61af2003-06-30 21:59:07 +000023958 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023959 rm -f $ac_file
23960 mv "$tmp/config.h" $ac_file
John Criswell3ef61af2003-06-30 21:59:07 +000023961 fi
23962 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023963 echo "/* $configure_input */"
23964 cat "$ac_result"
John Criswell3ef61af2003-06-30 21:59:07 +000023965 fi
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023966 rm -f "$tmp/out12"
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023967 ;;
John Criswell3bac9bc2003-09-06 15:17:13 +000023968
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000023969 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23970echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023971 ;;
John Criswell3bac9bc2003-09-06 15:17:13 +000023972 esac
John Criswell3ef61af2003-06-30 21:59:07 +000023973
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023974
23975 case $ac_file$ac_mode in
23976 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023977 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023978 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwind70eebe2009-08-28 16:12:48 +000023979 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023980 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023981 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023982 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023983 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer4b8067f2006-11-17 03:32:33 +000023984 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023985 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023986 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023987 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023988 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwind70eebe2009-08-28 16:12:48 +000023989 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling7c53a182009-01-04 23:12:30 +000023990 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023992 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023994 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000023996 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000023998 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwind70eebe2009-08-28 16:12:48 +000023999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen6ab5c572007-09-22 21:36:59 +000024000 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwind70eebe2009-08-28 16:12:48 +000024001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024002
24003 esac
24004done # for ac_tag
24005
John Criswell3ef61af2003-06-30 21:59:07 +000024006
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024007{ (exit 0); exit 0; }
John Criswell3ef61af2003-06-30 21:59:07 +000024008_ACEOF
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024009chmod +x $CONFIG_STATUS
John Criswell3ef61af2003-06-30 21:59:07 +000024010ac_clean_files=$ac_clean_files_save
24011
24012
24013# configure is writing to config.log, and then calls config.status.
24014# config.status does its own redirection, appending to config.log.
24015# Unfortunately, on DOS this fails, as config.log is still kept open
24016# by configure, so config.status won't be able to write to it; its
24017# output is simply discarded. So we exec the FD to /dev/null,
24018# effectively closing config.log, so it can be properly (re)opened and
24019# appended to by config.status. When coming back to configure, we
24020# need to make the FD available again.
24021if test "$no_create" != yes; then
24022 ac_cs_success=:
John Criswell3eaf0b42003-09-10 15:17:25 +000024023 ac_config_status_args=
24024 test "$silent" = yes &&
24025 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell3ef61af2003-06-30 21:59:07 +000024026 exec 5>/dev/null
John Criswell3eaf0b42003-09-10 15:17:25 +000024027 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell3ef61af2003-06-30 21:59:07 +000024028 exec 5>>config.log
24029 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24030 # would make configure fail if this is the last instruction.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024031 $ac_cs_success || { (exit 1); exit 1; }
John Criswell3ef61af2003-06-30 21:59:07 +000024032fi
24033
John Criswell2b3771e2003-09-30 15:55:44 +000024034#
24035# CONFIG_SUBDIRS section.
24036#
24037if test "$no_recursion" != yes; then
24038
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024039 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell2b3771e2003-09-30 15:55:44 +000024040 ac_sub_configure_args=
24041 ac_prev=
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024042 eval "set x $ac_configure_args"
24043 shift
24044 for ac_arg
24045 do
John Criswell2b3771e2003-09-30 15:55:44 +000024046 if test -n "$ac_prev"; then
24047 ac_prev=
24048 continue
24049 fi
24050 case $ac_arg in
24051 -cache-file | --cache-file | --cache-fil | --cache-fi \
24052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24053 ac_prev=cache_file ;;
24054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24056 | --c=*)
24057 ;;
24058 --config-cache | -C)
24059 ;;
24060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24061 ac_prev=srcdir ;;
24062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24063 ;;
24064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24065 ac_prev=prefix ;;
24066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24067 ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024068 *)
24069 case $ac_arg in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024070 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024071 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024072 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell2b3771e2003-09-30 15:55:44 +000024073 esac
24074 done
24075
24076 # Always prepend --prefix to ensure using the same prefix
24077 # in subdir configurations.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024078 ac_arg="--prefix=$prefix"
24079 case $ac_arg in
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024080 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024081 esac
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024082 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell2b3771e2003-09-30 15:55:44 +000024083
24084 ac_popdir=`pwd`
24085 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24086
24087 # Do not complain, so a configure script can configure whichever
24088 # parts of a large source tree are present.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024089 test -d "$srcdir/$ac_dir" || continue
John Criswell2b3771e2003-09-30 15:55:44 +000024090
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024091 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024092 echo "$as_me:$LINENO: $ac_msg" >&5
24093 echo "$ac_msg" >&6
24094 { as_dir="$ac_dir"
24095 case $as_dir in #(
24096 -*) as_dir=./$as_dir;;
24097 esac
24098 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24099 as_dirs=
24100 while :; do
24101 case $as_dir in #(
24102 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24103 *) as_qdir=$as_dir;;
24104 esac
24105 as_dirs="'$as_qdir' $as_dirs"
24106 as_dir=`$as_dirname -- "$as_dir" ||
24107$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24108 X"$as_dir" : 'X\(//\)[^/]' \| \
24109 X"$as_dir" : 'X\(//\)$' \| \
24110 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24111echo X"$as_dir" |
24112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24113 s//\1/
24114 q
24115 }
24116 /^X\(\/\/\)[^/].*/{
24117 s//\1/
24118 q
24119 }
24120 /^X\(\/\/\)$/{
24121 s//\1/
24122 q
24123 }
24124 /^X\(\/\).*/{
24125 s//\1/
24126 q
24127 }
24128 s/.*/./; q'`
24129 test -d "$as_dir" && break
24130 done
24131 test -z "$as_dirs" || eval "mkdir $as_dirs"
24132 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24133echo "$as_me: error: cannot create directory $as_dir" >&2;}
24134 { (exit 1); exit 1; }; }; }
John Criswell2b3771e2003-09-30 15:55:44 +000024135 ac_builddir=.
24136
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024137case "$ac_dir" in
24138.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24139*)
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024140 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024141 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024142 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024143 case $ac_top_builddir_sub in
24144 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24145 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24146 esac ;;
24147esac
24148ac_abs_top_builddir=$ac_pwd
24149ac_abs_builddir=$ac_pwd$ac_dir_suffix
24150# for backward compatibility:
24151ac_top_builddir=$ac_top_build_prefix
John Criswell2b3771e2003-09-30 15:55:44 +000024152
24153case $srcdir in
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024154 .) # We are building in place.
John Criswell2b3771e2003-09-30 15:55:44 +000024155 ac_srcdir=.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024156 ac_top_srcdir=$ac_top_builddir_sub
24157 ac_abs_top_srcdir=$ac_pwd ;;
24158 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell2b3771e2003-09-30 15:55:44 +000024159 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024160 ac_top_srcdir=$srcdir
24161 ac_abs_top_srcdir=$srcdir ;;
24162 *) # Relative name.
24163 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24164 ac_top_srcdir=$ac_top_build_prefix$srcdir
24165 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell2b3771e2003-09-30 15:55:44 +000024166esac
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024167ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell2b3771e2003-09-30 15:55:44 +000024168
24169
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024170 cd "$ac_dir"
John Criswell2b3771e2003-09-30 15:55:44 +000024171
24172 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024173 if test -f "$ac_srcdir/configure.gnu"; then
24174 ac_sub_configure=$ac_srcdir/configure.gnu
24175 elif test -f "$ac_srcdir/configure"; then
24176 ac_sub_configure=$ac_srcdir/configure
24177 elif test -f "$ac_srcdir/configure.in"; then
24178 # This should be Cygnus configure.
24179 ac_sub_configure=$ac_aux_dir/configure
John Criswell2b3771e2003-09-30 15:55:44 +000024180 else
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024181 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24182echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell2b3771e2003-09-30 15:55:44 +000024183 ac_sub_configure=
24184 fi
24185
24186 # The recursion is here.
24187 if test -n "$ac_sub_configure"; then
24188 # Make the cache file name correct relative to the subdirectory.
24189 case $cache_file in
24190 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024191 *) # Relative name.
24192 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell2b3771e2003-09-30 15:55:44 +000024193 esac
24194
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024195 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24196echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
John Criswell2b3771e2003-09-30 15:55:44 +000024197 # The eval makes quoting arguments work.
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024198 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24199 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskinbf5ce0a2010-02-03 02:11:49 +000024200 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24201echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24202 { (exit 1); exit 1; }; }
John Criswell2b3771e2003-09-30 15:55:44 +000024203 fi
24204
Reid Spencer0b52e2f2006-08-04 18:18:08 +000024205 cd "$ac_popdir"
John Criswell2b3771e2003-09-30 15:55:44 +000024206 done
24207fi
24208